hydrateless 0.5.0 → 0.6.0
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/accordion.css +8 -12
- package/dist/breadcrumb.css +7 -11
- package/dist/components.css +206 -186
- package/dist/disclosure.css +14 -18
- package/dist/drawer.css +34 -20
- package/dist/dropdown.css +14 -22
- package/dist/hydrateless.css +247 -264
- package/dist/hydrateless.min.css +1 -1
- package/dist/modal.css +17 -19
- package/dist/popover.css +10 -7
- package/dist/skip-link.css +7 -10
- package/dist/switch.css +20 -6
- package/dist/tabs.css +22 -17
- package/dist/toast.css +32 -25
- package/dist/toc.css +12 -12
- package/dist/tokens.css +0 -13
- package/dist/tooltip.css +9 -7
- package/package.json +1 -1
package/dist/toc.css
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
nav[data-hl-toc] {
|
|
3
|
-
border: 1px solid
|
|
4
|
-
border-radius:
|
|
5
|
-
|
|
6
|
-
padding: 0.75rem;
|
|
7
|
-
padding: var(--hl-spacing-3, 0.75rem);
|
|
3
|
+
border: 1px solid var(--hl-border);
|
|
4
|
+
border-radius: var(--hl-radius-lg);
|
|
5
|
+
padding: var(--hl-space-3);
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
nav[data-hl-toc] ul {
|
|
@@ -20,21 +18,23 @@
|
|
|
20
18
|
|
|
21
19
|
nav[data-hl-toc] a {
|
|
22
20
|
display: block;
|
|
23
|
-
padding:
|
|
24
|
-
|
|
25
|
-
border-radius: 0.25rem;
|
|
26
|
-
border-radius: var(--hl-radius-2, 0.25rem);
|
|
21
|
+
padding: var(--hl-space-1) var(--hl-space-2);
|
|
22
|
+
border-radius: var(--hl-radius-sm);
|
|
27
23
|
color: inherit;
|
|
28
24
|
-webkit-text-decoration: none;
|
|
29
25
|
text-decoration: none;
|
|
30
26
|
}
|
|
31
27
|
|
|
28
|
+
nav[data-hl-toc] a:focus-visible {
|
|
29
|
+
outline: var(--hl-focus-ring);
|
|
30
|
+
outline-offset: -2px;
|
|
31
|
+
}
|
|
32
|
+
|
|
32
33
|
nav[data-hl-toc] a[aria-current='true'] {
|
|
33
|
-
background: var(--hl-
|
|
34
|
+
background: var(--hl-surface-2);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
nav[data-hl-toc] ul ul {
|
|
37
|
-
padding-left:
|
|
38
|
-
padding-left: var(--hl-spacing-3, 0.75rem);
|
|
38
|
+
padding-left: var(--hl-space-3);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/dist/tokens.css
CHANGED
|
@@ -235,19 +235,6 @@
|
|
|
235
235
|
--hl-scrim: hsla(222, 47%, 11%, 0.5);
|
|
236
236
|
--hl-overlay: var(--hl-surface);
|
|
237
237
|
--hl-overlay-shadow: var(--hl-shadow-lg);
|
|
238
|
-
|
|
239
|
-
/* Component-facing aliases — a single mapping onto the tokens above so every
|
|
240
|
-
component (old and new) themes and dark-modes from one source of truth. */
|
|
241
|
-
--hl-color-bg: var(--hl-surface);
|
|
242
|
-
--hl-color-fg: var(--hl-fg);
|
|
243
|
-
--hl-color-muted: var(--hl-surface-2);
|
|
244
|
-
--hl-color-accent: var(--hl-primary);
|
|
245
|
-
--hl-radius-2: var(--hl-radius-sm);
|
|
246
|
-
--hl-radius-3: var(--hl-radius-lg);
|
|
247
|
-
--hl-spacing-1: var(--hl-space-1);
|
|
248
|
-
--hl-spacing-2: var(--hl-space-2);
|
|
249
|
-
--hl-spacing-3: var(--hl-space-3);
|
|
250
|
-
--hl-spacing-4: var(--hl-space-4);
|
|
251
238
|
}
|
|
252
239
|
|
|
253
240
|
/* Dark theme values, shared by auto + manual dark. */
|
package/dist/tooltip.css
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
[role='tooltip'] {
|
|
3
3
|
position: absolute;
|
|
4
|
-
z-index:
|
|
4
|
+
z-index: var(--hl-z-tooltip);
|
|
5
5
|
top: auto;
|
|
6
6
|
right: auto;
|
|
7
7
|
bottom: auto;
|
|
8
8
|
left: 0;
|
|
9
9
|
translate: 0 -0.25rem;
|
|
10
|
-
padding:
|
|
11
|
-
border-radius:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
padding: var(--hl-space-1) var(--hl-space-2);
|
|
11
|
+
border-radius: var(--hl-radius-sm);
|
|
12
|
+
background: var(--hl-fg);
|
|
13
|
+
color: var(--hl-surface);
|
|
14
|
+
font-size: var(--hl-text-sm);
|
|
15
|
+
max-width: 32ch;
|
|
16
|
+
width: -moz-max-content;
|
|
17
|
+
width: max-content;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
[role='tooltip'][hidden] {
|