@@ -53,7 +53,7 @@ Here’s an example of a custom callout called `figure` with a pink theme and a
5353
5454``` css
5555/* === FIGURE === */
56- .callout [data-callout = " figure" ] {
56+ .callout [data-callout ^ =" figure" ] {
5757 --callout-color : 255 , 121 , 198 ;
5858 --callout-icon : lucide-pencil;
5959 background-color : rgba (255 , 121 , 198 , 0.2 );
@@ -86,7 +86,7 @@ Here's another example using a theorem block:
8686
8787``` css
8888/* === THEOREM === */
89- .callout [data-callout = " theorem" ] {
89+ .callout [data-callout ^ =" theorem" ] {
9090 --callout-color : 189 , 147 , 249 ;
9191 --callout-icon : lucide-square-sigma;
9292 background-color : rgba (189 , 147 , 249 , 0.2 );
@@ -110,9 +110,9 @@ Most of the ones I've made have been for equations, theorems, figures or other m
110110
111111``` css
112112/* === ATTENTION, CAUTION, WARNING === */
113- .callout [data-callout = " attention" ],
114- .callout [data-callout = " caution" ],
115- .callout [data-callout = " warning" ] {
113+ .callout [data-callout ^ =" attention" ],
114+ .callout [data-callout ^ =" caution" ],
115+ .callout [data-callout ^ =" warning" ] {
116116 --callout-color : 241 , 250 , 140 ;
117117 --callout-icon : lucide-alert-triangle;
118118 background-color : rgba (241 , 250 , 140 , 0.2 );
@@ -162,7 +162,7 @@ Then, reference these variables when creating your callouts:
162162
163163``` css
164164/* === QUESTION === */
165- .callout [data-callout = " question" ] {
165+ .callout [data-callout ^ =" question" ] {
166166 --callout-color : var (--drac-pink-rgb );
167167 --callout-icon : lucide-help-circle;
168168 background-color : rgba (var (--drac-pink-rgb ), 0.2 );
@@ -175,7 +175,7 @@ For example, your `theorem` callout could use the purple variable:
175175
176176``` css
177177/* === THEOREM === */
178- .callout [data-callout = " theorem" ] {
178+ .callout [data-callout ^ =" theorem" ] {
179179 --callout-color : var (--drac-purple-rgb );
180180 --callout-icon : lucide-square-sigma;
181181 background-color : rgba (var (--drac-purple-rgb ), 0.2 );
@@ -186,7 +186,7 @@ And your `warning` set could use:
186186
187187``` css
188188/* === WARNING === */
189- .callout [data-callout = " warning" ] {
189+ .callout [data-callout ^ =" warning" ] {
190190 --callout-color : var (--drac-yellow-rgb );
191191 --callout-icon : lucide-alert-triangle;
192192 background-color : rgba (var (--drac-yellow-rgb ), 0.2 );
@@ -220,7 +220,7 @@ I added a blank (neutral) callout style that lets you group a section of text in
220220
221221``` css
222222/* === NEUTRAL (unstyled, no title, no icon, no styling) === */
223- .callout [data-callout = " neutral" ] {
223+ .callout [data-callout ^ =" neutral" ] {
224224 --callout-color : 255 , 255 , 255 ;
225225 --callout-icon : none ;
226226 background-color : unset !important ;
@@ -230,12 +230,12 @@ I added a blank (neutral) callout style that lets you group a section of text in
230230 margin : 0 !important ;
231231}
232232
233- .callout [data-callout = " neutral" ]::before {
233+ .callout [data-callout ^ =" neutral" ]::before {
234234 display : none !important ;
235235}
236236
237237/* Hide the title bar completely */
238- .callout [data-callout = " neutral" ] .callout-title {
238+ .callout [data-callout ^ =" neutral" ] .callout-title {
239239 display : none !important ;
240240}
241241```
0 commit comments