@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veluai/velu",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "bin": "./dist/cli.js",
6
6
  "publishConfig": {
@@ -243,16 +243,20 @@
243
243
  margin-block-start: var(--s5);
244
244
  }
245
245
 
246
- /* Sidebars / TOC scroll container: discreet thin scrollbar with a
247
- tokenised colour in every state.
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
- `scrollbar-color` consistently, and the in-between interpolation +
251
- Firefox's auto-derived hover/active colours can flash a yellow/amber
252
- accent (it picks an OS / system accent when interpolating). Hard
253
- switches avoid that. Same reason every WebKit thumb pseudo-state is
254
- set explicitly otherwise Chromium can fall back to the Windows 11
255
- system accent on hover. */
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);