@deepseek-ai/dsh-client-ui-primitives 0.2.1-rc.5 → 0.2.2-alpha.3

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.
Files changed (67) hide show
  1. package/README.i18n.yaml +18 -18
  2. package/README.md +45 -15
  3. package/README.zh.md +45 -15
  4. package/lib/AnimatedRows.module.css +7 -0
  5. package/lib/Button.module.css +18 -11
  6. package/lib/CodeCard.module.css +4 -2
  7. package/lib/ConnectionIndicator.module.css +8 -6
  8. package/lib/DetailDocument.module.css +67 -0
  9. package/lib/DiffBlock.module.css +4 -2
  10. package/lib/DisclosureRow.module.css +11 -7
  11. package/lib/HoverCard.module.css +13 -0
  12. package/lib/JsonTree.module.css +45 -9
  13. package/lib/Menu.module.css +55 -17
  14. package/lib/MenuSurface.module.css +16 -0
  15. package/lib/Modal.module.css +4 -2
  16. package/lib/Pill.module.css +4 -2
  17. package/lib/QuotePreview.module.css +101 -0
  18. package/lib/ReadBlock.module.css +4 -2
  19. package/lib/RowDragPreview.module.css +12 -0
  20. package/lib/SearchBlock.module.css +4 -2
  21. package/lib/SegmentedControl.module.css +6 -1
  22. package/lib/SegmentedTabs.module.css +25 -3
  23. package/lib/TerminalBlock.module.css +4 -2
  24. package/lib/Toast.module.css +4 -2
  25. package/lib/UserMessageBubble.module.css +11 -0
  26. package/lib/WebBlock.module.css +14 -2
  27. package/lib/ZoomControls.module.css +54 -0
  28. package/lib/index.js +3923 -4809
  29. package/lib/markdown/JsonBlock.module.css +4 -2
  30. package/lib/markdown/MarkdownText.module.css +37 -12
  31. package/lib/settings-form/fields.module.css +11 -3
  32. package/lib/types/AnimatedRows.d.ts +46 -0
  33. package/lib/types/Button.d.ts +1 -1
  34. package/lib/types/DetailDocument.d.ts +78 -0
  35. package/lib/types/DraggableImage.d.ts +19 -0
  36. package/lib/types/HoverCard.d.ts +7 -2
  37. package/lib/types/HoverCardGroup.d.ts +4 -2
  38. package/lib/types/ImageLightbox.d.ts +4 -1
  39. package/lib/types/Menu.d.ts +25 -9
  40. package/lib/types/MenuSurface.d.ts +9 -0
  41. package/lib/types/QuotePreview.d.ts +24 -0
  42. package/lib/types/SegmentedTabs.d.ts +3 -1
  43. package/lib/types/Tooltip.d.ts +13 -7
  44. package/lib/types/UserMessageBubble.d.ts +11 -0
  45. package/lib/types/ZoomControls.d.ts +27 -0
  46. package/lib/types/document-zoom.d.ts +17 -0
  47. package/lib/types/file-drag-actions.d.ts +32 -0
  48. package/lib/types/focus.d.ts +7 -0
  49. package/lib/types/icons/artwork.d.ts +422 -0
  50. package/lib/types/icons/index.d.ts +199 -194
  51. package/lib/types/icons/shared-artwork.d.ts +6 -12
  52. package/lib/types/image-drag.d.ts +17 -0
  53. package/lib/types/index.d.ts +23 -3
  54. package/lib/types/markdown/MarkdownDelegate.d.ts +26 -3
  55. package/lib/types/markdown/MarkdownText.d.ts +12 -5
  56. package/lib/types/markdown/file-link.d.ts +13 -3
  57. package/lib/types/markdown/highlight.d.ts +22 -0
  58. package/lib/types/markdown/quote-text.d.ts +8 -0
  59. package/lib/types/markdown/render.d.ts +9 -4
  60. package/lib/types/markdown/windows-path-destinations.d.ts +11 -0
  61. package/lib/types/overlay-top-margin.d.ts +9 -2
  62. package/lib/types/use-clipboard-copy.d.ts +14 -0
  63. package/lib/types/useAnchoredPosition.d.ts +22 -22
  64. package/lib/types/useRowDragPreview.d.ts +20 -0
  65. package/lib/types/user-text.d.ts +4 -1
  66. package/package.json +9 -7
  67. package/lib/types/use-copy-feedback.d.ts +0 -14
@@ -0,0 +1,7 @@
1
+ .exits {
2
+ position: absolute;
3
+ inset: 0;
4
+ contain: strict;
5
+ overflow: clip;
6
+ pointer-events: none;
7
+ }
@@ -38,34 +38,41 @@
38
38
  color: var(--dsw-alias-label-primary-foreground);
39
39
  }
40
40
 
41
- .primary:hover:not(:disabled) {
42
- background: var(--dsw-alias-button-primary-hover);
43
- }
41
+ @media (hover: hover) {
42
+ .primary:hover:not(:disabled) {
43
+ background: var(--dsw-alias-button-primary-hover);
44
+ }
44
45
 
45
- .ghost:hover:not(:disabled) {
46
- background: var(--dsw-alias-interactive-bg-hover);
46
+ .ghost:hover:not(:disabled) {
47
+ background: var(--dsw-alias-interactive-bg-hover);
48
+ }
47
49
  }
48
50
 
49
51
  .ghost:active:not(:disabled) {
50
52
  background: var(--dsw-alias-interactive-bg-active);
51
53
  }
52
54
 
53
- /* Outlined actions use the same neutral stroke as settings links. */
55
+ /* The transparent border preserves layout; the inset stroke stays complete at fractional widths. */
54
56
  .outline {
55
- border: 0.5px solid var(--dsw-alias-border-l3);
57
+ border: 0.5px solid transparent;
56
58
  background: transparent;
59
+ box-shadow: inset 0 0 0 var(--dsh-hairline-width, 0.5px) var(--dsh-button-outline-color, var(--dsw-alias-border-l3));
57
60
  }
58
61
 
59
- .outline:hover:not(:disabled) {
60
- background: var(--dsw-alias-interactive-bg-hover);
62
+ @media (hover: hover) {
63
+ .outline:hover:not(:disabled) {
64
+ background: var(--dsw-alias-interactive-bg-hover);
65
+ }
61
66
  }
62
67
 
63
68
  .toolbar {
64
69
  background: var(--dsw-alias-button-tool-bar-fill);
65
70
  }
66
71
 
67
- .toolbar:hover:not(:disabled) {
68
- background: var(--dsw-alias-button-tool-bar-hover);
72
+ @media (hover: hover) {
73
+ .toolbar:hover:not(:disabled) {
74
+ background: var(--dsw-alias-button-tool-bar-hover);
75
+ }
69
76
  }
70
77
 
71
78
  .icon {
@@ -67,8 +67,10 @@
67
67
  cursor: pointer;
68
68
  }
69
69
 
70
- .action:hover {
71
- background: var(--dsw-alias-interactive-bg-hover);
70
+ @media (hover: hover) {
71
+ .action:hover {
72
+ background: var(--dsw-alias-interactive-bg-hover);
73
+ }
72
74
  }
73
75
 
74
76
  .action:focus-visible {
@@ -39,12 +39,14 @@
39
39
  cursor: pointer;
40
40
  }
41
41
 
42
- .warning:hover {
43
- background: color-mix(
44
- in srgb,
45
- var(--dsw-alias-state-warn-tertiary),
46
- var(--dsw-alias-state-warn-primary) 6%
47
- );
42
+ @media (hover: hover) {
43
+ .warning:hover {
44
+ background: color-mix(
45
+ in srgb,
46
+ var(--dsw-alias-state-warn-tertiary),
47
+ var(--dsw-alias-state-warn-primary) 6%
48
+ );
49
+ }
48
50
  }
49
51
 
50
52
  .warning:active {
@@ -0,0 +1,67 @@
1
+ .section {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 12px;
5
+ min-width: 0;
6
+ }
7
+
8
+ .document {
9
+ min-width: 0;
10
+ /* A long README scrolls inside the section instead of pushing the page's later sections out of reach. */
11
+ max-height: min(560px, 60vh);
12
+ overflow-y: auto;
13
+ /* Horizontal rules separate the document from its neighbors; a full frame would clash with the images' own corners. */
14
+ border-block: 0.5px solid var(--dsw-alias-border-l1);
15
+ /* Keep the scrollbar off the text and the text width independent of overflow. */
16
+ scrollbar-gutter: stable;
17
+ padding: 12px 0;
18
+ overflow-wrap: anywhere;
19
+ }
20
+
21
+ .document:focus-visible {
22
+ outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
23
+ outline-offset: 3px;
24
+ }
25
+
26
+ .failure {
27
+ display: flex;
28
+ align-items: center;
29
+ gap: 10px;
30
+ }
31
+
32
+ .error {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ gap: 6px;
36
+ margin: 0;
37
+ font-size: 13px;
38
+ line-height: 20px;
39
+ color: var(--dsw-alias-state-error-primary);
40
+ }
41
+
42
+ .skeleton {
43
+ display: flex;
44
+ flex-direction: column;
45
+ gap: 10px;
46
+ }
47
+
48
+ .bar {
49
+ display: block;
50
+ height: 12px;
51
+ border-radius: var(--dsw-radius-xs);
52
+ background: var(--dsw-alias-bg-skeleton);
53
+ animation: dsh-plugin-detail-skeleton 2s cubic-bezier(0.36, 0, 0.64, 1) infinite;
54
+ }
55
+
56
+ .long { width: min(480px, 90%); }
57
+ .short { width: min(240px, 50%); }
58
+
59
+ @keyframes dsh-plugin-detail-skeleton {
60
+ 0% { opacity: 1; }
61
+ 40% { opacity: 0.6; }
62
+ 80%, 100% { opacity: 1; }
63
+ }
64
+
65
+ @media (prefers-reduced-motion: reduce) {
66
+ .bar { animation: none; }
67
+ }
@@ -75,6 +75,8 @@
75
75
  text-align: left;
76
76
  }
77
77
 
78
- .expand:hover {
79
- color: var(--dsw-alias-label-secondary);
78
+ @media (hover: hover) {
79
+ .expand:hover {
80
+ color: var(--dsw-alias-label-secondary);
81
+ }
80
82
  }
@@ -43,8 +43,10 @@
43
43
  cursor: pointer;
44
44
  }
45
45
 
46
- .row:hover {
47
- color: var(--dsw-alias-label-secondary);
46
+ @media (hover: hover) {
47
+ .row:hover {
48
+ color: var(--dsw-alias-label-secondary);
49
+ }
48
50
  }
49
51
 
50
52
  .leading {
@@ -89,12 +91,14 @@ button.leading {
89
91
  transition: opacity 100ms ease;
90
92
  }
91
93
 
92
- .row:hover .iconIdle {
93
- opacity: 0;
94
- }
94
+ @media (hover: hover) {
95
+ .row:hover .iconIdle {
96
+ opacity: 0;
97
+ }
95
98
 
96
- .row:hover .chevronHover {
97
- opacity: 1;
99
+ .row:hover .chevronHover {
100
+ opacity: 1;
101
+ }
98
102
  }
99
103
 
100
104
  .title {
@@ -88,3 +88,16 @@
88
88
  backdrop-filter: var(--dsw-menu-backdrop-filter);
89
89
  box-shadow: var(--dsw-elevation-panel);
90
90
  }
91
+
92
+ .fitContent {
93
+ width: max-content;
94
+ }
95
+
96
+ .portal {
97
+ display: contents;
98
+ }
99
+
100
+ .bridge {
101
+ position: fixed;
102
+ z-index: 100;
103
+ }
@@ -43,11 +43,16 @@
43
43
  padding: 6px 8px 8px 14px;
44
44
  }
45
45
 
46
- .expandedTopLevel:has(> .topLevelBracket[data-json-root-row]:hover),
47
46
  .expandedTopLevel:has(> .topLevelBracket[data-json-root-row][data-json-copy-active]) {
48
47
  background: var(--json-tree-hover);
49
48
  }
50
49
 
50
+ @media (hover: hover) {
51
+ .expandedTopLevel:has(> .topLevelBracket[data-json-root-row]:hover) {
52
+ background: var(--json-tree-hover);
53
+ }
54
+ }
55
+
51
56
  .expandedTopLevelContainer {
52
57
  padding: 0;
53
58
  }
@@ -75,7 +80,6 @@
75
80
  white-space: pre-wrap;
76
81
  }
77
82
 
78
- .row:not(.topLevelBracket):hover:not(:has(.row:hover))::after,
79
83
  .row:not(.topLevelBracket)[data-json-copy-active]::after,
80
84
  .row:has(> .expander:focus-visible)::after {
81
85
  position: absolute;
@@ -89,6 +93,20 @@
89
93
  pointer-events: none;
90
94
  }
91
95
 
96
+ @media (hover: hover) {
97
+ .row:not(.topLevelBracket):hover:not(:has(.row:hover))::after {
98
+ position: absolute;
99
+ z-index: 0;
100
+ top: 0;
101
+ right: 0;
102
+ left: 0;
103
+ height: var(--json-tree-row-height, 16px);
104
+ background: var(--json-tree-hover);
105
+ content: '';
106
+ pointer-events: none;
107
+ }
108
+ }
109
+
92
110
  .row > span:not(.expander, .copySlot) {
93
111
  position: relative;
94
112
  z-index: 1;
@@ -182,8 +200,10 @@
182
200
  pointer-events: auto;
183
201
  }
184
202
 
185
- .stringToggle:hover {
186
- color: var(--dsw-alias-label-primary);
203
+ @media (hover: hover) {
204
+ .stringToggle:hover {
205
+ color: var(--dsw-alias-label-primary);
206
+ }
187
207
  }
188
208
 
189
209
  .stringToggle:focus-visible {
@@ -254,13 +274,19 @@
254
274
  padding-right: 24px;
255
275
  }
256
276
 
257
- .row:hover:not(:has(.row:hover)) > .copySlot,
258
277
  .row[data-json-copy-active] > .copySlot,
259
278
  .copySlot:focus-within {
260
279
  opacity: 1;
261
280
  pointer-events: auto;
262
281
  }
263
282
 
283
+ @media (hover: hover) {
284
+ .row:hover:not(:has(.row:hover)) > .copySlot {
285
+ opacity: 1;
286
+ pointer-events: auto;
287
+ }
288
+ }
289
+
264
290
  .actionButton {
265
291
  box-sizing: border-box;
266
292
  display: inline-flex;
@@ -277,8 +303,10 @@
277
303
  cursor: pointer;
278
304
  }
279
305
 
280
- .actionButton:hover {
281
- color: var(--dsw-alias-label-primary);
306
+ @media (hover: hover) {
307
+ .actionButton:hover {
308
+ color: var(--dsw-alias-label-primary);
309
+ }
282
310
  }
283
311
 
284
312
  .actionButton[aria-pressed='true'] {
@@ -326,8 +354,10 @@
326
354
  transform: rotate(90deg) scale(0.75);
327
355
  }
328
356
 
329
- .expander:hover {
330
- color: var(--dsw-alias-label-primary);
357
+ @media (hover: hover) {
358
+ .expander:hover {
359
+ color: var(--dsw-alias-label-primary);
360
+ }
331
361
  }
332
362
 
333
363
  .expander:focus-visible {
@@ -343,3 +373,9 @@
343
373
  .collapsedContent::after {
344
374
  content: '…';
345
375
  }
376
+
377
+ @media (hover: none) {
378
+ .copySlot { opacity: 1; pointer-events: auto; }
379
+
380
+ .row:has(> .copySlot) { padding-right: 24px; }
381
+ }
@@ -30,8 +30,13 @@
30
30
  top: calc(100% + 4px);
31
31
  left: 0;
32
32
  z-index: 100;
33
- min-width: 144px;
34
- max-width: 360px;
33
+ min-width: min(144px, var(--dsh-anchored-max-width, 100vw));
34
+ max-width: min(360px, var(--dsh-anchored-max-width, 100vw));
35
+ }
36
+
37
+ /* Legacy slots can render no rows; keep empty context popups out of layout. */
38
+ .list[data-context-menu]:not(:has([role='menuitem'])) {
39
+ display: none;
35
40
  }
36
41
 
37
42
  /* Portal mode: fixed in the viewport, coordinates supplied inline from the
@@ -58,12 +63,16 @@
58
63
 
59
64
  /* Viewport fit: the card stops 12px short of the viewport's top/bottom edges
60
65
  * (the portal MARGIN in Menu.tsx; the top side widens to the frame's published
61
- * overlay inset) and taller content scrolls inside
62
- * .viewport, so a pinned .footer stays visible. Menus with submenu rows skip
63
- * this class — the overflow clip would crop the side card, so they rely on
64
- * staying short. */
66
+ * overlay inset) and taller content scrolls inside .viewport, so a pinned
67
+ * .footer stays visible. The dynamic unit, not `vh`: mobile browser chrome
68
+ * shrinks the visible height while `vh` keeps the taller bars-hidden height, so
69
+ * a `vh` cap exceeds the viewport the placement clamps into and the card ends
70
+ * up taller than the screen showing it. Menus with submenu rows skip this
71
+ * class — the overflow clip would crop the side card, so they rely on staying
72
+ * short. */
65
73
  .scrollable {
66
- max-height: calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px)));
74
+ max-height: min(calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))), var(--dsh-anchored-max-height, 100vh));
75
+ max-height: min(calc(100dvh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))), var(--dsh-anchored-max-height, 100vh));
67
76
  }
68
77
 
69
78
  .viewport {
@@ -87,6 +96,12 @@
87
96
  border-top: 0.5px solid var(--dsw-alias-border-l2);
88
97
  }
89
98
 
99
+ .list[data-context-menu] .footer:has(> .separator:first-child) {
100
+ margin-top: 0;
101
+ padding-top: 0;
102
+ border-top: none;
103
+ }
104
+
90
105
  .itemWrap {
91
106
  position: relative;
92
107
  }
@@ -109,8 +124,10 @@
109
124
  text-align: left;
110
125
  }
111
126
 
112
- .item:hover:not(:disabled) {
113
- background: var(--dsw-alias-interactive-bg-hover);
127
+ @media (hover: hover) {
128
+ .item:hover:not(:disabled):not([aria-disabled='true']) {
129
+ background: var(--dsw-alias-interactive-bg-hover);
130
+ }
114
131
  }
115
132
 
116
133
  /* Arrow navigation moves real focus, so the row the keyboard is on carries the
@@ -132,7 +149,7 @@
132
149
 
133
150
  .list.compactList,
134
151
  .submenu.compactList {
135
- min-width: 156px;
152
+ min-width: min(156px, var(--dsh-anchored-max-width, 100vw));
136
153
  padding: 4px;
137
154
  }
138
155
 
@@ -151,7 +168,7 @@
151
168
  }
152
169
 
153
170
  .compactList .separator {
154
- margin: 2px;
171
+ margin: 2px 6px;
155
172
  }
156
173
 
157
174
  .compactList .label {
@@ -160,7 +177,8 @@
160
177
  line-height: 15px;
161
178
  }
162
179
 
163
- .item:disabled {
180
+ .item:disabled,
181
+ .item[aria-disabled='true'] {
164
182
  opacity: 0.4;
165
183
  cursor: not-allowed;
166
184
  }
@@ -206,6 +224,12 @@
206
224
  line-height: 16px;
207
225
  }
208
226
 
227
+ @media (pointer: coarse) {
228
+ :global(html:not([data-input-modality='keyboard'])) .shortcut {
229
+ display: none;
230
+ }
231
+ }
232
+
209
233
  .check {
210
234
  flex: none;
211
235
  color: var(--dsw-alias-label-primary);
@@ -231,8 +255,10 @@
231
255
  color: var(--dsw-alias-state-error-primary);
232
256
  }
233
257
 
234
- .danger:hover:not(:disabled) {
235
- background: var(--dsw-alias-interactive-bg-hover-danger);
258
+ @media (hover: hover) {
259
+ .danger:hover:not(:disabled):not([aria-disabled='true']) {
260
+ background: var(--dsw-alias-interactive-bg-hover-danger);
261
+ }
236
262
  }
237
263
 
238
264
  .danger:focus-visible:not(:disabled) {
@@ -248,11 +274,11 @@
248
274
  color: var(--dsw-alias-label-tertiary);
249
275
  }
250
276
 
251
- /* Separator cell (figma 122:9481): py 4 / px 2 around the hairline. l2, not
252
- * l1, for the same reason as .footer: l1 is near-invisible on this surface. */
277
+ /* Separator endpoints align with the row content. The l2 stroke stays visible
278
+ * on the menu surface. */
253
279
  .separator {
254
280
  height: 0.5px;
255
- margin: 3px 2px;
281
+ margin: 3px 8px;
256
282
  background: var(--dsw-alias-border-l2);
257
283
  }
258
284
 
@@ -264,6 +290,11 @@
264
290
  display: none;
265
291
  }
266
292
 
293
+ /* A legacy outlet following structured rows is not the beginning of the menu. */
294
+ .list[data-context-menu] .viewport > .itemWrap ~ [data-slot] .itemWrap:first-child > .separator:first-child {
295
+ display: block;
296
+ }
297
+
267
298
  /* The submenu aligns with the parent's bottom edge. Its hit bridge covers
268
299
  * the menu inset and the 6px gap so pointer movement keeps it open. */
269
300
  .submenu {
@@ -283,3 +314,10 @@
283
314
  left: -10px;
284
315
  width: 10px;
285
316
  }
317
+
318
+ .list[data-menu-phase='dismiss'],
319
+ .list[data-menu-phase='replace'] { pointer-events: none; }
320
+ .list[data-context-menu].scrollable {
321
+ max-height: min(calc(100vh - 24px), var(--dsh-anchored-max-height, 100vh));
322
+ max-height: min(calc(100dvh - 24px), var(--dsh-anchored-max-height, 100vh));
323
+ }
@@ -47,3 +47,19 @@
47
47
  background: var(--dsw-alias-bg-base);
48
48
  pointer-events: none;
49
49
  }
50
+
51
+ /* Opacity on the container would prevent its material from blurring the page.
52
+ * Enter animations release their compositing layers so nested menus can blur too. */
53
+ .surface[data-menu-phase='enter'] > *,
54
+ .backing[data-menu-phase='enter'] { animation: dsh-context-menu-in var(--dsh-menu-enter) ease-out; }
55
+ .surface[data-menu-phase='dismiss'] > *,
56
+ .backing[data-menu-phase='dismiss'],
57
+ .surface[data-menu-phase='replace'] > *,
58
+ .backing[data-menu-phase='replace'] { animation: dsh-context-menu-out var(--dsh-menu-dismiss) ease-in both; }
59
+ .surface[data-menu-phase='replace'] > *,
60
+ .backing[data-menu-phase='replace'] { animation-duration: var(--dsh-menu-replace); }
61
+ @keyframes dsh-context-menu-in { from { opacity: 0; } to { opacity: 1; } }
62
+ @keyframes dsh-context-menu-out { from { opacity: 1; } to { opacity: 0; } }
63
+ @media (prefers-reduced-motion: reduce) {
64
+ .surface[data-menu-phase] > *, .backing[data-menu-phase] { animation-duration: 0ms; }
65
+ }
@@ -98,8 +98,10 @@
98
98
  color: var(--dsw-alias-label-secondary);
99
99
  }
100
100
 
101
- .close:hover {
102
- background: var(--dsw-alias-interactive-bg-hover);
101
+ @media (hover: hover) {
102
+ .close:hover {
103
+ background: var(--dsw-alias-interactive-bg-hover);
104
+ }
103
105
  }
104
106
 
105
107
  /* Description and body share the 332px content column (24px side pads). */
@@ -17,8 +17,10 @@
17
17
  cursor: pointer;
18
18
  }
19
19
 
20
- .interactive:hover {
21
- background: var(--dsw-alias-interactive-bg-hover);
20
+ @media (hover: hover) {
21
+ .interactive:hover {
22
+ background: var(--dsw-alias-interactive-bg-hover);
23
+ }
22
24
  }
23
25
 
24
26
  .active {
@@ -0,0 +1,101 @@
1
+ .quote {
2
+ display: inline-flex;
3
+ align-items: baseline;
4
+ gap: 4px;
5
+ box-sizing: border-box;
6
+ max-width: min(80%, 300px);
7
+ margin: 0;
8
+ padding: 0;
9
+ vertical-align: baseline;
10
+ color: var(--dsw-alias-state-business-primary);
11
+ font-size: var(--dsh-content-font-size, 14px);
12
+ line-height: calc(20px + var(--dsh-content-font-delta, 0px));
13
+ }
14
+
15
+ .popoverText {
16
+ display: block;
17
+ padding: 8px 10px;
18
+ color: var(--dsw-alias-label-primary);
19
+ font-size: 14px;
20
+ line-height: 20px;
21
+ overflow-wrap: anywhere;
22
+ white-space: pre-wrap;
23
+ }
24
+
25
+ .source {
26
+ min-width: 0;
27
+ padding: 0;
28
+ border: none;
29
+ outline: none;
30
+ background: none;
31
+ color: inherit;
32
+ font: inherit;
33
+ line-height: inherit;
34
+ text-align: left;
35
+ overflow: hidden;
36
+ text-overflow: ellipsis;
37
+ white-space: nowrap;
38
+ }
39
+
40
+ .marker,
41
+ .remove {
42
+ display: grid;
43
+ place-items: center;
44
+ align-self: center;
45
+ flex: none;
46
+ width: 16px;
47
+ height: 16px;
48
+ padding: 0;
49
+ color: inherit;
50
+ user-select: none;
51
+ }
52
+
53
+ .marker {
54
+ pointer-events: none;
55
+ }
56
+
57
+ .remove {
58
+ border: none;
59
+ border-radius: 50%;
60
+ corner-shape: round;
61
+ background: transparent;
62
+ cursor: pointer;
63
+ }
64
+
65
+ .quoteMark,
66
+ .closeMark {
67
+ grid-area: 1 / 1;
68
+ transition: opacity 120ms ease;
69
+ }
70
+
71
+ .closeMark {
72
+ opacity: 0;
73
+ }
74
+
75
+ .quote[data-removable]:focus-within .quoteMark {
76
+ opacity: 0;
77
+ }
78
+
79
+ .quote[data-removable]:focus-within .closeMark {
80
+ opacity: 1;
81
+ }
82
+
83
+ @media (hover: hover) {
84
+ .quote[data-removable]:hover .quoteMark {
85
+ opacity: 0;
86
+ }
87
+
88
+ .quote[data-removable]:hover .closeMark {
89
+ opacity: 1;
90
+ }
91
+ }
92
+
93
+ @media (hover: none) {
94
+ .quote[data-removable] .quoteMark {
95
+ opacity: 0;
96
+ }
97
+
98
+ .quote[data-removable] .closeMark {
99
+ opacity: 1;
100
+ }
101
+ }
@@ -38,6 +38,8 @@
38
38
  text-align: left;
39
39
  }
40
40
 
41
- .expand:hover {
42
- color: var(--dsw-alias-label-secondary);
41
+ @media (hover: hover) {
42
+ .expand:hover {
43
+ color: var(--dsw-alias-label-secondary);
44
+ }
43
45
  }
@@ -0,0 +1,12 @@
1
+ .preview {
2
+ position: fixed;
3
+ top: 0;
4
+ pointer-events: none;
5
+ }
6
+
7
+ .preview > :first-child {
8
+ box-sizing: border-box;
9
+ margin: 0;
10
+ width: 100%;
11
+ height: 100%;
12
+ }
@@ -101,8 +101,10 @@
101
101
  text-align: left;
102
102
  }
103
103
 
104
- .expand:hover {
105
- color: var(--dsw-alias-label-secondary);
104
+ @media (hover: hover) {
105
+ .expand:hover {
106
+ color: var(--dsw-alias-label-secondary);
107
+ }
106
108
  }
107
109
 
108
110
  .empty {