@loidolt/theme-styles 0.11.1 → 0.12.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.
@@ -120,10 +120,15 @@
120
120
  color: inherit;
121
121
  background: transparent;
122
122
  }
123
- .ldt-media-controls__button:hover,
124
123
  .ldt-media-controls__button[aria-pressed='true'] {
125
124
  color: var(--loidolt-accent);
126
125
  }
126
+ /* Hover styles apply only where the pointer can hover: a tap leaves `:hover` stuck on touch screens. */
127
+ @media (hover: hover) {
128
+ .ldt-media-controls__button:hover {
129
+ color: var(--loidolt-accent);
130
+ }
131
+ }
127
132
  .ldt-media-controls__text {
128
133
  letter-spacing: var(--loidolt-label-tracking);
129
134
  }
@@ -167,7 +172,10 @@
167
172
  white-space: nowrap;
168
173
  }
169
174
  .ldt-media-controls__speed {
175
+ /* The system's select clothes ignore the box's height: WebKit draws an 18px pill. */
176
+ appearance: none;
170
177
  min-height: 1.5rem;
178
+ text-align: center;
171
179
  border: var(--loidolt-border-width) solid currentColor;
172
180
  border-radius: var(--loidolt-radius-control);
173
181
  padding: 0 0.3rem; /* @literal compact readout */
@@ -222,8 +230,10 @@
222
230
  background: var(--loidolt-accent);
223
231
  transition: background var(--loidolt-motion-fast) var(--loidolt-motion-easing);
224
232
  }
