@klodd/ds 3.11.2 → 3.11.4
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/css/10-semantic.css +10 -3
- package/css/components/nav.css +15 -13
- package/package.json +1 -1
- package/references/01-tokens.md +1 -1
package/css/10-semantic.css
CHANGED
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
aldrig fake gradients.
|
|
224
224
|
Anvand for: kort, modaler, popovers.
|
|
225
225
|
Inte for: knappar, inputs, inline-element. */
|
|
226
|
-
--shadow-card: 0 8px 16px
|
|
226
|
+
--shadow-card: 0 8px 16px color-mix(in oklch, var(--gray-12) 8%, transparent);
|
|
227
227
|
|
|
228
228
|
/* Bakat-kompat: --shadow-float ar nu alias till --shadow-card.
|
|
229
229
|
Befintliga komponenter (chip.install-chip, overlay.dialog/sheet,
|
|
@@ -304,8 +304,15 @@
|
|
|
304
304
|
|
|
305
305
|
/* Bottom-nav-clearance: utrymme under nav for fixed-positioning +
|
|
306
306
|
safe-area pa iPhone notch-modeller. Anvands som body padding-bottom
|
|
307
|
-
i app-CSS sa scroll-content inte hamnar under nav.
|
|
308
|
-
|
|
307
|
+
i app-CSS sa scroll-content inte hamnar under nav. Pill-form-
|
|
308
|
+
versionen: pillen sitter --space-12 ovan home-indikatorn, sa
|
|
309
|
+
clearance = safe-bottom + space-12 + nav-height. Safe-area lever
|
|
310
|
+
numera UTANFOR komponenten, inte i dess padding. */
|
|
311
|
+
--bottom-nav-clearance: calc(var(--bottom-nav-height) + var(--space-12) + var(--safe-bottom));
|
|
312
|
+
|
|
313
|
+
/* DEPRECATED: anvands inte sedan pill-nav (flex). Tas bort nar inga
|
|
314
|
+
app-CSS refererar den. */
|
|
315
|
+
--bottom-nav-cols: 4;
|
|
309
316
|
}
|
|
310
317
|
|
|
311
318
|
|
package/css/components/nav.css
CHANGED
|
@@ -22,26 +22,28 @@
|
|
|
22
22
|
|
|
23
23
|
/* ================================================================
|
|
24
24
|
==== BOTTOM-NAV (fixed, mobil-primar)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
Flytande pill ovan home-indikatorn. --space-12 clearance ner till
|
|
26
|
+
safe-area, --space-16 inset fran viewport-kanten. --shadow-float
|
|
27
|
+
loftar pillen visuellt fran sidans bakgrund. Flex-layout med
|
|
28
|
+
justify-content: space-around for jamn distribution av items
|
|
29
|
+
(utan flex: 1 pa items - inga item-nivaforandringar).
|
|
28
30
|
================================================================ */
|
|
29
31
|
.bottom-nav {
|
|
30
32
|
position: fixed;
|
|
31
|
-
bottom:
|
|
32
|
-
left:
|
|
33
|
-
right:
|
|
33
|
+
bottom: calc(var(--safe-bottom) + var(--space-12));
|
|
34
|
+
left: var(--space-16);
|
|
35
|
+
right: var(--space-16);
|
|
34
36
|
z-index: var(--z-nav);
|
|
35
|
-
display:
|
|
36
|
-
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-around;
|
|
37
39
|
padding: 0;
|
|
38
|
-
padding-
|
|
40
|
+
padding-inline: var(--space-8);
|
|
39
41
|
margin: 0;
|
|
40
42
|
max-width: none;
|
|
41
|
-
background: var(--surface-
|
|
42
|
-
border:
|
|
43
|
-
border-
|
|
44
|
-
|
|
43
|
+
background: var(--surface-raised);
|
|
44
|
+
border: 1px solid var(--border-subtle);
|
|
45
|
+
border-radius: var(--radius-full);
|
|
46
|
+
box-shadow: var(--shadow-float);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.bottom-nav__item {
|
package/package.json
CHANGED
package/references/01-tokens.md
CHANGED
|
@@ -161,7 +161,7 @@ Radix-stegen, anvand `color-mix(in oklch, var(--accent-9) 25%, transparent)`.
|
|
|
161
161
|
## Component tokens (DRY-mekanism)
|
|
162
162
|
|
|
163
163
|
```
|
|
164
|
-
--bottom-nav-height
|
|
164
|
+
--bottom-nav-height
|
|
165
165
|
--bottom-nav-clearance
|
|
166
166
|
--touch-min: 44px
|
|
167
167
|
--card-radius
|