gooee 0.52.0 → 1.0.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.
- package/README.md +10 -3
- package/package.json +6 -2
- package/scripts/add.js +181 -42
- package/src/base.css +3 -1
- package/src/components/Accordion/Accordion.module.css +7 -5
- package/src/components/Accordion/Accordion.tsx +13 -11
- package/src/components/Accordion/Accordion.vue +16 -15
- package/src/components/Accordion/AccordionItem.vue +8 -7
- package/src/components/Alert/Alert.module.css +9 -7
- package/src/components/Alert/Alert.tsx +25 -16
- package/src/components/Alert/Alert.vue +31 -27
- package/src/components/AlertDialog/AlertDialog.module.css +2 -0
- package/src/components/AlertDialog/AlertDialog.tsx +8 -7
- package/src/components/AlertDialog/AlertDialog.vue +25 -23
- package/src/components/AnimatedNumber/AnimatedNumber.module.css +5 -3
- package/src/components/AnimatedNumber/AnimatedNumber.tsx +6 -6
- package/src/components/AnimatedNumber/AnimatedNumber.vue +5 -5
- package/src/components/AspectRatio/AspectRatio.module.css +2 -0
- package/src/components/AspectRatio/AspectRatio.tsx +3 -3
- package/src/components/AspectRatio/AspectRatio.vue +5 -8
- package/src/components/Avatar/Avatar.module.css +10 -8
- package/src/components/Avatar/Avatar.tsx +4 -3
- package/src/components/Avatar/Avatar.vue +17 -19
- package/src/components/Avatar/index.ts +0 -2
- package/src/components/AvatarGroup/AvatarGroup.module.css +11 -9
- package/src/components/AvatarGroup/AvatarGroup.tsx +4 -4
- package/src/components/AvatarGroup/AvatarGroup.vue +13 -16
- package/src/components/Badge/Badge.module.css +6 -4
- package/src/components/Badge/Badge.tsx +3 -3
- package/src/components/Badge/Badge.vue +15 -14
- package/src/components/Breadcrumb/Breadcrumb.module.css +5 -3
- package/src/components/Breadcrumb/Breadcrumb.tsx +20 -12
- package/src/components/Breadcrumb/Breadcrumb.vue +33 -25
- package/src/components/Button/Button.module.css +16 -14
- package/src/components/Button/Button.tsx +6 -4
- package/src/components/Button/Button.vue +42 -33
- package/src/components/ButtonGroup/ButtonGroup.module.css +2 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +1 -1
- package/src/components/ButtonGroup/ButtonGroup.vue +9 -12
- package/src/components/Card/Card.module.css +6 -4
- package/src/components/Card/Card.tsx +6 -6
- package/src/components/Card/Card.vue +18 -21
- package/src/components/Center/Center.module.css +2 -0
- package/src/components/Center/Center.tsx +1 -1
- package/src/components/Center/Center.vue +18 -15
- package/src/components/Checkbox/Checkbox.module.css +10 -8
- package/src/components/Checkbox/Checkbox.tsx +15 -9
- package/src/components/Checkbox/Checkbox.vue +29 -31
- package/src/components/CheckboxGroup/CheckboxGroup.module.css +3 -1
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +4 -4
- package/src/components/CheckboxGroup/CheckboxGroup.vue +33 -30
- package/src/components/Cluster/Cluster.module.css +2 -0
- package/src/components/Cluster/Cluster.tsx +1 -1
- package/src/components/Cluster/Cluster.vue +21 -17
- package/src/components/CodeBlock/CodeBlock.module.css +12 -10
- package/src/components/CodeBlock/CodeBlock.tsx +18 -10
- package/src/components/CodeBlock/CodeBlock.vue +30 -27
- package/src/components/CodeBlock/highlight.ts +1 -1
- package/src/components/Collapsible/Collapsible.module.css +7 -5
- package/src/components/Collapsible/Collapsible.tsx +7 -6
- package/src/components/Collapsible/Collapsible.vue +30 -26
- package/src/components/Container/Container.module.css +2 -0
- package/src/components/Container/Container.tsx +1 -1
- package/src/components/Container/Container.vue +13 -12
- package/src/components/CopyButton/CopyButton.module.css +20 -18
- package/src/components/CopyButton/CopyButton.tsx +21 -14
- package/src/components/CopyButton/CopyButton.vue +41 -31
- package/src/components/Dial/Dial.module.css +26 -11
- package/src/components/Dial/Dial.tsx +18 -18
- package/src/components/Dial/Dial.vue +57 -60
- package/src/components/Dialog/Dialog.module.css +4 -2
- package/src/components/Dialog/Dialog.tsx +22 -13
- package/src/components/Dialog/Dialog.vue +34 -30
- package/src/components/Divider/Divider.module.css +5 -3
- package/src/components/Divider/Divider.tsx +6 -4
- package/src/components/Divider/Divider.vue +13 -16
- package/src/components/DropdownMenu/DropdownMenu.module.css +8 -6
- package/src/components/DropdownMenu/DropdownMenu.tsx +12 -9
- package/src/components/DropdownMenu/DropdownMenu.vue +25 -28
- package/src/components/EmptyState/EmptyState.module.css +6 -4
- package/src/components/EmptyState/EmptyState.tsx +6 -6
- package/src/components/EmptyState/EmptyState.vue +14 -17
- package/src/components/Fab/Fab.module.css +19 -17
- package/src/components/Fab/Fab.tsx +11 -9
- package/src/components/Fab/Fab.vue +29 -26
- package/src/components/Fieldset/Fieldset.module.css +2 -0
- package/src/components/Fieldset/Fieldset.tsx +4 -3
- package/src/components/Fieldset/Fieldset.vue +4 -4
- package/src/components/FormField/FormField.module.css +5 -3
- package/src/components/FormField/FormField.tsx +7 -7
- package/src/components/FormField/FormField.vue +4 -4
- package/src/components/Grid/Grid.module.css +2 -0
- package/src/components/Grid/Grid.tsx +1 -1
- package/src/components/Grid/Grid.vue +25 -22
- package/src/components/HoldToConfirm/HoldToConfirm.module.css +13 -11
- package/src/components/HoldToConfirm/HoldToConfirm.tsx +11 -9
- package/src/components/HoldToConfirm/HoldToConfirm.vue +37 -32
- package/src/components/IconButton/IconButton.module.css +7 -5
- package/src/components/IconButton/IconButton.tsx +2 -1
- package/src/components/IconButton/IconButton.vue +15 -14
- package/src/components/Input/Input.module.css +12 -10
- package/src/components/Input/Input.tsx +9 -7
- package/src/components/Input/Input.vue +45 -35
- package/src/components/InputGroup/InputGroup.module.css +8 -6
- package/src/components/InputGroup/InputGroup.tsx +5 -4
- package/src/components/InputGroup/InputGroup.vue +41 -36
- package/src/components/Kbd/Kbd.module.css +9 -7
- package/src/components/Kbd/Kbd.tsx +1 -1
- package/src/components/Kbd/Kbd.vue +1 -1
- package/src/components/Link/Link.module.css +4 -2
- package/src/components/Link/Link.tsx +4 -3
- package/src/components/Link/Link.vue +13 -16
- package/src/components/LivePill/LivePill.module.css +39 -37
- package/src/components/LivePill/LivePill.tsx +11 -10
- package/src/components/LivePill/LivePill.vue +38 -40
- package/src/components/Meter/Meter.module.css +5 -3
- package/src/components/Meter/Meter.tsx +9 -8
- package/src/components/Meter/Meter.vue +52 -43
- package/src/components/MorphButton/MorphButton.module.css +11 -9
- package/src/components/MorphButton/MorphButton.tsx +20 -10
- package/src/components/MorphButton/MorphButton.vue +29 -25
- package/src/components/NumberInput/NumberInput.module.css +7 -5
- package/src/components/NumberInput/NumberInput.tsx +11 -8
- package/src/components/NumberInput/NumberInput.vue +69 -57
- package/src/components/Pagination/Pagination.module.css +147 -5
- package/src/components/Pagination/Pagination.tsx +216 -41
- package/src/components/Pagination/Pagination.vue +201 -36
- package/src/components/Pagination/labels.ts +38 -0
- package/src/components/PasswordInput/PasswordInput.module.css +10 -8
- package/src/components/PasswordInput/PasswordInput.tsx +15 -7
- package/src/components/PasswordInput/PasswordInput.vue +20 -16
- package/src/components/PasswordInput/index.ts +1 -1
- package/src/components/PickerWheel/DateWheel.vue +20 -12
- package/src/components/PickerWheel/PickerWheel.module.css +15 -6
- package/src/components/PickerWheel/PickerWheel.tsx +70 -44
- package/src/components/PickerWheel/PickerWheel.vue +39 -38
- package/src/components/PickerWheel/TimeWheel.vue +23 -21
- package/src/components/PickerWheel/WheelColumn.vue +7 -5
- package/src/components/Popover/Popover.module.css +5 -3
- package/src/components/Popover/Popover.tsx +17 -8
- package/src/components/Popover/Popover.vue +26 -25
- package/src/components/ProgressBar/ProgressBar.module.css +4 -2
- package/src/components/ProgressBar/ProgressBar.tsx +6 -5
- package/src/components/ProgressBar/ProgressBar.vue +28 -25
- package/src/components/Prose/Prose.module.css +5 -3
- package/src/components/Prose/Prose.tsx +1 -1
- package/src/components/Prose/Prose.vue +5 -8
- package/src/components/Radio/Radio.module.css +10 -8
- package/src/components/Radio/Radio.tsx +10 -8
- package/src/components/Radio/Radio.vue +8 -8
- package/src/components/Radio/RadioGroup.vue +33 -35
- package/src/components/Radio/radioContext.ts +12 -0
- package/src/components/Retime/Retime.vue +25 -22
- package/src/components/RulerScrubber/RulerScrubber.module.css +11 -2
- package/src/components/RulerScrubber/RulerScrubber.tsx +19 -18
- package/src/components/RulerScrubber/RulerScrubber.vue +50 -54
- package/src/components/ScrollArea/ScrollArea.module.css +17 -15
- package/src/components/ScrollArea/ScrollArea.tsx +5 -4
- package/src/components/ScrollArea/ScrollArea.vue +15 -17
- package/src/components/SearchInput/SearchInput.module.css +6 -4
- package/src/components/SearchInput/SearchInput.tsx +22 -10
- package/src/components/SearchInput/SearchInput.vue +20 -17
- package/src/components/SearchInput/index.ts +1 -1
- package/src/components/SegmentedControl/SegmentedControl.module.css +7 -5
- package/src/components/SegmentedControl/SegmentedControl.tsx +9 -5
- package/src/components/SegmentedControl/SegmentedControl.vue +25 -29
- package/src/components/Select/Select.module.css +19 -17
- package/src/components/Select/Select.tsx +31 -18
- package/src/components/Select/Select.vue +63 -58
- package/src/components/Sheet/Sheet.module.css +6 -4
- package/src/components/Sheet/Sheet.tsx +39 -29
- package/src/components/Sheet/Sheet.vue +46 -40
- package/src/components/Skeleton/Skeleton.module.css +4 -2
- package/src/components/Skeleton/Skeleton.tsx +3 -2
- package/src/components/Skeleton/Skeleton.vue +16 -18
- package/src/components/Slider/Slider.module.css +14 -12
- package/src/components/Slider/Slider.tsx +27 -11
- package/src/components/Slider/Slider.vue +47 -37
- package/src/components/Spinner/Spinner.module.css +2 -0
- package/src/components/Spinner/Spinner.tsx +3 -3
- package/src/components/Spinner/Spinner.vue +9 -12
- package/src/components/Split/Split.module.css +2 -0
- package/src/components/Split/Split.tsx +3 -3
- package/src/components/Split/Split.vue +19 -17
- package/src/components/SplitFlap/SplitFlap.module.css +9 -7
- package/src/components/SplitFlap/SplitFlap.tsx +2 -2
- package/src/components/SplitFlap/SplitFlap.vue +24 -21
- package/src/components/Stack/Stack.module.css +2 -0
- package/src/components/Stack/Stack.tsx +1 -1
- package/src/components/Stack/Stack.vue +13 -12
- package/src/components/SwipeDeck/SwipeDeck.module.css +13 -11
- package/src/components/SwipeDeck/SwipeDeck.tsx +23 -28
- package/src/components/SwipeDeck/SwipeDeck.vue +32 -38
- package/src/components/Switch/Switch.module.css +10 -8
- package/src/components/Switch/Switch.tsx +6 -5
- package/src/components/Switch/Switch.vue +22 -24
- package/src/components/Table/Table.module.css +24 -22
- package/src/components/Table/Table.tsx +27 -30
- package/src/components/Table/Table.vue +93 -79
- package/src/components/TableOfContents/TableOfContents.module.css +9 -7
- package/src/components/TableOfContents/TableOfContents.tsx +8 -8
- package/src/components/TableOfContents/TableOfContents.vue +20 -23
- package/src/components/Tabs/Tab.vue +3 -0
- package/src/components/Tabs/TabList.vue +2 -2
- package/src/components/Tabs/TabPanel.vue +2 -0
- package/src/components/Tabs/Tabs.module.css +4 -2
- package/src/components/Tabs/Tabs.tsx +10 -5
- package/src/components/Tabs/Tabs.vue +1 -1
- package/src/components/Tag/Tag.module.css +12 -10
- package/src/components/Tag/Tag.tsx +13 -15
- package/src/components/Tag/Tag.vue +12 -14
- package/src/components/Textarea/Textarea.module.css +8 -6
- package/src/components/Textarea/Textarea.tsx +4 -3
- package/src/components/Textarea/Textarea.vue +32 -34
- package/src/components/ThemeToggle/ThemeToggle.module.css +2 -0
- package/src/components/ThemeToggle/ThemeToggle.tsx +7 -7
- package/src/components/ThemeToggle/ThemeToggle.vue +24 -22
- package/src/components/Toast/Toast.module.css +17 -15
- package/src/components/Toast/Toast.tsx +51 -34
- package/src/components/Toast/Toast.vue +35 -24
- package/src/components/Toast/ToastItem.vue +17 -16
- package/src/components/Toggle/Toggle.module.css +11 -9
- package/src/components/Toggle/Toggle.tsx +3 -2
- package/src/components/Toggle/Toggle.vue +13 -15
- package/src/components/Tooltip/Tooltip.module.css +5 -3
- package/src/components/Tooltip/Tooltip.tsx +1 -0
- package/src/components/Tooltip/Tooltip.vue +13 -18
- package/src/components/VisuallyHidden/VisuallyHidden.module.css +2 -0
- package/src/components/VisuallyHidden/VisuallyHidden.tsx +1 -1
- package/src/components/VisuallyHidden/VisuallyHidden.vue +5 -8
- package/src/{internal → icons}/icons.module.css +4 -2
- package/src/{internal → icons}/icons.tsx +15 -16
- package/src/internal/FieldMessage.module.css +5 -3
- package/src/internal/FieldMessage.tsx +2 -2
- package/src/internal/FieldMessage.vue +2 -2
- package/src/internal/Roll.module.css +5 -3
- package/src/internal/feel.ts +12 -10
- package/src/internal/fling.ts +3 -3
- package/src/internal/liquid.ts +12 -10
- package/src/internal/liquidMatter.ts +1 -1
- package/src/internal/liquidMore.ts +7 -7
- package/src/internal/motion/checkbox.ts +4 -4
- package/src/internal/motion/fling.ts +19 -9
- package/src/internal/motion/holdToConfirm.ts +3 -3
- package/src/internal/motion/index.ts +8 -6
- package/src/internal/motion/liquid.ts +16 -4
- package/src/internal/motion/liquidMatter.ts +8 -6
- package/src/internal/motion/liquidMore.ts +44 -25
- package/src/internal/motion/livePill.ts +1 -1
- package/src/internal/motion/numberInput.ts +2 -2
- package/src/internal/motion/pickerWheel.ts +7 -4
- package/src/internal/motion/ruler.ts +1 -1
- package/src/internal/motion/scrollArea.ts +3 -3
- package/src/internal/motion/scrollFrame.ts +9 -7
- package/src/internal/motion/scrubber.ts +39 -20
- package/src/internal/motion/slider.ts +38 -4
- package/src/internal/motion/softPress.ts +10 -9
- package/src/internal/motion/splitFlap.ts +4 -4
- package/src/internal/motion/swipeDeck.ts +38 -7
- package/src/internal/motion/table.ts +3 -6
- package/src/internal/motion/themeIcon.ts +1 -1
- package/src/internal/motion/themeReveal.ts +1 -1
- package/src/internal/motion/toast.ts +3 -3
- package/src/internal/motion.ts +7 -8
- package/src/internal/scrollFrame.ts +3 -3
- package/src/internal/useScrub.ts +1 -15
- package/src/internal/vue/useScrub.ts +2 -6
- package/src/tokens.css +81 -421
- package/src/{internal/vueIcons.ts → icons/vue.ts} +5 -5
package/src/tokens.css
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/* The core tokens: colour, type, space, sizes shared by many parts, radius, shadow, line, focus, motion
|
|
2
|
+
and layers. A component's own sizes and colours live in its CSS, each read as
|
|
3
|
+
var(--gooee-<component>-<part>, <default>), so set one on :root to change it everywhere.
|
|
4
|
+
|
|
5
|
+
Hooks with no value here, which a part reads only when you set them:
|
|
6
|
+
--gooee-calendar-w, --gooee-calendar-text Calendar's width and text size (DatePicker sets them)
|
|
7
|
+
--gooee-glass-* a see-through surface for bars and menus (themes/glass.css) */
|
|
8
|
+
|
|
9
|
+
/* The library's cascade layers, in order. CSS outside a layer, such as an app's own styles, always wins. */
|
|
10
|
+
@layer gooee.tokens, gooee.base, gooee.components, gooee.themes;
|
|
11
|
+
|
|
12
|
+
@layer gooee.tokens {
|
|
1
13
|
:root,
|
|
2
14
|
[data-theme="light"] {
|
|
3
15
|
/* Grey scale (raw, components use the semantic tokens) */
|
|
@@ -54,10 +66,28 @@
|
|
|
54
66
|
/* Danger solid: white text at 4.6:1 or more in both themes */
|
|
55
67
|
--gooee-color-danger-solid: #c62a1f;
|
|
56
68
|
--gooee-color-danger-solid-hover: #a82218;
|
|
57
|
-
--gooee-color-
|
|
69
|
+
--gooee-color-danger-fg: #ffffff;
|
|
58
70
|
|
|
59
|
-
/*
|
|
71
|
+
/* Scrim: the near-black behind photos and video (Lightbox, VideoPlayer, CompareSlider, ImageCropper).
|
|
72
|
+
The same in both themes, so photos keep true colours. */
|
|
73
|
+
--gooee-color-scrim: rgb(8 8 8 / 0.92);
|
|
74
|
+
--gooee-color-scrim-fg: var(--gooee-gray-0);
|
|
75
|
+
--gooee-color-scrim-fg-muted: rgb(255 255 255 / 0.72);
|
|
76
|
+
--gooee-color-scrim-hover: rgb(255 255 255 / 0.14);
|
|
77
|
+
|
|
78
|
+
/* Series: five colours for data, in a fixed order. They are a survey map's own code: navy (the accent's
|
|
79
|
+
family), contour brown, survey green, revision purple, chart ochre. Checked for colour-blind
|
|
80
|
+
separation (8.0 or more for adjacent pairs) and 3:1 against the surface, in both themes. A sixth
|
|
81
|
+
series folds into "Other" or a second chart; it never gets a made-up colour. */
|
|
82
|
+
--gooee-color-series-1: #2f64b4;
|
|
83
|
+
--gooee-color-series-2: #b36324;
|
|
84
|
+
--gooee-color-series-3: #2f9a6e;
|
|
85
|
+
--gooee-color-series-4: #8a52c2;
|
|
86
|
+
--gooee-color-series-5: #a8861a;
|
|
87
|
+
|
|
88
|
+
/* Focus: the ring round a focused control, and the width of a focus line inside one */
|
|
60
89
|
--gooee-focus-ring: 0 0 0 2px var(--gooee-color-bg), 0 0 0 4px var(--gooee-color-fg);
|
|
90
|
+
--gooee-focus-width: 2px;
|
|
61
91
|
|
|
62
92
|
/* Type */
|
|
63
93
|
--gooee-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -131,41 +161,44 @@
|
|
|
131
161
|
--gooee-panel-w-md: 520px;
|
|
132
162
|
--gooee-panel-w-lg: 840px;
|
|
133
163
|
--gooee-menu-w: 220px;
|
|
134
|
-
--gooee-tooltip-w: 260px;
|
|
135
|
-
--gooee-toast-w: 360px;
|
|
136
|
-
--gooee-line-focus: 2px;
|
|
137
164
|
--gooee-halo: 3px;
|
|
138
165
|
--gooee-indicator: 2px;
|
|
139
166
|
--gooee-underline-offset: 3px;
|
|
140
167
|
--gooee-control-box: 20px;
|
|
141
168
|
--gooee-control-dot: 10px;
|
|
142
|
-
--gooee-track-h: 4px;
|
|
143
169
|
--gooee-progress-h: 6px;
|
|
144
170
|
--gooee-progress-h-sm: 3px;
|
|
145
|
-
--gooee-switch-w: 44px;
|
|
146
|
-
--gooee-switch-h: 28px;
|
|
147
|
-
--gooee-switch-pad: 3px;
|
|
148
|
-
--gooee-switch-stretch: 6px;
|
|
149
171
|
--gooee-field-h-floating: 56px;
|
|
150
172
|
--gooee-step-marker: 28px;
|
|
151
|
-
--gooee-avatar-sm: 28px;
|
|
152
|
-
--gooee-avatar-md: 36px;
|
|
153
|
-
--gooee-avatar-lg: 48px;
|
|
154
|
-
--gooee-avatar-xl: 72px;
|
|
155
|
-
--gooee-kbd-h: 24px;
|
|
156
|
-
--gooee-badge-h: 24px;
|
|
157
173
|
--gooee-dot: 6px;
|
|
174
|
+
--gooee-unread-dot: 8px;
|
|
158
175
|
--gooee-mini-button: 24px;
|
|
159
176
|
--gooee-handle-w: 40px;
|
|
160
177
|
--gooee-handle-w-active: 56px;
|
|
161
178
|
/* A sheet's grabber at its lowest height. Its width shows the height: short, then --gooee-handle-w, then -active */
|
|
162
179
|
--gooee-handle-w-short: 24px;
|
|
163
180
|
--gooee-handle-h: 5px;
|
|
164
|
-
--gooee-empty-icon: 64px;
|
|
165
|
-
--gooee-empty-w: 420px;
|
|
166
181
|
--gooee-listbox-max-h: 320px;
|
|
167
|
-
|
|
168
|
-
--gooee-
|
|
182
|
+
/* The tallest a message box grows before it scrolls */
|
|
183
|
+
--gooee-composer-max-h: 160px;
|
|
184
|
+
|
|
185
|
+
/* Layout: a Container's max width (padding not included), a Grid's least cell width before a column
|
|
186
|
+
drops, a Split's sidebar width, and a Center's least height */
|
|
187
|
+
--gooee-container-sm: 640px;
|
|
188
|
+
--gooee-container-md: 768px;
|
|
189
|
+
--gooee-container-lg: 1024px;
|
|
190
|
+
--gooee-container-xl: 1280px;
|
|
191
|
+
--gooee-grid-min-xs: 140px;
|
|
192
|
+
--gooee-grid-min-sm: 192px;
|
|
193
|
+
--gooee-grid-min-md: 240px;
|
|
194
|
+
--gooee-grid-min-lg: 320px;
|
|
195
|
+
--gooee-split-side-sm: 200px;
|
|
196
|
+
--gooee-split-side-md: 260px;
|
|
197
|
+
--gooee-split-side-lg: 320px;
|
|
198
|
+
--gooee-center-h-sm: 240px;
|
|
199
|
+
--gooee-center-h-md: 400px;
|
|
200
|
+
--gooee-center-h-lg: 560px;
|
|
201
|
+
--gooee-center-h-screen: 100dvh;
|
|
169
202
|
|
|
170
203
|
/* Radii */
|
|
171
204
|
--gooee-radius-xs: 4px;
|
|
@@ -184,6 +217,10 @@
|
|
|
184
217
|
/* A thumb on its track. Every layer blurs at least twice its drop, so no hard edge shows */
|
|
185
218
|
--gooee-shadow-thumb: 0 1px 3px rgb(0 0 0 / 0.04), 0 3px 8px rgb(0 0 0 / 0.04), 0 6px 16px rgb(0 0 0 / 0.04);
|
|
186
219
|
|
|
220
|
+
/* Blur, for frosted surfaces and for small things settling in, such as an avatar loading */
|
|
221
|
+
--gooee-blur: 16px;
|
|
222
|
+
--gooee-blur-sm: 6px;
|
|
223
|
+
|
|
187
224
|
/* Motion. Every duration is its base times --gooee-motion-scale, so one value retimes the whole
|
|
188
225
|
library (see Retime). 1 is normal, 1.5 is slower, 0 is no motion. Reduced motion still wins. */
|
|
189
226
|
--gooee-motion-scale: 1;
|
|
@@ -199,30 +236,22 @@
|
|
|
199
236
|
/* A theme change: the new theme grows from the toggle in a circle over the whole screen. The morph's
|
|
200
237
|
close time: a whole-screen change reads best in about 200 to 400ms, and its icon ends with it. */
|
|
201
238
|
--gooee-motion-reveal: var(--gooee-motion-morph-out);
|
|
202
|
-
/* Older names, kept so apps that use them still work. They are the morph now */
|
|
203
|
-
--gooee-motion-pour: var(--gooee-motion-morph);
|
|
204
|
-
--gooee-motion-liquid: var(--gooee-motion-morph);
|
|
205
|
-
--gooee-motion-fling: var(--gooee-motion-morph-out);
|
|
206
239
|
--gooee-motion-stagger: calc(30ms * var(--gooee-motion-scale));
|
|
240
|
+
/* A line or a chart drawing itself in */
|
|
241
|
+
--gooee-motion-draw: calc(900ms * var(--gooee-motion-scale));
|
|
207
242
|
--gooee-motion-delay-tooltip: 400ms;
|
|
208
|
-
/* Hold to confirm: how long a press must last. A timer, not motion, so reduced motion keeps it */
|
|
209
|
-
--gooee-hold-time: 1500ms;
|
|
210
|
-
--gooee-hold-stroke: 2px;
|
|
211
243
|
--gooee-motion-shimmer: 1400ms;
|
|
212
244
|
--gooee-motion-spin: 800ms;
|
|
213
245
|
--gooee-motion-indeterminate: 1500ms;
|
|
214
246
|
/* Morph: the one curve for every move. A soft lift-off, then a long settle, with no overshoot.
|
|
215
247
|
Opening and closing both play it forward */
|
|
216
248
|
--gooee-ease-morph: cubic-bezier(0.2, 0, 0, 1);
|
|
217
|
-
/* Older names, kept so apps that use them still work. They are the morph now */
|
|
218
|
-
--gooee-ease-out: var(--gooee-ease-morph);
|
|
219
|
-
--gooee-ease-in: var(--gooee-ease-morph);
|
|
220
|
-
--gooee-ease-spring: var(--gooee-ease-morph);
|
|
221
|
-
--gooee-ease-bounce: var(--gooee-ease-morph);
|
|
222
|
-
--gooee-ease-liquid: var(--gooee-ease-morph);
|
|
223
249
|
/* Only for loops that breathe back and forth (a shimmer, a spinner's pulse), never for a move */
|
|
224
250
|
--gooee-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
225
251
|
--gooee-ease-linear: linear;
|
|
252
|
+
/* Scroll motion: the share of the distance left that an eased part covers each frame. Lower is
|
|
253
|
+
heavier; 1 follows the scroll at once. */
|
|
254
|
+
--gooee-scroll-ease: 0.1;
|
|
226
255
|
|
|
227
256
|
/* Movement distances */
|
|
228
257
|
--gooee-shift-sm: 4px;
|
|
@@ -239,6 +268,9 @@
|
|
|
239
268
|
/* A check mark or small icon grows in from this size, and a ticked box bumps up to the peak. */
|
|
240
269
|
--gooee-check-scale: 0.4;
|
|
241
270
|
--gooee-check-peak-scale: 1.12;
|
|
271
|
+
/* A dragged card lifts: a little bigger, and tilted */
|
|
272
|
+
--gooee-lift-scale: 1.03;
|
|
273
|
+
--gooee-lift-tilt: 2deg;
|
|
242
274
|
|
|
243
275
|
/* One look for every disabled control */
|
|
244
276
|
--gooee-disabled-opacity: 0.5;
|
|
@@ -254,7 +286,6 @@
|
|
|
254
286
|
color-scheme: light;
|
|
255
287
|
}
|
|
256
288
|
|
|
257
|
-
/* Dark theme (system) */
|
|
258
289
|
@media (pointer: coarse) {
|
|
259
290
|
:root,
|
|
260
291
|
[data-theme] {
|
|
@@ -262,6 +293,7 @@
|
|
|
262
293
|
}
|
|
263
294
|
}
|
|
264
295
|
|
|
296
|
+
/* Dark theme (system) */
|
|
265
297
|
@media (prefers-color-scheme: dark) {
|
|
266
298
|
:root:not([data-theme="light"]) {
|
|
267
299
|
--gooee-color-bg: #0a0a0a;
|
|
@@ -293,12 +325,18 @@
|
|
|
293
325
|
--gooee-color-danger-solid: #d63a2e;
|
|
294
326
|
/* Darker on hover: a lighter red drops white text under 4.5:1 */
|
|
295
327
|
--gooee-color-danger-solid-hover: #b8302a;
|
|
328
|
+
/* The same five series colours, a step lighter for the dark surface, checked there on their own. */
|
|
329
|
+
--gooee-color-series-1: #638fdb;
|
|
330
|
+
--gooee-color-series-2: #c97638;
|
|
331
|
+
--gooee-color-series-3: #3ea97a;
|
|
332
|
+
--gooee-color-series-4: #a873d6;
|
|
333
|
+
--gooee-color-series-5: #b0902a;
|
|
296
334
|
/* Faint: in the dark, height shows as a lighter surface, not a deep shadow. */
|
|
297
335
|
--gooee-shadow-1: 0 1px 2px rgb(0 0 0 / 0.2);
|
|
298
336
|
--gooee-shadow-2: 0 1px 2px rgb(0 0 0 / 0.2), 0 4px 12px rgb(0 0 0 / 0.15);
|
|
299
337
|
--gooee-shadow-3: 0 2px 4px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);
|
|
300
338
|
--gooee-shadow-4: 0 4px 8px rgb(0 0 0 / 0.4), 0 24px 64px rgb(0 0 0 / 0.6);
|
|
301
|
-
|
|
339
|
+
--gooee-shadow-thumb: 0 1px 3px rgb(0 0 0 / 0.12), 0 3px 8px rgb(0 0 0 / 0.12), 0 6px 16px rgb(0 0 0 / 0.12);
|
|
302
340
|
color-scheme: dark;
|
|
303
341
|
}
|
|
304
342
|
}
|
|
@@ -335,6 +373,11 @@
|
|
|
335
373
|
--gooee-color-danger-solid: #d63a2e;
|
|
336
374
|
/* Darker on hover: a lighter red drops white text under 4.5:1 */
|
|
337
375
|
--gooee-color-danger-solid-hover: #b8302a;
|
|
376
|
+
--gooee-color-series-1: #638fdb;
|
|
377
|
+
--gooee-color-series-2: #c97638;
|
|
378
|
+
--gooee-color-series-3: #3ea97a;
|
|
379
|
+
--gooee-color-series-4: #a873d6;
|
|
380
|
+
--gooee-color-series-5: #b0902a;
|
|
338
381
|
/* Faint: in the dark, height shows as a lighter surface, not a deep shadow. */
|
|
339
382
|
--gooee-shadow-1: 0 1px 2px rgb(0 0 0 / 0.2);
|
|
340
383
|
--gooee-shadow-2: 0 1px 2px rgb(0 0 0 / 0.2), 0 4px 12px rgb(0 0 0 / 0.15);
|
|
@@ -357,9 +400,11 @@
|
|
|
357
400
|
--gooee-motion-morph-out: 0ms;
|
|
358
401
|
--gooee-motion-reveal: 0ms;
|
|
359
402
|
--gooee-motion-stagger: 0ms;
|
|
403
|
+
--gooee-motion-draw: 0ms;
|
|
360
404
|
--gooee-motion-shimmer: 0ms;
|
|
361
405
|
--gooee-motion-spin: 1600ms;
|
|
362
406
|
--gooee-motion-indeterminate: 3000ms;
|
|
407
|
+
--gooee-scroll-ease: 1;
|
|
363
408
|
--gooee-shift-sm: 0px;
|
|
364
409
|
--gooee-shift-md: 0px;
|
|
365
410
|
--gooee-press-scale: 1;
|
|
@@ -367,404 +412,19 @@
|
|
|
367
412
|
--gooee-pop-scale: 1;
|
|
368
413
|
--gooee-check-scale: 1;
|
|
369
414
|
--gooee-check-peak-scale: 1;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
:root,
|
|
374
|
-
[data-theme="light"] {
|
|
375
|
-
/* Dates and time */
|
|
376
|
-
--gooee-day-size: 40px;
|
|
377
|
-
--gooee-day-mark: 4px;
|
|
378
|
-
--gooee-calendar-gap: 32px;
|
|
379
|
-
--gooee-wheel-rows: 5;
|
|
380
|
-
/* How far each row tilts per row away from the middle, so a wheel reads as a drum. */
|
|
381
|
-
--gooee-wheel-tilt: 18deg;
|
|
382
|
-
--gooee-wheel-w: 64px;
|
|
383
|
-
/* CalendarHeatmap: one day's square, the gap, the weekday column, and four shades as a share of the text colour */
|
|
384
|
-
--gooee-heatmap-cell: 12px;
|
|
385
|
-
--gooee-heatmap-gap: 3px;
|
|
386
|
-
--gooee-heatmap-label: 32px;
|
|
387
|
-
--gooee-heatmap-1: 22%;
|
|
388
|
-
--gooee-heatmap-2: 45%;
|
|
389
|
-
--gooee-heatmap-3: 70%;
|
|
390
|
-
--gooee-heatmap-4: 100%;
|
|
391
|
-
/* WeekSchedule: one hour's height, the time column, and the width below which it shows one day at a time */
|
|
392
|
-
--gooee-schedule-hour: 56px;
|
|
393
|
-
--gooee-schedule-gutter: 56px;
|
|
394
|
-
--gooee-schedule-min-w: 520px;
|
|
395
|
-
/* Unused since 0.34.0, when overlapping events moved into lanes. Kept so overrides of it do not break. */
|
|
396
|
-
--gooee-schedule-indent: 16px;
|
|
397
|
-
/* One stripe and its gap on a hatched event, and how far an event lifts on hover */
|
|
398
|
-
--gooee-schedule-hatch: var(--gooee-dot);
|
|
399
|
-
--gooee-schedule-lift: var(--gooee-space-1);
|
|
400
|
-
/* The narrowest a lane gets on a day with overlaps. When the busy days cannot get this, fewer days show. */
|
|
401
|
-
--gooee-schedule-lane-min: 112px;
|
|
402
|
-
/* The narrowest a day with no overlaps gets, so a quiet week keeps all seven days from --gooee-schedule-min-w up */
|
|
403
|
-
--gooee-schedule-day-min: 64px;
|
|
404
|
-
|
|
405
|
-
/* Smarter inputs */
|
|
406
|
-
--gooee-pin-w: 44px;
|
|
407
|
-
--gooee-pin-h: 52px;
|
|
408
|
-
--gooee-star: 28px;
|
|
409
|
-
--gooee-dropzone-h: 168px;
|
|
410
|
-
--gooee-number-w: 168px;
|
|
411
|
-
--gooee-motion-repeat-delay: 400ms;
|
|
412
|
-
--gooee-motion-repeat: 70ms;
|
|
413
|
-
/* Colour picker. White and black are colour maths, so they stay pure in both themes. */
|
|
414
|
-
--gooee-picker-area-h: 168px;
|
|
415
|
-
--gooee-picker-hue-h: 12px;
|
|
416
|
-
--gooee-swatch: 28px;
|
|
417
|
-
--gooee-picker-white: #ffffff;
|
|
418
|
-
--gooee-picker-black: #000000;
|
|
419
|
-
/* Signature pad: its height, and the ink's base width (a pen's pressure makes it thinner or bolder) */
|
|
420
|
-
--gooee-signature-h: 180px;
|
|
421
|
-
--gooee-ink-w: 2.5px;
|
|
422
|
-
|
|
423
|
-
/* Media */
|
|
424
|
-
--gooee-blur: 16px;
|
|
425
|
-
/* A soft blur for small things settling in, such as an avatar loading. */
|
|
426
|
-
--gooee-blur-sm: 6px;
|
|
427
|
-
--gooee-thumb: 104px;
|
|
428
|
-
--gooee-hovercard-w: 320px;
|
|
429
|
-
--gooee-marquee-fade: 48px;
|
|
430
|
-
--gooee-marquee-speed: 48;
|
|
431
|
-
--gooee-motion-delay-hovercard: 500ms;
|
|
432
|
-
--gooee-motion-delay-hovercard-out: 200ms;
|
|
433
|
-
/* Image viewer: near-black in both themes, so photos keep true colours */
|
|
434
|
-
--gooee-color-scrim: rgb(8 8 8 / 0.92);
|
|
435
|
-
--gooee-color-on-scrim: var(--gooee-gray-0);
|
|
436
|
-
--gooee-color-on-scrim-muted: rgb(255 255 255 / 0.72);
|
|
437
|
-
--gooee-color-on-scrim-hover: rgb(255 255 255 / 0.14);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
:root,
|
|
441
|
-
[data-theme="light"] {
|
|
442
|
-
/* Navigation and layout */
|
|
443
|
-
--gooee-palette-top: 12vh;
|
|
444
|
-
--gooee-palette-list-max-h: 360px;
|
|
445
|
-
--gooee-navbar-h: 64px;
|
|
446
|
-
/* Navbar float: how far the page scrolls while the bar lifts into a floating card */
|
|
447
|
-
--gooee-navbar-float-run: 160px;
|
|
448
|
-
/* Fab: the round button's size, and its gap from the bottom and side of the screen */
|
|
449
|
-
--gooee-fab-size: 56px;
|
|
450
|
-
--gooee-fab-gap: 16px;
|
|
451
|
-
--gooee-sidebar-w: 248px;
|
|
452
|
-
--gooee-sidebar-w-collapsed: 64px;
|
|
453
|
-
--gooee-tabbar-h: 56px;
|
|
454
|
-
--gooee-tabbar-pill-w: 56px;
|
|
455
|
-
--gooee-tabbar-pill-h: 30px;
|
|
456
|
-
/* With labels on the chosen tab only: its share of the row against the others' 1, and how long its label may run */
|
|
457
|
-
--gooee-tabbar-active-grow: 2.4;
|
|
458
|
-
--gooee-tabbar-label-max: 12ch;
|
|
459
|
-
--gooee-scrollbar-w: 6px;
|
|
460
|
-
--gooee-scrollbar-w-active: 10px;
|
|
461
|
-
--gooee-scrollbar-min: 24px;
|
|
462
|
-
--gooee-carousel-dot: 8px;
|
|
463
|
-
--gooee-carousel-dot-active: 24px;
|
|
464
|
-
|
|
465
|
-
/* Data */
|
|
466
|
-
--gooee-ring-sm: 32px;
|
|
467
|
-
--gooee-ring-md: 56px;
|
|
468
|
-
--gooee-ring-lg: 96px;
|
|
469
|
-
--gooee-sparkline-w: 120px;
|
|
470
|
-
--gooee-sparkline-h: 32px;
|
|
471
|
-
--gooee-tree-indent: 20px;
|
|
472
|
-
/* How long a closed folder waits under a dragged item before it opens. Intent, not motion, so reduced motion keeps it. */
|
|
473
|
-
--gooee-tree-open-delay: 800ms;
|
|
474
|
-
--gooee-timeline-marker: 12px;
|
|
475
|
-
--gooee-table-check: 18px;
|
|
476
|
-
/* A cell's widest, so long text wraps and a sideways-scrolling table stays readable. */
|
|
477
|
-
--gooee-table-cell-max: 320px;
|
|
478
|
-
|
|
479
|
-
/* Charts: series differ by colour, dash and marker, never colour alone. The colours are a survey map's
|
|
480
|
-
own code, in a fixed order: navy (the accent's family), contour brown, survey green, revision purple,
|
|
481
|
-
chart ochre. Checked for colour-blind separation (8.0 or more for adjacent pairs) and 3:1 against the surface, in both
|
|
482
|
-
themes. A sixth series folds into "Other" or a second chart; it never gets a made-up colour. */
|
|
483
|
-
--gooee-chart-h: 260px;
|
|
484
|
-
--gooee-chart-donut: 220px;
|
|
485
|
-
--gooee-chart-area-opacity: 0.14;
|
|
486
|
-
--gooee-chart-1: #2f64b4;
|
|
487
|
-
--gooee-chart-2: #b36324;
|
|
488
|
-
--gooee-chart-3: #2f9a6e;
|
|
489
|
-
--gooee-chart-4: #8a52c2;
|
|
490
|
-
--gooee-chart-5: #a8861a;
|
|
491
|
-
--gooee-chart-dash-1: none;
|
|
492
|
-
--gooee-chart-dash-2: 6 4;
|
|
493
|
-
--gooee-chart-dash-3: 1.5 3.5;
|
|
494
|
-
--gooee-chart-dash-4: 10 4 2 4;
|
|
495
|
-
--gooee-chart-dash-5: 14 6;
|
|
496
|
-
--gooee-motion-draw: calc(900ms * var(--gooee-motion-scale));
|
|
497
|
-
|
|
498
|
-
/* Boards and editor */
|
|
499
|
-
--gooee-kanban-col-w: 288px;
|
|
500
|
-
--gooee-lift-scale: 1.03;
|
|
501
|
-
--gooee-lift-tilt: 2deg;
|
|
502
|
-
--gooee-editor-min-h: 160px;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/* The same five colours, a step lighter for the dark surface, checked there on their own. */
|
|
506
|
-
@media (prefers-color-scheme: dark) {
|
|
507
|
-
:root:not([data-theme="light"]) {
|
|
508
|
-
--gooee-chart-1: #638fdb;
|
|
509
|
-
--gooee-chart-2: #c97638;
|
|
510
|
-
--gooee-chart-3: #3ea97a;
|
|
511
|
-
--gooee-chart-4: #a873d6;
|
|
512
|
-
--gooee-chart-5: #b0902a;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
[data-theme="dark"] {
|
|
517
|
-
--gooee-chart-1: #638fdb;
|
|
518
|
-
--gooee-chart-2: #c97638;
|
|
519
|
-
--gooee-chart-3: #3ea97a;
|
|
520
|
-
--gooee-chart-4: #a873d6;
|
|
521
|
-
--gooee-chart-5: #b0902a;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
@media (prefers-reduced-motion: reduce) {
|
|
525
|
-
:root,
|
|
526
|
-
[data-theme] {
|
|
527
|
-
--gooee-motion-draw: 0ms;
|
|
528
415
|
--gooee-lift-scale: 1;
|
|
529
416
|
--gooee-lift-tilt: 0deg;
|
|
530
417
|
}
|
|
531
418
|
}
|
|
532
419
|
|
|
533
|
-
:root,
|
|
534
|
-
[data-theme="light"] {
|
|
535
|
-
/* Container: max width, padding not included */
|
|
536
|
-
--gooee-container-sm: 640px;
|
|
537
|
-
--gooee-container-md: 768px;
|
|
538
|
-
--gooee-container-lg: 1024px;
|
|
539
|
-
--gooee-container-xl: 1280px;
|
|
540
|
-
|
|
541
|
-
/* Grid: min cell width before a column drops */
|
|
542
|
-
--gooee-grid-min-xs: 140px;
|
|
543
|
-
--gooee-grid-min-sm: 192px;
|
|
544
|
-
--gooee-grid-min-md: 240px;
|
|
545
|
-
--gooee-grid-min-lg: 320px;
|
|
546
|
-
|
|
547
|
-
/* Split: sidebar widths */
|
|
548
|
-
--gooee-split-side-sm: 200px;
|
|
549
|
-
--gooee-split-side-md: 260px;
|
|
550
|
-
--gooee-split-side-lg: 320px;
|
|
551
|
-
|
|
552
|
-
/* Center: min heights */
|
|
553
|
-
--gooee-center-h-sm: 240px;
|
|
554
|
-
--gooee-center-h-md: 400px;
|
|
555
|
-
--gooee-center-h-lg: 560px;
|
|
556
|
-
--gooee-center-h-screen: 100dvh;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
:root,
|
|
560
|
-
[data-theme="light"] {
|
|
561
|
-
/* Chat and comments */
|
|
562
|
-
--gooee-bubble-w: 560px;
|
|
563
|
-
--gooee-bubble-radius-joined: 6px;
|
|
564
|
-
--gooee-composer-max-h: 160px;
|
|
565
|
-
--gooee-chat-jump-offset: 12px;
|
|
566
|
-
--gooee-comment-indent: 48px;
|
|
567
|
-
--gooee-inbox-max-h: 420px;
|
|
568
|
-
--gooee-unread-dot: 8px;
|
|
569
|
-
|
|
570
|
-
/* Players: controls hide after this long without input while playing */
|
|
571
|
-
--gooee-player-idle: 2500ms;
|
|
572
|
-
--gooee-player-seek-h: 4px;
|
|
573
|
-
--gooee-player-seek-h-active: 6px;
|
|
574
|
-
--gooee-player-volume-w: 88px;
|
|
575
|
-
--gooee-player-big-play: 64px;
|
|
576
|
-
--gooee-waveform-h: 40px;
|
|
577
|
-
--gooee-waveform-gap: 2px;
|
|
578
|
-
/* Same in both themes: the bar sits on video, not on the page */
|
|
579
|
-
--gooee-color-player-bar: rgb(8 8 8 / 0.64);
|
|
580
|
-
|
|
581
|
-
/* QR code: always dark on light in both themes, so every scanner reads it */
|
|
582
|
-
--gooee-qr-dark: #000000;
|
|
583
|
-
--gooee-qr-light: #ffffff;
|
|
584
|
-
|
|
585
|
-
/* Tour */
|
|
586
|
-
--gooee-tour-pad: 8px;
|
|
587
|
-
--gooee-tour-w: 340px;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
:root,
|
|
591
|
-
[data-theme="light"] {
|
|
592
|
-
/* Resizable panels: handle box; the hit area reaches --gooee-hit-min */
|
|
593
|
-
--gooee-resize-handle: 12px;
|
|
594
|
-
|
|
595
|
-
/* Description list: label column widths */
|
|
596
|
-
--gooee-dl-term-sm: 120px;
|
|
597
|
-
--gooee-dl-term-md: 180px;
|
|
598
|
-
--gooee-dl-term-lg: 240px;
|
|
599
|
-
|
|
600
|
-
/* Countdown: min width of one number column */
|
|
601
|
-
--gooee-countdown-cell: 72px;
|
|
602
|
-
--gooee-countdown-cell-sm: 52px;
|
|
603
|
-
|
|
604
|
-
/* Data grid: scroll area height, a column's default, smallest and largest width, one keyboard
|
|
605
|
-
resize step, resize handle hit width (a touch screen widens it to --gooee-hit-min), the tallest
|
|
606
|
-
a filter's checkbox list grows, and the sort order badge */
|
|
607
|
-
--gooee-datagrid-h: 480px;
|
|
608
|
-
--gooee-datagrid-col-w: 160px;
|
|
609
|
-
--gooee-datagrid-col-min: 96px;
|
|
610
|
-
--gooee-datagrid-col-max: 640px;
|
|
611
|
-
--gooee-datagrid-resize-step: 16px;
|
|
612
|
-
--gooee-datagrid-resize-hit: 12px;
|
|
613
|
-
--gooee-datagrid-options-h: 320px;
|
|
614
|
-
--gooee-datagrid-order: 16px;
|
|
615
|
-
|
|
616
|
-
/* Touch lists: one swipe action's width, and how far a pull must go before it refreshes */
|
|
617
|
-
--gooee-swipe-action-w: 80px;
|
|
618
|
-
--gooee-pull-distance: 72px;
|
|
619
|
-
|
|
620
|
-
/* Dial: the knob, the ring round it, and the speed arc's radius and the length of one step on its rim */
|
|
621
|
-
--gooee-dial-size: 208px;
|
|
622
|
-
--gooee-dial-ring: 244px;
|
|
623
|
-
--gooee-dial-arc-radius: 620px;
|
|
624
|
-
--gooee-dial-arc-gap: 20px;
|
|
625
|
-
/* RulerScrubber: the space between two ticks, and its height (the speed arc's too) */
|
|
626
|
-
--gooee-ruler-tick-gap: 12px;
|
|
627
|
-
--gooee-ruler-h: 120px;
|
|
628
|
-
/* SwipeDeck: the card's width and least height, and the share of its width a drag must pass to throw it */
|
|
629
|
-
--gooee-deck-w: 332px;
|
|
630
|
-
--gooee-deck-card-h: 404px;
|
|
631
|
-
--gooee-deck-throw: 0.35;
|
|
632
|
-
/* SplitFlap: one cell's width and height, as a share of its letter size, and its two halves */
|
|
633
|
-
--gooee-flap-w: 0.92em;
|
|
634
|
-
--gooee-flap-h: 1.36em;
|
|
635
|
-
--gooee-flap-top: var(--gooee-color-surface-sunken);
|
|
636
|
-
--gooee-flap-bottom: var(--gooee-color-surface-hover);
|
|
637
|
-
/* Tabs: the panel, and the chosen tab that rises out of it. In light it takes the pressed grey, as the
|
|
638
|
-
sunken one is too close to a white or near-white page to see; the dark one stands out already. */
|
|
639
|
-
--gooee-tabs-panel: var(--gooee-color-surface-active);
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/* In the dark the top half is the lighter one, as on a lit board. Both are set again here, so a dark
|
|
643
|
-
part inside a light page takes its own greys. */
|
|
644
|
-
@media (prefers-color-scheme: dark) {
|
|
645
|
-
:root:not([data-theme="light"]) {
|
|
646
|
-
--gooee-flap-top: var(--gooee-color-surface-active);
|
|
647
|
-
--gooee-flap-bottom: var(--gooee-color-surface-hover);
|
|
648
|
-
--gooee-tabs-panel: var(--gooee-color-surface-sunken);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
[data-theme="dark"] {
|
|
653
|
-
--gooee-flap-top: var(--gooee-color-surface-active);
|
|
654
|
-
--gooee-flap-bottom: var(--gooee-color-surface-hover);
|
|
655
|
-
--gooee-tabs-panel: var(--gooee-color-surface-sunken);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
:root,
|
|
659
|
-
[data-theme="light"] {
|
|
660
|
-
/* Scroll motion: the share of the distance left that an eased part covers each frame. Lower is
|
|
661
|
-
heavier; 1 follows the scroll at once. */
|
|
662
|
-
--gooee-scroll-ease: 0.1;
|
|
663
|
-
/* ScrollDraft and TextRise: where an element's top starts and ends its progress, as a share of the screen height */
|
|
664
|
-
--gooee-draft-start: 0.85;
|
|
665
|
-
--gooee-draft-end: 0.4;
|
|
666
|
-
/* TextRise: how many words of the progress each word takes to arrive, and room for descenders in its mask */
|
|
667
|
-
--gooee-rise-span: 3;
|
|
668
|
-
--gooee-rise-room: 0.14em;
|
|
669
|
-
/* TextRise ink: how many words of the progress each word takes to darken */
|
|
670
|
-
--gooee-ink-span: 8;
|
|
671
|
-
/* ScrollStory: the stage's share of the width and its height, the scroll length of one step (each with
|
|
672
|
-
a narrow-screen size, where the stage pins to the top), and the share of a step's length the change
|
|
673
|
-
between two steps takes (the rest holds still) */
|
|
674
|
-
--gooee-story-stage-w: 55%;
|
|
675
|
-
--gooee-story-stage-h: 72svh;
|
|
676
|
-
--gooee-story-stage-h-narrow: 46svh;
|
|
677
|
-
--gooee-story-step-h: 70svh;
|
|
678
|
-
--gooee-story-step-h-narrow: 45svh;
|
|
679
|
-
--gooee-story-turn: 0.4;
|
|
680
|
-
--gooee-story-turn-narrow: 0.8;
|
|
681
|
-
/* ScrollStory: room above the stage for a sticky header of your own */
|
|
682
|
-
--gooee-story-top: 0px;
|
|
683
|
-
/* StackScroll: where the first card sticks, how much of each card peeks out above the next, the
|
|
684
|
-
scroll between two cards, how much smaller and greyer each layer below gets, the most a moving
|
|
685
|
-
card tilts back with speed (degrees), and the depth of that tilt */
|
|
686
|
-
--gooee-stack-top: var(--gooee-space-10);
|
|
687
|
-
--gooee-stack-offset: var(--gooee-space-4);
|
|
688
|
-
--gooee-stack-gap: 25svh;
|
|
689
|
-
--gooee-stack-shrink: 0.04;
|
|
690
|
-
--gooee-stack-dim: 0.6;
|
|
691
|
-
--gooee-stack-lean: 6;
|
|
692
|
-
--gooee-stack-perspective: 1200px;
|
|
693
|
-
/* ScrollTrack: room above the pinned row for a sticky header, a panel's width (and on a narrow
|
|
694
|
-
screen, where it is a sideways swipe), the gap between panels, and the most the panels lean
|
|
695
|
-
with speed (degrees) */
|
|
696
|
-
--gooee-track-top: 0px;
|
|
697
|
-
--gooee-track-panel-w: 40%;
|
|
698
|
-
--gooee-track-panel-w-narrow: 85%;
|
|
699
|
-
--gooee-track-gap: var(--gooee-space-6);
|
|
700
|
-
--gooee-track-lean: 3;
|
|
701
|
-
/* PromptBar: the tallest the text box grows before it scrolls. AssistantThread: the width of the
|
|
702
|
-
conversation, and the line length of an answer */
|
|
703
|
-
--gooee-prompt-max-h: 168px;
|
|
704
|
-
--gooee-assistant-w: 720px;
|
|
705
|
-
--gooee-answer-measure: 66ch;
|
|
706
|
-
/* AssistantThread: the widest your own message gets, and inline code in an answer. WorkPill: the
|
|
707
|
-
step list's width. SourceMark: the card's width */
|
|
708
|
-
--gooee-assistant-mine-w: 80%;
|
|
709
|
-
--gooee-code-inline-size: 0.88em;
|
|
710
|
-
--gooee-work-steps-w: 280px;
|
|
711
|
-
--gooee-source-card-w: 320px;
|
|
712
|
-
/* Parallax: how far the nearest layer travels either side of its place (and on a narrow screen),
|
|
713
|
-
and the gap between items */
|
|
714
|
-
--gooee-parallax-range: 120px;
|
|
715
|
-
--gooee-parallax-range-narrow: 48px;
|
|
716
|
-
--gooee-parallax-gap: var(--gooee-space-5);
|
|
717
|
-
/* ScrollTone: the band around the middle of the screen, as a share of its height, in which the
|
|
718
|
-
paper and ink change from one section's tone to the next */
|
|
719
|
-
--gooee-tone-band: 0.3;
|
|
720
|
-
/* ScrollExpand: room above for a sticky header, the frame's height, the scroll it takes to open,
|
|
721
|
-
the strip it starts as (a share of the frame's height), how far in from each side it starts (a
|
|
722
|
-
share of the width), and the extra zoom it starts with */
|
|
723
|
-
--gooee-expand-top: 0px;
|
|
724
|
-
--gooee-expand-h: 80svh;
|
|
725
|
-
--gooee-expand-run: 80svh;
|
|
726
|
-
--gooee-expand-strip: 0.12;
|
|
727
|
-
--gooee-expand-side: 0.18;
|
|
728
|
-
--gooee-expand-zoom: 0.15;
|
|
729
|
-
/* ScrollExpand through: how far the camera pushes in once the picture fills the screen */
|
|
730
|
-
--gooee-expand-push: 0.25;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
@media (prefers-reduced-motion: reduce) {
|
|
734
|
-
:root,
|
|
735
|
-
[data-theme] {
|
|
736
|
-
--gooee-scroll-ease: 1;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/* CodeBlock: syntax colours, monochrome like the rest. Set on every [data-theme], so they follow the
|
|
741
|
-
colours of the theme they sit in and need no dark copy. Set --gooee-code-string for a colour accent. */
|
|
742
|
-
:root,
|
|
743
|
-
[data-theme] {
|
|
744
|
-
/* TextRise ink: the grey a word starts from, part way from the page to the text. It meets 3:1, the
|
|
745
|
-
contrast for large text, so ink is for text 24px and up. */
|
|
746
|
-
--gooee-ink-from: color-mix(in oklab, var(--gooee-color-fg) 45%, var(--gooee-color-bg));
|
|
747
|
-
--gooee-code-bg: var(--gooee-color-surface-sunken);
|
|
748
|
-
--gooee-code-fg: var(--gooee-color-fg);
|
|
749
|
-
--gooee-code-keyword: var(--gooee-color-fg);
|
|
750
|
-
--gooee-code-tag: var(--gooee-color-fg);
|
|
751
|
-
--gooee-code-attr: var(--gooee-color-fg-subtle);
|
|
752
|
-
--gooee-code-string: var(--gooee-color-fg-muted);
|
|
753
|
-
--gooee-code-number: var(--gooee-color-fg-muted);
|
|
754
|
-
--gooee-code-comment: var(--gooee-color-fg-subtle);
|
|
755
|
-
--gooee-code-gutter: var(--gooee-color-fg-subtle);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
420
|
/* Where round() works (every current browser), each leading is a whole line box on the 4px grid. */
|
|
759
421
|
@supports (line-height: round(nearest, 1em, 4px)) {
|
|
760
422
|
:root,
|
|
761
423
|
[data-theme] {
|
|
762
424
|
--gooee-leading-none: round(nearest, 1em, 4px);
|
|
763
|
-
--gooee-rise-room: round(up, 0.14em, 4px);
|
|
764
|
-
--gooee-flap-w: round(nearest, 0.92em, 4px);
|
|
765
|
-
--gooee-flap-h: round(nearest, 1.36em, 4px);
|
|
766
425
|
--gooee-leading-tight: round(nearest, calc(var(--gooee-leading-tight-ratio) * 1em), 4px);
|
|
767
426
|
--gooee-leading-snug: round(nearest, calc(var(--gooee-leading-snug-ratio) * 1em), 4px);
|
|
768
427
|
--gooee-leading-normal: round(nearest, calc(var(--gooee-leading-normal-ratio) * 1em), 4px);
|
|
769
428
|
}
|
|
770
429
|
}
|
|
430
|
+
}
|
|
@@ -36,11 +36,7 @@ export const InfoIcon = icon('pop', "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path
|
|
|
36
36
|
export const CheckCircleIcon = icon('draw', "<circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M8.5 12.25l2.5 2.5 4.5-5\"/>")
|
|
37
37
|
export const WarningIcon = icon('pop', "<path d=\"M12 4L2.75 19.5h18.5L12 4z\"/><path d=\"M12 10v4.5M12 17v.01\"/>")
|
|
38
38
|
export const ErrorIcon = icon('pop', "<path d=\"M8.25 3.5h7.5l5 5v7l-5 5h-7.5l-5-5v-7z\"/><path d=\"M9.5 9.5l5 5M14.5 9.5l-5 5\"/>")
|
|
39
|
-
export const EyeIcon = icon('blink', "<path d=\"M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12z\"/><circle cx=\"12\" cy=\"12\" r=\"2.75\"/>")
|
|
40
|
-
export const CodeIcon = icon('draw', "<path d=\"M8.5 7.5L4 12l4.5 4.5M15.5 7.5L20 12l-4.5 4.5\"/>")
|
|
41
39
|
export const SearchIcon = icon('wiggle', "<circle cx=\"11\" cy=\"11\" r=\"6.5\"/><path d=\"M16 16l4 4\"/>")
|
|
42
|
-
export const SunIcon = icon('turn', "<circle cx=\"12\" cy=\"12\" r=\"4\"/><path d=\"M12 2.5v2M12 19.5v2M4.6 4.6l1.4 1.4M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4L6 18M18 6l1.4-1.4\"/>")
|
|
43
|
-
export const MoonIcon = icon('wiggle', "<path d=\"M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z\"/>")
|
|
44
40
|
export const PlusIcon = icon('pop', "<path d=\"M12 5v14M5 12h14\"/>")
|
|
45
41
|
export const MinusIcon = icon('pop', "<path d=\"M5 12h14\"/>")
|
|
46
42
|
export const MenuIcon = icon('draw', "<path d=\"M4 7h16M4 12h16M4 17h10\"/>")
|
|
@@ -71,6 +67,11 @@ export const ClockIcon = icon('wiggle', "<circle cx=\"12\" cy=\"12\" r=\"8.5\"/>
|
|
|
71
67
|
export const RetryIcon = icon('turn', "<path d=\"M19.5 12a7.5 7.5 0 1 1-2.2-5.3\"/><path d=\"M19.5 4.5v4h-4\"/>")
|
|
72
68
|
export const GripIcon = icon('wiggle', "<path d=\"M5 9h14M5 15h14\"/>")
|
|
73
69
|
export const FilterIcon = icon('draw', "<path d=\"M4.5 6h15l-5.75 7v5.5l-3.5-2V13z\"/>")
|
|
70
|
+
export const PaperclipIcon = icon('draw', "<path d=\"M19 11.5l-7.25 7.25a4.6 4.6 0 0 1-6.5-6.5L12.5 5a3 3 0 0 1 4.25 4.25l-7 7a1.5 1.5 0 0 1-2.1-2.1l6.6-6.65\"/>")
|
|
71
|
+
export const EyeIcon = icon('blink', "<path d=\"M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12z\"/><circle cx=\"12\" cy=\"12\" r=\"2.75\"/>")
|
|
72
|
+
export const CodeIcon = icon('draw', "<path d=\"M8.5 7.5L4 12l4.5 4.5M15.5 7.5L20 12l-4.5 4.5\"/>")
|
|
73
|
+
export const SunIcon = icon('turn', "<circle cx=\"12\" cy=\"12\" r=\"4\"/><path d=\"M12 2.5v2M12 19.5v2M4.6 4.6l1.4 1.4M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4L6 18M18 6l1.4-1.4\"/>")
|
|
74
|
+
export const MoonIcon = icon('wiggle', "<path d=\"M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z\"/>")
|
|
74
75
|
export const BookIcon = icon('bounce', "<path d=\"M12 6.5C10.5 5.3 8.2 4.75 4 4.75v13.5c4.2 0 6.5.55 8 1.75 1.5-1.2 3.8-1.75 8-1.75V4.75c-4.2 0-6.5.55-8 1.75z\"/><path d=\"M12 6.5V20\"/>")
|
|
75
76
|
export const PlugIcon = icon('swing', "<path d=\"M9 3.5v4M15 3.5v4\"/><path d=\"M6.5 7.5h11v3a5.5 5.5 0 0 1-11 0z\"/><path d=\"M12 16v4.5\"/>")
|
|
76
77
|
export const CompassIcon = icon('turn', "<circle cx=\"12\" cy=\"12\" r=\"8.5\"/><path d=\"M15.5 8.5l-2 5-5 2 2-5z\"/>")
|
|
@@ -87,7 +88,6 @@ export const FileTextIcon = icon('bounce', "<path d=\"M13.5 3.5H7a2 2 0 0 0-2 2v
|
|
|
87
88
|
export const FolderIcon = icon('bounce', "<path d=\"M3.5 7.5a2 2 0 0 1 2-2h4l2 2.25h7a2 2 0 0 1 2 2v7.75a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2z\"/>")
|
|
88
89
|
export const ImageIcon = icon('pop', "<rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2.5\"/><circle cx=\"9\" cy=\"9.5\" r=\"1.5\"/><path d=\"M20.5 15.5L16 11l-8.5 8.5\"/>")
|
|
89
90
|
export const LinkIcon = icon('draw', "<path d=\"M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1\"/><path d=\"M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1\"/>")
|
|
90
|
-
export const PaperclipIcon = icon('draw', "<path d=\"M19 11.5l-7.25 7.25a4.6 4.6 0 0 1-6.5-6.5L12.5 5a3 3 0 0 1 4.25 4.25l-7 7a1.5 1.5 0 0 1-2.1-2.1l6.6-6.65\"/>")
|
|
91
91
|
export const UploadIcon = icon('nudge-u', "<path d=\"M12 15V4M7.5 8.5L12 4l4.5 4.5\"/><path d=\"M5 19.5h14\"/>")
|
|
92
92
|
export const CloudIcon = icon('bounce', "<path d=\"M7 18.5a4 4 0 0 1-.6-7.95A5.5 5.5 0 0 1 17 9a4.75 4.75 0 0 1 .5 9.5z\"/>")
|
|
93
93
|
export const DatabaseIcon = icon('bounce', "<ellipse cx=\"12\" cy=\"6\" rx=\"7\" ry=\"2.5\"/><path d=\"M5 6v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6\"/><path d=\"M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5\"/>")
|