@veluai/velu 0.2.6 → 0.2.7
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/package.json +1 -1
- package/runtime/velu-ui/base.css +18 -9
package/package.json
CHANGED
package/runtime/velu-ui/base.css
CHANGED
|
@@ -243,16 +243,20 @@
|
|
|
243
243
|
margin-block-start: var(--s5);
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
/*
|
|
247
|
-
|
|
246
|
+
/* Discreet thin scrollbar with a tokenised colour in every state — applied
|
|
247
|
+
GLOBALLY (the `*` selector) so every scrollable element inherits it by
|
|
248
|
+
default: the chatbot, dialogs, and any future component, with no
|
|
249
|
+
per-component opt-in. Component-specific scrollbar rules win via
|
|
250
|
+
specificity (e.g. the nav/TOC reveal-on-hover overrides below).
|
|
251
|
+
`.velu-hide-scrollbar` stays as an explicit alias for existing markup.
|
|
248
252
|
|
|
249
|
-
No transitions: Firefox doesn't honour CSS transitions on
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
No transitions: Firefox doesn't honour CSS transitions on `scrollbar-color`
|
|
254
|
+
consistently, and the in-between interpolation + its auto-derived
|
|
255
|
+
hover/active colours can flash a yellow/amber accent (an OS / system accent
|
|
256
|
+
when interpolating). Hard switches avoid that. Same reason every WebKit
|
|
257
|
+
thumb pseudo-state is set explicitly — otherwise Chromium can fall back to
|
|
258
|
+
the Windows 11 system accent on hover. */
|
|
259
|
+
*,
|
|
256
260
|
.velu-hide-scrollbar {
|
|
257
261
|
scrollbar-width: thin;
|
|
258
262
|
/* Single colour both at rest and on hover. Firefox auto-darkens on
|
|
@@ -260,17 +264,22 @@
|
|
|
260
264
|
derived shade in the same family (no yellow flash). */
|
|
261
265
|
scrollbar-color: var(--border-color) transparent;
|
|
262
266
|
}
|
|
267
|
+
*::-webkit-scrollbar,
|
|
263
268
|
.velu-hide-scrollbar::-webkit-scrollbar {
|
|
264
269
|
inline-size: 6px;
|
|
265
270
|
block-size: 6px;
|
|
266
271
|
}
|
|
272
|
+
*::-webkit-scrollbar-track,
|
|
267
273
|
.velu-hide-scrollbar::-webkit-scrollbar-track {
|
|
268
274
|
background: transparent;
|
|
269
275
|
}
|
|
276
|
+
*::-webkit-scrollbar-thumb,
|
|
270
277
|
.velu-hide-scrollbar::-webkit-scrollbar-thumb {
|
|
271
278
|
background: var(--border-color);
|
|
272
279
|
border-radius: 999px;
|
|
273
280
|
}
|
|
281
|
+
*::-webkit-scrollbar-thumb:hover,
|
|
282
|
+
*::-webkit-scrollbar-thumb:active,
|
|
274
283
|
.velu-hide-scrollbar::-webkit-scrollbar-thumb:hover,
|
|
275
284
|
.velu-hide-scrollbar::-webkit-scrollbar-thumb:active {
|
|
276
285
|
background: var(--muted-color);
|