@kolkrabbi/kol-theme 0.205.0 → 0.207.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.
|
@@ -261,16 +261,10 @@
|
|
|
261
261
|
top: var(--ty);
|
|
262
262
|
transform: translate(-50%, -110%);
|
|
263
263
|
z-index: 10;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
align-items: center;
|
|
267
|
-
padding: 0.125rem 0.25rem;
|
|
268
|
-
background-color: var(--kol-surface-primary);
|
|
269
|
-
border: 1px solid color-mix(in srgb, var(--kol-surface-on-primary, currentColor) 12%, transparent);
|
|
270
|
-
border-radius: 0.25rem;
|
|
271
|
-
white-space: nowrap;
|
|
272
|
-
line-height: 1;
|
|
264
|
+
/* only the PLACE is the chart's: the box is KOL's one tooltip (DashTooltip renders `.kol-tooltip` — user 2026-10-31,
|
|
265
|
+
* on the heatmap's hover: *"what is this tooltip/popover? not ours?"*); its caption takes the tooltip's type */
|
|
273
266
|
}
|
|
267
|
+
.dash-tooltip .dash-caption { font: inherit; color: inherit; }
|
|
274
268
|
|
|
275
269
|
.dash-chart-element--active {
|
|
276
270
|
filter: brightness(1.2);
|
|
@@ -125,6 +125,9 @@
|
|
|
125
125
|
* trigger squares its bottom corners, panel squares its top, and the fill
|
|
126
126
|
* continues (panel offset is -1 in Dropdown.jsx for the same reason). */
|
|
127
127
|
.kol-dd-trigger--open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
|
|
128
|
+
/* ONE BLOCK WHEN OPEN (user 2026-10-31, the sites dropdown: *"why are there two TONEs in one component here?"*): the
|
|
129
|
+
* raised select panel is oq-08, so the open trigger it hangs from takes the same ground — head and list read as one */
|
|
130
|
+
.kol-dd-trigger.kol-dd-trigger--open { background-color: var(--kol-oq-08); }
|
|
128
131
|
/* Flex column so the viewport clamp (Popover size middleware sets maxHeight
|
|
129
132
|
* on this element) reaches the list: the hairline keeps its 1px, the list
|
|
130
133
|
* takes the rest and scrolls inside — the panel itself never overflows the
|
|
@@ -138,7 +141,11 @@
|
|
|
138
141
|
* sunken continue their fill, outline and ghost paint the page's ground —
|
|
139
142
|
* `--kol-tone-ground` — so opening changes nothing under the panel. The
|
|
140
143
|
* `--primary` / `--grey` / `--outline` classes are aliases of the tones. */
|
|
141
|
-
|
|
144
|
+
/* THE SELECT PANEL IS RAISED (metric Round 3, user 2026-10-31 — the sites dropdown's panel melted into the page): the
|
|
145
|
+
* menu's faint raised panel, `.kol-menu-panel`'s oq-08 ground + the float shadow, on every select Dropdown. It
|
|
146
|
+
* was the trigger tone's floating surface (`--kol-tone-panel-bg` → `--kol-tone-bg`). */
|
|
147
|
+
background-color: var(--kol-oq-08);
|
|
148
|
+
box-shadow: var(--kol-shadow-float);
|
|
142
149
|
border: var(--kol-tone-panel-border-w, 0) solid var(--kol-tone-panel-border, transparent); /* outline: matches the trigger's rest border */
|
|
143
150
|
border-top: 0; /* the trigger's bottom edge is the divider (docs page) */
|
|
144
151
|
}
|
|
@@ -162,6 +169,56 @@
|
|
|
162
169
|
max-height: calc(var(--kol-dd-max-rows, 10) * var(--kol-dd-row-h, 2rem) + var(--kol-spacing-1) * 2);
|
|
163
170
|
}
|
|
164
171
|
|
|
172
|
+
/* THE MENU PANEL (the Menu* family, metric Round 4, 2026-10-31) — `Menu`'s panel: it floats under the caller's
|
|
173
|
+
* trigger (never fused to it), one step up from the cards. The oq ramp swaps per theme, so the one rule is light
|
|
174
|
+
* and dark. 8px / 6px are the look the user signed off on the metric page (round 1), above the 4px container rung
|
|
175
|
+
* on purpose — a floating menu, not a container. Was `.kol-dd-menu` (round 2, alias below). */
|
|
176
|
+
.kol-menu-panel {
|
|
177
|
+
background-color: var(--kol-oq-08);
|
|
178
|
+
border-radius: 8px;
|
|
179
|
+
padding: var(--kol-spacing-1);
|
|
180
|
+
box-shadow: var(--kol-shadow-float);
|
|
181
|
+
}
|
|
182
|
+
/* @deprecated 2026-10-31 → kol-menu-panel */
|
|
183
|
+
.kol-dd-menu {
|
|
184
|
+
background-color: var(--kol-oq-08);
|
|
185
|
+
border-radius: 8px;
|
|
186
|
+
padding: var(--kol-spacing-1);
|
|
187
|
+
box-shadow: var(--kol-shadow-float);
|
|
188
|
+
}
|
|
189
|
+
/* the row: tall (38), inset by the panel's 4, ink one step down until hovered; the current row and an
|
|
190
|
+
* open flyout's row are filled. Two classes so it outranks the row's own `text-body` utility. */
|
|
191
|
+
.kol-menu-panel .kol-menu-row {
|
|
192
|
+
height: 38px;
|
|
193
|
+
padding-inline: var(--kol-spacing-3);
|
|
194
|
+
border-radius: 6px;
|
|
195
|
+
color: var(--kol-fg-88);
|
|
196
|
+
}
|
|
197
|
+
.kol-menu-panel .kol-menu-row:hover,
|
|
198
|
+
.kol-menu-panel .kol-menu-row--current,
|
|
199
|
+
.kol-menu-panel .kol-menu-row[aria-expanded="true"] {
|
|
200
|
+
color: var(--kol-fg-96);
|
|
201
|
+
background-color: var(--kol-oq-16);
|
|
202
|
+
}
|
|
203
|
+
/* a rule runs edge to edge — through the panel's 4px inset */
|
|
204
|
+
.kol-menu-panel .kol-menu-rule {
|
|
205
|
+
border-color: var(--kol-oq-16);
|
|
206
|
+
margin: var(--kol-spacing-1) calc(var(--kol-spacing-1) * -1);
|
|
207
|
+
}
|
|
208
|
+
/* MenuLabel — a section's name */
|
|
209
|
+
.kol-menu-panel .kol-menu-label {
|
|
210
|
+
padding: var(--kol-spacing-2) var(--kol-spacing-3) var(--kol-spacing-1);
|
|
211
|
+
text-transform: uppercase;
|
|
212
|
+
letter-spacing: 0.025em;
|
|
213
|
+
color: var(--kol-fg-48);
|
|
214
|
+
}
|
|
215
|
+
/* a row's shortcut cap: outlined, no fill — it sits on the filled current row */
|
|
216
|
+
.kol-menu-panel .kol-menu-kbd {
|
|
217
|
+
background-color: transparent;
|
|
218
|
+
border: 1px solid var(--kol-oq-24);
|
|
219
|
+
color: var(--kol-oq-80);
|
|
220
|
+
}
|
|
221
|
+
|
|
165
222
|
/* Popover — default chrome for floating-ui-positioned panels.
|
|
166
223
|
* Used by molecules/Popover.jsx PopoverPanel. */
|
|
167
224
|
.kol-popover {
|
|
@@ -2203,6 +2260,12 @@ img.kol-quicklook-media--fill { width: var(--kol-ql-max-w); height: auto; max-he
|
|
|
2203
2260
|
/* THE FILLED TAB (user 2026-10-29, on the lab rail's text tabs: *"its not so clear that these are selectable tabs"*):
|
|
2204
2261
|
* the tab bundle with its chip showing at rest — oq-04 in meta ink, oq-08 in full ink under the pointer, oq-16 when
|
|
2205
2262
|
* selected — so a row of them reads as choices before one is hovered. `TabsRow look="chip" filled`. */
|
|
2263
|
+
/* the labelled MENU trigger (Filter, the date picker): quiet text, no hover wash — its chip shows only while its menu is
|
|
2264
|
+
* open (user 2026-10-31: *"no hover just click … only [...] has hover"*). The ⋮ keeps the tab's oq-04 hover. */
|
|
2265
|
+
.kol-btn.kol-btn-tab.kol-menu-trigger--quiet { --kol-tone-hover-bg: transparent; }
|
|
2266
|
+
/* every menu trigger rests at strong ink (fg-80), not the tab's meta (fg-48) — it is a control you use, not a tab you
|
|
2267
|
+
* are not on (user 2026-10-31: *"and default bring opacity up on all of them"*) */
|
|
2268
|
+
.kol-btn.kol-btn-tab.kol-menu-trigger { --kol-tone-fg: var(--kol-fg-strong); }
|
|
2206
2269
|
:where(.kol-btn-tab-filled) {
|
|
2207
2270
|
--kol-tone-bg: var(--kol-oq-04);
|
|
2208
2271
|
--kol-tone-image: none;
|
package/kol-design-tokens.css
CHANGED
|
@@ -342,3 +342,10 @@
|
|
|
342
342
|
--spacing-section: var(--kol-spacing-section);
|
|
343
343
|
--spacing-container: var(--kol-spacing-container);
|
|
344
344
|
}
|
|
345
|
+
|
|
346
|
+
/* THE RAIL'S UPWARD SHADOW (PhoneTwoFloatLayout, kol-fxr 2026-10-31): a Rail rising from the bottom edge lifts off the stage
|
|
347
|
+
* upward — fxr's Labs on a phone (kol-labs.css, frame E), made the KOL's. With it the Rail has no top rule. One value in both
|
|
348
|
+
* themes, as `--kol-shadow-float`: a lift, not an elevation ramp */
|
|
349
|
+
:root {
|
|
350
|
+
--kol-shadow-rail-up: 0 -8px 40px rgba(0, 0, 0, 0.45);
|
|
351
|
+
}
|