@kolkrabbi/kol-theme 0.207.0 → 0.209.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-components-molecules.css +20 -7
- package/package.json +1 -1
|
@@ -125,9 +125,7 @@
|
|
|
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
|
-
|
|
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
129
|
/* Flex column so the viewport clamp (Popover size middleware sets maxHeight
|
|
132
130
|
* on this element) reaches the list: the hairline keeps its 1px, the list
|
|
133
131
|
* takes the rest and scrolls inside — the panel itself never overflows the
|
|
@@ -141,10 +139,10 @@
|
|
|
141
139
|
* sunken continue their fill, outline and ghost paint the page's ground —
|
|
142
140
|
* `--kol-tone-ground` — so opening changes nothing under the panel. The
|
|
143
141
|
* `--primary` / `--grey` / `--outline` classes are aliases of the tones. */
|
|
144
|
-
/*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
background-color: var(--kol-
|
|
142
|
+
/* ONE TONE, CLOSED OR OPEN (user 2026-10-31: *"how are you using one tone for default, but another for list open?"*):
|
|
143
|
+
* the panel is the trigger tone's floating surface again (`--kol-tone-panel-bg`), so opening never changes the
|
|
144
|
+
* ground; what lifts it off the page is the float shadow (metric Round 3's "the panel melted into the page"). */
|
|
145
|
+
background-color: var(--kol-tone-panel-bg, var(--kol-surface-secondary)); /* untoned = primary, whose floating surface is surface-secondary */
|
|
148
146
|
box-shadow: var(--kol-shadow-float);
|
|
149
147
|
border: var(--kol-tone-panel-border-w, 0) solid var(--kol-tone-panel-border, transparent); /* outline: matches the trigger's rest border */
|
|
150
148
|
border-top: 0; /* the trigger's bottom edge is the divider (docs page) */
|
|
@@ -2180,6 +2178,21 @@ img.kol-quicklook-media--fill { width: var(--kol-ql-max-w); height: auto; max-he
|
|
|
2180
2178
|
--kol-tone-panel-border: transparent;
|
|
2181
2179
|
}
|
|
2182
2180
|
.kol-tone-grey,
|
|
2181
|
+
/* RAISED — Dropdown `variant="raised"`: the menus' faint raised look on a select (metric R3.4, user 2026-10-31: *"the same
|
|
2182
|
+
* faint raised panel as the menus"*), with the trigger on the same ground so closed and open are one tone (*"how are you
|
|
2183
|
+
* using one tone for default, but another for list open?"*). A variant, not the default, so no other select moves
|
|
2184
|
+
* (*"I dont wanna break anything, should we just make a variant?"*). */
|
|
2185
|
+
:where(.kol-dd-trigger--raised, .kol-dd-panel--raised) {
|
|
2186
|
+
--kol-tone-bg: var(--kol-oq-08);
|
|
2187
|
+
--kol-tone-image: none;
|
|
2188
|
+
--kol-tone-fg: var(--kol-fg-emphasis);
|
|
2189
|
+
--kol-tone-border: transparent;
|
|
2190
|
+
--kol-tone-hover-bg: var(--kol-oq-08);
|
|
2191
|
+
--kol-tone-hover-image: none;
|
|
2192
|
+
--kol-tone-hover-fg: var(--kol-fg-emphasis);
|
|
2193
|
+
--kol-tone-hover-border: transparent;
|
|
2194
|
+
--kol-tone-panel-bg: var(--kol-oq-08);
|
|
2195
|
+
}
|
|
2183
2196
|
:where(.kol-btn-grey, .kol-dd-trigger--grey, .kol-dd-panel--grey, .kol-icon-frame-grey) {
|
|
2184
2197
|
--kol-tone-bg: var(--kol-oq-12);
|
|
2185
2198
|
--kol-tone-image: none;
|