@crewlethq/tokens 0.95.0 → 0.97.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/README.md +2 -0
- package/dist/css/base.css +17 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -459,6 +459,8 @@ No token is renamed; two values moved to the approved design.
|
|
|
459
459
|
|
|
460
460
|
The focus indicator is an **outline**, never a box-shadow alone. Forced-colors mode drops every box-shadow and keeps outlines, so a ring drawn as a shadow disappears for exactly the readers who most need one. `--shadow-focus` is still there for a component that wants a shadow as well, paired with a transparent outline so forced colors substitutes a system colour for it. `--size-focus-ring-inset-offset` is the offset for a ring drawn inside its own box: on a focusable row inside a clipping scroller, where an outset ring is clipped by the scroller and painted over by the next row, and on any control that draws a visible boundary of its own, where a ring standing off the border is two edges with a gap between them. At -2px the ring covers a 1px border, so a focused control shows one edge.
|
|
461
461
|
|
|
462
|
+
The scrollbar is a 6px track with a 4px thumb in `--color-scrollbar` (`--color-scrollbar-hover` under the pointer) where the browser reads `::-webkit-scrollbar` (Chromium and Safari), and `scrollbar-width: thin` in the same colours where it does not (Firefox, 8px). `scrollbar-width` and `scrollbar-color` are set only in the second case, because Chromium ignores the `::-webkit-scrollbar` rules on an element with either one and draws its native bar. A stylesheet of your own keeps them inside `@supports not selector(::-webkit-scrollbar)` as well (`npx crewlet-css-check` refuses them anywhere else), and a layout that reserves room for the bar reserves 8px, the wider of the two.
|
|
463
|
+
|
|
462
464
|
The body's height and overflow are deliberately not here. A page that can scroll as a whole moves an application's rail off the top of the window, so the rule that stops it belongs to the shell that owns the rail.
|
|
463
465
|
|
|
464
466
|
## Type
|
package/dist/css/base.css
CHANGED
|
@@ -164,15 +164,15 @@ img {
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/* Scrollbars belong to the palette. A bright system gutter down the side of a
|
|
167
|
-
dark page is the most visible way an application admits it is a web page.
|
|
168
|
-
* {
|
|
169
|
-
scrollbar-color: var(--color-scrollbar) transparent;
|
|
170
|
-
scrollbar-width: thin;
|
|
171
|
-
}
|
|
167
|
+
dark page is the most visible way an application admits it is a web page.
|
|
172
168
|
|
|
169
|
+
Chromium and Safari draw the slim bar below: a 6px track with a 4px thumb.
|
|
170
|
+
Chromium (from 121) ignores these rules on any element with a
|
|
171
|
+
`scrollbar-width` or `scrollbar-color`, so those two are set further down,
|
|
172
|
+
only where `::-webkit-scrollbar` is not read. */
|
|
173
173
|
::-webkit-scrollbar {
|
|
174
|
-
width:
|
|
175
|
-
height:
|
|
174
|
+
width: 6px;
|
|
175
|
+
height: 6px;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
::-webkit-scrollbar-track {
|
|
@@ -181,7 +181,7 @@ img {
|
|
|
181
181
|
|
|
182
182
|
::-webkit-scrollbar-thumb {
|
|
183
183
|
background: var(--color-scrollbar);
|
|
184
|
-
border:
|
|
184
|
+
border: 1px solid transparent;
|
|
185
185
|
background-clip: content-box;
|
|
186
186
|
border-radius: var(--radius-pill);
|
|
187
187
|
}
|
|
@@ -195,6 +195,15 @@ img {
|
|
|
195
195
|
background: transparent;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/* Where `::-webkit-scrollbar` is not read (Firefox): the standard properties,
|
|
199
|
+
a thin bar in the same colours. */
|
|
200
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
201
|
+
* {
|
|
202
|
+
scrollbar-color: var(--color-scrollbar) transparent;
|
|
203
|
+
scrollbar-width: thin;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
198
207
|
/* The one place a reduced-motion preference is honoured for the whole
|
|
199
208
|
document. A component still states its own rule, because a component is
|
|
200
209
|
also used in a document that does not import this file. */
|