225
- .ldt-media-embed__facade:hover .ldt-media-embed__play {
226
- background: var(--loidolt-accent-hover);
233
+ @media (hover: hover) {
234
+ .ldt-media-embed__facade:hover .ldt-media-embed__play {
235
+ background: var(--loidolt-accent-hover);
236
+ }
227
237
  }
228
238
  .ldt-media-embed__title {
229
239
  max-width: 32rem;
@@ -309,8 +319,10 @@
309
319
  .ldt-media-tile .ldt-thumbnail {
310
320
  transition: border-color var(--loidolt-motion-fast) var(--loidolt-motion-easing);
311
321
  }
312
- .ldt-media-tile:hover .ldt-thumbnail {
313
- border-color: var(--loidolt-accent);
322
+ @media (hover: hover) {
323
+ .ldt-media-tile:hover .ldt-thumbnail {
324
+ border-color: var(--loidolt-accent);
325
+ }
314
326
  }
315
327
  .ldt-media-tile__kind {
316
328
  padding: 0.1rem 0.4rem; /* @literal kind chip */
@@ -371,10 +383,12 @@
371
383
  font: var(--loidolt-font-size-base) var(--loidolt-font-utility);
372
384
  text-decoration: none;
373
385
  }
374
- .ldt-lightbox__control:hover:not(:disabled) {
375
- color: var(--loidolt-on-accent);
376
- border-color: var(--loidolt-accent);
377
- background: var(--loidolt-accent);
386
+ @media (hover: hover) {
387
+ .ldt-lightbox__control:hover:not(:disabled) {
388
+ color: var(--loidolt-on-accent);
389
+ border-color: var(--loidolt-accent);
390
+ background: var(--loidolt-accent);
391
+ }
378
392
  }
379
393
  .ldt-lightbox__control:disabled {
380
394
  opacity: 0.4;
@@ -419,6 +433,8 @@
419
433
  text-align: center;
420
434
  }
421
435
  .ldt-lightbox__strip {
436
+ --ldt-scroll-cover: var(--loidolt-surface-inverse);
437
+ --ldt-scroll-shadow: color-mix(in srgb, var(--loidolt-text-inverse) 30%, transparent);
422
438
  justify-content: center;
423
439
  }
424
440
  .ldt-lightbox__strip .ldt-filmstrip__item {
@@ -447,10 +463,12 @@
447
463
  color: var(--loidolt-text);
448
464
  background: var(--loidolt-surface);
449
465
  }
450
- .ldt-media-carousel__control:hover:not(:disabled) {
451
- color: var(--loidolt-text-inverse);
452
- border-color: var(--loidolt-surface-inverse);
453
- background: var(--loidolt-surface-inverse);
466
+ @media (hover: hover) {
467
+ .ldt-media-carousel__control:hover:not(:disabled) {
468
+ color: var(--loidolt-text-inverse);
469
+ border-color: var(--loidolt-surface-inverse);
470
+ background: var(--loidolt-surface-inverse);
471
+ }
454
472
  }
455
473
  .ldt-media-carousel__control:disabled {
456
474
  opacity: 0.4;
@@ -482,3 +500,108 @@
482
500
  color: var(--loidolt-text-muted);
483
501
  background: var(--loidolt-surface);
484
502
  }
503
+
504
+ /*
505
+ * An inline zoomable image for a pane. The layer is sized to the image at the current zoom and
506
+ * the regions are placed in percentages of it, so they line up with the image by construction.
507
+ */
508
+ .ldt-image-viewer {
509
+ --ldt-image-viewer-region: var(--loidolt-border-strong);
510
+ display: grid;
511
+ grid-template-rows: auto minmax(0, 1fr);
512
+ min-height: 0;
513
+ gap: var(--loidolt-space-2);
514
+ }
515
+ .ldt-image-viewer__controls {
516
+ display: flex;
517
+ flex-wrap: wrap;
518
+ align-items: center;
519
+ gap: var(--loidolt-space-1);
520
+ }
521
+ /* On a phone the fit buttons share out the row they land on, rather than leaving one alone. */
522
+ @media (max-width: 30rem) {
523
+ .ldt-image-viewer__controls > .ldt-button:not(.ldt-icon-button) {
524
+ flex: 1 1 auto;
525
+ }
526
+ }
527
+ .ldt-image-viewer__level {
528
+ min-width: 4ch; /* @literal fits "400%" */
529
+ color: var(--loidolt-text-muted);
530
+ font: var(--loidolt-font-size-xs) var(--loidolt-font-utility);
531
+ font-variant-numeric: tabular-nums;
532
+ text-align: center;
533
+ }
534
+ .ldt-image-viewer__frame {
535
+ position: relative;
536
+ min-height: var(--ldt-image-viewer-min-height, 16rem);
537
+ /* `clip`, not `hidden`: focus must never scroll the frame behind the zoom engine's back. */
538
+ overflow: clip;
539
+ border: var(--loidolt-border-width) solid var(--loidolt-border);
540
+ background: var(--loidolt-surface-sunken);
541
+ touch-action: pan-x pan-y;
542
+ user-select: none;
543
+ }
544
+ .ldt-image-viewer__frame[data-pannable] {
545
+ cursor: grab;
546
+ touch-action: none;
547
+ }
548
+ .ldt-image-viewer__frame:focus-visible {
549
+ outline-offset: calc(-1 * var(--loidolt-stroke-focus));
550
+ }
551
+ .ldt-image-viewer__layer {
552
+ position: absolute;
553
+ top: 0;
554
+ left: 0;
555
+ visibility: hidden;
556
+ transform-origin: 0 0;
557
+ }
558
+ .ldt-image-viewer__layer[data-ready] {
559
+ visibility: visible;
560
+ }
561
+ .ldt-image-viewer__image {
562
+ display: block;
563
+ width: 100%;
564
+ height: 100%;
565
+ max-width: none;
566
+ }
567
+ .ldt-image-viewer__regions {
568
+ position: absolute;
569
+ inset: 0;
570
+ }
571
+ .ldt-image-viewer__region {
572
+ position: absolute;
573
+ margin: 0;
574
+ border: var(--loidolt-stroke-indicator) solid var(--ldt-image-viewer-region);
575
+ padding: 0;
576
+ background: color-mix(in srgb, var(--ldt-image-viewer-region) 8%, transparent);
577
+ cursor: pointer;
578
+ }
579
+ .ldt-image-viewer__region[data-hovered] {
580
+ background: color-mix(in srgb, var(--ldt-image-viewer-region) 22%, transparent);
581
+ }
582
+ @media (hover: hover) {
583
+ .ldt-image-viewer__region:hover {
584
+ background: color-mix(in srgb, var(--ldt-image-viewer-region) 22%, transparent);
585
+ }
586
+ }
587
+ /* Selected reads in greyscale too: a heavier edge and a stronger fill, not only a colour. */
588
+ .ldt-image-viewer__region[aria-selected='true'] {
589
+ border-width: var(--loidolt-stroke-accent);
590
+ background: color-mix(in srgb, var(--ldt-image-viewer-region) 30%, transparent);
591
+ box-shadow: 0 0 0 var(--loidolt-border-width) var(--loidolt-surface); /* @literal halo keeps the edge visible on dark scans */
592
+ }
593
+ .ldt-image-viewer__region--accent {
594
+ --ldt-image-viewer-region: var(--loidolt-accent);
595
+ }
596
+ .ldt-image-viewer__region--info {
597
+ --ldt-image-viewer-region: var(--loidolt-info);
598
+ }
599
+ .ldt-image-viewer__region--success {
600
+ --ldt-image-viewer-region: var(--loidolt-success);
601
+ }
602
+ .ldt-image-viewer__region--warning {
603
+ --ldt-image-viewer-region: var(--loidolt-warning);
604
+ }
605
+ .ldt-image-viewer__region--error {
606
+ --ldt-image-viewer-region: var(--loidolt-danger);
607
+ }
@@ -95,6 +95,74 @@
95
95
  color: var(--loidolt-text-muted);
96
96
  overflow-wrap: anywhere;
97
97
  }
98
+ /*
99
+ * ShortcutHelp: the registered commands as a definition list per group — label left, key caps
100
+ * right. Rows wrap rather than squeeze, so a long label never pushes the keys off a phone.
101
+ */
102
+ .ldt-shortcut-help__group + .ldt-shortcut-help__group {
103
+ margin-top: var(--loidolt-space-6);
104
+ }
105
+ .ldt-shortcut-help__heading {
106
+ margin: 0 0 var(--loidolt-space-2);
107
+ color: var(--loidolt-text-muted);
108
+ font: var(--loidolt-font-size-xs) var(--loidolt-font-utility);
109
+ font-weight: var(--loidolt-label-weight);
110
+ letter-spacing: var(--loidolt-label-tracking-wide);
111
+ text-transform: var(--loidolt-label-transform);
112
+ }
113
+ .ldt-shortcut-help__list {
114
+ display: grid;
115
+ margin: 0;
116
+ }
117
+ .ldt-shortcut-help__row {
118
+ display: flex;
119
+ flex-wrap: wrap;
120
+ align-items: center;
121
+ justify-content: space-between;
122
+ gap: var(--loidolt-space-2) var(--loidolt-space-4);
123
+ padding: var(--loidolt-space-2) 0;
124
+ border-bottom: var(--loidolt-border-width) solid var(--loidolt-border-soft);
125
+ }
126
+ .ldt-shortcut-help__row:last-child {
127
+ border-bottom: 0;
128
+ }
129
+ .ldt-shortcut-help__label {
130
+ min-width: 0;
131
+ overflow-wrap: anywhere;
132
+ }
133
+ .ldt-shortcut-help__keys {
134
+ display: flex;
135
+ flex-wrap: wrap;
136
+ align-items: center;
137
+ gap: var(--loidolt-space-2);
138
+ margin: 0;
139
+ }
140
+ .ldt-shortcut-help__or {
141
+ color: var(--loidolt-text-muted);
142
+ font-size: var(--loidolt-font-size-xs);
143
+ }
144
+ .ldt-shortcut-help__empty {
145
+ margin: 0;
146
+ color: var(--loidolt-text-muted);
147
+ }
148
+ /* A key cap. A chord is an outer `.ldt-kbd-chord` holding one `.ldt-kbd` per key. */
149
+ .ldt-kbd-chord {
150
+ display: inline-flex;
151
+ gap: var(--loidolt-space-1);
152
+ font: inherit;
153
+ }
154
+ .ldt-kbd {
155
+ display: inline-block;
156
+ min-width: 1.75em;
157
+ padding: 0.1em 0.45em; /* @literal em-based key cap */
158
+ border: var(--loidolt-border-width) solid var(--loidolt-border-strong);
159
+ border-bottom-width: 2px; /* @literal key-cap depth */
160
+ border-radius: var(--loidolt-radius-inner);
161
+ color: var(--loidolt-text);
162
+ background: var(--loidolt-surface);
163
+ font: var(--loidolt-font-size-xs) var(--loidolt-font-utility);
164
+ text-align: center;
165
+ }
98
166
  /*
99
167
  * Drawer: a dialog anchored to an edge. `--ldt-drawer-size` is the measure across that edge —
100
168
  * width for left/right, height for top/bottom — always capped so the scrim stays reachable and
@@ -248,11 +316,17 @@
248
316
  text-align: left;
249
317
  text-decoration: none;
250
318
  }
251
- .ldt-menu__item:hover:not(:disabled, [data-disabled]),
252
319
  .ldt-menu__item[data-highlighted] {
253
320
  color: var(--loidolt-text-inverse);
254
321
  background: var(--loidolt-surface-inverse);
255
322
  }
323
+ /* Hover styles apply only where the pointer can hover: a tap leaves `:hover` stuck on touch screens. */
324
+ @media (hover: hover) {
325
+ .ldt-menu__item:hover:not(:disabled, [data-disabled]) {
326
+ color: var(--loidolt-text-inverse);
327
+ background: var(--loidolt-surface-inverse);
328
+ }
329
+ }
256
330
  /* Exposed to assistive tech (no aria-hidden): a shortcut nobody can hear may as well
257
331
  not exist. Muted normally; inherits the inverse ink while highlighted. */
258
332
  .ldt-menu__hint {
@@ -260,10 +334,14 @@
260
334
  font: var(--loidolt-font-size-xs) var(--loidolt-font-utility);
261
335
  letter-spacing: var(--loidolt-control-tracking);
262
336
  }
263
- .ldt-menu__item:hover:not(:disabled, [data-disabled]) .ldt-menu__hint,
264
337
  .ldt-menu__item[data-highlighted] .ldt-menu__hint {
265
338
  color: inherit;
266
339
  }
340
+ @media (hover: hover) {
341
+ .ldt-menu__item:hover:not(:disabled, [data-disabled]) .ldt-menu__hint {
342
+ color: inherit;
343
+ }
344
+ }
267
345
  .ldt-menu__item[data-disabled],
268
346
  .ldt-menu__item:disabled {
269
347
  opacity: 0.4;
@@ -273,11 +351,16 @@
273
351
  .ldt-menu__item--danger {
274
352
  color: var(--loidolt-text-danger);
275
353
  }
276
- .ldt-menu__item--danger:hover:not(:disabled, [data-disabled]),
277
354
  .ldt-menu__item--danger[data-highlighted] {
278
355
  color: var(--loidolt-on-danger);
279
356
  background: var(--loidolt-danger);
280
357
  }
358
+ @media (hover: hover) {
359
+ .ldt-menu__item--danger:hover:not(:disabled, [data-disabled]) {
360
+ color: var(--loidolt-on-danger);
361
+ background: var(--loidolt-danger);
362
+ }
363
+ }
281
364
  .ldt-menu__group {
282
365
  display: grid;
283
366
  gap: 0.1rem; /* @literal hairline between items */
@@ -504,9 +587,11 @@
504
587
  text-overflow: ellipsis;
505
588
  white-space: nowrap;
506
589
  }
507
- .ldt-tabs--rail .ldt-tabs__trigger:hover:not([data-disabled]) {
508
- color: var(--loidolt-text);
509
- background: var(--loidolt-surface-alt);
590
+ @media (hover: hover) {
591
+ .ldt-tabs--rail .ldt-tabs__trigger:hover:not([data-disabled]) {
592
+ color: var(--loidolt-text);
593
+ background: var(--loidolt-surface-alt);
594
+ }
510
595
  }
511
596
  .ldt-tabs--rail .ldt-tabs__trigger[data-state='active'] {
512
597
  color: var(--loidolt-text-accent);
@@ -128,6 +128,9 @@
128
128
  list-style: none;
129
129
  }
130
130
  :where(.ldt-prose li > input[type='checkbox']):not(:where(.ldt-not-prose, .ldt-not-prose *)) {
131
+ /* At the system's default size a task box is 12px: smaller than the text it marks. */
132
+ width: 1.1em;
133
+ height: 1.1em;
131
134
  margin: 0 0.5em 0 -1.4em;
132
135
  vertical-align: -0.1em;
133
136
  accent-color: var(--loidolt-accent);
@@ -24,8 +24,11 @@
24
24
  text-align: left;
25
25
  text-transform: var(--loidolt-control-transform);
26
26
  }
27
- .ldt-accordion__trigger:hover:not([data-disabled]) {
28
- color: var(--loidolt-text-accent);
27
+ /* Hover styles apply only where the pointer can hover: a tap leaves `:hover` stuck on touch screens. */
28
+ @media (hover: hover) {
29
+ .ldt-accordion__trigger:hover:not([data-disabled]) {
30
+ color: var(--loidolt-text-accent);
31
+ }
29
32
  }
30
33
  .ldt-accordion__trigger[data-disabled] {
31
34
  opacity: 0.4;
@@ -85,17 +88,21 @@
85
88
  border-left: 0;
86
89
  border-top: var(--loidolt-border-width) solid var(--loidolt-border);
87
90
  }
88
- .ldt-toggle-group__item:hover:not([data-disabled], :disabled) {
89
- color: var(--loidolt-text);
91
+ @media (hover: hover) {
92
+ .ldt-toggle-group__item:hover:not([data-disabled], :disabled) {
93
+ color: var(--loidolt-text);
94
+ }
90
95
  }
91
96
  .ldt-toggle-group__item[data-state='on'],
92
97
  .ldt-toggle-group__item[aria-current='page'] {
93
98
  color: var(--loidolt-on-accent);
94
99
  background: var(--loidolt-accent);
95
100
  }
96
- .ldt-toggle-group__item[data-state='on']:hover:not([data-disabled], :disabled) {
97
- color: var(--loidolt-on-accent);
98
- background: var(--loidolt-accent-hover);
101
+ @media (hover: hover) {
102
+ .ldt-toggle-group__item[data-state='on']:hover:not([data-disabled], :disabled) {
103
+ color: var(--loidolt-on-accent);
104
+ background: var(--loidolt-accent-hover);
105
+ }
99
106
  }
100
107
  .ldt-toggle-group__item[data-disabled],
101
108
  .ldt-toggle-group__item:disabled {
@@ -148,9 +155,11 @@
148
155
  color: var(--loidolt-text-muted);
149
156
  text-decoration: none;
150
157
  }
151
- .ldt-breadcrumbs__link:hover {
152
- color: var(--loidolt-text-accent);
153
- text-decoration: underline;
158
+ @media (hover: hover) {
159
+ .ldt-breadcrumbs__link:hover {
160
+ color: var(--loidolt-text-accent);
161
+ text-decoration: underline;
162
+ }
154
163
  }
155
164
  .ldt-breadcrumbs__current {
156
165
  color: var(--loidolt-text);
@@ -161,6 +170,27 @@
161
170
  align-items: center;
162
171
  gap: 0.3rem; /* @literal page buttons sit nearly flush */
163
172
  }
173
+ /*
174
+ * Previous and Next hold the ends of one row, and the page numbers wrap between them in a box of
175
+ * their own, so a row a little too narrow wraps page numbers rather than stranding Next. A
176
+ * wrapping flex row rather than inline boxes with `text-wrap: balance`: iOS 18's WebKit sizes
177
+ * a balanced box to its balanced lines, and wrapped a trail that fitted on one. Markup without
178
+ * the box keeps the old single wrapping row.
179
+ */
180
+ .ldt-pagination__list:has(> .ldt-pagination__pages) {
181
+ flex-wrap: nowrap;
182
+ }
183
+ .ldt-pagination__list:has(> .ldt-pagination__pages) > .ldt-button {
184
+ flex: none;
185
+ }
186
+ .ldt-pagination__pages {
187
+ min-width: 0;
188
+ display: flex;
189
+ flex-wrap: wrap;
190
+ align-items: center;
191
+ justify-content: center;
192
+ gap: 0.3rem; /* @literal the list's own gap */
193
+ }
164
194
  .ldt-pagination__ellipsis {
165
195
  padding-inline: 0.35rem; /* @literal matches the page-button gap */
166
196
  color: var(--loidolt-text-muted);
@@ -168,14 +198,36 @@
168
198
  .ldt-pagination__page {
169
199
  min-width: var(--loidolt-size-control-sm);
170
200
  }
171
- .ldt-pagination__page[aria-current='page'],
172
- /* The base button hover is more specific than a plain `[aria-current]` rule, so the current
173
- page needs its own hover or it flips to the neutral inverse surface on the way past. */
174
- .ldt-pagination__page[aria-current='page']:hover:not(:disabled, [aria-disabled='true']) {
201
+ /*
202
+ * On a phone the page numbers would wrap to two or three rows, so the trail collapses to
203
+ * Previous, the current page and Next. A viewport query rather than a container query: a size
204
+ * container has no content width, and Pagination often sits in a flex row. Wider than this, the
205
+ * page box above does the wrapping, whatever width the row is given.
206
+ */
207
+ @media (max-width: 30rem) {
208
+ .ldt-pagination__list {
209
+ flex-wrap: nowrap;
210
+ justify-content: space-between;
211
+ }
212
+ .ldt-pagination__page:not([aria-current='page']),
213
+ .ldt-pagination__ellipsis {
214
+ display: none;
215
+ }
216
+ }
217
+ .ldt-pagination__page[aria-current='page'] {
175
218
  color: var(--loidolt-on-accent);
176
219
  border-color: var(--loidolt-accent);
177
220
  background: var(--loidolt-accent);
178
221
  }
222
+ /* The base button hover is more specific than a plain `[aria-current]` rule, so the current
223
+ page needs its own hover or it flips to the neutral inverse surface on the way past. */
224
+ @media (hover: hover) {
225
+ .ldt-pagination__page[aria-current='page']:hover:not(:disabled, [aria-disabled='true']) {
226
+ color: var(--loidolt-on-accent);
227
+ border-color: var(--loidolt-accent);
228
+ background: var(--loidolt-accent);
229
+ }
230
+ }
179
231
  /* A segmented control whose options are real links — ToggleGroup's shape for navigation.
180
232
  Items reuse .ldt-toggle-group__item; aria-current="page" is the pressed state. */
181
233
  .ldt-segmented-nav {
@@ -201,11 +253,27 @@
201
253
  flex-direction: column;
202
254
  gap: var(--loidolt-space-2);
203
255
  }
256
+ /*
257
+ * A row with more thumbnails than room scrolls, with the scroll shadows `.ldt-table-wrap` draws
258
+ * (each component file stands alone, so the stack is repeated rather than shared). The strip has
259
+ * no surface of its own, so the covers take `--ldt-scroll-cover`: the surface it sits on.
260
+ */
204
261
  .ldt-filmstrip--horizontal {
262
+ --ldt-scroll-shadow: color-mix(in srgb, var(--loidolt-text) 22%, transparent);
205
263
  flex-direction: row;
206
264
  overflow-x: auto;
207
265
  scrollbar-width: thin;
208
266
  padding-bottom: var(--loidolt-space-1);
267
+ background:
268
+ linear-gradient(to right, var(--ldt-scroll-cover, var(--loidolt-surface)) 30%, transparent)
269
+ left / 2.5rem 100% no-repeat local,
270
+ linear-gradient(to left, var(--ldt-scroll-cover, var(--loidolt-surface)) 30%, transparent)
271
+ right / 2.5rem 100% no-repeat local,
272
+ radial-gradient(farthest-side at 0 50%, var(--ldt-scroll-shadow), transparent) left / 0.75rem
273
+ 100% no-repeat scroll,
274
+ radial-gradient(farthest-side at 100% 50%, var(--ldt-scroll-shadow), transparent) right /
275
+ 0.75rem 100% no-repeat scroll,
276
+ transparent;
209
277
  }
210
278
  .ldt-filmstrip__item {
211
279
  display: grid;
@@ -223,8 +291,10 @@
223
291
  flex: none;
224
292
  width: 4.5rem;
225
293
  }
226
- .ldt-filmstrip__item:hover {
227
- background: var(--loidolt-surface-sunken);
294
+ @media (hover: hover) {
295
+ .ldt-filmstrip__item:hover {
296
+ background: var(--loidolt-surface-sunken);
297
+ }
228
298
  }
229
299
  .ldt-filmstrip__item[aria-selected='true'] {
230
300
  border-color: var(--loidolt-accent);
@@ -277,7 +347,9 @@
277
347
  color: var(--loidolt-text-muted);
278
348
  background: transparent;
279
349
  }
280
- .ldt-chip__remove:hover:not(:disabled) {
281
- color: var(--loidolt-text-inverse);
282
- background: var(--loidolt-surface-inverse);
350
+ @media (hover: hover) {
351
+ .ldt-chip__remove:hover:not(:disabled) {
352
+ color: var(--loidolt-text-inverse);
353
+ background: var(--loidolt-surface-inverse);
354
+ }
283
355
  }
@@ -11,9 +11,12 @@
11
11
  color: var(--loidolt-text);
12
12
  text-decoration: none;
13
13
  }
14
- .ldt-card--link:hover {
15
- border-color: var(--loidolt-accent);
16
- text-decoration: none;
14
+ /* Hover styles apply only where the pointer can hover: a tap leaves `:hover` stuck on touch screens. */
15
+ @media (hover: hover) {
16
+ .ldt-card--link:hover {
17
+ border-color: var(--loidolt-accent);
18
+ text-decoration: none;
19
+ }
17
20
  }
18
21
  /* Full width even when a consumer turns the card into a centering flex/grid container —
19
22
  otherwise viewBox-only SVGs and other intrinsic-less content collapse to their fallback size. */
@@ -54,6 +57,8 @@
54
57
  * one, and text that stays a step smaller than button text at every size.
55
58
  */
56
59
  .ldt-badge {
60
+ /* A two-word status ("In review") stays one pill, not a stack of two in a narrow cell. */
61
+ white-space: nowrap;
57
62
  display: inline-flex;
58
63
  align-items: center;
59
64
  min-height: 1.4rem;
@@ -179,9 +184,11 @@
179
184
  background: var(--loidolt-surface);
180
185
  text-decoration: none;
181
186
  }
182
- a.ldt-stat:hover {
183
- border-color: var(--loidolt-accent);
184
- text-decoration: none;
187
+ @media (hover: hover) {
188
+ a.ldt-stat:hover {
189
+ border-color: var(--loidolt-accent);
190
+ text-decoration: none;
191
+ }
185
192
  }
186
193
  .ldt-stat__value {
187
194
  margin: 0;