@dorsk/tsumikit 0.40.0 → 0.40.2
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.
|
@@ -174,7 +174,10 @@
|
|
|
174
174
|
/* The trigger owns its look (a ghost icon-button) from tokens — it no longer
|
|
175
175
|
borrows global .btn classes, so a consumer can restyle it via `triggerClass`
|
|
176
176
|
(+ `bare`) from their own scoped CSS instead of fighting globals. */
|
|
177
|
-
|
|
177
|
+
/* Default trigger chrome. Zero specificity (`:where`) so any consumer class
|
|
178
|
+
(triggerClass) overrides it; `:not(.bare)` keeps it off bare triggers such
|
|
179
|
+
as the Timestamp <time>, which stay plain inline text. */
|
|
180
|
+
:where(.pop-trigger:not(.bare)) {
|
|
178
181
|
display: inline-flex;
|
|
179
182
|
align-items: center;
|
|
180
183
|
justify-content: center;
|
|
@@ -189,7 +192,7 @@
|
|
|
189
192
|
background 0.12s var(--ease),
|
|
190
193
|
border-color 0.12s var(--ease);
|
|
191
194
|
}
|
|
192
|
-
.pop-trigger:hover:not(:disabled) {
|
|
195
|
+
:where(.pop-trigger:not(.bare):hover:not(:disabled)) {
|
|
193
196
|
background: var(--bg-elevated-2);
|
|
194
197
|
}
|
|
195
198
|
/* Supplying canonical chrome props opts into the same dimensions, variants
|
|
@@ -267,10 +270,10 @@
|
|
|
267
270
|
/* Coarse pointers: icon-only triggers extend their hit area to --touch-target
|
|
268
271
|
via an invisible slab; layout does not move. */
|
|
269
272
|
@media (pointer: coarse) {
|
|
270
|
-
.pop-trigger:not(.canonical, .
|
|
273
|
+
.pop-trigger:not(.canonical, .hit-compact) {
|
|
271
274
|
position: relative;
|
|
272
275
|
}
|
|
273
|
-
.pop-trigger:not(.canonical, .
|
|
276
|
+
.pop-trigger:not(.canonical, .hit-compact)::after {
|
|
274
277
|
content: '';
|
|
275
278
|
position: absolute;
|
|
276
279
|
inset: min(0px, calc((100% - var(--touch-target)) / 2));
|
|
@@ -323,16 +326,16 @@
|
|
|
323
326
|
}
|
|
324
327
|
/* `bare`: strip the chrome down to a plain button the consumer styles. */
|
|
325
328
|
:where(.pop-trigger.bare) {
|
|
326
|
-
|
|
327
|
-
min-height: 0;
|
|
328
|
-
min-width: 0;
|
|
329
|
-
width: auto;
|
|
329
|
+
display: inline;
|
|
330
330
|
padding: 0;
|
|
331
331
|
border: 0;
|
|
332
|
+
border-radius: 0;
|
|
332
333
|
background: none;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
color: inherit;
|
|
335
|
+
font: inherit;
|
|
336
|
+
line-height: inherit;
|
|
337
|
+
vertical-align: baseline;
|
|
338
|
+
cursor: pointer;
|
|
336
339
|
}
|
|
337
340
|
.pop-panel {
|
|
338
341
|
position: fixed;
|
package/package.json
CHANGED