@kolkrabbi/kol-theme 0.215.0 → 0.216.1
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/kol-components-atoms.css +33 -10
- package/kol-components-molecules.css +5 -3
- package/package.json +1 -1
package/kol-components-atoms.css
CHANGED
|
@@ -637,6 +637,29 @@
|
|
|
637
637
|
flex-shrink: 0;
|
|
638
638
|
}
|
|
639
639
|
|
|
640
|
+
/* ── Track — the one bar Slider and ProgressBar draw (2026-11-07) ──────────
|
|
641
|
+
* The slider's track look lives in four tokens: `--kol-track-h` · `-r` · `-bg` ·
|
|
642
|
+
* `-run`. The range inputs read them in their track pseudo-elements; ProgressBar
|
|
643
|
+
* draws them on a div (`.kol-track` + `.kol-track-run`). Same variant, same
|
|
644
|
+
* track. The default track keeps `--kol-slider-track` as an inherited fallback
|
|
645
|
+
* (declared here, resolved per element, so an ancestor still recolours it); the
|
|
646
|
+
* default run is the thumb's ink. Float: 3px capsule, oq-16 under fg-64, the run
|
|
647
|
+
* recoloured by `--kol-slider-float-run`. A tone sets `--kol-track-run` inline. */
|
|
648
|
+
.kol-track, .slider-black {
|
|
649
|
+
--kol-track-h: 2px;
|
|
650
|
+
--kol-track-r: 0;
|
|
651
|
+
--kol-track-bg: var(--kol-slider-track, var(--kol-fg-64));
|
|
652
|
+
--kol-track-run: var(--kol-surface-on-primary);
|
|
653
|
+
}
|
|
654
|
+
.kol-track--float, .kol-slider-float {
|
|
655
|
+
--kol-track-h: 3px;
|
|
656
|
+
--kol-track-r: 999px;
|
|
657
|
+
--kol-track-bg: var(--kol-oq-16);
|
|
658
|
+
--kol-track-run: var(--kol-slider-float-run, var(--kol-fg-64));
|
|
659
|
+
}
|
|
660
|
+
.kol-track { height: var(--kol-track-h); border-radius: var(--kol-track-r); background: var(--kol-track-bg); overflow: hidden; }
|
|
661
|
+
.kol-track-run { height: 100%; border-radius: inherit; background: var(--kol-track-run); }
|
|
662
|
+
|
|
640
663
|
.slider-black {
|
|
641
664
|
/* A FALLBACK, NOT A DECLARATION (SliderTrackVariableNotForwarded, kol-mirror
|
|
642
665
|
* 2026-08-30). This was `--kol-slider-track: var(--kol-fg-64)` set ON the
|
|
@@ -665,15 +688,15 @@
|
|
|
665
688
|
}
|
|
666
689
|
|
|
667
690
|
.slider-black::-webkit-slider-runnable-track {
|
|
668
|
-
background: var(--kol-
|
|
669
|
-
height:
|
|
670
|
-
border-radius:
|
|
691
|
+
background: var(--kol-track-bg);
|
|
692
|
+
height: var(--kol-track-h);
|
|
693
|
+
border-radius: var(--kol-track-r);
|
|
671
694
|
}
|
|
672
695
|
|
|
673
696
|
.slider-black::-moz-range-track {
|
|
674
|
-
background: var(--kol-
|
|
675
|
-
height:
|
|
676
|
-
border-radius:
|
|
697
|
+
background: var(--kol-track-bg);
|
|
698
|
+
height: var(--kol-track-h);
|
|
699
|
+
border-radius: var(--kol-track-r);
|
|
677
700
|
}
|
|
678
701
|
|
|
679
702
|
.slider-black::-webkit-slider-thumb {
|
|
@@ -1616,14 +1639,14 @@ a.kol-icon-frame {
|
|
|
1616
1639
|
.toggle-checkbox--float.is-active .toggle-checkbox-indicator { background-color: transparent; }
|
|
1617
1640
|
.toggle-checkbox--float:has(input:focus-visible) .toggle-checkbox-indicator { box-shadow: var(--kol-float-focus); }
|
|
1618
1641
|
.toggle-checkbox--float:has(input:disabled) { opacity: 0.4; }
|
|
1619
|
-
/* the slider (row 23): a 3px capsule track, the run fg-64 up to the thumb (`--kol-slider-pct`, set by Slider), a 12 thumb; `--kol-slider-float-run` recolours the run (the generator Rails take the ink accent) */
|
|
1642
|
+
/* the slider (row 23): the float track (`.kol-track--float` tokens, above): a 3px capsule track, the run fg-64 up to the thumb (`--kol-slider-pct`, set by Slider), a 12 thumb; `--kol-slider-float-run` recolours the run (the generator Rails take the ink accent) */
|
|
1620
1643
|
.kol-slider-float {
|
|
1621
1644
|
-webkit-appearance: none; appearance: none;
|
|
1622
1645
|
background: transparent; cursor: pointer; height: 24px; touch-action: pan-y;
|
|
1623
1646
|
}
|
|
1624
|
-
.kol-slider-float::-webkit-slider-runnable-track { height:
|
|
1625
|
-
.kol-slider-float::-moz-range-track { height:
|
|
1626
|
-
.kol-slider-float::-moz-range-progress { height:
|
|
1647
|
+
.kol-slider-float::-webkit-slider-runnable-track { height: var(--kol-track-h); border-radius: var(--kol-track-r); background: linear-gradient(var(--kol-track-run), var(--kol-track-run)) 0 0 / var(--kol-slider-pct, 0%) 100% no-repeat, var(--kol-track-bg); }
|
|
1648
|
+
.kol-slider-float::-moz-range-track { height: var(--kol-track-h); border-radius: var(--kol-track-r); background: var(--kol-track-bg); }
|
|
1649
|
+
.kol-slider-float::-moz-range-progress { height: var(--kol-track-h); border-radius: var(--kol-track-r); background: var(--kol-track-run); }
|
|
1627
1650
|
.kol-slider-float::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; margin-top: -4.5px; background: var(--kol-fg-emphasis); }
|
|
1628
1651
|
.kol-slider-float::-moz-range-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--kol-fg-emphasis); }
|
|
1629
1652
|
.kol-slider-float:focus-visible { outline: none; }
|
|
@@ -205,11 +205,12 @@
|
|
|
205
205
|
color: var(--kol-fg-96);
|
|
206
206
|
background-color: var(--kol-oq-16);
|
|
207
207
|
}
|
|
208
|
-
/* a rule runs edge to edge — through the panel's 4px inset
|
|
208
|
+
/* a rule runs edge to edge — through the panel's 4px inset. MenuDivider is the Divider atom (2026-11-07): the ink is
|
|
209
|
+
* its inner line's */
|
|
209
210
|
.kol-menu-panel .kol-menu-rule {
|
|
210
|
-
border-color: var(--kol-oq-16);
|
|
211
211
|
margin: var(--kol-spacing-1) calc(var(--kol-spacing-1) * -1);
|
|
212
212
|
}
|
|
213
|
+
.kol-menu-panel .kol-menu-rule > div { background-color: var(--kol-oq-16); }
|
|
213
214
|
/* MenuLabel — a section's name */
|
|
214
215
|
.kol-menu-panel .kol-menu-label {
|
|
215
216
|
padding: var(--kol-spacing-2) var(--kol-spacing-3) var(--kol-spacing-1);
|
|
@@ -2683,7 +2684,8 @@ article[role="button"]:focus-visible {
|
|
|
2683
2684
|
/* the destructive row (row 50): `MenuRow tone="danger"` — the error ink, the same lift */
|
|
2684
2685
|
.kol-menu-panel .kol-menu-row.kol-menu-row--danger { color: var(--ui-error); }
|
|
2685
2686
|
/* a rule runs through the panel's inset (row 51); the section label is the float label role (row 52) */
|
|
2686
|
-
.kol-menu-panel--float .kol-menu-rule {
|
|
2687
|
+
.kol-menu-panel--float .kol-menu-rule { margin: 4px -4px; }
|
|
2688
|
+
.kol-menu-panel--float .kol-menu-rule > div { background-color: var(--kol-oq-08); }
|
|
2687
2689
|
.kol-menu-panel--float.kol-menu-panel--sheet .kol-menu-rule { margin: 4px calc(var(--kol-float-inset) * -1); }
|
|
2688
2690
|
.kol-menu-panel--float .kol-menu-label { padding: 8px 12px 4px; font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0.02em; color: var(--kol-fg-64); }
|
|
2689
2691
|
.kol-menu-panel--float .kol-menu-kbd { border-color: var(--kol-oq-16); color: var(--kol-oq-64); }
|