|
29 | 29 |
|
30 | 30 | .el-text { |
31 | 31 | &[data-size="2xs"], |
32 | | - &[data-size="xs"], |
33 | 32 | &.el-size-2xs, |
| 33 | + &[data-size="xs"], |
34 | 34 | &.el-size-xs { |
35 | 35 | @apply text-xs; |
36 | 36 | } |
|
69 | 69 | } |
70 | 70 |
|
71 | 71 | .el-bg { |
72 | | - &[data-color="white"] { |
| 72 | + &[data-color="white"], |
| 73 | + &.el-color-white { |
73 | 74 | @apply bg-white text-black ring-gray-200 dark:bg-zinc-800 dark:text-white dark:ring-zinc-700; |
74 | 75 | } |
75 | 76 |
|
76 | | - &[data-color="black"] { |
| 77 | + &[data-color="black"], |
| 78 | + &.el-color-black { |
77 | 79 | @apply bg-black text-white ring-black dark:bg-white dark:text-black placeholder:text-white/60; |
78 | 80 | } |
79 | 81 |
|
80 | | - &[data-color="gray"] { |
| 82 | + &[data-color="gray"], |
| 83 | + &.el-color-gray { |
81 | 84 | @apply bg-gray-100 text-gray-600 ring-gray-100; |
82 | 85 | } |
83 | 86 |
|
84 | | - &[data-color="gray-light"] { |
| 87 | + &[data-color="gray-light"], |
| 88 | + &.el-color-gray-light { |
85 | 89 | @apply bg-gray-400/20 text-gray-800 ring-gray-400/20; |
86 | 90 | } |
87 | 91 |
|
88 | | - &[data-color="sky"] { |
| 92 | + &[data-color="sky"], |
| 93 | + &.el-color-sky { |
89 | 94 | @apply bg-sky-500 text-white ring-sky-500 placeholder:text-white/60; |
90 | 95 | } |
91 | 96 |
|
92 | | - &[data-color="sky-light"] { |
| 97 | + &[data-color="sky-light"], |
| 98 | + &.el-color-sky-light { |
93 | 99 | @apply bg-sky-400/20 text-sky-800 ring-sky-400/20 placeholder:text-sky-800/40; |
94 | 100 | } |
95 | 101 |
|
96 | | - &[data-color="emerald"] { |
| 102 | + &[data-color="emerald"], |
| 103 | + &.el-color-emerald { |
97 | 104 | @apply bg-emerald-500 text-white ring-emerald-500 placeholder:text-white/60; |
98 | 105 | } |
99 | 106 |
|
100 | | - &[data-color="emerald-light"] { |
| 107 | + &[data-color="emerald-light"], |
| 108 | + &.el-color-emerald-light { |
101 | 109 | @apply bg-emerald-400/20 text-emerald-800 ring-emerald-400/20 placeholder:text-emerald-800/40; |
102 | 110 | } |
103 | 111 |
|
104 | | - &[data-color="rose"] { |
| 112 | + &[data-color="rose"], |
| 113 | + &.el-color-rose { |
105 | 114 | @apply bg-rose-500 text-white ring-rose-500 placeholder:text-white/60; |
106 | 115 | } |
107 | 116 |
|
108 | | - &[data-color="rose-light"] { |
| 117 | + &[data-color="rose-light"], |
| 118 | + &.el-color-rose-light { |
109 | 119 | @apply bg-rose-400/20 text-rose-800 ring-rose-400/20 placeholder:text-rose-800/40; |
110 | 120 | } |
111 | 121 |
|
112 | | - &[data-color="purple"] { |
| 122 | + &[data-color="purple"], |
| 123 | + &.el-color-purple { |
113 | 124 | @apply bg-purple-500 text-white ring-purple-500 placeholder:text-white/60; |
114 | 125 | } |
115 | 126 |
|
116 | | - &[data-color="purple-light"] { |
| 127 | + &[data-color="purple-light"], |
| 128 | + &.el-color-purple-light { |
117 | 129 | @apply bg-purple-400/20 text-purple-800 ring-purple-400/20 placeholder:text-purple-800/40; |
118 | 130 | } |
119 | 131 |
|
120 | | - &[data-color="yellow"] { |
| 132 | + &[data-color="yellow"], |
| 133 | + &.el-color-yellow { |
121 | 134 | @apply bg-yellow-500 text-white ring-yellow-400/20 placeholder:text-white/60; |
122 | 135 | } |
123 | 136 |
|
124 | | - &[data-color="yellow-light"] { |
| 137 | + &[data-color="yellow-light"], |
| 138 | + &.el-color-yellow-light { |
125 | 139 | @apply bg-yellow-400/20 text-yellow-800 ring-yellow-400/20 placeholder:text-yellow-800/40; |
126 | 140 | } |
127 | 141 |
|
128 | | - &[data-color="amber"] { |
| 142 | + &[data-color="amber"], |
| 143 | + &.el-color-amber { |
129 | 144 | @apply bg-amber-500 text-white ring-amber-400/20 placeholder:text-white/60; |
130 | 145 | } |
131 | 146 |
|
132 | | - &[data-color="amber-light"] { |
| 147 | + &[data-color="amber-light"], |
| 148 | + &.el-color-amber-light { |
133 | 149 | @apply bg-amber-400/20 text-amber-800 ring-amber-400/20 placeholder:text-amber-800/40; |
134 | 150 | } |
135 | 151 |
|
136 | | - &[data-color="transparent"] { |
| 152 | + &[data-color="transparent"], |
| 153 | + &.el-color-transparent { |
137 | 154 | @apply bg-transparent text-inherit border-transparent; |
138 | 155 | } |
139 | 156 | } |
140 | 157 |
|
141 | 158 | .el-ring { |
142 | | - &[data-color="black"] { |
| 159 | + &[data-color="black"], |
| 160 | + &.el-color-black { |
143 | 161 | @apply ring-black; |
144 | 162 | } |
145 | | - &[data-color="gray"] { |
| 163 | + &[data-color="gray"], |
| 164 | + &.el-color-gray { |
146 | 165 | @apply ring-gray-200; |
147 | 166 | } |
148 | | - &[data-color="gray-light"] { |
| 167 | + &[data-color="gray-light"], |
| 168 | + &.el-color-gray-light { |
149 | 169 | @apply ring-gray-100; |
150 | 170 | } |
151 | | - &[data-color="sky"] { |
| 171 | + &[data-color="sky"], |
| 172 | + &.el-color-sky { |
152 | 173 | @apply ring-sky-600; |
153 | 174 | } |
154 | | - &[data-color="sky-light"] { |
| 175 | + &[data-color="sky-light"], |
| 176 | + &.el-color-sky-light { |
155 | 177 | @apply ring-sky-500; |
156 | 178 | } |
157 | | - &[data-color="emerald"] { |
| 179 | + &[data-color="emerald"], |
| 180 | + &.el-color-emerald { |
158 | 181 | @apply ring-emerald-600; |
159 | 182 | } |
160 | | - &[data-color="emerald-light"] { |
| 183 | + &[data-color="emerald-light"], |
| 184 | + &.el-color-emerald-light { |
161 | 185 | @apply ring-emerald-500; |
162 | 186 | } |
163 | | - &[data-color="rose"] { |
| 187 | + &[data-color="rose"], |
| 188 | + &.el-color-rose { |
164 | 189 | @apply ring-rose-600; |
165 | 190 | } |
166 | | - &[data-color="rose-light"] { |
| 191 | + &[data-color="rose-light"], |
| 192 | + &.el-color-rose-light { |
167 | 193 | @apply ring-rose-500; |
168 | 194 | } |
169 | | - &[data-color="purple"] { |
| 195 | + &[data-color="purple"], |
| 196 | + &.el-color-purple { |
170 | 197 | @apply ring-purple-600; |
171 | 198 | } |
172 | | - &[data-color="purple-light"] { |
| 199 | + &[data-color="purple-light"], |
| 200 | + &.el-color-purple-light { |
173 | 201 | @apply ring-purple-500; |
174 | 202 | } |
175 | | - &[data-color="yellow"] { |
| 203 | + &[data-color="yellow"], |
| 204 | + &.el-color-yellow { |
176 | 205 | @apply ring-yellow-600; |
177 | 206 | } |
178 | | - &[data-color="yellow-light"] { |
| 207 | + &[data-color="yellow-light"], |
| 208 | + &.el-color-yellow-light { |
179 | 209 | @apply ring-yellow-500; |
180 | 210 | } |
181 | | - &[data-color="amber"] { |
| 211 | + &[data-color="amber"], |
| 212 | + &.el-color-amber { |
182 | 213 | @apply ring-amber-600; |
183 | 214 | } |
184 | | - &[data-color="amber-light"] { |
| 215 | + &[data-color="amber-light"], |
| 216 | + &.el-color-amber-light { |
185 | 217 | @apply ring-amber-500; |
186 | 218 | } |
187 | | - &[data-color="glass"] { |
| 219 | + &[data-color="glass"], |
| 220 | + &.el-color-glass { |
188 | 221 | @apply ring-white; |
189 | 222 | } |
190 | | - &[data-color="transparent"] { |
| 223 | + &[data-color="transparent"], |
| 224 | + &.el-color-transparent { |
191 | 225 | @apply ring-transparent; |
192 | 226 | } |
193 | 227 | } |
194 | 228 |
|
195 | 229 | .el-outline { |
196 | | - &[data-color="white"] { |
| 230 | + &[data-color="white"], |
| 231 | + &.el-color-white { |
197 | 232 | @apply outline-black; |
198 | 233 | } |
199 | | - &[data-color="black"] { |
| 234 | + &[data-color="black"], |
| 235 | + &.el-color-black { |
200 | 236 | @apply outline-black; |
201 | 237 | } |
202 | | - &[data-color="gray"] { |
| 238 | + &[data-color="gray"], |
| 239 | + &.el-color-gray { |
203 | 240 | @apply outline-gray-200; |
204 | 241 | } |
205 | | - &[data-color="gray-light"] { |
| 242 | + &[data-color="gray-light"], |
| 243 | + &.el-color-gray-light { |
206 | 244 | @apply outline-gray-100; |
207 | 245 | } |
208 | | - &[data-color="sky"] { |
| 246 | + &[data-color="sky"], |
| 247 | + &.el-color-sky { |
209 | 248 | @apply outline-sky-500; |
210 | 249 | } |
211 | | - &[data-color="sky-light"] { |
| 250 | + &[data-color="sky-light"], |
| 251 | + &.el-color-sky-light { |
212 | 252 | @apply outline-sky-500; |
213 | 253 | } |
214 | | - &[data-color="emerald"] { |
| 254 | + &[data-color="emerald"], |
| 255 | + &.el-color-emerald { |
215 | 256 | @apply outline-emerald-500; |
216 | 257 | } |
217 | | - &[data-color="emerald-light"] { |
| 258 | + &[data-color="emerald-light"], |
| 259 | + &.el-color-emerald-light { |
218 | 260 | @apply outline-emerald-500; |
219 | 261 | } |
220 | | - &[data-color="rose"] { |
| 262 | + &[data-color="rose"], |
| 263 | + &.el-color-rose { |
221 | 264 | @apply outline-rose-500; |
222 | 265 | } |
223 | | - &[data-color="rose-light"] { |
| 266 | + &[data-color="rose-light"], |
| 267 | + &.el-color-rose-light { |
224 | 268 | @apply outline-rose-500; |
225 | 269 | } |
226 | | - &[data-color="purple"] { |
| 270 | + &[data-color="purple"], |
| 271 | + &.el-color-purple { |
227 | 272 | @apply outline-purple-500; |
228 | 273 | } |
229 | | - &[data-color="purple-light"] { |
| 274 | + &[data-color="purple-light"], |
| 275 | + &.el-color-purple-light { |
230 | 276 | @apply outline-purple-500; |
231 | 277 | } |
232 | | - &[data-color="yellow"] { |
| 278 | + &[data-color="yellow"], |
| 279 | + &.el-color-yellow { |
233 | 280 | @apply outline-yellow-500; |
234 | 281 | } |
235 | | - &[data-color="yellow-light"] { |
| 282 | + &[data-color="yellow-light"], |
| 283 | + &.el-color-yellow-light { |
236 | 284 | @apply outline-yellow-500; |
237 | 285 | } |
238 | | - &[data-color="amber"] { |
| 286 | + &[data-color="amber"], |
| 287 | + &.el-color-amber { |
239 | 288 | @apply outline-amber-500; |
240 | 289 | } |
241 | | - &[data-color="amber-light"] { |
| 290 | + &[data-color="amber-light"], |
| 291 | + &.el-color-amber-light { |
242 | 292 | @apply outline-amber-500; |
243 | 293 | } |
244 | | - &[data-color="glass"] { |
| 294 | + &[data-color="glass"], |
| 295 | + &.el-color-glass { |
245 | 296 | @apply outline-black; |
246 | 297 | } |
247 | | - &[data-color="transparent"] { |
| 298 | + &[data-color="transparent"], |
| 299 | + &.el-color-transparent { |
248 | 300 | @apply outline-transparent; |
249 | 301 | } |
250 | 302 | } |
251 | 303 |
|
252 | 304 | .el-border { |
253 | | - &[data-color="black"] { |
| 305 | + &[data-color="black"], |
| 306 | + &.el-color-black { |
254 | 307 | @apply border-black; |
255 | 308 | } |
256 | | - &[data-color="gray"] { |
| 309 | + &[data-color="gray"], |
| 310 | + &.el-color-gray { |
257 | 311 | @apply border-gray-200; |
258 | 312 | } |
259 | | - &[data-color="gray-light"] { |
| 313 | + &[data-color="gray-light"], |
| 314 | + &.el-color-gray-light { |
260 | 315 | @apply border-gray-100; |
261 | 316 | } |
262 | | - &[data-color="sky"] { |
| 317 | + &[data-color="sky"], |
| 318 | + &.el-color-sky { |
263 | 319 | @apply border-sky-600; |
264 | 320 | } |
265 | | - &[data-color="sky-light"] { |
| 321 | + &[data-color="sky-light"], |
| 322 | + &.el-color-sky-light { |
266 | 323 | @apply border-sky-500; |
267 | 324 | } |
268 | | - &[data-color="emerald"] { |
| 325 | + &[data-color="emerald"], |
| 326 | + &.el-color-emerald { |
269 | 327 | @apply border-emerald-600; |
270 | 328 | } |
271 | | - &[data-color="emerald-light"] { |
| 329 | + &[data-color="emerald-light"], |
| 330 | + &.el-color-emerald-light { |
272 | 331 | @apply border-emerald-500; |
273 | 332 | } |
274 | | - &[data-color="rose"] { |
| 333 | + &[data-color="rose"], |
| 334 | + &.el-color-rose { |
275 | 335 | @apply border-rose-600; |
276 | 336 | } |
277 | | - &[data-color="rose-light"] { |
| 337 | + &[data-color="rose-light"], |
| 338 | + &.el-color-rose-light { |
278 | 339 | @apply border-rose-500; |
279 | 340 | } |
280 | | - &[data-color="purple"] { |
| 341 | + &[data-color="purple"], |
| 342 | + &.el-color-purple { |
281 | 343 | @apply border-purple-600; |
282 | 344 | } |
283 | | - &[data-color="purple-light"] { |
| 345 | + &[data-color="purple-light"], |
| 346 | + &.el-color-purple-light { |
284 | 347 | @apply border-purple-500; |
285 | 348 | } |
286 | | - &[data-color="yellow"] { |
| 349 | + &[data-color="yellow"], |
| 350 | + &.el-color-yellow { |
287 | 351 | @apply border-yellow-600; |
288 | 352 | } |
289 | | - &[data-color="yellow-light"] { |
| 353 | + &[data-color="yellow-light"], |
| 354 | + &.el-color-yellow-light { |
290 | 355 | @apply border-yellow-500; |
291 | 356 | } |
292 | | - &[data-color="amber"] { |
| 357 | + &[data-color="amber"], |
| 358 | + &.el-color-amber { |
293 | 359 | @apply border-amber-600; |
294 | 360 | } |
295 | | - &[data-color="amber-light"] { |
| 361 | + &[data-color="amber-light"], |
| 362 | + &.el-color-amber-light { |
296 | 363 | @apply border-amber-500; |
297 | 364 | } |
298 | | - &[data-color="glass"] { |
| 365 | + &[data-color="glass"], |
| 366 | + &.el-color-glass { |
299 | 367 | @apply border-white; |
300 | 368 | } |
301 | | - &[data-color="transparent"] { |
| 369 | + &[data-color="transparent"], |
| 370 | + &.el-color-transparent { |
302 | 371 | @apply border-transparent; |
303 | 372 | } |
304 | 373 | } |
|
0 commit comments