@kolkrabbi/kol-theme 0.211.0 → 0.211.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 +48 -0
- package/kol-components-molecules.css +74 -0
- package/kol-components-shell.css +19 -0
- package/package.json +1 -1
package/kol-components-atoms.css
CHANGED
|
@@ -1520,6 +1520,7 @@ a.kol-icon-frame {
|
|
|
1520
1520
|
background-color: var(--kol-float-well);
|
|
1521
1521
|
font-family: var(--kol-font-family-float);
|
|
1522
1522
|
font-size: var(--kol-float-t-md);
|
|
1523
|
+
font-weight: 500; /* W0.6: every float control at 500 — the shell had the family and size, not the weight (W3 row 36, 2026-11-04) */
|
|
1523
1524
|
}
|
|
1524
1525
|
.kol-control.kol-control--float.kol-control-sm { height: var(--kol-float-h-sm); font-size: var(--kol-float-t-sm); }
|
|
1525
1526
|
.kol-control.kol-control--float.kol-control-lg { height: var(--kol-float-h-lg); font-size: var(--kol-float-t-lg); }
|
|
@@ -1566,6 +1567,53 @@ a.kol-icon-frame {
|
|
|
1566
1567
|
.kol-tabs-float .kol-btn.kol-btn-float { padding: 0 calc(var(--kol-float-h-md) * 0.45); background: transparent; color: var(--kol-oq-64); }
|
|
1567
1568
|
.kol-tabs-float .kol-btn.kol-btn-float.kol-btn-pressed { background: var(--kol-fg-16); color: var(--kol-fg-emphasis); } /* fg-16, not oq-16: selection on a float is translucent so glass shows through (W0.3, 2026-11-04) */
|
|
1568
1569
|
|
|
1570
|
+
/* ─── FLOAT CONTROLS (float-everything W2 · W3, 2026-11-04 — the gap map's rows 6–45, kol-float--style). The roles are
|
|
1571
|
+
* tones (W0.5): primary `inverted` · secondary `secondary` · quiet `ghost` · destructive `danger`; hover and pressed are
|
|
1572
|
+
* each tone's own rungs, so no state is restated here. Everything below is a shape the exploration has and KOL's
|
|
1573
|
+
* default look did not: the cap inside a button, the switch, the checkbox, the slider, the note field, a segment's count. ─── */
|
|
1574
|
+
/* the key cap inside a float button (row 12): the cap takes the button's own ink, so it reads on the inverted fill too */
|
|
1575
|
+
.kol-btn.kol-btn-float .kol-btn-kbd { margin-left: 8px; background: color-mix(in srgb, currentColor 14%, transparent); color: currentColor; opacity: 0.8; }
|
|
1576
|
+
/* the switch (row 21): a 32 × 20 track, a 14 thumb 3 in; off oq-16 / oq-64, on fg-64 / the emphasis ink; Inter beside it */
|
|
1577
|
+
.toggle-switch.toggle-switch--float { gap: 12px; font-family: var(--kol-font-family-float); font-size: var(--kol-float-t-md); font-weight: 500; letter-spacing: normal; }
|
|
1578
|
+
.toggle-switch--float::before { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 24px; translate: 0 -50%; } /* the touch floor, as bare */
|
|
1579
|
+
.toggle-switch--float .toggle-switch-indicator { width: 32px; height: 20px; background-color: var(--kol-oq-16); }
|
|
1580
|
+
.toggle-switch--float .toggle-switch-indicator::after { width: 14px; height: 14px; top: 3px; left: 3px; background-color: var(--kol-oq-64); }
|
|
1581
|
+
.toggle-switch--float[data-state='on'] .toggle-switch-indicator { background-color: var(--kol-fg-64); }
|
|
1582
|
+
.toggle-switch--float[data-state='on'] .toggle-switch-indicator::after { transform: translateX(12px); background-color: var(--kol-fg-emphasis); }
|
|
1583
|
+
.toggle-switch--float:focus-visible { outline: none; } /* the ring sits on the track, not the whole row */
|
|
1584
|
+
.toggle-switch--float:focus-visible .toggle-switch-indicator { box-shadow: var(--kol-float-focus); }
|
|
1585
|
+
.toggle-switch--float:disabled { opacity: 0.4; }
|
|
1586
|
+
/* the checkbox (row 22): an 18 plate, no hairline; checked is the bare check glyph on nothing */
|
|
1587
|
+
.toggle-checkbox.toggle-checkbox--float { gap: 10px; }
|
|
1588
|
+
.toggle-checkbox--float .toggle-checkbox-indicator { width: 18px; height: 18px; border-radius: 5px; border: 0; background-color: var(--kol-oq-08); }
|
|
1589
|
+
.toggle-checkbox--float .toggle-checkbox-indicator svg { width: 12px; height: 9px; stroke: var(--kol-fg-emphasis); }
|
|
1590
|
+
.toggle-checkbox--float.is-active .toggle-checkbox-indicator { background-color: transparent; }
|
|
1591
|
+
.toggle-checkbox--float:has(input:focus-visible) .toggle-checkbox-indicator { box-shadow: var(--kol-float-focus); }
|
|
1592
|
+
.toggle-checkbox--float:has(input:disabled) { opacity: 0.4; }
|
|
1593
|
+
/* 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 */
|
|
1594
|
+
.kol-slider-float {
|
|
1595
|
+
-webkit-appearance: none; appearance: none;
|
|
1596
|
+
background: transparent; cursor: pointer; height: 24px; touch-action: pan-y;
|
|
1597
|
+
}
|
|
1598
|
+
.kol-slider-float::-webkit-slider-runnable-track { height: 3px; border-radius: 999px; background: linear-gradient(var(--kol-fg-64), var(--kol-fg-64)) 0 0 / var(--kol-slider-pct, 0%) 100% no-repeat, var(--kol-oq-16); }
|
|
1599
|
+
.kol-slider-float::-moz-range-track { height: 3px; border-radius: 999px; background: var(--kol-oq-16); }
|
|
1600
|
+
.kol-slider-float::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--kol-fg-64); }
|
|
1601
|
+
.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); }
|
|
1602
|
+
.kol-slider-float::-moz-range-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--kol-fg-emphasis); }
|
|
1603
|
+
.kol-slider-float:focus-visible { outline: none; }
|
|
1604
|
+
.kol-slider-float:focus-visible::-webkit-slider-thumb { box-shadow: var(--kol-float-focus); }
|
|
1605
|
+
.kol-slider-float:disabled { opacity: 0.4; cursor: default; }
|
|
1606
|
+
/* the note field (row 42): the float well on the sheet radius, the type 16 in */
|
|
1607
|
+
.kol-control.kol-control--float.kol-control--textarea { height: auto; padding: 0; border-radius: var(--kol-float-menu-r); }
|
|
1608
|
+
.kol-control.kol-control--float.kol-control--textarea > textarea { padding: 12px 16px; font-family: var(--kol-font-family-float); font-size: var(--kol-float-t-md); font-weight: 500; line-height: 1.4; }
|
|
1609
|
+
/* the field's error (row 36): the mark inside takes the error ink; the message under it is the hint role */
|
|
1610
|
+
.kol-control.kol-control--float .kol-control-error { color: var(--ui-error); }
|
|
1611
|
+
/* a segment's count (row 26): mono, one step down, 12 after the label; on the lit cell it takes the cell's ink */
|
|
1612
|
+
.kol-seg--float .kol-seg-count { margin-left: 12px; font-family: var(--kol-font-family-mono); font-size: 11px; font-weight: 400; color: var(--kol-oq-64); }
|
|
1613
|
+
.kol-seg--float .kol-seg-cell.is-active .kol-seg-count { color: currentColor; opacity: 0.64; }
|
|
1614
|
+
/* the pagination / view circles (row 35): `ViewToggle variant="float"` — 32 rounds, the lit one fg-16 */
|
|
1615
|
+
.kol-view-toggle--float button:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
1616
|
+
|
|
1569
1617
|
/* ─── THE SURFACE (`surface="solid|glass-dark|glass-light"`) — what a float is made of. `-m` marks a menu or a box (the
|
|
1570
1618
|
* medium blur and shadow); a bar, a button or a track is small. Solid is surface-secondary lifted by the float shadow.
|
|
1571
1619
|
* glass-dark is a dark material in either theme, so the component stamps `.dark` beside it and what sits on it takes
|
|
@@ -2630,3 +2630,77 @@ article[role="button"]:focus-visible {
|
|
|
2630
2630
|
background-color: var(--kol-fg-02);
|
|
2631
2631
|
border-radius: var(--kol-radius-sm);
|
|
2632
2632
|
}
|
|
2633
|
+
|
|
2634
|
+
/* ═══════════════════════════════════════════════════════════════
|
|
2635
|
+
* THE FLOAT CHIPS AND MENUS (float-everything W2 · W4, 2026-11-04 — the gap map's rows 17–20 and 46–60, kol-float--style).
|
|
2636
|
+
* `variant="float"` on Tag, Pill, Badge, the Menu family, Dropdown and ContentFilters; today's defaults are untouched.
|
|
2637
|
+
* Capsules in Inter 500; selection is `--kol-fg-16` (W0.3), the focus ring `--kol-float-focus` (W0.2), disabled 40% (W0.7).
|
|
2638
|
+
* A menu list rounds on `--kol-float-list-r` (8), the More sheet on `--kol-float-menu-r` (20); rows are 34, 12 in.
|
|
2639
|
+
* Doubled classes outrank the size class each component also stamps (`.kol-tag--sm`, `.pill-sm`, `.kol-badge-md`).
|
|
2640
|
+
* ═══════════════════════════════════════════════════════════════ */
|
|
2641
|
+
/* Tag (row 17): a 26 capsule 10 in, rest oq-04 / fg-64, hover oq-08, selected fg-16 / emphasis; no uppercase — the label is Inter */
|
|
2642
|
+
.kol-tag.kol-tag--float {
|
|
2643
|
+
height: 26px; padding: 0 10px; gap: 7px; border-radius: 999px; border-color: transparent;
|
|
2644
|
+
background-color: var(--kol-oq-04); color: var(--kol-fg-64);
|
|
2645
|
+
font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: normal; text-transform: none;
|
|
2646
|
+
}
|
|
2647
|
+
.kol-tag.kol-tag--float.kol-tag--md { height: 30px; padding: 0 14px; font-size: 12px; } /* the filter bar's chip (row 56) */
|
|
2648
|
+
.kol-tag.kol-tag--float:hover { background-color: var(--kol-oq-08); color: var(--kol-fg-emphasis); }
|
|
2649
|
+
.kol-tag.kol-tag--float.is-active { background-color: var(--kol-fg-16); color: var(--kol-fg-emphasis); border-color: transparent; }
|
|
2650
|
+
.kol-tag.kol-tag--float:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
2651
|
+
.kol-tag--float .kol-tag-count { font-family: var(--kol-font-family-mono); font-size: 10px; font-weight: 400; color: var(--kol-fg-64); }
|
|
2652
|
+
.kol-tag--float .kol-tag-dismiss { color: var(--kol-oq-64); }
|
|
2653
|
+
/* Pill (row 20): a 28 capsule with a value, oq-16 / emphasis */
|
|
2654
|
+
.pill-float.pill-float {
|
|
2655
|
+
display: inline-flex; align-items: center; height: 28px; padding: 0 16px; border-radius: 999px; border: 0;
|
|
2656
|
+
background-color: var(--kol-oq-16); color: var(--kol-fg-emphasis);
|
|
2657
|
+
font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: normal;
|
|
2658
|
+
}
|
|
2659
|
+
/* Badge (row 18): the count capsule, 26, oq-16 / emphasis */
|
|
2660
|
+
.kol-badge.kol-badge-float {
|
|
2661
|
+
height: 26px; padding: 0 10px; border-radius: 999px; border: 0;
|
|
2662
|
+
background-color: var(--kol-oq-16); color: var(--kol-fg-emphasis);
|
|
2663
|
+
font-family: var(--kol-font-family-float); font-size: 11px; font-weight: 500; line-height: 1;
|
|
2664
|
+
}
|
|
2665
|
+
/* the Menu panel (rows 46–55): a list on the list radius, 4 in; the More sheet (`--sheet`) on the menu radius, 6 in.
|
|
2666
|
+
* Solid: the float surface (surface-secondary lifted by the float shadow) unless a tone rode in from the trigger. */
|
|
2667
|
+
.kol-menu-panel.kol-menu-panel--float {
|
|
2668
|
+
border-radius: var(--kol-float-list-r); padding: 4px;
|
|
2669
|
+
background-color: var(--kol-tone-panel-bg, var(--kol-surface-secondary)); box-shadow: var(--kol-shadow-float);
|
|
2670
|
+
font-family: var(--kol-font-family-float);
|
|
2671
|
+
}
|
|
2672
|
+
.kol-menu-panel.kol-menu-panel--float.kol-menu-panel--sheet { border-radius: var(--kol-float-menu-r); padding: var(--kol-float-inset); }
|
|
2673
|
+
/* the row: 34 tall, 12 in, radius 6, Inter 12 at fg-88; hovered, current or opened it lifts on fg-16 */
|
|
2674
|
+
.kol-menu-panel--float .kol-menu-row {
|
|
2675
|
+
height: 34px; padding-inline: 12px; border-radius: 6px; gap: 8px; color: var(--kol-fg-88);
|
|
2676
|
+
font-family: var(--kol-font-family-float); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: normal; text-transform: none;
|
|
2677
|
+
}
|
|
2678
|
+
.kol-menu-panel--float .kol-menu-row:hover,
|
|
2679
|
+
.kol-menu-panel--float .kol-menu-row--current,
|
|
2680
|
+
.kol-menu-panel--float .kol-menu-row[aria-expanded="true"] { background-color: var(--kol-fg-16); color: var(--kol-fg-emphasis); }
|
|
2681
|
+
.kol-menu-panel--float .kol-menu-row:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
2682
|
+
.kol-menu-panel--float .kol-menu-row:disabled { opacity: 0.4; }
|
|
2683
|
+
/* the destructive row (row 50): `MenuRow tone="danger"` — the error ink, the same lift */
|
|
2684
|
+
.kol-menu-panel .kol-menu-row.kol-menu-row--danger { color: var(--ui-error); }
|
|
2685
|
+
/* 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 { border-color: var(--kol-oq-08); margin: 4px -4px; }
|
|
2687
|
+
.kol-menu-panel--float.kol-menu-panel--sheet .kol-menu-rule { margin: 4px calc(var(--kol-float-inset) * -1); }
|
|
2688
|
+
.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
|
+
.kol-menu-panel--float .kol-menu-kbd { border-color: var(--kol-oq-16); color: var(--kol-oq-64); }
|
|
2690
|
+
/* the fused list under a float select (row 54): detached 8 under the capsule, all four corners on the list radius, no hairline */
|
|
2691
|
+
.kol-menu-panel.kol-menu-panel--fused.kol-menu-panel--float { border-radius: var(--kol-float-list-r); padding: 0; }
|
|
2692
|
+
.kol-menu-panel--float .kol-dd-div { display: none; }
|
|
2693
|
+
.kol-menu-panel--float .kol-dd-list { padding: 4px; }
|
|
2694
|
+
/* the float select trigger (row 25): a capsule on the float well, the float heights (the trigger's own rung rules outrank
|
|
2695
|
+
* `.kol-btn-float`'s, so each height is restated), round while open */
|
|
2696
|
+
:where(.kol-dd-trigger--float) { --kol-tone-bg: var(--kol-float-well); --kol-tone-fg: var(--kol-surface-on-primary); --kol-tone-panel-bg: var(--kol-surface-secondary); }
|
|
2697
|
+
.kol-dd-trigger.kol-btn-float.kol-btn-sm { height: var(--kol-float-h-sm); }
|
|
2698
|
+
.kol-dd-trigger.kol-btn-float.kol-btn-md { height: var(--kol-float-h-md); }
|
|
2699
|
+
.kol-dd-trigger.kol-btn-float.kol-btn-lg { height: var(--kol-float-h-lg); }
|
|
2700
|
+
.kol-dd-trigger.kol-dd-trigger--float.kol-dd-trigger--open { border-radius: 999px; }
|
|
2701
|
+
.kol-dd-trigger.kol-dd-trigger--float:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
2702
|
+
/* the float menu trigger (rows 33 · 59): a capsule on the well; the date chip's value is mono */
|
|
2703
|
+
.kol-btn.kol-btn-float.kol-menu-trigger--float { --kol-tone-bg: var(--kol-float-well); --kol-tone-fg: var(--kol-surface-on-primary); --kol-tone-pressed-bg: var(--kol-fg-16); --kol-tone-pressed-fg: var(--kol-fg-emphasis); }
|
|
2704
|
+
.kol-btn.kol-btn-float.kol-menu-trigger--float.kol-menu-trigger--mono { font-family: var(--kol-font-family-mono); font-weight: 400; }
|
|
2705
|
+
/* the open trigger keeps its lift under the pointer (the tab's rule): the press that opened it leaves the pointer there */
|
|
2706
|
+
.kol-btn.kol-btn-float.kol-menu-trigger--float.kol-btn-pressed:not(.kol-dd-trigger):hover { background-color: var(--kol-tone-pressed-bg); color: var(--kol-tone-pressed-fg); }
|
package/kol-components-shell.css
CHANGED
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
/* the open rail is the rail width — 380, the same as a side rail (his ruling 2026-10-25: *"navrail expanded also gets the
|
|
25
25
|
same width as we just set"*); it ramped 264 · 320 from 1536 until then */
|
|
26
26
|
--kol-shell-rail-open: 380px;
|
|
27
|
+
/* THE FLOAT RAIL'S FOOTPRINTS (float-everything W9 row 144, 2026-11-04 — the exploration's `Navigation layout
|
|
28
|
+
* footprints`): expanded 280 · rail 72 · hidden 0, beside the app rail's 48 / 380 above and the site rail's 240
|
|
29
|
+
* (kol-framework `--kol-sidenav-w`). Pinned states reflow the content; overlays (RailTrigger's card, RailFlyout) never. */
|
|
30
|
+
--kol-shell-float-rail-open: 280px;
|
|
31
|
+
--kol-shell-float-rail-width: 72px;
|
|
32
|
+
--kol-shell-float-rail-hidden: 0px;
|
|
27
33
|
/* Page gutter — PageShell's padding and PageBleed's negative margin.
|
|
28
34
|
* ONE LADDER FOR THE ESTATE (two-page-scaffolds-one-job, kol-client-olina
|
|
29
35
|
* 2026-09-03): this is `--kol-pad-section-x`, the page-content ladder every
|
|
@@ -308,6 +314,19 @@
|
|
|
308
314
|
}
|
|
309
315
|
}
|
|
310
316
|
|
|
317
|
+
/* ── THE FLOAT CHROME (float-everything W5 · W9, 2026-11-04) — kol-shell's ToolRail, PropertyRail, DocumentCapsule,
|
|
318
|
+
TopControlsBar, ReaderBar, ProgressDock, RailTrigger, RailFlyout, RailDisplayControls, PeriodNav: every control on them
|
|
319
|
+
is a kol-component float Button; what Tailwind cannot say is here. The lit slot is the float selection (`--kol-fg-16`,
|
|
320
|
+
W0.3), the More sheet's rule. ── */
|
|
321
|
+
.kol-float-chrome .kol-btn.kol-btn-float.kol-btn-pressed,
|
|
322
|
+
.kol-float-chrome .kol-btn.kol-btn-float[aria-current="page"] { background: var(--kol-fg-16); color: var(--kol-fg-emphasis); }
|
|
323
|
+
/* ToolRail: the slot is the float row (40, 48 on touch), not the 36 icon button */
|
|
324
|
+
.kol-tool-rail .kol-btn.kol-btn-float.kol-btn-icon { width: var(--kol-float-row); height: var(--kol-float-row); }
|
|
325
|
+
/* RailFlyout: 34 rows on the list round, 12 in, the glyph 12 off the label */
|
|
326
|
+
.kol-rail-flyout .kol-btn.kol-btn-float { height: 34px; padding: 0 12px; gap: 12px; border-radius: var(--kol-float-list-r); font-size: var(--kol-float-t-sm); }
|
|
327
|
+
/* the float Slider's track fills a dock's column */
|
|
328
|
+
.kol-progress-dock .kol-slider-float { width: 100%; }
|
|
329
|
+
|
|
311
330
|
/* ── StudioDetail — the preview's hover veil (kol-shell 0.78.0, 2026-10-24): "Click to expand" over the image on hover
|
|
312
331
|
only; the overlay itself is opacity 0 inline, so a touch device never sees it until a tap opens the full view ── */
|
|
313
332
|
.kol-detail-preview:hover .kol-detail-preview-overlay { opacity: 1; }
|