@nuvoui/core 1.4.6 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nuvoui.css CHANGED
@@ -21,322 +21,287 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- *,
25
- ::before,
26
- ::after,
27
- ::backdrop,
28
- ::file-selector-button {
29
- box-sizing: border-box;
30
- }
31
-
32
- body,
33
- h1,
34
- h2,
35
- h3,
36
- h4,
37
- h5,
38
- h6,
39
- p,
40
- figure,
41
- blockquote,
42
- dl,
43
- dd {
44
- margin: 0;
45
- padding: 0;
46
- }
47
-
48
- html {
49
- text-size-adjust: none;
50
- }
51
-
52
- html:focus-within {
53
- scroll-behavior: smooth;
54
- }
55
-
56
- body {
57
- min-height: 100vh;
58
- min-height: 100dvh;
59
- text-rendering: optimizespeed;
60
- line-height: 1.5;
61
- -webkit-font-smoothing: antialiased;
62
- -moz-osx-font-smoothing: grayscale;
63
- }
64
-
65
- h1,
66
- h2,
67
- h3,
68
- h4,
69
- button,
70
- input,
71
- label {
72
- line-height: 1.1;
73
- }
74
-
75
- img,
76
- picture,
77
- video,
78
- canvas,
79
- svg,
80
- audio,
81
- iframe,
82
- embed,
83
- object {
84
- display: block;
85
- vertical-align: middle;
86
- }
87
-
88
- img,
89
- picture,
90
- video,
91
- svg {
92
- max-width: 100%;
93
- height: auto;
94
- }
95
-
96
- input,
97
- button,
98
- textarea,
99
- select {
100
- font: inherit;
101
- cursor: pointer;
102
- }
103
- input:disabled,
104
- button:disabled,
105
- textarea:disabled,
106
- select:disabled {
107
- cursor: not-allowed;
108
- }
109
-
110
- ul[role=list],
111
- ol[role=list] {
112
- list-style: none;
113
- padding-inline-start: 0;
114
- margin-block: 0;
115
- }
116
- ul[role=list] > li,
117
- ol[role=list] > li {
118
- margin-block: 0;
119
- }
120
-
121
- a {
122
- text-decoration-skip-ink: auto;
123
- text-decoration: none;
124
- color: inherit;
125
- }
126
-
127
- textarea:not([rows]) {
128
- min-height: 10em;
129
- }
130
-
131
- :target {
132
- scroll-margin-block: 5ex;
133
- }
134
-
135
- @media (prefers-reduced-motion: reduce) {
24
+ @layer reset, base, components;
25
+ @layer reset {
136
26
  *,
137
- *::before,
138
- *::after {
139
- animation-duration: 0.01ms !important;
140
- animation-iteration-count: 1 !important;
141
- transition-duration: 0.01ms !important;
142
- scroll-behavior: auto !important;
27
+ ::before,
28
+ ::after,
29
+ ::backdrop,
30
+ ::file-selector-button {
31
+ box-sizing: border-box;
32
+ }
33
+ body,
34
+ h1,
35
+ h2,
36
+ h3,
37
+ h4,
38
+ h5,
39
+ h6,
40
+ p,
41
+ figure,
42
+ blockquote,
43
+ dl,
44
+ dd {
45
+ margin: 0;
46
+ padding: 0;
47
+ }
48
+ html {
49
+ text-size-adjust: none;
50
+ }
51
+ html:focus-within {
52
+ scroll-behavior: smooth;
53
+ }
54
+ body {
55
+ min-height: 100vh;
56
+ min-height: 100dvh;
57
+ text-rendering: optimizespeed;
58
+ line-height: 1.5;
59
+ -webkit-font-smoothing: antialiased;
60
+ -moz-osx-font-smoothing: grayscale;
61
+ }
62
+ h1,
63
+ h2,
64
+ h3,
65
+ h4,
66
+ button,
67
+ input,
68
+ label {
69
+ line-height: 1.1;
70
+ }
71
+ img,
72
+ picture,
73
+ video,
74
+ canvas,
75
+ svg,
76
+ audio,
77
+ iframe,
78
+ embed,
79
+ object {
80
+ display: block;
81
+ vertical-align: middle;
82
+ }
83
+ img,
84
+ picture,
85
+ video,
86
+ svg {
87
+ max-width: 100%;
88
+ height: auto;
89
+ }
90
+ input,
91
+ button,
92
+ textarea,
93
+ select {
94
+ font: inherit;
95
+ cursor: pointer;
96
+ }
97
+ input:disabled,
98
+ button:disabled,
99
+ textarea:disabled,
100
+ select:disabled {
101
+ cursor: not-allowed;
102
+ }
103
+ ul[role=list],
104
+ ol[role=list] {
105
+ list-style: none;
106
+ padding-inline-start: 0;
107
+ margin-block: 0;
108
+ }
109
+ ul[role=list] > li,
110
+ ol[role=list] > li {
111
+ margin-block: 0;
112
+ }
113
+ a {
114
+ text-decoration-skip-ink: auto;
115
+ text-decoration: none;
116
+ color: inherit;
117
+ }
118
+ textarea:not([rows]) {
119
+ min-height: 10em;
120
+ }
121
+ :target {
122
+ scroll-margin-block: 5ex;
123
+ }
124
+ @media (prefers-reduced-motion: reduce) {
125
+ *,
126
+ *::before,
127
+ *::after {
128
+ animation-duration: 0.01ms !important;
129
+ animation-iteration-count: 1 !important;
130
+ transition-duration: 0.01ms !important;
131
+ scroll-behavior: auto !important;
132
+ }
143
133
  }
144
134
  }
145
- :root {
146
- --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
147
- }
148
-
149
- html {
150
- font-size: 1rem;
151
- }
152
-
153
- body {
154
- font-family: var(--font-family-base);
155
- font-weight: 400;
156
- line-height: 1.5;
157
- color: var(--text-default);
158
- }
159
-
160
- h1,
161
- h2,
162
- h3,
163
- h4,
164
- h5,
165
- h6 {
166
- margin-bottom: 0.5em;
167
- font-family: var(--font-family-base);
168
- font-weight: 700;
169
- line-height: 1.2;
170
- }
171
-
172
- h1 {
173
- font-size: 2.5rem;
174
- }
175
-
176
- h2 {
177
- font-size: 2rem;
178
- }
179
-
180
- h3 {
181
- font-size: 1.75rem;
182
- }
183
-
184
- h4 {
185
- font-size: 1.5rem;
186
- }
187
-
188
- h5 {
189
- font-size: 1.25rem;
190
- }
191
-
192
- h6 {
193
- font-size: 1rem;
194
- }
195
-
196
- p {
197
- margin-bottom: 1rem;
198
- }
199
-
200
- small {
201
- font-size: 0.875rem;
202
- }
203
-
204
- button {
205
- padding: 0.5rem 1rem;
206
- border: 0;
207
- border-radius: 0.25rem;
208
- font-family: var(--font-family-base);
209
- cursor: pointer;
210
- transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
211
- }
212
- button:focus {
213
- outline: none;
214
- }
215
- button:disabled {
216
- background-color: #e0e0e0;
217
- color: #a0a0a0;
218
- cursor: not-allowed;
219
- }
220
- button:not([class*=bg-]) {
221
- background-color: var(--button-bg-color, #007bff);
222
- color: var(--button-text-color, #fff);
223
- }
224
- button:not([class*=bg-]):hover {
225
- background-color: var(--button-bg-color-hover, #0056b3);
226
- }
227
-
228
- input[type=text],
229
- input[type=tel],
230
- input[type=email],
231
- input[type=password],
232
- input[type=number],
233
- input[type=search],
234
- textarea {
235
- padding: 0.5rem;
236
- border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
237
- border-radius: 0.25rem;
238
- width: 100%;
239
- font-family: var(--font-family-base);
240
- transition: border 0.2s ease-in-out;
241
- }
242
- input[type=text]:focus,
243
- input[type=tel]:focus,
244
- input[type=email]:focus,
245
- input[type=password]:focus,
246
- input[type=number]:focus,
247
- input[type=search]:focus,
248
- textarea:focus {
249
- border-color: var(--link-color);
250
- outline: none;
251
- }
252
-
253
- input[type=checkbox],
254
- input[type=radio] {
255
- margin-right: 0.5rem;
256
- }
257
-
258
- select {
259
- padding: 0.5rem;
260
- border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
261
- border-radius: 0.25rem;
262
- width: 100%;
263
- font-family: var(--font-family-base);
264
- transition: border 0.2s ease-in-out;
265
- }
266
- select:focus {
267
- border-color: var(--link-color);
268
- outline: none;
269
- }
270
-
271
- blockquote {
272
- margin: 1rem 0;
273
- padding: 0.5rem 1rem;
274
- border-left: var(--border-size, 4px) var(--border-style, solid) var(--border-base, var(--secondary));
275
- font-style: italic;
276
- }
277
-
278
- hr {
279
- border: none;
280
- border-top: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
281
- margin: 1rem 0;
282
- }
283
-
284
- img {
285
- max-width: 100%;
286
- height: auto;
287
- }
288
-
289
- figure {
290
- margin: 1rem 0;
291
- }
292
-
293
- figcaption {
294
- font-size: 0.875rem;
295
- color: var(--text-muted, #666);
296
- }
297
-
298
- a:not([class]) {
299
- color: var(--link-color);
300
- }
301
- a:not([class]):hover {
302
- color: var(--link-hover-color);
303
- }
304
-
305
- label[for] {
306
- cursor: pointer;
307
- }
308
-
309
- .sr-only {
310
- position: absolute !important;
311
- width: 1px !important;
312
- height: 1px !important;
313
- padding: 0 !important;
314
- margin: -1px !important;
315
- overflow: hidden !important;
316
- clip: rect(0, 0, 0, 0) !important;
317
- white-space: nowrap !important;
318
- border: 0 !important;
319
- }
320
-
321
- code {
322
- font-family: "Courier New", Courier, monospace;
323
- background-color: #f8f8f8;
324
- color: #d63384;
325
- padding: 2px 6px;
326
- border-radius: 3px;
327
- white-space: nowrap;
328
- }
329
- [data-theme=dark] code {
330
- background-color: #333;
331
- color: #f8f8f2;
332
- }
333
- @media (prefers-color-scheme: dark) {
334
- [data-theme=system] code {
135
+ @layer base {
136
+ :root {
137
+ --font-family-base: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
138
+ }
139
+ html {
140
+ font-size: 1rem;
141
+ }
142
+ body {
143
+ font-family: var(--font-family-base);
144
+ font-weight: 400;
145
+ line-height: 1.5;
146
+ color: var(--text-default);
147
+ }
148
+ h1,
149
+ h2,
150
+ h3,
151
+ h4,
152
+ h5,
153
+ h6 {
154
+ margin-bottom: 0.5em;
155
+ font-family: var(--font-family-base);
156
+ font-weight: 700;
157
+ line-height: 1.2;
158
+ }
159
+ h1 {
160
+ font-size: 2.5rem;
161
+ }
162
+ h2 {
163
+ font-size: 2rem;
164
+ }
165
+ h3 {
166
+ font-size: 1.75rem;
167
+ }
168
+ h4 {
169
+ font-size: 1.5rem;
170
+ }
171
+ h5 {
172
+ font-size: 1.25rem;
173
+ }
174
+ h6 {
175
+ font-size: 1rem;
176
+ }
177
+ p {
178
+ margin-bottom: 1rem;
179
+ }
180
+ small {
181
+ font-size: 0.875rem;
182
+ }
183
+ button {
184
+ padding: 0.5rem 1rem;
185
+ border: 0;
186
+ border-radius: 0.25rem;
187
+ font-family: var(--font-family-base);
188
+ cursor: pointer;
189
+ transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
190
+ background-color: var(--button-bg-color, #007bff);
191
+ color: var(--button-text-color, #fff);
192
+ }
193
+ button:focus {
194
+ outline: none;
195
+ }
196
+ button:disabled {
197
+ background-color: #e0e0e0;
198
+ color: #a0a0a0;
199
+ cursor: not-allowed;
200
+ }
201
+ button:hover {
202
+ background-color: var(--button-bg-color-hover, #0056b3);
203
+ }
204
+ input[type=text],
205
+ input[type=tel],
206
+ input[type=email],
207
+ input[type=password],
208
+ input[type=number],
209
+ input[type=search],
210
+ textarea {
211
+ padding: 0.5rem;
212
+ border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
213
+ border-radius: 0.25rem;
214
+ width: 100%;
215
+ font-family: var(--font-family-base);
216
+ transition: border 0.2s ease-in-out;
217
+ }
218
+ input[type=text]:focus,
219
+ input[type=tel]:focus,
220
+ input[type=email]:focus,
221
+ input[type=password]:focus,
222
+ input[type=number]:focus,
223
+ input[type=search]:focus,
224
+ textarea:focus {
225
+ border-color: var(--link-color);
226
+ outline: none;
227
+ }
228
+ input[type=checkbox],
229
+ input[type=radio] {
230
+ margin-right: 0.5rem;
231
+ }
232
+ select {
233
+ padding: 0.5rem;
234
+ border: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
235
+ border-radius: 0.25rem;
236
+ width: 100%;
237
+ font-family: var(--font-family-base);
238
+ transition: border 0.2s ease-in-out;
239
+ }
240
+ select:focus {
241
+ border-color: var(--link-color);
242
+ outline: none;
243
+ }
244
+ blockquote {
245
+ margin: 1rem 0;
246
+ padding: 0.5rem 1rem;
247
+ border-left: var(--border-size, 4px) var(--border-style, solid) var(--border-base, var(--secondary));
248
+ font-style: italic;
249
+ }
250
+ hr {
251
+ border: none;
252
+ border-top: var(--border-size, 1px) var(--border-style, solid) var(--border-base, var(--secondary));
253
+ margin: 1rem 0;
254
+ }
255
+ img {
256
+ max-width: 100%;
257
+ height: auto;
258
+ }
259
+ figure {
260
+ margin: 1rem 0;
261
+ }
262
+ figcaption {
263
+ font-size: 0.875rem;
264
+ color: var(--text-muted, #666);
265
+ }
266
+ a:not([class]) {
267
+ color: var(--link-color);
268
+ }
269
+ a:not([class]):hover {
270
+ color: var(--link-hover-color);
271
+ }
272
+ label[for] {
273
+ cursor: pointer;
274
+ }
275
+ .sr-only {
276
+ position: absolute !important;
277
+ width: 1px !important;
278
+ height: 1px !important;
279
+ padding: 0 !important;
280
+ margin: -1px !important;
281
+ overflow: hidden !important;
282
+ clip: rect(0, 0, 0, 0) !important;
283
+ white-space: nowrap !important;
284
+ border: 0 !important;
285
+ }
286
+ code {
287
+ font-family: "Courier New", Courier, monospace;
288
+ background-color: #f8f8f8;
289
+ color: #d63384;
290
+ padding: 2px 6px;
291
+ border-radius: 3px;
292
+ white-space: nowrap;
293
+ }
294
+ [data-theme=dark] code {
335
295
  background-color: #333;
336
296
  color: #f8f8f2;
337
297
  }
298
+ @media (prefers-color-scheme: dark) {
299
+ [data-theme=system] code {
300
+ background-color: #333;
301
+ color: #f8f8f2;
302
+ }
303
+ }
338
304
  }
339
-
340
305
  .container {
341
306
  display: block;
342
307
  width: 100%;
@@ -3363,205 +3328,194 @@ code {
3363
3328
  container-name: "section";
3364
3329
  }
3365
3330
 
3366
- :root {
3367
- --tooltip-bg: rgba(17 17 17 / 90%);
3368
- --tooltip-shadow-color: rgb(0 0 0 / 20%);
3369
- --tooltip-text-color: #fff;
3370
- --microtip-transition-duration: 0.18s;
3371
- --microtip-transition-easing: ease-in-out;
3372
- --microtip-transition-delay: 0s;
3373
- --microtip-font-size: 13px;
3374
- --microtip-font-weight: normal;
3375
- --microtip-text-transform: none;
3376
- --tooltip-small-width: 80px;
3377
- --tooltip-medium-width: 150px;
3378
- --tooltip-large-width: 260px;
3379
- --tooltip-border-radius: 4px;
3380
- }
3381
-
3382
- [data-tooltip][role~=tooltip] {
3383
- position: relative;
3384
- }
3385
- [data-tooltip][role~=tooltip]::before, [data-tooltip][role~=tooltip]::after {
3386
- transform: translate3d(0, 0, 0);
3387
- backface-visibility: hidden;
3388
- will-change: transform;
3389
- opacity: 0;
3390
- pointer-events: none;
3391
- transition: opacity var(--microtip-transition-duration) var(--microtip-transition-easing) var(--microtip-transition-delay), transform var(--microtip-transition-duration) var(--microtip-transition-easing) var(--microtip-transition-delay);
3392
- position: absolute;
3393
- box-sizing: border-box;
3394
- z-index: 10;
3395
- transform-origin: top;
3396
- }
3397
- [data-tooltip][role~=tooltip]::before {
3398
- background-size: 100% auto !important;
3399
- content: "";
3400
- }
3401
- [data-tooltip][role~=tooltip]::after {
3402
- background: var(--tooltip-bg);
3403
- box-shadow: 0 3px 7px var(--tooltip-shadow-color);
3404
- border-radius: var(--tooltip-border-radius);
3405
- color: var(--tooltip-text-color);
3406
- content: attr(data-tooltip);
3407
- font-size: var(--microtip-font-size);
3408
- font-weight: var(--microtip-font-weight);
3409
- text-transform: var(--microtip-text-transform);
3410
- padding: 0.5em 1em;
3411
- white-space: nowrap;
3412
- box-sizing: content-box;
3413
- }
3414
- [data-tooltip][role~=tooltip]:hover::before, [data-tooltip][role~=tooltip]:hover::after, [data-tooltip][role~=tooltip]:focus::before, [data-tooltip][role~=tooltip]:focus::after {
3415
- opacity: 1;
3416
- pointer-events: auto;
3417
- }
3418
-
3419
- [role~=tooltip][data-microtip-position|=top]::before {
3420
- border-left: 9px solid transparent;
3421
- border-right: 9px solid transparent;
3422
- border-top: 6px solid var(--tooltip-bg);
3423
- height: 0;
3424
- width: 0;
3425
- margin-bottom: 6px;
3426
- transform: translate3d(-50%, 0, 0);
3427
- bottom: 100%;
3428
- left: 50%;
3429
- z-index: 999;
3430
- }
3431
- [role~=tooltip][data-microtip-position|=top]::after {
3432
- margin-bottom: 11px;
3433
- transform: translate3d(-50%, 0, 0);
3434
- bottom: 100%;
3435
- left: 50%;
3436
- }
3437
- [role~=tooltip][data-microtip-position|=top]:hover::before {
3438
- transform: translate3d(-50%, -5px, 0);
3439
- }
3440
- [role~=tooltip][data-microtip-position|=top]:hover::after {
3441
- transform: translate3d(-50%, -5px, 0);
3442
- }
3443
-
3444
- [role~=tooltip][data-microtip-position=top-left]::after {
3445
- transform: translate3d(calc(-100% + 16px), 0, 0);
3446
- bottom: 100%;
3447
- }
3448
- [role~=tooltip][data-microtip-position=top-left]:hover::after {
3449
- transform: translate3d(calc(-100% + 16px), -5px, 0);
3450
- }
3451
-
3452
- [role~=tooltip][data-microtip-position=top-right]::after {
3453
- transform: translate3d(calc(0% - 16px), 0, 0);
3454
- bottom: 100%;
3455
- }
3456
- [role~=tooltip][data-microtip-position=top-right]:hover::after {
3457
- transform: translate3d(calc(0% - 16px), -5px, 0);
3458
- }
3459
-
3460
- [role~=tooltip][data-microtip-position|=bottom]::before {
3461
- border-left: 9px solid transparent;
3462
- border-right: 9px solid transparent;
3463
- border-bottom: 6px solid var(--tooltip-bg);
3464
- height: 0;
3465
- width: 0;
3466
- margin-top: 5px;
3467
- margin-bottom: 0;
3468
- transform: translate3d(-50%, -10px, 0);
3469
- bottom: auto;
3470
- left: 50%;
3471
- top: 100%;
3472
- z-index: 999;
3473
- }
3474
- [role~=tooltip][data-microtip-position|=bottom]::after {
3475
- margin-top: 11px;
3476
- transform: translate3d(-50%, -10px, 0);
3477
- top: 100%;
3478
- left: 50%;
3479
- }
3480
- [role~=tooltip][data-microtip-position|=bottom]:hover::before {
3481
- transform: translate3d(-50%, 0, 0);
3482
- }
3483
- [role~=tooltip][data-microtip-position|=bottom]:hover::after {
3484
- transform: translate3d(-50%, 0, 0);
3485
- }
3486
-
3487
- [role~=tooltip][data-microtip-position=bottom-left]::after {
3488
- transform: translate3d(calc(-100% + 16px), -10px, 0);
3489
- top: 100%;
3490
- }
3491
- [role~=tooltip][data-microtip-position=bottom-left]:hover::after {
3492
- transform: translate3d(calc(-100% + 16px), 0, 0);
3493
- }
3494
-
3495
- [role~=tooltip][data-microtip-position=bottom-right]::after {
3496
- transform: translate3d(calc(0% - 16px), -10px, 0);
3497
- top: 100%;
3498
- }
3499
- [role~=tooltip][data-microtip-position=bottom-right]:hover::after {
3500
- transform: translate3d(calc(0% - 16px), 0, 0);
3501
- }
3502
-
3503
- [role~=tooltip][data-microtip-position=left]::before, [role~=tooltip][data-microtip-position=left]::after {
3504
- inset: auto auto auto 100%;
3505
- left: auto;
3506
- right: 100%;
3507
- top: 50%;
3508
- transform: translate3d(10px, -50%, 0);
3509
- }
3510
- [role~=tooltip][data-microtip-position=left]::before {
3511
- border-top: 9px solid transparent;
3512
- border-bottom: 9px solid transparent;
3513
- border-left: 6px solid var(--tooltip-bg);
3514
- height: 0;
3515
- width: 0;
3516
- margin-right: 5px;
3517
- margin-bottom: 0;
3518
- z-index: 999;
3519
- }
3520
- [role~=tooltip][data-microtip-position=left]::after {
3521
- margin-right: 11px;
3522
- }
3523
- [role~=tooltip][data-microtip-position=left]:hover::before, [role~=tooltip][data-microtip-position=left]:hover::after {
3524
- transform: translate3d(0, -50%, 0);
3525
- }
3526
-
3527
- [role~=tooltip][data-microtip-position=right]::before, [role~=tooltip][data-microtip-position=right]::after {
3528
- bottom: auto;
3529
- left: 100%;
3530
- top: 50%;
3531
- transform: translate3d(-10px, -50%, 0);
3532
- }
3533
- [role~=tooltip][data-microtip-position=right]::before {
3534
- border-top: 9px solid transparent;
3535
- border-bottom: 9px solid transparent;
3536
- border-right: 6px solid var(--tooltip-bg);
3537
- height: 0;
3538
- width: 0;
3539
- margin-bottom: 0;
3540
- margin-left: 5px;
3541
- z-index: 999;
3542
- }
3543
- [role~=tooltip][data-microtip-position=right]::after {
3544
- margin-left: 11px;
3545
- }
3546
- [role~=tooltip][data-microtip-position=right]:hover::before, [role~=tooltip][data-microtip-position=right]:hover::after {
3547
- transform: translate3d(0, -50%, 0);
3548
- }
3549
-
3550
- [role~=tooltip][data-microtip-size=small]::after {
3551
- white-space: initial;
3552
- width: var(--tooltip-small-width);
3553
- }
3554
-
3555
- [role~=tooltip][data-microtip-size=medium]::after {
3556
- white-space: initial;
3557
- width: var(--tooltip-medium-width);
3558
- }
3559
-
3560
- [role~=tooltip][data-microtip-size=large]::after {
3561
- white-space: initial;
3562
- width: var(--tooltip-large-width);
3331
+ @layer components {
3332
+ :root {
3333
+ --tooltip-bg: rgba(17 17 17 / 90%);
3334
+ --tooltip-shadow-color: rgb(0 0 0 / 20%);
3335
+ --tooltip-text-color: #fff;
3336
+ --microtip-transition-duration: 0.18s;
3337
+ --microtip-transition-easing: ease-in-out;
3338
+ --microtip-transition-delay: 0s;
3339
+ --microtip-font-size: 13px;
3340
+ --microtip-font-weight: normal;
3341
+ --microtip-text-transform: none;
3342
+ --tooltip-small-width: 80px;
3343
+ --tooltip-medium-width: 150px;
3344
+ --tooltip-large-width: 260px;
3345
+ --tooltip-border-radius: 4px;
3346
+ }
3347
+ [data-tooltip][role~=tooltip] {
3348
+ position: relative;
3349
+ }
3350
+ [data-tooltip][role~=tooltip]::before, [data-tooltip][role~=tooltip]::after {
3351
+ transform: translate3d(0, 0, 0);
3352
+ backface-visibility: hidden;
3353
+ will-change: transform;
3354
+ opacity: 0;
3355
+ pointer-events: none;
3356
+ transition: opacity var(--microtip-transition-duration) var(--microtip-transition-easing) var(--microtip-transition-delay), transform var(--microtip-transition-duration) var(--microtip-transition-easing) var(--microtip-transition-delay);
3357
+ position: absolute;
3358
+ box-sizing: border-box;
3359
+ z-index: 10;
3360
+ transform-origin: top;
3361
+ }
3362
+ [data-tooltip][role~=tooltip]::before {
3363
+ background-size: 100% auto !important;
3364
+ content: "";
3365
+ }
3366
+ [data-tooltip][role~=tooltip]::after {
3367
+ background: var(--tooltip-bg);
3368
+ box-shadow: 0 3px 7px var(--tooltip-shadow-color);
3369
+ border-radius: var(--tooltip-border-radius);
3370
+ color: var(--tooltip-text-color);
3371
+ content: attr(data-tooltip);
3372
+ font-size: var(--microtip-font-size);
3373
+ font-weight: var(--microtip-font-weight);
3374
+ text-transform: var(--microtip-text-transform);
3375
+ padding: 0.5em 1em;
3376
+ white-space: nowrap;
3377
+ box-sizing: content-box;
3378
+ }
3379
+ [data-tooltip][role~=tooltip]:hover::before, [data-tooltip][role~=tooltip]:hover::after, [data-tooltip][role~=tooltip]:focus::before, [data-tooltip][role~=tooltip]:focus::after {
3380
+ opacity: 1;
3381
+ pointer-events: auto;
3382
+ }
3383
+ [role~=tooltip][data-microtip-position|=top]::before {
3384
+ border-left: 9px solid transparent;
3385
+ border-right: 9px solid transparent;
3386
+ border-top: 6px solid var(--tooltip-bg);
3387
+ height: 0;
3388
+ width: 0;
3389
+ margin-bottom: 6px;
3390
+ transform: translate3d(-50%, 0, 0);
3391
+ bottom: 100%;
3392
+ left: 50%;
3393
+ z-index: 999;
3394
+ }
3395
+ [role~=tooltip][data-microtip-position|=top]::after {
3396
+ margin-bottom: 11px;
3397
+ transform: translate3d(-50%, 0, 0);
3398
+ bottom: 100%;
3399
+ left: 50%;
3400
+ }
3401
+ [role~=tooltip][data-microtip-position|=top]:hover::before {
3402
+ transform: translate3d(-50%, -5px, 0);
3403
+ }
3404
+ [role~=tooltip][data-microtip-position|=top]:hover::after {
3405
+ transform: translate3d(-50%, -5px, 0);
3406
+ }
3407
+ [role~=tooltip][data-microtip-position=top-left]::after {
3408
+ transform: translate3d(calc(-100% + 16px), 0, 0);
3409
+ bottom: 100%;
3410
+ }
3411
+ [role~=tooltip][data-microtip-position=top-left]:hover::after {
3412
+ transform: translate3d(calc(-100% + 16px), -5px, 0);
3413
+ }
3414
+ [role~=tooltip][data-microtip-position=top-right]::after {
3415
+ transform: translate3d(calc(0% - 16px), 0, 0);
3416
+ bottom: 100%;
3417
+ }
3418
+ [role~=tooltip][data-microtip-position=top-right]:hover::after {
3419
+ transform: translate3d(calc(0% - 16px), -5px, 0);
3420
+ }
3421
+ [role~=tooltip][data-microtip-position|=bottom]::before {
3422
+ border-left: 9px solid transparent;
3423
+ border-right: 9px solid transparent;
3424
+ border-bottom: 6px solid var(--tooltip-bg);
3425
+ height: 0;
3426
+ width: 0;
3427
+ margin-top: 5px;
3428
+ margin-bottom: 0;
3429
+ transform: translate3d(-50%, -10px, 0);
3430
+ bottom: auto;
3431
+ left: 50%;
3432
+ top: 100%;
3433
+ z-index: 999;
3434
+ }
3435
+ [role~=tooltip][data-microtip-position|=bottom]::after {
3436
+ margin-top: 11px;
3437
+ transform: translate3d(-50%, -10px, 0);
3438
+ top: 100%;
3439
+ left: 50%;
3440
+ }
3441
+ [role~=tooltip][data-microtip-position|=bottom]:hover::before {
3442
+ transform: translate3d(-50%, 0, 0);
3443
+ }
3444
+ [role~=tooltip][data-microtip-position|=bottom]:hover::after {
3445
+ transform: translate3d(-50%, 0, 0);
3446
+ }
3447
+ [role~=tooltip][data-microtip-position=bottom-left]::after {
3448
+ transform: translate3d(calc(-100% + 16px), -10px, 0);
3449
+ top: 100%;
3450
+ }
3451
+ [role~=tooltip][data-microtip-position=bottom-left]:hover::after {
3452
+ transform: translate3d(calc(-100% + 16px), 0, 0);
3453
+ }
3454
+ [role~=tooltip][data-microtip-position=bottom-right]::after {
3455
+ transform: translate3d(calc(0% - 16px), -10px, 0);
3456
+ top: 100%;
3457
+ }
3458
+ [role~=tooltip][data-microtip-position=bottom-right]:hover::after {
3459
+ transform: translate3d(calc(0% - 16px), 0, 0);
3460
+ }
3461
+ [role~=tooltip][data-microtip-position=left]::before, [role~=tooltip][data-microtip-position=left]::after {
3462
+ inset: auto auto auto 100%;
3463
+ left: auto;
3464
+ right: 100%;
3465
+ top: 50%;
3466
+ transform: translate3d(10px, -50%, 0);
3467
+ }
3468
+ [role~=tooltip][data-microtip-position=left]::before {
3469
+ border-top: 9px solid transparent;
3470
+ border-bottom: 9px solid transparent;
3471
+ border-left: 6px solid var(--tooltip-bg);
3472
+ height: 0;
3473
+ width: 0;
3474
+ margin-right: 5px;
3475
+ margin-bottom: 0;
3476
+ z-index: 999;
3477
+ }
3478
+ [role~=tooltip][data-microtip-position=left]::after {
3479
+ margin-right: 11px;
3480
+ }
3481
+ [role~=tooltip][data-microtip-position=left]:hover::before, [role~=tooltip][data-microtip-position=left]:hover::after {
3482
+ transform: translate3d(0, -50%, 0);
3483
+ }
3484
+ [role~=tooltip][data-microtip-position=right]::before, [role~=tooltip][data-microtip-position=right]::after {
3485
+ bottom: auto;
3486
+ left: 100%;
3487
+ top: 50%;
3488
+ transform: translate3d(-10px, -50%, 0);
3489
+ }
3490
+ [role~=tooltip][data-microtip-position=right]::before {
3491
+ border-top: 9px solid transparent;
3492
+ border-bottom: 9px solid transparent;
3493
+ border-right: 6px solid var(--tooltip-bg);
3494
+ height: 0;
3495
+ width: 0;
3496
+ margin-bottom: 0;
3497
+ margin-left: 5px;
3498
+ z-index: 999;
3499
+ }
3500
+ [role~=tooltip][data-microtip-position=right]::after {
3501
+ margin-left: 11px;
3502
+ }
3503
+ [role~=tooltip][data-microtip-position=right]:hover::before, [role~=tooltip][data-microtip-position=right]:hover::after {
3504
+ transform: translate3d(0, -50%, 0);
3505
+ }
3506
+ [role~=tooltip][data-microtip-size=small]::after {
3507
+ white-space: initial;
3508
+ width: var(--tooltip-small-width);
3509
+ }
3510
+ [role~=tooltip][data-microtip-size=medium]::after {
3511
+ white-space: initial;
3512
+ width: var(--tooltip-medium-width);
3513
+ }
3514
+ [role~=tooltip][data-microtip-size=large]::after {
3515
+ white-space: initial;
3516
+ width: var(--tooltip-large-width);
3517
+ }
3563
3518
  }
3564
-
3565
3519
  .opacity-0,
3566
3520
  .hover\:opacity-0:hover,
3567
3521
  .focus\:opacity-0:focus,
@@ -35051,7 +35005,7 @@ code {
35051
35005
  --black: #000;
35052
35006
  --white: #fff;
35053
35007
  --transparent: transparent;
35054
- --button-text-color: ;
35008
+ --button-text-color: #f1f1f1;
35055
35009
  --button-bg-color: var(--primary);
35056
35010
  --button-bg-color-hover: var(--primary-600);
35057
35011
  --link-color: var(--primary);
@@ -35075,7 +35029,7 @@ code {
35075
35029
  --inverted-text-subtle: rgba(26, 26, 26, 0.3137254902);
35076
35030
  --text-inverted: #1a1a1a;
35077
35031
  --inverted-text-inverted: #f1f1f1;
35078
- --button-text-color: ;
35032
+ --button-text-color: #1a1a1a;
35079
35033
  --button-bg-color: var(--primary);
35080
35034
  --button-bg-color-hover: var(--primary-400);
35081
35035
  --link-color: var(--primary);
@@ -35101,7 +35055,7 @@ code {
35101
35055
  --inverted-text-subtle: rgba(26, 26, 26, 0.3137254902);
35102
35056
  --text-inverted: #1a1a1a;
35103
35057
  --inverted-text-inverted: #f1f1f1;
35104
- --button-text-color: ;
35058
+ --button-text-color: #1a1a1a;
35105
35059
  --button-bg-color: var(--primary);
35106
35060
  --button-bg-color-hover: var(--primary-400);
35107
35061
  --link-color: var(--primary);