@esportsplus/ui 0.57.0 → 0.58.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/README.md +123 -39
- package/build/components/accordion/group.d.ts +14 -0
- package/build/components/accordion/group.js +21 -0
- package/build/components/accordion/index.d.ts +9 -0
- package/build/components/accordion/index.js +20 -3
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.d.ts +3 -0
- package/build/components/button/sidebar.js +40 -10
- package/build/components/capslock/index.js +1 -1
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat-minimap/scss/index.scss +1 -1
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/color-picker/index.d.ts +1 -0
- package/build/components/color-picker/index.js +166 -136
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +0 -1
- package/build/components/command/index.js +3 -2
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/copy/scss/index.scss +1 -1
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/index.js +3 -3
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/code/index.d.ts +0 -1
- package/build/components/editor/code/index.js +0 -1
- package/build/components/editor/code/minimap.d.ts +2 -1
- package/build/components/editor/code/minimap.js +5 -2
- package/build/components/editor/code/view.d.ts +3 -1
- package/build/components/editor/code/view.js +37 -26
- package/build/components/editor/diffs/index.d.ts +0 -1
- package/build/components/editor/diffs/index.js +0 -1
- package/build/components/editor/diffs/merge.js +7 -3
- package/build/components/editor/diffs/view.js +3 -1
- package/build/components/editor/index.d.ts +4 -1
- package/build/components/editor/index.js +2 -1
- package/build/components/editor/markdown/editing.js +22 -3
- package/build/components/editor/markdown/erase.d.ts +9 -0
- package/build/components/editor/markdown/erase.js +78 -0
- package/build/components/editor/markdown/index.d.ts +0 -1
- package/build/components/editor/markdown/index.js +0 -1
- package/build/components/editor/markdown/layout.d.ts +2 -9
- package/build/components/editor/markdown/layout.js +2 -7
- package/build/components/editor/markdown/render.d.ts +0 -1
- package/build/components/editor/markdown/render.js +287 -235
- package/build/components/editor/markdown/view.js +566 -667
- package/build/components/editor/viewer/index.d.ts +27 -0
- package/build/components/editor/viewer/index.js +250 -0
- package/build/components/editor/viewer/model.d.ts +15 -0
- package/build/components/editor/viewer/model.js +73 -0
- package/build/components/editor/workspace/index.d.ts +6 -2
- package/build/components/editor/workspace/index.js +243 -137
- package/build/components/editor/workspace/keybindings.d.ts +37 -0
- package/build/components/editor/workspace/keybindings.js +288 -0
- package/build/components/editor/workspace/model.d.ts +55 -2
- package/build/components/editor/workspace/model.js +141 -3
- package/build/components/editor/workspace/navigate.d.ts +19 -0
- package/build/components/editor/workspace/navigate.js +118 -0
- package/build/components/editor/workspace/session.d.ts +29 -0
- package/build/components/editor/workspace/session.js +373 -0
- package/build/components/editor/workspace/shortcuts.d.ts +19 -0
- package/build/components/editor/workspace/shortcuts.js +185 -0
- package/build/components/editor/workspace/status.d.ts +34 -0
- package/build/components/editor/workspace/status.js +193 -0
- package/build/components/editor/workspace/statusbar.d.ts +15 -0
- package/build/components/editor/workspace/statusbar.js +190 -0
- package/build/components/editor/workspace/strip.d.ts +27 -0
- package/build/components/editor/workspace/strip.js +239 -0
- package/build/components/editor/workspace/tabs.d.ts +15 -0
- package/build/components/editor/workspace/tabs.js +63 -0
- package/build/components/error/index.js +1 -1
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +5 -3
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/heatmap/index.js +3 -3
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +2 -0
- package/build/components/index.js +2 -0
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/index.d.ts +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/tree.d.ts +3 -1
- package/build/components/nav/tree.js +30 -60
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/arrows.d.ts +15 -0
- package/build/components/pagination/arrows.js +65 -0
- package/build/components/pagination/cards.d.ts +23 -0
- package/build/components/pagination/cards.js +66 -0
- package/build/components/pagination/index.d.ts +5 -0
- package/build/components/pagination/index.js +3 -1
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/pull-to-refresh/scss/index.scss +1 -1
- package/build/components/range/index.js +1 -1
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/section/scss/index.scss +2 -0
- package/build/components/select/index.d.ts +1 -0
- package/build/components/select/index.js +16 -11
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/sticky-header/index.js +3 -3
- package/build/components/sticky-header/scss/index.scss +1 -1
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/{css-utilities → components}/theme/index.d.ts +1 -1
- package/build/{css-utilities → components}/theme/index.js +15 -5
- package/build/components/theme/scss/index.scss +2 -0
- package/build/components/theme-picker/index.d.ts +52 -0
- package/build/components/theme-picker/index.js +167 -0
- package/build/components/theme-picker/scss/index.scss +2 -0
- package/build/components/toast/index.js +3 -5
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.js +3 -1
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/{css-utilities → modifiers}/glass/index.d.ts +2 -2
- package/build/modifiers/glass/index.js +28 -0
- package/build/modifiers/glass/scss/index.scss +2 -0
- package/build/{css-utilities → modifiers}/index.d.ts +0 -1
- package/build/{css-utilities → modifiers}/index.js +0 -1
- package/build/modifiers/scrollbar/index.d.ts +72 -0
- package/build/{css-utilities → modifiers}/scrollbar/index.js +52 -19
- package/build/modifiers/scrollbar/scss/index.scss +2 -0
- package/build/normalize/scss/index.scss +1 -2
- package/layer.scss +1 -1
- package/package.json +11 -18
- package/scripts/code-editor-markdown.test.mjs +45 -14
- package/scripts/code-viewer.test.mjs +69 -0
- package/scripts/workspace-keybindings.test.mjs +273 -0
- package/scripts/workspace-session.test.mjs +349 -0
- package/scripts/workspace-status.test.mjs +229 -0
- package/scripts/workspace-tabs.test.mjs +142 -0
- package/src/components/accordion/group.ts +39 -0
- package/src/components/accordion/index.ts +32 -6
- package/src/components/accordion/scss/index.scss +12 -21
- package/src/components/accordion/scss/variables.scss +18 -3
- package/src/components/announcement/scss/index.scss +4 -4
- package/src/components/announcement/scss/variables.scss +6 -6
- package/src/components/banner/scss/index.scss +1 -1
- package/src/components/breadcrumb/scss/index.scss +35 -50
- package/src/components/breadcrumb/scss/variables.scss +23 -31
- package/src/components/button/scss/_fan.scss +39 -43
- package/src/components/button/scss/_morph.scss +66 -78
- package/src/components/button/scss/_sidebar.scss +41 -30
- package/src/components/button/scss/_split.scss +9 -9
- package/src/components/button/scss/index.scss +23 -19
- package/src/components/button/scss/variables.scss +94 -90
- package/src/components/button/sidebar.ts +36 -24
- package/src/components/capslock/index.ts +2 -2
- package/src/components/capslock/scss/index.scss +11 -6
- package/src/components/capslock/scss/variables.scss +3 -5
- package/src/components/card/scss/_expand.scss +58 -64
- package/src/components/card/scss/index.scss +40 -21
- package/src/components/card/scss/variables.scss +40 -31
- package/src/components/cc/scss/index.scss +68 -68
- package/src/components/cc/scss/variables.scss +13 -14
- package/src/components/chat-minimap/scss/index.scss +24 -16
- package/src/components/chat-minimap/scss/variables.scss +37 -37
- package/src/components/checkbox/scss/index.scss +54 -52
- package/src/components/checkbox/scss/variables.scss +37 -39
- package/src/components/color-picker/index.ts +157 -120
- package/src/components/color-picker/scss/index.scss +159 -96
- package/src/components/color-picker/scss/variables.scss +33 -15
- package/src/components/command/index.ts +3 -2
- package/src/components/command/scss/index.scss +10 -14
- package/src/components/command/scss/variables.scss +12 -35
- package/src/components/copy/scss/index.scss +6 -6
- package/src/components/copy/scss/variables.scss +12 -15
- package/src/components/counter/scss/index.scss +14 -14
- package/src/components/counter/scss/variables.scss +1 -1
- package/src/components/datalist/index.ts +3 -3
- package/src/components/datalist/scss/index.scss +7 -6
- package/src/components/datalist/scss/variables.scss +7 -3
- package/src/components/dock/scss/index.scss +10 -15
- package/src/components/dock/scss/variables.scss +29 -25
- package/src/components/editor/code/index.ts +0 -1
- package/src/components/editor/code/minimap.ts +13 -5
- package/src/components/editor/code/scss/_editor.scss +83 -81
- package/src/components/editor/code/scss/_features.scss +106 -97
- package/src/components/editor/code/scss/_services.scss +27 -25
- package/src/components/editor/code/scss/index.scss +0 -1
- package/src/components/editor/code/scss/variables.scss +30 -26
- package/src/components/editor/code/view.ts +14 -5
- package/src/components/editor/diffs/index.ts +0 -1
- package/src/components/editor/diffs/merge.ts +2 -1
- package/src/components/editor/diffs/scss/_diffs.scss +67 -57
- package/src/components/editor/diffs/scss/_merge.scss +17 -14
- package/src/components/editor/diffs/scss/index.scss +0 -1
- package/src/components/editor/diffs/scss/variables.scss +25 -18
- package/src/components/editor/diffs/view.ts +2 -1
- package/src/components/editor/index.ts +7 -1
- package/src/components/editor/markdown/editing.ts +38 -3
- package/src/components/editor/markdown/erase.ts +124 -0
- package/src/components/editor/markdown/index.ts +0 -1
- package/src/components/editor/markdown/layout.ts +3 -12
- package/src/components/editor/markdown/render.ts +65 -37
- package/src/components/editor/markdown/scss/index.scss +92 -124
- package/src/components/editor/markdown/scss/variables.scss +39 -19
- package/src/components/editor/markdown/view.ts +737 -786
- package/src/components/editor/tree/scss/index.scss +121 -110
- package/src/components/editor/tree/scss/variables.scss +48 -54
- package/src/components/editor/viewer/index.ts +321 -0
- package/src/components/editor/viewer/model.ts +130 -0
- package/src/components/editor/viewer/scss/_viewer.scss +302 -0
- package/src/components/editor/viewer/scss/index.scss +2 -0
- package/src/components/editor/viewer/scss/variables.scss +69 -0
- package/src/components/editor/workspace/index.ts +159 -31
- package/src/components/editor/workspace/keybindings.ts +447 -0
- package/src/components/editor/workspace/model.ts +233 -3
- package/src/components/editor/workspace/navigate.ts +194 -0
- package/src/components/editor/workspace/scss/index.scss +72 -59
- package/src/components/editor/workspace/scss/keybindings.scss +190 -0
- package/src/components/editor/workspace/scss/status.scss +122 -0
- package/src/components/editor/workspace/scss/tabs.scss +56 -0
- package/src/components/editor/workspace/session.ts +551 -0
- package/src/components/editor/workspace/shortcuts.ts +255 -0
- package/src/components/editor/workspace/status.ts +259 -0
- package/src/components/editor/workspace/statusbar.ts +255 -0
- package/src/components/editor/workspace/strip.ts +273 -0
- package/src/components/editor/workspace/tabs.ts +106 -0
- package/src/components/error/index.ts +1 -1
- package/src/components/error/scss/index.scss +19 -19
- package/src/components/error/scss/variables.scss +2 -2
- package/src/components/filter/index.ts +7 -2
- package/src/components/filter/scss/index.scss +1 -1
- package/src/components/filter/scss/variables.scss +11 -10
- package/src/components/frame/scss/index.scss +12 -12
- package/src/components/frame/scss/variables.scss +8 -8
- package/src/components/heatmap/index.ts +3 -3
- package/src/components/heatmap/scss/index.scss +28 -26
- package/src/components/heatmap/scss/variables.scss +18 -17
- package/src/components/highlight/scss/index.scss +17 -13
- package/src/components/highlight/scss/variables.scss +8 -10
- package/src/components/icon/scss/index.scss +10 -0
- package/src/components/icon/scss/variables.scss +5 -0
- package/src/components/image/scss/index.scss +9 -9
- package/src/components/image/scss/variables.scss +7 -2
- package/src/components/index.ts +2 -0
- package/src/components/inline-edit/scss/index.scss +99 -104
- package/src/components/inline-edit/scss/variables.scss +40 -39
- package/src/components/input/scss/_field.scss +6 -20
- package/src/components/input/scss/_scrub.scss +10 -8
- package/src/components/input/scss/_tag.scss +35 -37
- package/src/components/input/scss/variables.scss +100 -99
- package/src/components/link/scss/index.scss +4 -1
- package/src/components/loading/scss/index.scss +1 -1
- package/src/components/loading/scss/variables.scss +1 -1
- package/src/components/marquee/scss/index.scss +9 -5
- package/src/components/marquee/scss/variables.scss +3 -1
- package/src/components/metric/scss/_flash.scss +3 -1
- package/src/components/metric/scss/index.scss +8 -6
- package/src/components/metric/scss/variables.scss +26 -20
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +12 -40
- package/src/components/nav/scss/variables.scss +30 -11
- package/src/components/nav/tree.ts +19 -62
- package/src/components/notification/scss/index.scss +7 -7
- package/src/components/notification/scss/variables.scss +7 -9
- package/src/components/overlay/scss/index.scss +181 -170
- package/src/components/overlay/scss/variables.scss +26 -57
- package/src/components/page/scss/index.scss +12 -11
- package/src/components/page/scss/variables.scss +5 -0
- package/src/components/pagination/arrows.ts +58 -0
- package/src/components/pagination/cards.ts +57 -0
- package/src/components/pagination/index.ts +4 -1
- package/src/components/pagination/scss/_arrows.scss +69 -0
- package/src/components/pagination/scss/_cards.scss +121 -0
- package/src/components/pagination/scss/_dots.scss +2 -5
- package/src/components/pagination/scss/index.scss +8 -6
- package/src/components/pagination/scss/variables.scss +87 -37
- package/src/components/progress/scss/_text.scss +21 -18
- package/src/components/progress/scss/index.scss +1 -1
- package/src/components/progress/scss/variables.scss +12 -12
- package/src/components/pull-to-refresh/scss/index.scss +2 -1
- package/src/components/pull-to-refresh/scss/variables.scss +11 -6
- package/src/components/range/index.ts +1 -1
- package/src/components/range/scss/_filter.scss +62 -51
- package/src/components/range/scss/_slider.scss +78 -75
- package/src/components/range/scss/_vertical.scss +6 -6
- package/src/components/range/scss/index.scss +3 -2
- package/src/components/range/scss/variables.scss +26 -23
- package/src/components/relative-time/scss/index.scss +27 -27
- package/src/components/relative-time/scss/variables.scss +10 -12
- package/src/components/root/scss/index.scss +71 -43
- package/src/components/root/scss/variables.scss +35 -31
- package/src/components/section/scss/index.scss +31 -0
- package/src/components/section/scss/variables.scss +21 -0
- package/src/components/select/index.ts +11 -6
- package/src/components/select/scss/index.scss +21 -32
- package/src/components/select/scss/variables.scss +25 -18
- package/src/components/shortcut-recorder/scss/index.scss +13 -12
- package/src/components/shortcut-recorder/scss/variables.scss +12 -13
- package/src/components/sortable/scss/index.scss +47 -44
- package/src/components/sortable/scss/variables.scss +4 -5
- package/src/components/sticky-header/index.ts +4 -4
- package/src/components/sticky-header/scss/index.scss +14 -13
- package/src/components/sticky-header/scss/variables.scss +9 -9
- package/src/components/story/scss/index.scss +26 -30
- package/src/components/story/scss/variables.scss +16 -9
- package/src/components/surface-field/scss/index.scss +45 -40
- package/src/components/surface-field/scss/variables.scss +5 -6
- package/src/components/tasklist/scss/index.scss +19 -19
- package/src/components/tasklist/scss/variables.scss +26 -29
- package/src/components/text/scss/index.scss +2 -1
- package/src/components/textarea/scss/variables.scss +1 -1
- package/src/{css-utilities → components}/theme/index.ts +17 -3
- package/src/components/theme/scss/index.scss +1 -0
- package/src/components/theme/scss/variables.scss +78 -0
- package/src/components/theme-picker/index.ts +231 -0
- package/src/components/theme-picker/scss/index.scss +264 -0
- package/src/components/toast/index.ts +28 -30
- package/src/components/toast/scss/index.scss +87 -87
- package/src/components/toast/scss/variables.scss +39 -39
- package/src/components/tooltip/menu.ts +4 -1
- package/src/components/tooltip/scss/_east.scss +10 -10
- package/src/components/tooltip/scss/_menu.scss +284 -269
- package/src/components/tooltip/scss/_north.scss +10 -10
- package/src/components/tooltip/scss/_shared.scss +7 -7
- package/src/components/tooltip/scss/_south.scss +10 -10
- package/src/components/tooltip/scss/_west.scss +10 -10
- package/src/components/tooltip/scss/index.scss +21 -20
- package/src/components/tooltip/scss/variables.scss +104 -96
- package/src/components/typewriter/scss/_retype.scss +12 -11
- package/src/components/typewriter/scss/_rotate.scss +2 -1
- package/src/components/typewriter/scss/variables.scss +41 -39
- package/src/components/uptime/scss/index.scss +15 -15
- package/src/components/uptime/scss/variables.scss +8 -8
- package/src/components/usage-meter/scss/index.scss +3 -1
- package/src/components/usage-meter/scss/variables.scss +5 -5
- package/src/css-utilities/absolute.scss +64 -0
- package/src/css-utilities/background.scss +43 -0
- package/src/css-utilities/border.scss +45 -0
- package/src/css-utilities/box-shadow.scss +29 -0
- package/src/css-utilities/color.scss +41 -0
- package/src/css-utilities/flex.scss +64 -0
- package/src/css-utilities/font/geist/{scss/index.scss → index.scss} +12 -4
- package/src/css-utilities/font/montserrat/Montserrat-Italic-Variable.woff2 +0 -0
- package/src/css-utilities/font/montserrat/Montserrat-Variable.woff2 +0 -0
- package/src/css-utilities/font/montserrat/OFL.txt +93 -0
- package/src/css-utilities/font/montserrat/index.scss +38 -0
- package/src/{shared/scss → css-utilities}/icon.scss +1 -1
- package/src/css-utilities/{inline/scss/index.scss → inline.scss} +1 -1
- package/src/css-utilities/{skeleton/scss/index.scss → skeleton.scss} +11 -11
- package/src/css-utilities/surface.scss +266 -0
- package/src/css-utilities/text.scss +191 -0
- package/src/modifiers/glass/index.ts +44 -0
- package/src/{css-utilities → modifiers}/glass/scss/index.scss +6 -6
- package/src/{css-utilities → modifiers}/glass/scss/variables.scss +1 -1
- package/src/{css-utilities → modifiers}/index.ts +0 -1
- package/src/{css-utilities → modifiers}/scrollbar/index.ts +92 -17
- package/src/{css-utilities → modifiers}/scrollbar/scss/index.scss +178 -177
- package/src/{css-utilities → modifiers}/scrollbar/scss/variables.scss +28 -21
- package/src/normalize/scss/index.scss +4 -2
- package/src/shared/scss/color-weights.scss +19 -0
- package/src/shared/scss/index.scss +1 -12
- package/src/tokens/scss/blur.scss +5 -0
- package/src/tokens/scss/color.scss +74 -50
- package/src/tokens/scss/index.scss +1 -2
- package/src/tokens/scss/size.scss +0 -2
- package/src/tokens/scss/state.scss +3 -2
- package/src/tokens/scss/transition.scss +19 -2
- package/storage/svg/monitor.svg +1 -0
- package/storage/svg/moon.svg +1 -0
- package/storage/svg/pin.svg +1 -0
- package/storage/svg/sun.svg +1 -0
- package/vite.config.ts +33 -8
- package/build/css-utilities/background/scss/index.scss +0 -2
- package/build/css-utilities/border/scss/index.scss +0 -2
- package/build/css-utilities/color/scss/index.scss +0 -2
- package/build/css-utilities/flex/scss/index.scss +0 -2
- package/build/css-utilities/font/geist/index.d.ts +0 -1
- package/build/css-utilities/font/geist/index.js +0 -1
- package/build/css-utilities/font/geist/scss/index.scss +0 -2
- package/build/css-utilities/font/montserrat/index.d.ts +0 -1
- package/build/css-utilities/font/montserrat/index.js +0 -1
- package/build/css-utilities/font/montserrat/scss/Montserrat-Bold.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Italic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Medium.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Regular.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- package/build/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/build/css-utilities/font/montserrat/scss/index.scss +0 -2
- package/build/css-utilities/glass/index.js +0 -26
- package/build/css-utilities/glass/scss/index.scss +0 -2
- package/build/css-utilities/index.scss +0 -2
- package/build/css-utilities/inline/scss/index.scss +0 -2
- package/build/css-utilities/scrollbar/index.d.ts +0 -42
- package/build/css-utilities/scrollbar/scss/index.scss +0 -2
- package/build/css-utilities/skeleton/scss/index.scss +0 -2
- package/build/css-utilities/text/scss/index.scss +0 -2
- package/build/themes/dark/index.d.ts +0 -3
- package/build/themes/dark/index.js +0 -3
- package/build/themes/dark/input.d.ts +0 -3
- package/build/themes/dark/input.js +0 -12
- package/build/themes/dark/select.d.ts +0 -3
- package/build/themes/dark/select.js +0 -23
- package/build/themes/dark/textarea.d.ts +0 -2186
- package/build/themes/dark/textarea.js +0 -11
- package/src/css-utilities/background/scss/index.scss +0 -1
- package/src/css-utilities/background/scss/variables.scss +0 -18
- package/src/css-utilities/border/scss/index.scss +0 -1
- package/src/css-utilities/border/scss/variables.scss +0 -23
- package/src/css-utilities/color/scss/index.scss +0 -1
- package/src/css-utilities/color/scss/variables.scss +0 -17
- package/src/css-utilities/flex/scss/index.scss +0 -57
- package/src/css-utilities/flex/scss/variables.scss +0 -16
- package/src/css-utilities/font/geist/index.ts +0 -1
- package/src/css-utilities/font/montserrat/index.ts +0 -1
- package/src/css-utilities/font/montserrat/scss/Montserrat-Bold.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Italic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Medium.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Regular.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- package/src/css-utilities/font/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/src/css-utilities/font/montserrat/scss/index.scss +0 -94
- package/src/css-utilities/glass/index.ts +0 -42
- package/src/css-utilities/index.scss +0 -13
- package/src/css-utilities/skeleton/scss/variables.scss +0 -3
- package/src/css-utilities/text/scss/index.scss +0 -152
- package/src/css-utilities/text/scss/variables.scss +0 -22
- package/src/shared/scss/absolute.scss +0 -28
- package/src/shared/scss/background.scss +0 -21
- package/src/shared/scss/border.scss +0 -21
- package/src/shared/scss/color.scss +0 -21
- package/src/shared/scss/position.scss +0 -55
- package/src/shared/scss/text.scss +0 -31
- package/src/themes/dark/index.ts +0 -3
- package/src/themes/dark/input.ts +0 -16
- package/src/themes/dark/select.ts +0 -28
- package/src/themes/dark/textarea.ts +0 -13
- package/src/tokens/scss/box-shadow.scss +0 -23
- package/src/tokens/scss/font-family.scss +0 -5
- package/storage/code.md +0 -180
- package/storage/editor-features.md +0 -227
- package/build/css-utilities/font/geist/{scss/Geist-Italic-Variable.woff2 → Geist-Italic-Variable.woff2} +0 -0
- package/build/css-utilities/font/geist/{scss/Geist-Variable.woff2 → Geist-Variable.woff2} +0 -0
- package/build/css-utilities/font/geist/{scss/GeistMono-Italic-Variable.woff2 → GeistMono-Italic-Variable.woff2} +0 -0
- package/build/css-utilities/font/geist/{scss/GeistMono-Variable.woff2 → GeistMono-Variable.woff2} +0 -0
- package/src/{shared/scss → css-utilities}/anchor.scss +6 -6
- package/src/{shared/scss → css-utilities}/drag.scss +0 -0
- package/src/css-utilities/font/geist/{scss/Geist-Italic-Variable.woff2 → Geist-Italic-Variable.woff2} +0 -0
- package/src/css-utilities/font/geist/{scss/Geist-Variable.woff2 → Geist-Variable.woff2} +0 -0
- package/src/css-utilities/font/geist/{scss/GeistMono-Italic-Variable.woff2 → GeistMono-Italic-Variable.woff2} +0 -0
- package/src/css-utilities/font/geist/{scss/GeistMono-Variable.woff2 → GeistMono-Variable.woff2} +0 -0
- package/src/{shared/scss → css-utilities}/hidden.scss +11 -11
- /package/src/{shared/scss → css-utilities}/layer.scss +0 -0
- /package/src/{shared/scss → css-utilities}/reset.scss +0 -0
|
@@ -1,21 +1,28 @@
|
|
|
1
|
+
@use 'css-utilities/background';
|
|
2
|
+
@use 'css-utilities/border';
|
|
3
|
+
@use 'css-utilities/reset';
|
|
4
|
+
@use 'css-utilities/surface';
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
// Modifiers only set variables; the layout reads them, so combined states never need combined selectors.
|
|
2
8
|
.code-workspace {
|
|
3
|
-
|
|
9
|
+
@extend %background-state, %border-state, %surface-raised-level;
|
|
10
|
+
--accent: var(--color-accent-400);
|
|
4
11
|
--accent-color: var(--color-white-300);
|
|
5
12
|
--aside-track: minmax(0, 1fr);
|
|
6
|
-
--background: var(--
|
|
13
|
+
--background-default: var(--surface-background-default);
|
|
7
14
|
--bar-height: var(--size-800);
|
|
8
|
-
--border-color: var(--
|
|
15
|
+
--border-color-default: var(--surface-border-default);
|
|
9
16
|
--close-icon-size: var(--size-200);
|
|
10
17
|
--close-size: var(--size-400);
|
|
11
18
|
--color: var(--color-text-500);
|
|
12
19
|
--columns: var(--main-track) var(--aside-track);
|
|
13
|
-
--confirm-background: var(--surface);
|
|
20
|
+
--confirm-background: var(--surface-background-default);
|
|
14
21
|
--confirm-color: var(--color);
|
|
15
22
|
--confirm-hover: var(--control-active-background);
|
|
16
23
|
--content-delay: 0s;
|
|
17
24
|
--content-visibility: visible;
|
|
18
|
-
--control-active-background:
|
|
25
|
+
--control-active-background: var(--surface-background-active);
|
|
19
26
|
--control-icon-size: var(--size-300);
|
|
20
27
|
--control-size: var(--size-600);
|
|
21
28
|
--dirty-size: calc(var(--size-100) * 0.75);
|
|
@@ -26,7 +33,7 @@
|
|
|
26
33
|
--drawer-hidden: calc(100% - var(--peek-width));
|
|
27
34
|
--drawer-inset: auto 0;
|
|
28
35
|
--drawer-offset: var(--drawer-hidden);
|
|
29
|
-
--drawer-shadow:
|
|
36
|
+
--drawer-shadow: #{surface.shadow(5)};
|
|
30
37
|
--drawer-timing-function: var(--transition-timing-function);
|
|
31
38
|
// At least a usable explorer, even when the workspace itself is narrow.
|
|
32
39
|
--drawer-width: min(100%, max(16rem, 46%));
|
|
@@ -57,15 +64,14 @@
|
|
|
57
64
|
--muted-color: var(--color-text-300);
|
|
58
65
|
--peek-width: var(--size-400);
|
|
59
66
|
--radius: var(--border-radius-300);
|
|
60
|
-
--raised: var(--
|
|
67
|
+
--raised: var(--surface-background-default);
|
|
61
68
|
--rows: minmax(0, 1fr) auto;
|
|
62
69
|
--spacing: var(--size-100);
|
|
63
70
|
--spacing-tight: calc(var(--size-100) / 2);
|
|
64
71
|
--status-font-size: var(--font-size-100);
|
|
65
72
|
--status-row: 2;
|
|
66
|
-
--surface: var(--color-grey-300);
|
|
67
73
|
--tab-height: var(--size-600);
|
|
68
|
-
--tab-hover-background:
|
|
74
|
+
--tab-hover-background: var(--surface-background-hover);
|
|
69
75
|
--tab-max-width: 160px;
|
|
70
76
|
--tabs-height: var(--size-700);
|
|
71
77
|
background: var(--background);
|
|
@@ -168,7 +174,7 @@
|
|
|
168
174
|
&-confirm-button--primary {
|
|
169
175
|
--confirm-background: var(--accent);
|
|
170
176
|
--confirm-color: var(--accent-color);
|
|
171
|
-
--confirm-hover: var(--color-
|
|
177
|
+
--confirm-hover: var(--color-accent-500);
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
&-confirm-button.button {
|
|
@@ -201,11 +207,10 @@
|
|
|
201
207
|
margin: 0;
|
|
202
208
|
}
|
|
203
209
|
|
|
210
|
+
// Background and shadow come from the card's surface.
|
|
204
211
|
&-confirm.card {
|
|
205
|
-
--background-default: var(--raised);
|
|
206
212
|
--border-radius: var(--border-radius-500);
|
|
207
213
|
--border-width: 0px;
|
|
208
|
-
--box-shadow-default: var(--box-shadow-500);
|
|
209
214
|
--max-width: 440px;
|
|
210
215
|
--padding-horizontal: var(--size-500);
|
|
211
216
|
--padding-vertical: var(--size-500);
|
|
@@ -285,8 +290,10 @@
|
|
|
285
290
|
text-align: center;
|
|
286
291
|
}
|
|
287
292
|
|
|
293
|
+
// A surface, lifted only while it floats as a drawer.
|
|
288
294
|
&-explorer {
|
|
289
|
-
|
|
295
|
+
@extend %surface-raised-level;
|
|
296
|
+
background: var(--surface-background-default);
|
|
290
297
|
border-inline-end: var(--explorer-end);
|
|
291
298
|
border-inline-start: var(--explorer-start);
|
|
292
299
|
border-top: var(--explorer-top);
|
|
@@ -305,27 +312,27 @@
|
|
|
305
312
|
user-select: none;
|
|
306
313
|
width: var(--explorer-size);
|
|
307
314
|
z-index: var(--explorer-layer);
|
|
308
|
-
}
|
|
309
315
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
&-content {
|
|
317
|
+
display: flex;
|
|
318
|
+
flex: 1;
|
|
319
|
+
flex-direction: column;
|
|
320
|
+
min-height: 0;
|
|
321
|
+
min-width: 0;
|
|
322
|
+
transition: visibility 0s linear var(--content-delay);
|
|
323
|
+
visibility: var(--content-visibility);
|
|
324
|
+
}
|
|
319
325
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
&-header {
|
|
327
|
+
align-items: center;
|
|
328
|
+
border-bottom: var(--divider);
|
|
329
|
+
display: flex;
|
|
330
|
+
flex: none;
|
|
331
|
+
gap: var(--spacing-tight);
|
|
332
|
+
height: var(--bar-height);
|
|
333
|
+
min-width: 0;
|
|
334
|
+
padding-inline: var(--spacing);
|
|
335
|
+
}
|
|
329
336
|
}
|
|
330
337
|
|
|
331
338
|
&-files.file-tree {
|
|
@@ -337,6 +344,12 @@
|
|
|
337
344
|
gap: var(--spacing-tight);
|
|
338
345
|
}
|
|
339
346
|
|
|
347
|
+
// Holds the menus in the top layer, so page content after the workspace never covers them; the workspace's own
|
|
348
|
+
// stacking context would otherwise cap their z-index.
|
|
349
|
+
&-layer {
|
|
350
|
+
@extend %reset-popover;
|
|
351
|
+
}
|
|
352
|
+
|
|
340
353
|
&-main {
|
|
341
354
|
display: flex;
|
|
342
355
|
flex-direction: column;
|
|
@@ -375,7 +388,7 @@
|
|
|
375
388
|
text-align: center;
|
|
376
389
|
|
|
377
390
|
&--cover {
|
|
378
|
-
background: var(--surface);
|
|
391
|
+
background: var(--surface-background-default);
|
|
379
392
|
inset: 0;
|
|
380
393
|
position: absolute;
|
|
381
394
|
z-index: 1;
|
|
@@ -411,7 +424,7 @@
|
|
|
411
424
|
|
|
412
425
|
&-status {
|
|
413
426
|
align-items: center;
|
|
414
|
-
background: var(--surface);
|
|
427
|
+
background: var(--surface-background-default);
|
|
415
428
|
border-top: var(--divider);
|
|
416
429
|
color: var(--muted-color);
|
|
417
430
|
display: flex;
|
|
@@ -422,29 +435,29 @@
|
|
|
422
435
|
justify-content: space-between;
|
|
423
436
|
min-width: 0;
|
|
424
437
|
padding: var(--spacing-tight) var(--size-300);
|
|
425
|
-
}
|
|
426
438
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
439
|
+
&-message {
|
|
440
|
+
min-width: 0;
|
|
441
|
+
overflow: hidden;
|
|
442
|
+
text-overflow: ellipsis;
|
|
443
|
+
white-space: nowrap;
|
|
432
444
|
|
|
433
|
-
|
|
434
|
-
|
|
445
|
+
&--error {
|
|
446
|
+
color: var(--error-color);
|
|
447
|
+
}
|
|
435
448
|
}
|
|
436
|
-
}
|
|
437
449
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
450
|
+
&-path {
|
|
451
|
+
flex: 1;
|
|
452
|
+
min-width: 0;
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
text-overflow: ellipsis;
|
|
455
|
+
white-space: nowrap;
|
|
456
|
+
}
|
|
445
457
|
|
|
446
|
-
|
|
447
|
-
|
|
458
|
+
&-position {
|
|
459
|
+
white-space: nowrap;
|
|
460
|
+
}
|
|
448
461
|
}
|
|
449
462
|
|
|
450
463
|
&-tab-close-icon.icon {
|
|
@@ -515,12 +528,12 @@
|
|
|
515
528
|
overflow-y: hidden;
|
|
516
529
|
padding-inline: var(--spacing);
|
|
517
530
|
position: relative;
|
|
518
|
-
}
|
|
519
531
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
532
|
+
&-highlight.highlight {
|
|
533
|
+
--background-active: var(--control-active-background);
|
|
534
|
+
--background-default: var(--tab-hover-background);
|
|
535
|
+
--line-color: var(--accent);
|
|
536
|
+
}
|
|
524
537
|
}
|
|
525
538
|
|
|
526
539
|
&-tree {
|
|
@@ -532,8 +545,8 @@
|
|
|
532
545
|
@media (forced-colors: active) {
|
|
533
546
|
--accent: Highlight;
|
|
534
547
|
--accent-color: HighlightText;
|
|
535
|
-
--background: Canvas;
|
|
536
|
-
--border-color: CanvasText;
|
|
548
|
+
--background-default: Canvas;
|
|
549
|
+
--border-color-default: CanvasText;
|
|
537
550
|
--color: CanvasText;
|
|
538
551
|
--error-color: CanvasText;
|
|
539
552
|
--muted-color: CanvasText;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@use 'css-utilities/font/geist';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
.code-workspace-command-icon.icon {
|
|
5
|
+
--size: var(--control-icon-size);
|
|
6
|
+
flex: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Inside the workspace, so its custom properties reach the dialog through the DOM even in the top layer.
|
|
10
|
+
.code-workspace-keybindings {
|
|
11
|
+
--columns: minmax(0, 1fr) minmax(9rem, auto) 4.5rem 4.5rem;
|
|
12
|
+
--conflict-color: var(--color-red-400);
|
|
13
|
+
--row-height: var(--size-800);
|
|
14
|
+
|
|
15
|
+
&-actions {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: flex-end;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-button--primary {
|
|
21
|
+
--confirm-background: var(--accent);
|
|
22
|
+
--confirm-color: var(--accent-color);
|
|
23
|
+
--confirm-hover: var(--color-accent-500);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-button.button {
|
|
27
|
+
--background-default: var(--confirm-background, transparent);
|
|
28
|
+
--background-hover: var(--confirm-hover, var(--control-active-background));
|
|
29
|
+
--border-radius: var(--radius);
|
|
30
|
+
--color-default: var(--confirm-color, var(--color));
|
|
31
|
+
--padding-horizontal: var(--size-200);
|
|
32
|
+
--padding-vertical: var(--spacing-tight);
|
|
33
|
+
flex: none;
|
|
34
|
+
|
|
35
|
+
&:disabled {
|
|
36
|
+
cursor: default;
|
|
37
|
+
opacity: var(--disabled-opacity);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:focus-visible {
|
|
41
|
+
outline: var(--focus-width) solid var(--focus-color);
|
|
42
|
+
outline-offset: var(--border-width-400);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-command {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-conflict {
|
|
53
|
+
align-items: center;
|
|
54
|
+
color: var(--conflict-color);
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-basis: 100%;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
gap: var(--spacing);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-empty {
|
|
62
|
+
color: var(--muted-color);
|
|
63
|
+
padding: var(--size-400);
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-header {
|
|
68
|
+
align-items: center;
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: var(--spacing);
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
margin-bottom: var(--size-300);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-hidden {
|
|
76
|
+
clip-path: inset(50%);
|
|
77
|
+
height: 1px;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
position: absolute;
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
width: 1px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&-id {
|
|
85
|
+
@extend %font-geist-mono;
|
|
86
|
+
color: var(--muted-color);
|
|
87
|
+
font-family: var(--font-family);
|
|
88
|
+
font-size: var(--font-size-100);
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
text-overflow: ellipsis;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-key--builtin.button {
|
|
94
|
+
cursor: help;
|
|
95
|
+
opacity: 0.75;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&-key.button {
|
|
99
|
+
flex: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-keys {
|
|
103
|
+
align-items: center;
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
gap: var(--spacing);
|
|
107
|
+
min-width: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&-label {
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Only '+' at rest, so the row's built-in keys aren't read as unbound.
|
|
117
|
+
&-recorder--add.shortcut-recorder {
|
|
118
|
+
--min-width: var(--size-600);
|
|
119
|
+
|
|
120
|
+
&:not(.--active) .shortcut-recorder-placeholder {
|
|
121
|
+
font-size: 0;
|
|
122
|
+
|
|
123
|
+
&::before {
|
|
124
|
+
content: '+';
|
|
125
|
+
font-size: var(--font-size);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-recorder.shortcut-recorder {
|
|
131
|
+
--font-size: var(--font-size-200);
|
|
132
|
+
--height: var(--size-600);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&-row {
|
|
136
|
+
align-items: center;
|
|
137
|
+
border-bottom: var(--divider);
|
|
138
|
+
display: grid;
|
|
139
|
+
gap: var(--size-200);
|
|
140
|
+
grid-template-columns: var(--columns);
|
|
141
|
+
min-height: var(--row-height);
|
|
142
|
+
padding-block: var(--spacing-tight);
|
|
143
|
+
|
|
144
|
+
&--head {
|
|
145
|
+
background: var(--raised);
|
|
146
|
+
color: var(--muted-color);
|
|
147
|
+
font-size: var(--font-size-100);
|
|
148
|
+
font-weight: var(--font-weight-500);
|
|
149
|
+
inset-block-start: 0;
|
|
150
|
+
min-height: auto;
|
|
151
|
+
padding-block: var(--spacing);
|
|
152
|
+
position: sticky;
|
|
153
|
+
z-index: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&[hidden] {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&-search.input {
|
|
162
|
+
margin-bottom: var(--size-200);
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&-source {
|
|
167
|
+
color: var(--muted-color);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&-table {
|
|
171
|
+
max-height: min(60vh, 32rem);
|
|
172
|
+
overflow: auto;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&-title {
|
|
176
|
+
font-size: var(--font-size-400);
|
|
177
|
+
margin: 0;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Background and shadow come from the card's surface.
|
|
181
|
+
&.card {
|
|
182
|
+
--border-radius: var(--border-radius-500);
|
|
183
|
+
--border-width: 0px;
|
|
184
|
+
--max-width: 760px;
|
|
185
|
+
--padding-horizontal: var(--size-500);
|
|
186
|
+
--padding-vertical: var(--size-500);
|
|
187
|
+
color: var(--color);
|
|
188
|
+
font-size: var(--font-size-300);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.code-workspace {
|
|
2
|
+
--status-icon-size: var(--size-200);
|
|
3
|
+
--status-item-height: var(--size-500);
|
|
4
|
+
--status-item-hover: var(--control-active-background);
|
|
5
|
+
|
|
6
|
+
// Inline-edit lays its status out under the field; here it sits on the toolbar's line instead.
|
|
7
|
+
&-autosave .inline-edit-status {
|
|
8
|
+
--color: inherit;
|
|
9
|
+
--font-size: var(--status-font-size);
|
|
10
|
+
grid-area: auto;
|
|
11
|
+
margin-top: 0;
|
|
12
|
+
padding-inline-start: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-autosave.button {
|
|
16
|
+
--background-default: transparent;
|
|
17
|
+
--background-hover: var(--control-active-background);
|
|
18
|
+
--border-radius: var(--radius);
|
|
19
|
+
--color-default: var(--muted-color);
|
|
20
|
+
--color-hover: var(--color);
|
|
21
|
+
--padding-horizontal: var(--spacing);
|
|
22
|
+
--padding-vertical: 0px;
|
|
23
|
+
flex: none;
|
|
24
|
+
height: var(--control-size);
|
|
25
|
+
|
|
26
|
+
&:focus-visible {
|
|
27
|
+
outline: var(--focus-width) solid var(--focus-color);
|
|
28
|
+
outline-offset: calc(var(--focus-width) * -1);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&-choice-icon.icon {
|
|
33
|
+
--size: var(--control-icon-size);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// The menu's item styles outrank the 'hidden' attribute; each choice shows only its own entries.
|
|
37
|
+
&-choices .tooltip-menu-entry:has(> [hidden]) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-status {
|
|
42
|
+
container: workspace-status / inline-size;
|
|
43
|
+
|
|
44
|
+
&-icon.icon {
|
|
45
|
+
--size: var(--status-icon-size);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-item {
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
|
|
51
|
+
// Like VS Code's status bar, items drop out as the bar narrows instead of scrolling, least needed first:
|
|
52
|
+
// selections (shown only now and then, so it never counts on room the rest need), encoding, line ending,
|
|
53
|
+
// indentation, language, then problems. Line and column and auto save stay. Ems follow the bar's own font
|
|
54
|
+
// size.
|
|
55
|
+
&--encoding {
|
|
56
|
+
@container workspace-status (width < 52em) {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&--eol.button {
|
|
62
|
+
@container workspace-status (width < 48em) {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--indent.button {
|
|
68
|
+
@container workspace-status (width < 45em) {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--language.button {
|
|
74
|
+
@container workspace-status (width < 38em) {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&--problems.button {
|
|
80
|
+
@container workspace-status (width < 30em) {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&--selections {
|
|
86
|
+
@container workspace-status (width < 62em) {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.button {
|
|
92
|
+
--background-default: transparent;
|
|
93
|
+
--background-hover: var(--status-item-hover);
|
|
94
|
+
--border-radius: var(--border-radius-100);
|
|
95
|
+
--color-default: inherit;
|
|
96
|
+
--color-hover: var(--color);
|
|
97
|
+
--gap-horizontal: var(--spacing-tight);
|
|
98
|
+
--padding-horizontal: var(--spacing-tight);
|
|
99
|
+
--padding-vertical: 0px;
|
|
100
|
+
flex: none;
|
|
101
|
+
font-size: inherit;
|
|
102
|
+
min-height: var(--status-item-height);
|
|
103
|
+
|
|
104
|
+
&:disabled {
|
|
105
|
+
cursor: default;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:focus-visible {
|
|
109
|
+
outline: var(--focus-width) solid var(--focus-color);
|
|
110
|
+
outline-offset: calc(var(--focus-width) * -1);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-items {
|
|
116
|
+
align-items: center;
|
|
117
|
+
display: flex;
|
|
118
|
+
flex: none;
|
|
119
|
+
gap: var(--spacing);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.code-workspace {
|
|
2
|
+
&-document.diffs,
|
|
3
|
+
&-merge-editor.diffs-merge {
|
|
4
|
+
--border-radius: 0px;
|
|
5
|
+
--border-width: 0px;
|
|
6
|
+
--height: 100%;
|
|
7
|
+
flex: 1;
|
|
8
|
+
min-height: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-merge {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex: 1;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
min-height: 0;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
|
|
18
|
+
&-bar {
|
|
19
|
+
align-items: center;
|
|
20
|
+
border-bottom: var(--divider);
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: none;
|
|
23
|
+
font-size: var(--font-size-200);
|
|
24
|
+
gap: var(--spacing);
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
padding: var(--spacing-tight) var(--size-300);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-cancel.button {
|
|
30
|
+
--background-default: transparent;
|
|
31
|
+
--background-hover: var(--control-active-background);
|
|
32
|
+
--border-radius: var(--radius);
|
|
33
|
+
--color-default: var(--color);
|
|
34
|
+
--padding-horizontal: var(--size-200);
|
|
35
|
+
--padding-vertical: var(--spacing-tight);
|
|
36
|
+
flex: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-title {
|
|
40
|
+
color: var(--muted-color);
|
|
41
|
+
min-width: 0;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-tab--preview &-tab-name {
|
|
49
|
+
font-style: italic;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-tab-pin.icon {
|
|
53
|
+
--size: var(--close-icon-size);
|
|
54
|
+
flex: none;
|
|
55
|
+
}
|
|
56
|
+
}
|