@@ -53,7 +53,7 @@ Here’s an example of a custom callout called `figure` with a pink theme and a
53
53
54
54
``` css
55
55
/* === FIGURE === */
56
- .callout [data-callout = " figure" ] {
56
+ .callout [data-callout ^ =" figure" ] {
57
57
--callout-color : 255 , 121 , 198 ;
58
58
--callout-icon : lucide-pencil;
59
59
background-color : rgba (255 , 121 , 198 , 0.2 );
@@ -86,7 +86,7 @@ Here's another example using a theorem block:
86
86
87
87
``` css
88
88
/* === THEOREM === */
89
- .callout [data-callout = " theorem" ] {
89
+ .callout [data-callout ^ =" theorem" ] {
90
90
--callout-color : 189 , 147 , 249 ;
91
91
--callout-icon : lucide-square-sigma;
92
92
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
110
110
111
111
``` css
112
112
/* === 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" ] {
116
116
--callout-color : 241 , 250 , 140 ;
117
117
--callout-icon : lucide-alert-triangle;
118
118
background-color : rgba (241 , 250 , 140 , 0.2 );
@@ -162,7 +162,7 @@ Then, reference these variables when creating your callouts:
162
162
163
163
``` css
164
164
/* === QUESTION === */
165
- .callout [data-callout = " question" ] {
165
+ .callout [data-callout ^ =" question" ] {
166
166
--callout-color : var (--drac-pink-rgb );
167
167
--callout-icon : lucide-help-circle;
168
168
background-color : rgba (var (--drac-pink-rgb ), 0.2 );
@@ -175,7 +175,7 @@ For example, your `theorem` callout could use the purple variable:
175
175
176
176
``` css
177
177
/* === THEOREM === */
178
- .callout [data-callout = " theorem" ] {
178
+ .callout [data-callout ^ =" theorem" ] {
179
179
--callout-color : var (--drac-purple-rgb );
180
180
--callout-icon : lucide-square-sigma;
181
181
background-color : rgba (var (--drac-purple-rgb ), 0.2 );
@@ -186,7 +186,7 @@ And your `warning` set could use:
186
186
187
187
``` css
188
188
/* === WARNING === */
189
- .callout [data-callout = " warning" ] {
189
+ .callout [data-callout ^ =" warning" ] {
190
190
--callout-color : var (--drac-yellow-rgb );
191
191
--callout-icon : lucide-alert-triangle;
192
192
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
220
220
221
221
``` css
222
222
/* === NEUTRAL (unstyled, no title, no icon, no styling) === */
223
- .callout [data-callout = " neutral" ] {
223
+ .callout [data-callout ^ =" neutral" ] {
224
224
--callout-color : 255 , 255 , 255 ;
225
225
--callout-icon : none ;
226
226
background-color : unset !important ;
@@ -230,12 +230,12 @@ I added a blank (neutral) callout style that lets you group a section of text in
230
230
margin : 0 !important ;
231
231
}
232
232
233
- .callout [data-callout = " neutral" ]::before {
233
+ .callout [data-callout ^ =" neutral" ]::before {
234
234
display : none !important ;
235
235
}
236
236
237
237
/* Hide the title bar completely */
238
- .callout [data-callout = " neutral" ] .callout-title {
238
+ .callout [data-callout ^ =" neutral" ] .callout-title {
239
239
display : none !important ;
240
240
}
241
241
```
0 commit comments