@streamscloud/kit 0.94.1 → 0.94.2
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.
|
@@ -136,7 +136,7 @@ Purely presentational: the consumer owns active state, routing and feature gatin
|
|
|
136
136
|
| Property | Description | Default |
|
|
137
137
|
|---|---|---|
|
|
138
138
|
| `--sc-kit--nav-rail--width` | Rail width | `70px` |
|
|
139
|
-
| `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `
|
|
139
|
+
| `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `--sc-kit--space--4` with `showLabels={false}` |
|
|
140
140
|
| `--sc-kit--nav-rail--background` | Rail background | `--sc-kit--color--bg--panel` |
|
|
141
141
|
| `--sc-kit--nav-rail--divider-color` | Divider before `trailingItems` | `--sc-kit--color--border` |
|
|
142
142
|
| `--sc-kit--nav-rail--item-width` | Tile width | `58px` |
|
|
@@ -168,7 +168,7 @@ Purely presentational: the consumer owns active state, routing and feature gatin
|
|
|
168
168
|
padding: 0.25rem 0.25rem 0;
|
|
169
169
|
}
|
|
170
170
|
.nav-rail--icons-only {
|
|
171
|
-
--_nav-rail--item-gap-default:
|
|
171
|
+
--_nav-rail--item-gap-default: var(--sc-kit--space--4);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.nav-rail__brand {
|
|
@@ -223,7 +223,7 @@ Purely presentational: the consumer owns active state, routing and feature gatin
|
|
|
223
223
|
|
|
224
224
|
.nav-rail__divider {
|
|
225
225
|
flex-shrink: 0;
|
|
226
|
-
margin-block: calc(var(--_nav-rail--item-gap) / -
|
|
226
|
+
margin-block: calc(var(--_nav-rail--item-gap) / -4);
|
|
227
227
|
width: 2rem;
|
|
228
228
|
height: 1px;
|
|
229
229
|
background: var(--_nav-rail--divider-color);
|
|
@@ -24,7 +24,7 @@ type Props = {
|
|
|
24
24
|
* | Property | Description | Default |
|
|
25
25
|
* |---|---|---|
|
|
26
26
|
* | `--sc-kit--nav-rail--width` | Rail width | `70px` |
|
|
27
|
-
* | `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `
|
|
27
|
+
* | `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `--sc-kit--space--4` with `showLabels={false}` |
|
|
28
28
|
* | `--sc-kit--nav-rail--background` | Rail background | `--sc-kit--color--bg--panel` |
|
|
29
29
|
* | `--sc-kit--nav-rail--divider-color` | Divider before `trailingItems` | `--sc-kit--color--border` |
|
|
30
30
|
* | `--sc-kit--nav-rail--item-width` | Tile width | `58px` |
|
|
@@ -23,6 +23,7 @@ const handleClick = (event) => {
|
|
|
23
23
|
{#if item.href && !item.disabled}
|
|
24
24
|
<a
|
|
25
25
|
class="nav-rail-item"
|
|
26
|
+
class:nav-rail-item--icon-only={!showLabel}
|
|
26
27
|
class:nav-rail-item--active={item.active}
|
|
27
28
|
class:nav-rail-item--error={item.error}
|
|
28
29
|
href={item.href}
|
|
@@ -36,6 +37,7 @@ const handleClick = (event) => {
|
|
|
36
37
|
<button
|
|
37
38
|
type="button"
|
|
38
39
|
class="nav-rail-item"
|
|
40
|
+
class:nav-rail-item--icon-only={!showLabel}
|
|
39
41
|
class:nav-rail-item--active={item.active}
|
|
40
42
|
class:nav-rail-item--error={item.error}
|
|
41
43
|
class:nav-rail-item--disabled={item.disabled}
|
|
@@ -84,6 +86,9 @@ const handleClick = (event) => {
|
|
|
84
86
|
font-family: inherit;
|
|
85
87
|
transition: color var(--sc-kit--duration--base) var(--sc-kit--ease--default), background-color var(--sc-kit--duration--base) var(--sc-kit--ease--default);
|
|
86
88
|
}
|
|
89
|
+
.nav-rail-item--icon-only {
|
|
90
|
+
padding-block: var(--sc-kit--space--3);
|
|
91
|
+
}
|
|
87
92
|
.nav-rail-item--active {
|
|
88
93
|
color: var(--_nav-rail--item-color-active);
|
|
89
94
|
background: var(--_nav-rail--item-background-active);
|