Someone who’s much better at CSS than me will probably come up with a much better solution, but this is a working solution:
.callout[data-callout="custom-callout"] {
--callout-color: var(--color-red-rgb);
--callout-icon: lucide-alert-triangle;
}
.callout[data-callout="custom-callout"] .callout-title {
visibility: hidden;
}
.callout[data-callout="custom-callout"] .callout-icon {
visibility: visible;
}
.callout[data-callout="custom-callout"] .callout-icon::after {
content: "This is a really long title that I don't have to type out anymore";
padding-left: 5px;
}
.callout[data-callout="custom-callout"] .callout-fold {
visibility: visible;
margin-right: auto;
margin-left: -110px;
}
The margin-left: -110px; needs to be changed according to the length of the name you give your custom callout. This works if it’s named custom-callout. This is because the title is still there, it’s just hidden.
If you dont use the folding mechanism for that specific custom callout or you dont care about seeing the fold arrow you can completely delete this part: