@zonsh/ui 0.2.0 → 0.5.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/LICENSE +22 -0
- package/README.md +19 -13
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.js +1 -1
- package/dist/components/ascii-field.d.ts +1 -1
- package/dist/components/ascii-field.js +2 -1
- package/dist/components/bottom-nav.d.ts +86 -0
- package/dist/components/bottom-nav.js +175 -0
- package/dist/components/breadcrumb.d.ts +9 -0
- package/dist/components/breadcrumb.js +6 -1
- package/dist/components/button-group.d.ts +1 -1
- package/dist/components/button-group.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/calendar.js +18 -3
- package/dist/components/carousel.d.ts +22 -3
- package/dist/components/carousel.js +25 -7
- package/dist/components/chart.d.ts +20 -0
- package/dist/components/chart.js +52 -3
- package/dist/components/code-block.d.ts +20 -10
- package/dist/components/code-block.js +54 -12
- package/dist/components/collapsible.js +3 -3
- package/dist/components/color-picker.d.ts +30 -8
- package/dist/components/color-picker.js +48 -27
- package/dist/components/combobox.d.ts +21 -3
- package/dist/components/combobox.js +79 -7
- package/dist/components/command.d.ts +23 -3
- package/dist/components/command.js +63 -18
- package/dist/components/conversation.d.ts +10 -1
- package/dist/components/conversation.js +24 -7
- package/dist/components/copy-button.d.ts +15 -6
- package/dist/components/copy-button.js +27 -10
- package/dist/components/data-table.d.ts +66 -6
- package/dist/components/data-table.js +376 -23
- package/dist/components/date-picker.d.ts +73 -4
- package/dist/components/date-picker.js +138 -7
- package/dist/components/dialog.d.ts +10 -1
- package/dist/components/dialog.js +6 -3
- package/dist/components/drawer.d.ts +10 -1
- package/dist/components/drawer.js +6 -3
- package/dist/components/feature-list.js +2 -2
- package/dist/components/field.d.ts +27 -8
- package/dist/components/field.js +49 -4
- package/dist/components/file-drop.d.ts +26 -4
- package/dist/components/file-drop.js +125 -64
- package/dist/components/filter-bar.d.ts +50 -3
- package/dist/components/filter-bar.js +71 -33
- package/dist/components/form.d.ts +4 -2
- package/dist/components/form.js +24 -2
- package/dist/components/graph.d.ts +41 -0
- package/dist/components/graph.js +106 -50
- package/dist/components/illustration.js +51 -4
- package/dist/components/input-group.d.ts +18 -7
- package/dist/components/input-group.js +41 -19
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +3 -3
- package/dist/components/kbd.d.ts +17 -0
- package/dist/components/kbd.js +8 -1
- package/dist/components/layout.d.ts +2 -1
- package/dist/components/layout.js +55 -11
- package/dist/components/lightbox.d.ts +100 -0
- package/dist/components/lightbox.js +457 -0
- package/dist/components/locale.d.ts +44 -0
- package/dist/components/locale.js +37 -0
- package/dist/components/logo.js +1 -1
- package/dist/components/menu.js +3 -1
- package/dist/components/menubar.js +60 -13
- package/dist/components/message.d.ts +3 -3
- package/dist/components/message.js +12 -8
- package/dist/components/meter.js +3 -1
- package/dist/components/money-input.d.ts +80 -0
- package/dist/components/money-input.js +253 -0
- package/dist/components/navigation-menu.js +4 -2
- package/dist/components/number-field.d.ts +21 -2
- package/dist/components/number-field.js +53 -28
- package/dist/components/otp-field.d.ts +14 -1
- package/dist/components/otp-field.js +10 -2
- package/dist/components/pagination.d.ts +13 -7
- package/dist/components/pagination.js +18 -7
- package/dist/components/pdf-viewer.d.ts +67 -2
- package/dist/components/pdf-viewer.js +88 -21
- package/dist/components/phone-input.d.ts +79 -0
- package/dist/components/phone-input.js +282 -0
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +3 -1
- package/dist/components/prompt-input.d.ts +34 -9
- package/dist/components/prompt-input.js +37 -17
- package/dist/components/radio-group.js +7 -2
- package/dist/components/rating.d.ts +73 -0
- package/dist/components/rating.js +124 -0
- package/dist/components/reasoning.d.ts +16 -1
- package/dist/components/reasoning.js +10 -7
- package/dist/components/resizable.d.ts +10 -1
- package/dist/components/resizable.js +4 -1
- package/dist/components/response.d.ts +17 -5
- package/dist/components/response.js +58 -18
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/select.js +14 -3
- package/dist/components/separator.js +1 -1
- package/dist/components/sidebar.d.ts +20 -4
- package/dist/components/sidebar.js +70 -35
- package/dist/components/site-header.d.ts +46 -12
- package/dist/components/site-header.js +78 -19
- package/dist/components/skeleton.d.ts +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +3 -1
- package/dist/components/sortable.d.ts +178 -0
- package/dist/components/sortable.js +1282 -0
- package/dist/components/sources.d.ts +17 -2
- package/dist/components/sources.js +11 -4
- package/dist/components/spinner.d.ts +13 -1
- package/dist/components/spinner.js +5 -2
- package/dist/components/stat.d.ts +91 -0
- package/dist/components/stat.js +141 -0
- package/dist/components/stepper.d.ts +71 -0
- package/dist/components/stepper.js +101 -0
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +2 -2
- package/dist/components/table.d.ts +13 -3
- package/dist/components/table.js +231 -41
- package/dist/components/tabs.js +8 -4
- package/dist/components/tags-input.d.ts +18 -2
- package/dist/components/tags-input.js +66 -34
- package/dist/components/theme.d.ts +16 -2
- package/dist/components/theme.js +34 -8
- package/dist/components/time-field.d.ts +24 -4
- package/dist/components/time-field.js +32 -9
- package/dist/components/timeline.d.ts +18 -2
- package/dist/components/timeline.js +13 -4
- package/dist/components/tippy.d.ts +48 -0
- package/dist/components/tippy.js +648 -0
- package/dist/components/toast.d.ts +18 -2
- package/dist/components/toast.js +12 -3
- package/dist/components/toggle-group.js +1 -0
- package/dist/components/tool-call.d.ts +19 -8
- package/dist/components/tool-call.js +23 -7
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +10 -2
- package/dist/components/tooltip.d.ts +4 -2
- package/dist/components/tooltip.js +10 -4
- package/dist/components/tour.d.ts +127 -0
- package/dist/components/tour.js +673 -0
- package/dist/components/tree.js +45 -9
- package/dist/components/video-player.d.ts +10 -2
- package/dist/components/video-player.js +134 -38
- package/dist/illustration.d.ts +2 -0
- package/dist/illustration.js +7 -0
- package/dist/index.d.ts +11 -3
- package/dist/index.js +11 -3
- package/dist/lib/code-highlight.d.ts +3 -16
- package/dist/lib/code-highlight.js +160 -10
- package/dist/lib/code-theme.js +3 -3
- package/dist/lib/digit-roll.js +8 -8
- package/dist/lib/field-errors.d.ts +28 -0
- package/dist/lib/field-errors.js +24 -0
- package/dist/lib/field-value.d.ts +13 -0
- package/dist/lib/field-value.js +44 -0
- package/dist/lib/glide.d.ts +5 -4
- package/dist/lib/glide.js +5 -4
- package/dist/lib/graph-layout.js +11 -2
- package/dist/lib/money.d.ts +73 -0
- package/dist/lib/money.js +343 -0
- package/dist/lib/phone-countries.d.ts +1 -0
- package/dist/lib/phone-countries.js +281 -0
- package/dist/lib/phone.d.ts +90 -0
- package/dist/lib/phone.js +286 -0
- package/dist/lib/platform.d.ts +8 -3
- package/dist/lib/platform.js +13 -6
- package/dist/lib/row-index.d.ts +15 -0
- package/dist/lib/row-index.js +136 -0
- package/dist/lib/table-fit.d.ts +3 -2
- package/dist/lib/table-fit.js +52 -23
- package/dist/lib/theme-script.d.ts +15 -2
- package/dist/lib/theme-script.js +23 -3
- package/dist/lib/tippy/pixels.d.ts +47 -0
- package/dist/lib/tippy/pixels.js +187 -0
- package/dist/lib/tippy/sprite.d.ts +86 -0
- package/dist/lib/tippy/sprite.js +753 -0
- package/dist/messages/de.d.ts +12 -0
- package/dist/messages/de.js +326 -0
- package/dist/styles/expressive.css +60 -26
- package/dist/styles/index.css +11 -2
- package/dist/styles/material.css +47 -23
- package/dist/styles/parts/ai.css +4 -2
- package/dist/styles/parts/controls.css +85 -32
- package/dist/styles/parts/data.css +33 -5
- package/dist/styles/parts/feedback.css +110 -13
- package/dist/styles/parts/foundations.css +1 -1
- package/dist/styles/parts/navigation.css +230 -5
- package/dist/styles/parts/overlays.css +98 -11
- package/dist/styles/parts/pdf.css +13 -7
- package/dist/styles/tokens.css +28 -4
- package/dist/vite.d.ts +0 -50
- package/dist/vite.js +0 -100
- package/package.json +28 -33
- package/dist/components/code-highlight.d.ts +0 -13
- package/dist/components/code-highlight.js +0 -107
- package/dist/components/whiteboard.d.ts +0 -80
- package/dist/components/whiteboard.js +0 -389
- package/dist/styles/parts/whiteboard.css +0 -855
|
@@ -1,855 +0,0 @@
|
|
|
1
|
-
/* Whiteboard — Excalidraw's interface in the zon material. Every colour Excalidraw defines is mapped
|
|
2
|
-
to a token (no violet, no blue), and its parts take the library's shapes: islands and popups in
|
|
3
|
-
the menu material at 12px, tools that rise when picked like ToolbarButton, raised keys in joined
|
|
4
|
-
groups like ButtonGroup, recessed fields, segmented tabs, Kbd keys, eyebrow headings and Licht
|
|
5
|
-
titles. Unlayered, and scoped one class deeper than Excalidraw's own rules (its stylesheet is
|
|
6
|
-
unlayered too and loads later). Dialogs are portalled to <body>, so the scope takes them too. */
|
|
7
|
-
|
|
8
|
-
:is([data-slot="whiteboard"] .excalidraw, .excalidraw-modal-container).excalidraw {
|
|
9
|
-
/* ── Colours ── */
|
|
10
|
-
--color-primary: var(--foreground);
|
|
11
|
-
--color-primary-darker: var(--foreground);
|
|
12
|
-
--color-primary-darkest: var(--foreground);
|
|
13
|
-
--color-primary-hover: var(--foreground-soft);
|
|
14
|
-
--color-primary-light: var(--control-hover);
|
|
15
|
-
--color-primary-light-darker: var(--control-hover);
|
|
16
|
-
--color-brand-hover: var(--foreground-soft);
|
|
17
|
-
--color-brand-active: var(--foreground);
|
|
18
|
-
--color-promo: var(--foreground);
|
|
19
|
-
--color-logo-icon: var(--foreground);
|
|
20
|
-
--color-selection: var(--muted-foreground);
|
|
21
|
-
--color-surface-lowest: var(--background);
|
|
22
|
-
--color-surface-low: var(--control-surface);
|
|
23
|
-
--color-surface-mid: var(--control-surface);
|
|
24
|
-
--color-surface-high: var(--control-hover);
|
|
25
|
-
--color-surface-primary-container: var(--control-hover);
|
|
26
|
-
--color-on-primary-container: var(--foreground);
|
|
27
|
-
--color-on-surface: var(--foreground);
|
|
28
|
-
--color-icon-white: var(--background);
|
|
29
|
-
--color-border-outline: var(--muted-foreground);
|
|
30
|
-
--color-border-outline-variant: var(--field-edge);
|
|
31
|
-
--color-muted: var(--muted-foreground);
|
|
32
|
-
--color-gray-40: var(--muted-foreground);
|
|
33
|
-
--color-disabled: var(--control-muted);
|
|
34
|
-
--color-danger: var(--destructive);
|
|
35
|
-
--color-danger-dark: var(--destructive);
|
|
36
|
-
--color-danger-text: var(--background);
|
|
37
|
-
--color-slider-track: var(--field-edge);
|
|
38
|
-
--color-slider-thumb: var(--foreground);
|
|
39
|
-
--island-bg-color: var(--control-menu);
|
|
40
|
-
--sidebar-bg-color: var(--control-menu);
|
|
41
|
-
--sidebar-border-color: var(--field-edge);
|
|
42
|
-
--default-bg-color: var(--background);
|
|
43
|
-
--popup-bg-color: var(--control-menu);
|
|
44
|
-
--popup-secondary-bg-color: var(--control-surface);
|
|
45
|
-
--popup-text-color: var(--foreground);
|
|
46
|
-
--popup-text-inverted-color: var(--background);
|
|
47
|
-
--overlay-bg-color: color-mix(in srgb, var(--background) 70%, transparent);
|
|
48
|
-
--input-bg-color: var(--field-surface);
|
|
49
|
-
--input-border-color: var(--field-edge);
|
|
50
|
-
--input-hover-bg-color: var(--field-surface);
|
|
51
|
-
--input-label-color: var(--foreground);
|
|
52
|
-
--link-color: var(--foreground);
|
|
53
|
-
--text-primary-color: var(--foreground);
|
|
54
|
-
--icon-fill-color: var(--foreground);
|
|
55
|
-
--keybinding-color: var(--control-muted);
|
|
56
|
-
--focus-highlight-color: var(--control-focus);
|
|
57
|
-
--select-highlight-color: var(--control-focus);
|
|
58
|
-
--default-border-color: var(--field-edge);
|
|
59
|
-
--dialog-border-color: var(--field-edge);
|
|
60
|
-
--list-border-color: var(--field-edge);
|
|
61
|
-
--avatar-border-color: var(--field-edge);
|
|
62
|
-
--scrollbar-thumb: var(--field-edge);
|
|
63
|
-
--scrollbar-thumb-hover: var(--muted-foreground);
|
|
64
|
-
--ImageExportModal-preview-border: var(--field-edge);
|
|
65
|
-
--button-bg: transparent;
|
|
66
|
-
--button-hover-bg: var(--control-hover);
|
|
67
|
-
--button-active-bg: var(--control-hover);
|
|
68
|
-
--button-selected-bg: var(--control-hover);
|
|
69
|
-
--button-selected-hover-bg: var(--control-hover);
|
|
70
|
-
--button-active-border: var(--control-focus);
|
|
71
|
-
--button-selected-border: var(--control-edge);
|
|
72
|
-
--button-destructive-bg-color: color-mix(in srgb, var(--destructive) 14%, transparent);
|
|
73
|
-
/* Deepened toward the foreground, as a status Tag's text is, to keep 4.5:1 on its own wash. */
|
|
74
|
-
--button-destructive-color: color-mix(in oklab, var(--destructive), var(--foreground) 12%);
|
|
75
|
-
--ExcTextField--color: var(--foreground);
|
|
76
|
-
--ExcTextField--label-color: var(--foreground);
|
|
77
|
-
--ExcTextField--background: var(--field-surface);
|
|
78
|
-
--ExcTextField--border: var(--field-edge);
|
|
79
|
-
--ExcTextField--border-hover: var(--field-edge);
|
|
80
|
-
--ExcTextField--border-active: var(--control-focus);
|
|
81
|
-
--ExcTextField--placeholder: var(--control-muted);
|
|
82
|
-
--ExcTextField--readonly--background: var(--control-surface);
|
|
83
|
-
--ExcTextField--readonly--border: var(--field-edge);
|
|
84
|
-
--RadioGroup-background: var(--field-surface);
|
|
85
|
-
--RadioGroup-border: var(--field-edge);
|
|
86
|
-
--RadioGroup-choice-color-off: var(--foreground-soft);
|
|
87
|
-
--RadioGroup-choice-color-off-hover: var(--foreground);
|
|
88
|
-
--RadioGroup-choice-background-off: transparent;
|
|
89
|
-
--RadioGroup-choice-background-off-active: var(--control-hover);
|
|
90
|
-
--RadioGroup-choice-color-on: var(--foreground);
|
|
91
|
-
--RadioGroup-choice-background-on: var(--control-surface);
|
|
92
|
-
--RadioGroup-choice-background-on-hover: var(--control-hover);
|
|
93
|
-
--RadioGroup-choice-background-on-active: var(--control-hover);
|
|
94
|
-
--Switch-track-background: var(--field-surface);
|
|
95
|
-
--Switch-thumb-background: var(--muted-foreground);
|
|
96
|
-
--Switch-hover-background: var(--field-edge);
|
|
97
|
-
--Switch-active-background: var(--control-focus);
|
|
98
|
-
|
|
99
|
-
/* ── Shape and type ── */
|
|
100
|
-
--ui-font: var(--font-body);
|
|
101
|
-
--border-radius-md: var(--radius-item);
|
|
102
|
-
--border-radius-lg: var(--radius-button);
|
|
103
|
-
--space-factor: 0.25rem;
|
|
104
|
-
--shadow-island:
|
|
105
|
-
0 0 0 1px var(--control-edge),
|
|
106
|
-
inset 0 1px 0 var(--control-highlight),
|
|
107
|
-
0 6px 20px #00000014,
|
|
108
|
-
0 1px 3px #0000000f;
|
|
109
|
-
--modal-shadow:
|
|
110
|
-
0 0 0 1px var(--control-edge),
|
|
111
|
-
0 24px 64px #0000003d,
|
|
112
|
-
0 2px 6px #0000001a;
|
|
113
|
-
--sidebar-shadow: -12px 0 32px #0000001f;
|
|
114
|
-
--library-dropdown-shadow: var(--shadow-island);
|
|
115
|
-
font-family: var(--font-body);
|
|
116
|
-
|
|
117
|
-
/* ── Islands and popups: the menu material at 12px ── */
|
|
118
|
-
& :is(.Island, .dropdown-menu-container, .picker, .popover > .Island) {
|
|
119
|
-
border: 1px solid var(--field-edge);
|
|
120
|
-
border-radius: var(--radius-button);
|
|
121
|
-
background-color: var(--control-menu);
|
|
122
|
-
box-shadow: var(--shadow-island);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* ── Tools: flat and muted at rest, brighter on hover, risen when picked ── */
|
|
126
|
-
& .ToolIcon__icon {
|
|
127
|
-
border-radius: var(--radius-item);
|
|
128
|
-
color: var(--foreground-soft);
|
|
129
|
-
transition:
|
|
130
|
-
background-color var(--duration) var(--ease),
|
|
131
|
-
color var(--duration) var(--ease),
|
|
132
|
-
box-shadow var(--duration) var(--ease);
|
|
133
|
-
}
|
|
134
|
-
& .ToolIcon:hover .ToolIcon__icon {
|
|
135
|
-
color: var(--foreground);
|
|
136
|
-
}
|
|
137
|
-
& :is(.ToolIcon_type_radio, .ToolIcon_type_checkbox):checked + .ToolIcon__icon,
|
|
138
|
-
& .ToolIcon.active .ToolIcon__icon {
|
|
139
|
-
color: var(--foreground);
|
|
140
|
-
background-color: var(--control-hover);
|
|
141
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
142
|
-
box-shadow:
|
|
143
|
-
0 0 0 1px var(--control-edge),
|
|
144
|
-
inset 0 1px 0 var(--control-highlight),
|
|
145
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
146
|
-
}
|
|
147
|
-
& .ToolIcon__icon svg {
|
|
148
|
-
stroke-width: 1.5;
|
|
149
|
-
}
|
|
150
|
-
& .ToolIcon__keybinding {
|
|
151
|
-
font-family: var(--font-mono);
|
|
152
|
-
font-size: 9px;
|
|
153
|
-
}
|
|
154
|
-
& .HintViewer {
|
|
155
|
-
font-family: var(--font-mono);
|
|
156
|
-
font-size: 11px;
|
|
157
|
-
color: var(--muted-foreground);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* ── Raised keys: the menu, library and help buttons ── */
|
|
161
|
-
& :is(.dropdown-menu-button, .sidebar-trigger, .help-icon) {
|
|
162
|
-
border: 1px solid transparent;
|
|
163
|
-
border-radius: var(--radius-button);
|
|
164
|
-
background-color: var(--control-surface);
|
|
165
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
166
|
-
box-shadow:
|
|
167
|
-
0 0 0 1px var(--control-edge),
|
|
168
|
-
inset 0 1px 0 var(--control-highlight),
|
|
169
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
170
|
-
color: var(--foreground);
|
|
171
|
-
transition: background-color var(--duration) var(--ease);
|
|
172
|
-
|
|
173
|
-
&:hover {
|
|
174
|
-
background-color: var(--control-hover);
|
|
175
|
-
}
|
|
176
|
-
&:active {
|
|
177
|
-
box-shadow:
|
|
178
|
-
0 0 0 1px var(--control-edge),
|
|
179
|
-
inset 0 2px 4px #0000002e,
|
|
180
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
& .sidebar-trigger {
|
|
184
|
-
font-family: var(--font-mono);
|
|
185
|
-
font-size: 12px;
|
|
186
|
-
font-weight: 400;
|
|
187
|
-
letter-spacing: 0.02em;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/* ── Zoom and undo: joined raised keys, like a ButtonGroup of secondaries ── */
|
|
191
|
-
& :is(.zoom-actions, .undo-redo-buttons) {
|
|
192
|
-
gap: 0;
|
|
193
|
-
border-radius: var(--radius-button);
|
|
194
|
-
background: none;
|
|
195
|
-
box-shadow: none;
|
|
196
|
-
}
|
|
197
|
-
& :is(.zoom-button, .undo-redo-buttons button, .reset-zoom-button) {
|
|
198
|
-
width: var(--control-h) !important;
|
|
199
|
-
height: var(--control-h) !important;
|
|
200
|
-
border: 1px solid transparent !important;
|
|
201
|
-
border-radius: 0 !important;
|
|
202
|
-
background-color: var(--control-surface) !important;
|
|
203
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
204
|
-
box-shadow:
|
|
205
|
-
0 0 0 1px var(--control-edge),
|
|
206
|
-
inset 0 1px 0 var(--control-highlight),
|
|
207
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
208
|
-
color: var(--foreground);
|
|
209
|
-
transition: background-color var(--duration) var(--ease);
|
|
210
|
-
|
|
211
|
-
&:hover:not(:disabled) {
|
|
212
|
-
background-color: var(--control-hover) !important;
|
|
213
|
-
}
|
|
214
|
-
&:active:not(:disabled) {
|
|
215
|
-
box-shadow:
|
|
216
|
-
0 0 0 1px var(--control-edge),
|
|
217
|
-
inset 0 2px 4px #0000002e,
|
|
218
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
219
|
-
}
|
|
220
|
-
&:disabled {
|
|
221
|
-
color: var(--control-muted);
|
|
222
|
-
}
|
|
223
|
-
& .ToolIcon__icon {
|
|
224
|
-
background: none !important;
|
|
225
|
-
box-shadow: none !important;
|
|
226
|
-
}
|
|
227
|
-
& svg {
|
|
228
|
-
width: 16px !important;
|
|
229
|
-
height: 16px !important;
|
|
230
|
-
stroke-width: 1.5;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
& .reset-zoom-button {
|
|
234
|
-
width: auto !important;
|
|
235
|
-
min-width: 58px;
|
|
236
|
-
padding: 0 10px !important;
|
|
237
|
-
font-family: var(--font-mono) !important;
|
|
238
|
-
font-size: 12px !important;
|
|
239
|
-
font-weight: 400 !important;
|
|
240
|
-
font-variant-numeric: tabular-nums;
|
|
241
|
-
}
|
|
242
|
-
& :is(.zoom-out-button, .undo-redo-buttons .undo-button-container button) {
|
|
243
|
-
border-top-left-radius: var(--radius-button) !important;
|
|
244
|
-
border-bottom-left-radius: var(--radius-button) !important;
|
|
245
|
-
}
|
|
246
|
-
& :is(.zoom-in-button, .undo-redo-buttons .redo-button-container button) {
|
|
247
|
-
border-top-right-radius: var(--radius-button) !important;
|
|
248
|
-
border-bottom-right-radius: var(--radius-button) !important;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/* ── The right-click menu: the ContextMenu — menu material at 12px, a 4px inset, dense 30px
|
|
252
|
-
items at 7px that lift on hover, mono shortcuts, hairline separators. Never taller than the
|
|
253
|
-
board: a long menu scrolls. ── */
|
|
254
|
-
& .context-menu {
|
|
255
|
-
min-width: 13rem;
|
|
256
|
-
max-height: calc(var(--whiteboard-height, 100vh) - 16px);
|
|
257
|
-
margin: 0;
|
|
258
|
-
padding: 4px;
|
|
259
|
-
overflow-y: auto;
|
|
260
|
-
overscroll-behavior: contain;
|
|
261
|
-
border: 1px solid var(--field-edge);
|
|
262
|
-
border-radius: var(--radius-button);
|
|
263
|
-
background-color: var(--control-menu);
|
|
264
|
-
box-shadow:
|
|
265
|
-
0 0 0 1px var(--control-edge),
|
|
266
|
-
inset 0 1px 0 var(--control-highlight),
|
|
267
|
-
0 12px 32px #0003,
|
|
268
|
-
0 2px 6px #0000001a;
|
|
269
|
-
font-family: var(--font-body);
|
|
270
|
-
animation: whiteboard-panel-in var(--duration) var(--ease);
|
|
271
|
-
}
|
|
272
|
-
& .context-menu-item {
|
|
273
|
-
display: flex;
|
|
274
|
-
align-items: center;
|
|
275
|
-
gap: 16px;
|
|
276
|
-
min-height: var(--control-h-sm);
|
|
277
|
-
padding: 0 10px;
|
|
278
|
-
border: 1px solid transparent;
|
|
279
|
-
border-radius: var(--radius-item);
|
|
280
|
-
color: var(--foreground-soft);
|
|
281
|
-
font-size: 13px;
|
|
282
|
-
font-weight: 400;
|
|
283
|
-
line-height: 1.2;
|
|
284
|
-
|
|
285
|
-
&:is(:hover, :focus-visible) {
|
|
286
|
-
color: var(--foreground);
|
|
287
|
-
background-color: var(--control-hover);
|
|
288
|
-
border-color: var(--control-inner-edge);
|
|
289
|
-
box-shadow: var(--shadow-highlight);
|
|
290
|
-
}
|
|
291
|
-
&:focus-visible {
|
|
292
|
-
outline: 2px solid var(--control-focus);
|
|
293
|
-
outline-offset: 0;
|
|
294
|
-
}
|
|
295
|
-
&.checkmark::before {
|
|
296
|
-
left: 10px;
|
|
297
|
-
margin: 0;
|
|
298
|
-
font-size: 12px;
|
|
299
|
-
color: var(--foreground);
|
|
300
|
-
}
|
|
301
|
-
&.dangerous .context-menu-item__label,
|
|
302
|
-
&.dangerous:hover .context-menu-item__label {
|
|
303
|
-
color: color-mix(in oklab, var(--destructive), var(--foreground) 12%);
|
|
304
|
-
}
|
|
305
|
-
&.dangerous:hover {
|
|
306
|
-
background-color: color-mix(in srgb, var(--destructive) 12%, transparent);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
/* Room for a tick only when the menu has one ("Snap to objects" when it is on). */
|
|
310
|
-
& .context-menu:has(.checkmark) .context-menu-item {
|
|
311
|
-
padding-left: 28px;
|
|
312
|
-
}
|
|
313
|
-
& .context-menu button {
|
|
314
|
-
color: var(--foreground-soft);
|
|
315
|
-
}
|
|
316
|
-
& .context-menu-item__label {
|
|
317
|
-
margin-inline-end: 0;
|
|
318
|
-
}
|
|
319
|
-
& .context-menu-item__shortcut {
|
|
320
|
-
margin-left: auto;
|
|
321
|
-
font-family: var(--font-mono);
|
|
322
|
-
font-size: 11px;
|
|
323
|
-
color: var(--muted-foreground);
|
|
324
|
-
opacity: 1;
|
|
325
|
-
}
|
|
326
|
-
& .context-menu-item-separator {
|
|
327
|
-
margin: 4px -4px;
|
|
328
|
-
border: 0;
|
|
329
|
-
border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/* ── Menus: 7px items in Licht Sans 13px, mono shortcuts ── */
|
|
333
|
-
& .dropdown-menu .dropdown-menu-container {
|
|
334
|
-
padding: 4px;
|
|
335
|
-
}
|
|
336
|
-
& .dropdown-menu .dropdown-menu-item {
|
|
337
|
-
height: var(--control-h-sm);
|
|
338
|
-
border-radius: var(--radius-item);
|
|
339
|
-
font-size: 13px;
|
|
340
|
-
|
|
341
|
-
&:hover,
|
|
342
|
-
&.dropdown-menu-item--hovered {
|
|
343
|
-
background-color: var(--control-hover) !important;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
& .dropdown-menu .dropdown-menu-item--selected {
|
|
347
|
-
background-color: var(--control-hover) !important;
|
|
348
|
-
}
|
|
349
|
-
& .dropdown-menu .dropdown-menu-item__shortcut {
|
|
350
|
-
font-family: var(--font-mono);
|
|
351
|
-
font-size: 11px;
|
|
352
|
-
color: var(--muted-foreground);
|
|
353
|
-
opacity: 1;
|
|
354
|
-
}
|
|
355
|
-
& .dropdown-menu-group-title {
|
|
356
|
-
font-family: var(--font-mono);
|
|
357
|
-
font-size: 11px;
|
|
358
|
-
font-weight: 400;
|
|
359
|
-
letter-spacing: 0.04em;
|
|
360
|
-
text-transform: uppercase;
|
|
361
|
-
color: var(--muted-foreground);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/* ── The style panel: eyebrow titles, segmented choices, square swatches ── */
|
|
365
|
-
& .App-menu__left :is(h3, legend, .control-label),
|
|
366
|
-
& .color-picker__heading,
|
|
367
|
-
& .color-picker-content--canvas-title,
|
|
368
|
-
& .picker-collapsible {
|
|
369
|
-
font-family: var(--font-mono);
|
|
370
|
-
font-size: 11px;
|
|
371
|
-
font-weight: 400;
|
|
372
|
-
letter-spacing: 0.04em;
|
|
373
|
-
text-transform: uppercase;
|
|
374
|
-
color: var(--muted-foreground);
|
|
375
|
-
}
|
|
376
|
-
& .panelColumn .buttonList {
|
|
377
|
-
gap: 2px;
|
|
378
|
-
width: fit-content;
|
|
379
|
-
padding: 3px;
|
|
380
|
-
border: 1px solid var(--field-edge);
|
|
381
|
-
border-radius: var(--radius-control);
|
|
382
|
-
background-color: var(--field-surface);
|
|
383
|
-
box-shadow: inset 0 1px 2px var(--field-inset);
|
|
384
|
-
}
|
|
385
|
-
& .panelColumn .buttonList :is(label, .ToolIcon, button) {
|
|
386
|
-
border: 0;
|
|
387
|
-
border-radius: var(--radius-item);
|
|
388
|
-
}
|
|
389
|
-
& .panelColumn .buttonList .ToolIcon__icon,
|
|
390
|
-
& .panelColumn .buttonList label {
|
|
391
|
-
width: var(--control-h-sm);
|
|
392
|
-
height: var(--control-h-sm);
|
|
393
|
-
border-radius: var(--radius-item);
|
|
394
|
-
background: transparent;
|
|
395
|
-
box-shadow: none;
|
|
396
|
-
}
|
|
397
|
-
& .panelColumn .buttonList :is(label.active, label:has(input:checked)),
|
|
398
|
-
& .panelColumn .buttonList .ToolIcon:has(input:checked) .ToolIcon__icon {
|
|
399
|
-
background-color: var(--control-surface);
|
|
400
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
401
|
-
box-shadow:
|
|
402
|
-
0 0 0 1px var(--control-edge),
|
|
403
|
-
inset 0 1px 0 var(--control-highlight),
|
|
404
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
405
|
-
}
|
|
406
|
-
& .color-picker__button {
|
|
407
|
-
--radius: var(--radius-checkbox);
|
|
408
|
-
border-color: var(--field-edge);
|
|
409
|
-
}
|
|
410
|
-
& .color-picker__button.active .color-picker__button-outline,
|
|
411
|
-
& .color-picker__button:hover::after {
|
|
412
|
-
box-shadow: 0 0 0 1.5px var(--control-focus);
|
|
413
|
-
}
|
|
414
|
-
& .color-picker__button__hotkey-label {
|
|
415
|
-
font-family: var(--font-mono);
|
|
416
|
-
font-size: 10px;
|
|
417
|
-
}
|
|
418
|
-
& .color-picker__input-label {
|
|
419
|
-
height: var(--control-h);
|
|
420
|
-
margin: 4px 8px;
|
|
421
|
-
border: 1px solid var(--field-edge);
|
|
422
|
-
border-radius: var(--radius-control);
|
|
423
|
-
background-color: var(--field-surface);
|
|
424
|
-
box-shadow: inset 0 1px 2px var(--field-inset);
|
|
425
|
-
font-family: var(--font-mono);
|
|
426
|
-
font-size: 13px;
|
|
427
|
-
|
|
428
|
-
&:focus-within {
|
|
429
|
-
border-color: var(--control-focus);
|
|
430
|
-
border-radius: var(--radius-control);
|
|
431
|
-
box-shadow: none;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
& :is(.color-picker__input, .color-picker__input-label input) {
|
|
435
|
-
font-family: var(--font-mono);
|
|
436
|
-
font-size: 13px;
|
|
437
|
-
}
|
|
438
|
-
& input[type="range"] {
|
|
439
|
-
accent-color: var(--foreground);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/* Layers and actions are commands, not choices: a dense toolbar row — flat, muted buttons that
|
|
443
|
-
brighten on hover. */
|
|
444
|
-
& .panelColumn .buttonList:has(> .zIndexButton, > .ToolIcon_type_button) {
|
|
445
|
-
padding: 0;
|
|
446
|
-
border: 0;
|
|
447
|
-
background: none;
|
|
448
|
-
box-shadow: none;
|
|
449
|
-
}
|
|
450
|
-
& .panelColumn .buttonList :is(.zIndexButton, .ToolIcon_type_button) {
|
|
451
|
-
width: var(--control-h-sm);
|
|
452
|
-
height: var(--control-h-sm);
|
|
453
|
-
padding: 0;
|
|
454
|
-
border: 0;
|
|
455
|
-
border-radius: var(--radius-item);
|
|
456
|
-
background: transparent;
|
|
457
|
-
color: var(--foreground-soft);
|
|
458
|
-
transition:
|
|
459
|
-
background-color var(--duration) var(--ease),
|
|
460
|
-
color var(--duration) var(--ease);
|
|
461
|
-
|
|
462
|
-
&:hover {
|
|
463
|
-
color: var(--foreground);
|
|
464
|
-
background-color: var(--control-hover);
|
|
465
|
-
}
|
|
466
|
-
&:active {
|
|
467
|
-
box-shadow: inset 0 2px 4px #0000002e;
|
|
468
|
-
}
|
|
469
|
-
& .ToolIcon__icon {
|
|
470
|
-
width: 100%;
|
|
471
|
-
height: 100%;
|
|
472
|
-
background: none;
|
|
473
|
-
box-shadow: none;
|
|
474
|
-
}
|
|
475
|
-
& svg {
|
|
476
|
-
width: 16px;
|
|
477
|
-
height: 16px;
|
|
478
|
-
stroke-width: 1.5;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/* Opacity: the Slider — a recessed 6px track, a soft fill and a raised 18px thumb. */
|
|
483
|
-
& .range-wrapper {
|
|
484
|
-
padding: 8px 2px 24px;
|
|
485
|
-
}
|
|
486
|
-
& .range-input {
|
|
487
|
-
--color-slider-track: var(--foreground-soft);
|
|
488
|
-
--button-bg: var(--field-surface);
|
|
489
|
-
height: 6px;
|
|
490
|
-
border-radius: 999px;
|
|
491
|
-
box-shadow:
|
|
492
|
-
inset 0 0 0 1px var(--field-edge),
|
|
493
|
-
inset 0 1px 2px var(--field-inset);
|
|
494
|
-
cursor: pointer;
|
|
495
|
-
|
|
496
|
-
&::-webkit-slider-thumb {
|
|
497
|
-
width: 18px;
|
|
498
|
-
height: 18px;
|
|
499
|
-
border-radius: 50%;
|
|
500
|
-
background: var(--control-surface) linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
501
|
-
box-shadow: var(--shadow-thumb);
|
|
502
|
-
cursor: grab;
|
|
503
|
-
}
|
|
504
|
-
&::-moz-range-thumb {
|
|
505
|
-
width: 18px;
|
|
506
|
-
height: 18px;
|
|
507
|
-
border: 0;
|
|
508
|
-
border-radius: 50%;
|
|
509
|
-
background: var(--control-surface) linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
510
|
-
box-shadow: var(--shadow-thumb);
|
|
511
|
-
cursor: grab;
|
|
512
|
-
}
|
|
513
|
-
&:focus-visible {
|
|
514
|
-
outline: 2px solid var(--control-focus);
|
|
515
|
-
outline-offset: 2px;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
& :is(.value-bubble, .zero-label) {
|
|
519
|
-
font-family: var(--font-mono);
|
|
520
|
-
font-size: 11px;
|
|
521
|
-
font-variant-numeric: tabular-nums;
|
|
522
|
-
color: var(--muted-foreground);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
/* Fonts: text on the canvas is set in Licht (excalidrawAssets() swaps the files). Each quick
|
|
526
|
-
button shows its face as "Aa" — set in Excalidraw's family name, so it is the very face the
|
|
527
|
-
canvas uses — and the list names the Licht faces without Excalidraw's icons or its search. */
|
|
528
|
-
& .FontPicker__container [data-testid^="font-family-"]:not([data-testid="font-family-show-fonts"]) {
|
|
529
|
-
& svg {
|
|
530
|
-
display: none;
|
|
531
|
-
}
|
|
532
|
-
&::before {
|
|
533
|
-
font-size: 14px;
|
|
534
|
-
line-height: 1;
|
|
535
|
-
content: "Aa";
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
& [data-testid="font-family-hand-drawn"]::before {
|
|
539
|
-
font-family: Excalifont, var(--font-heading);
|
|
540
|
-
}
|
|
541
|
-
& [data-testid="font-family-normal"]::before {
|
|
542
|
-
font-family: Nunito, var(--font-body);
|
|
543
|
-
}
|
|
544
|
-
& [data-testid="font-family-code"]::before {
|
|
545
|
-
font-family: "Comic Shanns", var(--font-mono);
|
|
546
|
-
}
|
|
547
|
-
& .dropdown-menu.fonts .dropdown-menu-item__icon,
|
|
548
|
-
& :has(> .dropdown-menu.fonts) > .QuickSearch__wrapper,
|
|
549
|
-
& .QuickSearch__wrapper:has(+ .dropdown-menu.fonts) {
|
|
550
|
-
display: none;
|
|
551
|
-
}
|
|
552
|
-
& .dropdown-menu.fonts .dropdown-menu-item__text {
|
|
553
|
-
font-size: 15px;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
/* Our own Library and Find panels replace Excalidraw's sidebar, and help lives in the menu
|
|
557
|
-
and on "?": its sidebar, its trigger and the help button never show. */
|
|
558
|
-
& :is(.sidebar, .default-sidebar-trigger, .help-icon) {
|
|
559
|
-
display: none !important;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
/* ── Fields: recessed, 10px corners ── */
|
|
563
|
-
& .ExcTextField__input {
|
|
564
|
-
height: var(--control-h);
|
|
565
|
-
border-radius: var(--radius-control);
|
|
566
|
-
box-shadow: inset 0 1px 2px var(--field-inset);
|
|
567
|
-
|
|
568
|
-
& input {
|
|
569
|
-
font-family: var(--font-body);
|
|
570
|
-
font-size: 14px;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
& .ExcTextField__label {
|
|
574
|
-
font-family: var(--font-mono);
|
|
575
|
-
font-size: 11px;
|
|
576
|
-
font-weight: 400;
|
|
577
|
-
letter-spacing: 0.04em;
|
|
578
|
-
text-transform: uppercase;
|
|
579
|
-
color: var(--muted-foreground);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/* ── The sidebar: a square region, segmented tabs, Licht section titles ── */
|
|
583
|
-
& .sidebar {
|
|
584
|
-
border-left: 1px solid var(--field-edge);
|
|
585
|
-
}
|
|
586
|
-
& .default-sidebar .sidebar-triggers {
|
|
587
|
-
gap: 2px;
|
|
588
|
-
padding: 3px;
|
|
589
|
-
border: 1px solid var(--field-edge);
|
|
590
|
-
border-radius: var(--radius-button);
|
|
591
|
-
background: var(--field-surface);
|
|
592
|
-
box-shadow: inset 0 1px 2px var(--field-inset);
|
|
593
|
-
}
|
|
594
|
-
& .default-sidebar .sidebar-triggers .sidebar-tab-trigger {
|
|
595
|
-
--button-bg: transparent;
|
|
596
|
-
--button-hover-bg: transparent;
|
|
597
|
-
--button-hover-color: var(--foreground);
|
|
598
|
-
--button-hover-border: transparent;
|
|
599
|
-
width: var(--control-h-sm);
|
|
600
|
-
height: var(--control-h-sm);
|
|
601
|
-
padding: 0;
|
|
602
|
-
border: 1px solid transparent;
|
|
603
|
-
border-radius: var(--radius-item);
|
|
604
|
-
color: var(--foreground-soft);
|
|
605
|
-
|
|
606
|
-
& svg {
|
|
607
|
-
width: 16px;
|
|
608
|
-
height: 16px;
|
|
609
|
-
}
|
|
610
|
-
&[data-state="active"] {
|
|
611
|
-
--button-bg: var(--control-surface);
|
|
612
|
-
--button-hover-bg: var(--control-hover);
|
|
613
|
-
--button-hover-color: var(--foreground);
|
|
614
|
-
--button-border: transparent;
|
|
615
|
-
color: var(--foreground);
|
|
616
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
617
|
-
box-shadow:
|
|
618
|
-
0 0 0 1px var(--control-edge),
|
|
619
|
-
inset 0 1px 0 var(--control-highlight),
|
|
620
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
& .sidebar__header__buttons button {
|
|
624
|
-
border: 0;
|
|
625
|
-
border-radius: var(--radius-item);
|
|
626
|
-
color: var(--foreground-soft);
|
|
627
|
-
|
|
628
|
-
&:hover {
|
|
629
|
-
color: var(--foreground);
|
|
630
|
-
}
|
|
631
|
-
& svg {
|
|
632
|
-
width: 16px;
|
|
633
|
-
height: 16px;
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
& :is(.library-menu-items-container__header, .library-menu-items__no-items__label) {
|
|
637
|
-
font-family: var(--font-heading);
|
|
638
|
-
font-size: 20px;
|
|
639
|
-
font-weight: 300;
|
|
640
|
-
color: var(--foreground);
|
|
641
|
-
}
|
|
642
|
-
& .library-menu-items__no-items {
|
|
643
|
-
font-size: 13px;
|
|
644
|
-
color: var(--muted-foreground);
|
|
645
|
-
}
|
|
646
|
-
& .library-unit {
|
|
647
|
-
border: 1px solid var(--field-edge);
|
|
648
|
-
border-radius: var(--radius-control);
|
|
649
|
-
background-color: var(--field-surface);
|
|
650
|
-
}
|
|
651
|
-
& :is(.library-unit--hover, .library-unit--selected) {
|
|
652
|
-
border-color: var(--control-focus);
|
|
653
|
-
}
|
|
654
|
-
& .library-unit__adder {
|
|
655
|
-
border-radius: var(--radius-item);
|
|
656
|
-
background-color: var(--control-surface);
|
|
657
|
-
box-shadow: 0 0 0 1px var(--control-edge);
|
|
658
|
-
animation: none;
|
|
659
|
-
|
|
660
|
-
& svg {
|
|
661
|
-
color: var(--foreground);
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
/* Excalidraw's public library lives on its own site: left out, like its other links. */
|
|
665
|
-
& :is(.library-menu-browse-button, .library-menu-items-container__header--excal) {
|
|
666
|
-
display: none;
|
|
667
|
-
}
|
|
668
|
-
& .library-menu-control-buttons--at-bottom::before {
|
|
669
|
-
display: none;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
/* ── Checkboxes and switches ── */
|
|
673
|
-
& .Checkbox .Checkbox-box {
|
|
674
|
-
width: 18px;
|
|
675
|
-
height: 18px;
|
|
676
|
-
border-radius: var(--radius-checkbox);
|
|
677
|
-
background-color: var(--field-surface);
|
|
678
|
-
box-shadow: inset 0 0 0 1px var(--field-edge) !important;
|
|
679
|
-
color: var(--primary-text);
|
|
680
|
-
}
|
|
681
|
-
& .Checkbox.is-checked .Checkbox-box {
|
|
682
|
-
background-color: var(--primary-fill) !important;
|
|
683
|
-
}
|
|
684
|
-
& .Checkbox:hover:not(.is-checked) .Checkbox-box:not(:focus) {
|
|
685
|
-
box-shadow: inset 0 0 0 1px var(--muted-foreground) !important;
|
|
686
|
-
}
|
|
687
|
-
& .Switch.toggled {
|
|
688
|
-
background: var(--primary-fill);
|
|
689
|
-
border-color: var(--primary-fill);
|
|
690
|
-
|
|
691
|
-
&::before {
|
|
692
|
-
background: var(--primary-text);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/* ── Buttons in dialogs: primary is the layered fill, the rest raised ── */
|
|
697
|
-
& .ExcButton {
|
|
698
|
-
min-height: var(--control-h);
|
|
699
|
-
border-radius: var(--radius-button);
|
|
700
|
-
font-family: var(--font-body);
|
|
701
|
-
font-weight: 500;
|
|
702
|
-
}
|
|
703
|
-
& :is(.ExcButton--color-primary.ExcButton--variant-filled, .Dialog__action-button--primary) {
|
|
704
|
-
--text-color: var(--primary-text);
|
|
705
|
-
--back-color: var(--primary-fill);
|
|
706
|
-
color: var(--primary-text);
|
|
707
|
-
background-color: var(--primary-fill);
|
|
708
|
-
border-color: transparent;
|
|
709
|
-
box-shadow: var(--primary-shadow);
|
|
710
|
-
}
|
|
711
|
-
& :is(.ExcButton--variant-outlined, .Dialog__action-button:not(.Dialog__action-button--primary, .Dialog__action-button--danger)) {
|
|
712
|
-
--text-color: var(--foreground);
|
|
713
|
-
--border-color: transparent;
|
|
714
|
-
--back-color: var(--control-surface);
|
|
715
|
-
border-radius: var(--radius-button);
|
|
716
|
-
box-shadow:
|
|
717
|
-
0 0 0 1px var(--control-edge),
|
|
718
|
-
inset 0 1px 0 var(--control-highlight);
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
/* ── Dialogs: the 20px card over a quiet backdrop, a Licht title ── */
|
|
722
|
-
& .Modal__background {
|
|
723
|
-
background-color: color-mix(in srgb, var(--background) 55%, transparent);
|
|
724
|
-
backdrop-filter: blur(2px);
|
|
725
|
-
}
|
|
726
|
-
& .Modal__content {
|
|
727
|
-
border: 1px solid var(--field-edge);
|
|
728
|
-
border-radius: var(--radius-card);
|
|
729
|
-
background: linear-gradient(160deg, var(--control-surface), var(--field-surface) 55%);
|
|
730
|
-
box-shadow: var(--modal-shadow);
|
|
731
|
-
}
|
|
732
|
-
& .Modal .Island {
|
|
733
|
-
border: 0;
|
|
734
|
-
background: transparent;
|
|
735
|
-
box-shadow: none;
|
|
736
|
-
}
|
|
737
|
-
& .Dialog__title {
|
|
738
|
-
font-family: var(--font-heading);
|
|
739
|
-
font-size: 28px;
|
|
740
|
-
font-weight: 300;
|
|
741
|
-
letter-spacing: -0.01em;
|
|
742
|
-
border-bottom-color: var(--field-edge);
|
|
743
|
-
}
|
|
744
|
-
& :is(.Modal__close, .Dialog__close) {
|
|
745
|
-
border-radius: var(--radius-item);
|
|
746
|
-
color: var(--muted-foreground);
|
|
747
|
-
|
|
748
|
-
&:hover {
|
|
749
|
-
color: var(--foreground);
|
|
750
|
-
background-color: var(--control-hover);
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/* Help: shortcuts as hairline-ruled lists with Kbd keys, and none of Excalidraw's links. */
|
|
755
|
-
& .HelpDialog__header {
|
|
756
|
-
display: none;
|
|
757
|
-
}
|
|
758
|
-
& .HelpDialog h3,
|
|
759
|
-
& .HelpDialog__island h4 {
|
|
760
|
-
font-family: var(--font-mono);
|
|
761
|
-
font-size: 11px;
|
|
762
|
-
font-weight: 400;
|
|
763
|
-
letter-spacing: 0.04em;
|
|
764
|
-
text-transform: uppercase;
|
|
765
|
-
color: var(--muted-foreground);
|
|
766
|
-
}
|
|
767
|
-
& .HelpDialog__island-content {
|
|
768
|
-
border-color: var(--field-edge);
|
|
769
|
-
border-radius: var(--radius-control);
|
|
770
|
-
background-color: var(--field-surface);
|
|
771
|
-
}
|
|
772
|
-
& .HelpDialog__shortcut {
|
|
773
|
-
min-height: var(--control-h);
|
|
774
|
-
border-bottom-color: color-mix(in srgb, var(--border) 60%, transparent);
|
|
775
|
-
font-size: 13px;
|
|
776
|
-
color: var(--foreground-soft);
|
|
777
|
-
}
|
|
778
|
-
& .color-picker-content :is(.color-picker__heading + div, .color-picker__shades-empty) {
|
|
779
|
-
font-size: 12px;
|
|
780
|
-
font-weight: 400;
|
|
781
|
-
color: var(--muted-foreground);
|
|
782
|
-
}
|
|
783
|
-
& .HelpDialog__key {
|
|
784
|
-
min-width: 20px;
|
|
785
|
-
min-height: 20px;
|
|
786
|
-
justify-content: center;
|
|
787
|
-
padding: 0 6px;
|
|
788
|
-
border-radius: var(--radius-checkbox);
|
|
789
|
-
background-color: var(--control-surface);
|
|
790
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
791
|
-
box-shadow: var(--shadow-key);
|
|
792
|
-
font-family: var(--font-mono);
|
|
793
|
-
font-size: 11px;
|
|
794
|
-
color: var(--foreground-soft);
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
/* Export: setting labels in Licht Sans, previews on the field. */
|
|
798
|
-
& .ImageExportModal__settings__setting__label {
|
|
799
|
-
font-family: var(--font-body);
|
|
800
|
-
font-size: 14px;
|
|
801
|
-
font-weight: 500;
|
|
802
|
-
}
|
|
803
|
-
& .ImageExportModal h3 {
|
|
804
|
-
font-family: var(--font-heading);
|
|
805
|
-
font-size: 24px;
|
|
806
|
-
font-weight: 300;
|
|
807
|
-
}
|
|
808
|
-
/* One primary per view: the first export is the primary, the others raised. */
|
|
809
|
-
& .ImageExportModal__settings__buttons .ExcButton:not(:first-child) {
|
|
810
|
-
--text-color: var(--foreground);
|
|
811
|
-
--back-color: var(--control-surface);
|
|
812
|
-
color: var(--foreground);
|
|
813
|
-
background-color: var(--control-surface);
|
|
814
|
-
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
815
|
-
box-shadow:
|
|
816
|
-
0 0 0 1px var(--control-edge),
|
|
817
|
-
inset 0 1px 0 var(--control-highlight),
|
|
818
|
-
inset 0 0 0 1px var(--control-inner-edge);
|
|
819
|
-
text-shadow: none;
|
|
820
|
-
}
|
|
821
|
-
& .ImageExportModal__preview__canvas {
|
|
822
|
-
border-radius: var(--radius-control);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
& kbd {
|
|
826
|
-
font-family: var(--font-mono);
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/* The welcome: a Licht headline and a mono line, not hand-written arrows. */
|
|
831
|
-
[data-slot="whiteboard"] .excalidraw.excalidraw .welcome-screen-center {
|
|
832
|
-
gap: 10px;
|
|
833
|
-
}
|
|
834
|
-
[data-slot="whiteboard"] .excalidraw.excalidraw .welcome-screen-center__heading {
|
|
835
|
-
font-family: var(--font-heading);
|
|
836
|
-
font-size: 28px;
|
|
837
|
-
font-weight: 300;
|
|
838
|
-
color: var(--foreground);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
/* The Library and Find panels arrive like a popup: a short fade and rise. */
|
|
842
|
-
[data-slot="whiteboard-panel"] {
|
|
843
|
-
animation: whiteboard-panel-in var(--duration) var(--ease);
|
|
844
|
-
}
|
|
845
|
-
@keyframes whiteboard-panel-in {
|
|
846
|
-
from {
|
|
847
|
-
opacity: 0;
|
|
848
|
-
transform: translateY(-4px);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
@media (prefers-reduced-motion: reduce) {
|
|
852
|
-
[data-slot="whiteboard-panel"] {
|
|
853
|
-
animation: none;
|
|
854
|
-
}
|
|
855
|
-
}
|