@kolkrabbi/kol-theme 0.211.0 → 0.212.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/kol-animation.css +69 -0
- package/kol-components-atoms.css +72 -0
- package/kol-components-molecules.css +74 -0
- package/kol-components-shell.css +19 -0
- package/kol-design-tokens.css +13 -0
- package/package.json +1 -1
package/kol-animation.css
CHANGED
|
@@ -569,3 +569,72 @@
|
|
|
569
569
|
@media (prefers-reduced-motion: reduce) {
|
|
570
570
|
.kol-animated-word, .animatedWord { opacity: 1; transform: none; }
|
|
571
571
|
}
|
|
572
|
+
|
|
573
|
+
/* ═════════════════════════════════════════════════════════════════════
|
|
574
|
+
* THE FLOAT FAMILY'S MOTION (FloatActionStatesAndMotion, kol-website
|
|
575
|
+
* 2026-11-04 — user: *"everything is very.. quick, not smooth"*). CSS only,
|
|
576
|
+
* no gsap: every number is a `--kol-float-*` token (kol-design-tokens.css),
|
|
577
|
+
* and the `motion` prop on the float pieces and FloatLayout retunes or zeroes
|
|
578
|
+
* them per app (`floatMotion`, kol-component's utilities/motion.js).
|
|
579
|
+
*
|
|
580
|
+
* .kol-float-motion a float card (the + card, RailTrigger's card,
|
|
581
|
+
* RailFlyout, the float search modal): fades in from
|
|
582
|
+
* `--kol-float-enter-scale`, `--kol-float-enter-shift`
|
|
583
|
+
* off its trigger's side (`data-side`), and out the
|
|
584
|
+
* same way under `data-exit` before it unmounts
|
|
585
|
+
* .kol-float-fade opacity only (the search modal's scrim)
|
|
586
|
+
* .kol-float-rail NavRailFloat: expand and collapse ease the width,
|
|
587
|
+
* the new rows fade in; `is-entering` / `is-exiting`
|
|
588
|
+
* is FloatLayout's show and hide (the width opens from
|
|
589
|
+
* and closes to 0, so a pushed page eases with it)
|
|
590
|
+
* .kol-float-turn the + turning 45° into the × (`is-open`) and back
|
|
591
|
+
*
|
|
592
|
+
* `scale` and `translate` are the individual properties, so they compose
|
|
593
|
+
* with floating-ui's positioning `transform` instead of replacing it.
|
|
594
|
+
* ═════════════════════════════════════════════════════════════════════ */
|
|
595
|
+
@keyframes kol-float-in {
|
|
596
|
+
from { opacity: 0; scale: var(--kol-float-enter-scale); translate: var(--kol-float-from, 0 var(--kol-float-enter-shift)); }
|
|
597
|
+
}
|
|
598
|
+
@keyframes kol-float-out {
|
|
599
|
+
to { opacity: 0; scale: var(--kol-float-enter-scale); translate: var(--kol-float-from, 0 var(--kol-float-enter-shift)); }
|
|
600
|
+
}
|
|
601
|
+
@keyframes kol-float-fade-in { from { opacity: 0; } }
|
|
602
|
+
@keyframes kol-float-fade-out { to { opacity: 0; } }
|
|
603
|
+
@keyframes kol-float-rail-in { from { width: 0; padding-inline: 0; margin-right: calc(-1 * var(--kol-spacing-6)); opacity: 0; } }
|
|
604
|
+
@keyframes kol-float-rail-out { to { width: 0; padding-inline: 0; margin-right: calc(-1 * var(--kol-spacing-6)); opacity: 0; } }
|
|
605
|
+
|
|
606
|
+
.kol-float-motion { animation: kol-float-in var(--kol-float-duration) var(--kol-float-ease) both; transform-origin: top center; }
|
|
607
|
+
.kol-float-fade { animation: kol-float-fade-in var(--kol-float-duration) var(--kol-float-ease) both; }
|
|
608
|
+
.kol-float-motion[data-exit] { animation-name: kol-float-out; pointer-events: none; }
|
|
609
|
+
.kol-float-fade[data-exit] { animation-name: kol-float-fade-out; pointer-events: none; }
|
|
610
|
+
/* from the trigger's side: a card left of its button grows out of the button's edge, and so on round */
|
|
611
|
+
.kol-float-motion[data-side="left"] { --kol-float-from: var(--kol-float-enter-shift) 0; transform-origin: right top; }
|
|
612
|
+
.kol-float-motion[data-side="right"] { --kol-float-from: calc(-1 * var(--kol-float-enter-shift)) 0; transform-origin: left top; }
|
|
613
|
+
.kol-float-motion[data-side="bottom"] { --kol-float-from: 0 calc(-1 * var(--kol-float-enter-shift)); transform-origin: left top; }
|
|
614
|
+
.kol-float-motion[data-side="top"] { --kol-float-from: 0 var(--kol-float-enter-shift); transform-origin: left bottom; }
|
|
615
|
+
|
|
616
|
+
.kol-float-rail { transition: width var(--kol-float-duration-rail) var(--kol-float-ease); overflow: hidden; }
|
|
617
|
+
.kol-float-rail > * { animation: kol-float-fade-in var(--kol-float-duration-rail) var(--kol-float-ease) both; }
|
|
618
|
+
.kol-float-rail.is-entering { animation: kol-float-rail-in var(--kol-float-duration-rail) var(--kol-float-ease) backwards; } /* backwards, not both: a held width would mute the expand/collapse transition after */
|
|
619
|
+
.kol-float-rail.is-exiting { animation: kol-float-rail-out var(--kol-float-duration-rail) var(--kol-float-ease) forwards; pointer-events: none; }
|
|
620
|
+
|
|
621
|
+
.kol-float-turn > * { transition: rotate var(--kol-float-duration) var(--kol-float-ease); }
|
|
622
|
+
.kol-float-turn.is-open > * { rotate: 45deg; } /* the glyph's wrapper, not the svg: Icon re-renders its svg */
|
|
623
|
+
|
|
624
|
+
/* a float's rows and slots ease their hover on the same clock as its buttons */
|
|
625
|
+
.kol-float-rail button,
|
|
626
|
+
.kol-more-sheet-float button,
|
|
627
|
+
.kol-rail-flyout button,
|
|
628
|
+
.kol-menu-panel--float .kol-menu-row {
|
|
629
|
+
transition: background-color var(--kol-float-duration) var(--kol-float-ease), color var(--kol-float-duration) var(--kol-float-ease);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
@media (prefers-reduced-motion: reduce) {
|
|
633
|
+
.kol-float-motion, .kol-float-fade, .kol-float-rail, .kol-float-rail > *, .kol-float-turn > *,
|
|
634
|
+
.kol-btn.kol-btn-float, .kol-btn.kol-float-action,
|
|
635
|
+
.kol-float-rail button, .kol-more-sheet-float button, .kol-rail-flyout button, .kol-menu-panel--float .kol-menu-row {
|
|
636
|
+
animation: none;
|
|
637
|
+
transition: none;
|
|
638
|
+
}
|
|
639
|
+
.kol-btn.kol-btn-float.kol-tone-inverted:not(:disabled):active, .kol-btn.kol-float-action:not(:disabled):active { scale: none; }
|
|
640
|
+
}
|
package/kol-components-atoms.css
CHANGED
|
@@ -1501,6 +1501,30 @@ a.kol-icon-frame {
|
|
|
1501
1501
|
.kol-control.kol-control--float:focus-within,
|
|
1502
1502
|
.kol-seg--float .kol-seg-cell:focus-visible,
|
|
1503
1503
|
.kol-tabs-float .kol-btn.kol-btn-float:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
1504
|
+
/* THE INVERTED FLOAT LADDER (FloatActionStatesAndMotion, kol-website 2026-11-04 — user: *"so default is dark - hover is grey -
|
|
1505
|
+
* active is grey and modal is white? that makes no sense?"*). rest the solid ink · hover the SAME fill at
|
|
1506
|
+
* `--kol-float-hover-opacity` · pressed the same fill at `--kol-float-press-scale` · open (pressed) the same fill. The
|
|
1507
|
+
* inverted tone's grey rungs (oq-inverse-40 · -48, control-chrome's "label stays light, no ink swap") stay the square
|
|
1508
|
+
* Button's; on a float the label still never swaps — only the fill stops greying. `.kol-float-action` is FloatActionMenu's
|
|
1509
|
+
* round trigger, which keeps its 40 circle and, as `variant="float"` (`is-float`), adds the float shadow. */
|
|
1510
|
+
.kol-btn.kol-btn-float.kol-tone-inverted,
|
|
1511
|
+
.kol-btn.kol-float-action {
|
|
1512
|
+
--kol-tone-hover-bg: var(--kol-surface-on-primary);
|
|
1513
|
+
--kol-tone-active-bg: var(--kol-surface-on-primary);
|
|
1514
|
+
}
|
|
1515
|
+
/* every float button eases its states on the float's own duration and curve (a row too — kol-animation.css) */
|
|
1516
|
+
.kol-btn.kol-btn-float,
|
|
1517
|
+
.kol-btn.kol-float-action {
|
|
1518
|
+
transition: background-color var(--kol-float-duration) var(--kol-float-ease), color var(--kol-float-duration) var(--kol-float-ease),
|
|
1519
|
+
opacity var(--kol-float-duration) var(--kol-float-ease), scale var(--kol-float-duration) var(--kol-float-ease);
|
|
1520
|
+
}
|
|
1521
|
+
.kol-btn.kol-float-action.is-float { box-shadow: var(--kol-shadow-float); }
|
|
1522
|
+
@media (hover: hover) {
|
|
1523
|
+
.kol-btn.kol-btn-float.kol-tone-inverted:not(:disabled):hover,
|
|
1524
|
+
.kol-btn.kol-float-action:not(:disabled):hover { opacity: var(--kol-float-hover-opacity); }
|
|
1525
|
+
}
|
|
1526
|
+
.kol-btn.kol-btn-float.kol-tone-inverted:not(:disabled):active,
|
|
1527
|
+
.kol-btn.kol-float-action:not(:disabled):active { scale: var(--kol-float-press-scale); }
|
|
1504
1528
|
.kol-btn.kol-btn-float:disabled,
|
|
1505
1529
|
.kol-btn.kol-btn-float[aria-disabled="true"],
|
|
1506
1530
|
.kol-control.kol-control--float:has(input:disabled) { opacity: 0.4; }
|
|
@@ -1520,6 +1544,7 @@ a.kol-icon-frame {
|
|
|
1520
1544
|
background-color: var(--kol-float-well);
|
|
1521
1545
|
font-family: var(--kol-font-family-float);
|
|
1522
1546
|
font-size: var(--kol-float-t-md);
|
|
1547
|
+
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
1548
|
}
|
|
1524
1549
|
.kol-control.kol-control--float.kol-control-sm { height: var(--kol-float-h-sm); font-size: var(--kol-float-t-sm); }
|
|
1525
1550
|
.kol-control.kol-control--float.kol-control-lg { height: var(--kol-float-h-lg); font-size: var(--kol-float-t-lg); }
|
|
@@ -1566,6 +1591,53 @@ a.kol-icon-frame {
|
|
|
1566
1591
|
.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
1592
|
.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
1593
|
|
|
1594
|
+
/* ─── FLOAT CONTROLS (float-everything W2 · W3, 2026-11-04 — the gap map's rows 6–45, kol-float--style). The roles are
|
|
1595
|
+
* tones (W0.5): primary `inverted` · secondary `secondary` · quiet `ghost` · destructive `danger`; hover and pressed are
|
|
1596
|
+
* each tone's own rungs, so no state is restated here. Everything below is a shape the exploration has and KOL's
|
|
1597
|
+
* default look did not: the cap inside a button, the switch, the checkbox, the slider, the note field, a segment's count. ─── */
|
|
1598
|
+
/* 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 */
|
|
1599
|
+
.kol-btn.kol-btn-float .kol-btn-kbd { margin-left: 8px; background: color-mix(in srgb, currentColor 14%, transparent); color: currentColor; opacity: 0.8; }
|
|
1600
|
+
/* 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 */
|
|
1601
|
+
.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; }
|
|
1602
|
+
.toggle-switch--float::before { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 24px; translate: 0 -50%; } /* the touch floor, as bare */
|
|
1603
|
+
.toggle-switch--float .toggle-switch-indicator { width: 32px; height: 20px; background-color: var(--kol-oq-16); }
|
|
1604
|
+
.toggle-switch--float .toggle-switch-indicator::after { width: 14px; height: 14px; top: 3px; left: 3px; background-color: var(--kol-oq-64); }
|
|
1605
|
+
.toggle-switch--float[data-state='on'] .toggle-switch-indicator { background-color: var(--kol-fg-64); }
|
|
1606
|
+
.toggle-switch--float[data-state='on'] .toggle-switch-indicator::after { transform: translateX(12px); background-color: var(--kol-fg-emphasis); }
|
|
1607
|
+
.toggle-switch--float:focus-visible { outline: none; } /* the ring sits on the track, not the whole row */
|
|
1608
|
+
.toggle-switch--float:focus-visible .toggle-switch-indicator { box-shadow: var(--kol-float-focus); }
|
|
1609
|
+
.toggle-switch--float:disabled { opacity: 0.4; }
|
|
1610
|
+
/* the checkbox (row 22): an 18 plate, no hairline; checked is the bare check glyph on nothing */
|
|
1611
|
+
.toggle-checkbox.toggle-checkbox--float { gap: 10px; }
|
|
1612
|
+
.toggle-checkbox--float .toggle-checkbox-indicator { width: 18px; height: 18px; border-radius: 5px; border: 0; background-color: var(--kol-oq-08); }
|
|
1613
|
+
.toggle-checkbox--float .toggle-checkbox-indicator svg { width: 12px; height: 9px; stroke: var(--kol-fg-emphasis); }
|
|
1614
|
+
.toggle-checkbox--float.is-active .toggle-checkbox-indicator { background-color: transparent; }
|
|
1615
|
+
.toggle-checkbox--float:has(input:focus-visible) .toggle-checkbox-indicator { box-shadow: var(--kol-float-focus); }
|
|
1616
|
+
.toggle-checkbox--float:has(input:disabled) { opacity: 0.4; }
|
|
1617
|
+
/* 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 */
|
|
1618
|
+
.kol-slider-float {
|
|
1619
|
+
-webkit-appearance: none; appearance: none;
|
|
1620
|
+
background: transparent; cursor: pointer; height: 24px; touch-action: pan-y;
|
|
1621
|
+
}
|
|
1622
|
+
.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); }
|
|
1623
|
+
.kol-slider-float::-moz-range-track { height: 3px; border-radius: 999px; background: var(--kol-oq-16); }
|
|
1624
|
+
.kol-slider-float::-moz-range-progress { height: 3px; border-radius: 999px; background: var(--kol-fg-64); }
|
|
1625
|
+
.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); }
|
|
1626
|
+
.kol-slider-float::-moz-range-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--kol-fg-emphasis); }
|
|
1627
|
+
.kol-slider-float:focus-visible { outline: none; }
|
|
1628
|
+
.kol-slider-float:focus-visible::-webkit-slider-thumb { box-shadow: var(--kol-float-focus); }
|
|
1629
|
+
.kol-slider-float:disabled { opacity: 0.4; cursor: default; }
|
|
1630
|
+
/* the note field (row 42): the float well on the sheet radius, the type 16 in */
|
|
1631
|
+
.kol-control.kol-control--float.kol-control--textarea { height: auto; padding: 0; border-radius: var(--kol-float-menu-r); }
|
|
1632
|
+
.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; }
|
|
1633
|
+
/* the field's error (row 36): the mark inside takes the error ink; the message under it is the hint role */
|
|
1634
|
+
.kol-control.kol-control--float .kol-control-error { color: var(--ui-error); }
|
|
1635
|
+
/* a segment's count (row 26): mono, one step down, 12 after the label; on the lit cell it takes the cell's ink */
|
|
1636
|
+
.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); }
|
|
1637
|
+
.kol-seg--float .kol-seg-cell.is-active .kol-seg-count { color: currentColor; opacity: 0.64; }
|
|
1638
|
+
/* the pagination / view circles (row 35): `ViewToggle variant="float"` — 32 rounds, the lit one fg-16 */
|
|
1639
|
+
.kol-view-toggle--float button:focus-visible { outline: none; box-shadow: var(--kol-float-focus); }
|
|
1640
|
+
|
|
1569
1641
|
/* ─── THE SURFACE (`surface="solid|glass-dark|glass-light"`) — what a float is made of. `-m` marks a menu or a box (the
|
|
1570
1642
|
* medium blur and shadow); a bar, a button or a track is small. Solid is surface-secondary lifted by the float shadow.
|
|
1571
1643
|
* 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; }
|
package/kol-design-tokens.css
CHANGED
|
@@ -196,6 +196,19 @@
|
|
|
196
196
|
--kol-float-focus: 0 0 0 2px var(--kol-surface-on-primary);
|
|
197
197
|
/* the field's well, on whatever float holds it — the light tier; dark below */
|
|
198
198
|
--kol-float-well: rgb(0 0 0 / 0.06);
|
|
199
|
+
/* THE FLOAT STATE LADDER AND ITS MOTION (FloatActionStatesAndMotion, kol-website 2026-11-04 — user: *"normal state - hover -
|
|
200
|
+
* just a slight drop in opacity"* · *"everything is very.. quick, not smooth"*). hover-opacity and press-scale are the
|
|
201
|
+
* inverted float button's hover and press (the fill never changes); enter-scale and enter-shift are a float card's way in
|
|
202
|
+
* and out, from its trigger's side; duration is a card, a state or the + turning, duration-rail the rail's expand, collapse,
|
|
203
|
+
* hide and show. The durations are DURATION.base and .slow of motion.js, the curve the house's. A `motion` prop retunes them
|
|
204
|
+
* per app; reduced motion drops them (kol-animation.css). */
|
|
205
|
+
--kol-float-hover-opacity: 0.88;
|
|
206
|
+
--kol-float-press-scale: 0.96;
|
|
207
|
+
--kol-float-enter-scale: 0.96;
|
|
208
|
+
--kol-float-enter-shift: 4px;
|
|
209
|
+
--kol-float-duration: 200ms;
|
|
210
|
+
--kol-float-duration-rail: 300ms;
|
|
211
|
+
--kol-float-ease: var(--kol-ease-house);
|
|
199
212
|
|
|
200
213
|
/* Transitions (consistent timing) */
|
|
201
214
|
--kol-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|