@zonsh/ui 0.0.0 → 0.4.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/LICENSE +43 -0
- package/README.md +81 -1
- package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
- package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
- package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
- package/assets/illustrations/drawing/bracket-construction.svg +77 -0
- package/assets/illustrations/drawing/crescent-dark.svg +28 -0
- package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
- package/assets/illustrations/drawing/crescent-guides.svg +33 -0
- package/assets/illustrations/drawing/crescent.svg +28 -0
- package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
- package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
- package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
- package/assets/illustrations/drawing/eclipse.svg +187 -0
- package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
- package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
- package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
- package/assets/illustrations/drawing/elevation-guides.svg +31 -0
- package/assets/illustrations/drawing/horizon-dark.svg +30 -0
- package/assets/illustrations/drawing/horizon.svg +30 -0
- package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
- package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
- package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
- package/assets/illustrations/drawing/nib-study.svg +107 -0
- package/assets/illustrations/editorial/assistant-640.webp +0 -0
- package/assets/illustrations/editorial/assistant.webp +0 -0
- package/assets/illustrations/editorial/automation-640.webp +0 -0
- package/assets/illustrations/editorial/automation.webp +0 -0
- package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
- package/assets/illustrations/editorial/bracket-left.webp +0 -0
- package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
- package/assets/illustrations/editorial/bracket-right.webp +0 -0
- package/assets/illustrations/editorial/custom-software-640.webp +0 -0
- package/assets/illustrations/editorial/custom-software.webp +0 -0
- package/assets/illustrations/editorial/digitalization-640.webp +0 -0
- package/assets/illustrations/editorial/digitalization.webp +0 -0
- package/assets/illustrations/editorial/integration-640.webp +0 -0
- package/assets/illustrations/editorial/integration.webp +0 -0
- package/assets/illustrations/editorial/problem-640.webp +0 -0
- package/assets/illustrations/editorial/problem.webp +0 -0
- package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
- package/assets/illustrations/editorial/process-analysis.webp +0 -0
- package/assets/illustrations/editorial/process-concept-640.webp +0 -0
- package/assets/illustrations/editorial/process-concept.webp +0 -0
- package/assets/illustrations/editorial/process-development-640.webp +0 -0
- package/assets/illustrations/editorial/process-development.webp +0 -0
- package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
- package/assets/illustrations/editorial/process-discovery.webp +0 -0
- package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
- package/assets/illustrations/editorial/process-maintenance.webp +0 -0
- package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
- package/assets/illustrations/editorial/process-prototype.webp +0 -0
- package/assets/illustrations/editorial/process-testing-640.webp +0 -0
- package/assets/illustrations/editorial/process-testing.webp +0 -0
- package/assets/illustrations/iso/automation-dark.svg +6 -0
- package/assets/illustrations/iso/automation.svg +6 -0
- package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
- package/assets/illustrations/iso/bar-chart.svg +6 -0
- package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
- package/assets/illustrations/iso/brackets-classic.svg +6 -0
- package/assets/illustrations/iso/brackets-dark.svg +6 -0
- package/assets/illustrations/iso/brackets.svg +6 -0
- package/assets/illustrations/iso/city-dark.svg +6 -0
- package/assets/illustrations/iso/city.svg +6 -0
- package/assets/illustrations/iso/conveyor-dark.svg +6 -0
- package/assets/illustrations/iso/conveyor.svg +6 -0
- package/assets/illustrations/iso/database-dark.svg +6 -0
- package/assets/illustrations/iso/database.svg +6 -0
- package/assets/illustrations/iso/documents-dark.svg +6 -0
- package/assets/illustrations/iso/documents.svg +6 -0
- package/assets/illustrations/iso/inbox-dark.svg +6 -0
- package/assets/illustrations/iso/inbox.svg +6 -0
- package/assets/illustrations/iso/laptop-dark.svg +6 -0
- package/assets/illustrations/iso/laptop.svg +6 -0
- package/assets/illustrations/iso/monitor-dark.svg +6 -0
- package/assets/illustrations/iso/monitor.svg +6 -0
- package/assets/illustrations/iso/pipeline-dark.svg +6 -0
- package/assets/illustrations/iso/pipeline.svg +6 -0
- package/assets/illustrations/iso/platform-dark.svg +6 -0
- package/assets/illustrations/iso/platform.svg +6 -0
- package/assets/illustrations/iso/server-dark.svg +6 -0
- package/assets/illustrations/iso/server.svg +6 -0
- package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
- package/assets/illustrations/iso/spreadsheet.svg +6 -0
- package/assets/illustrations/iso/timeline-dark.svg +6 -0
- package/assets/illustrations/iso/timeline.svg +6 -0
- package/assets/illustrations/sheet/construction.svg +115 -0
- package/assets/illustrations/sheet/crescent.svg +40 -0
- package/assets/illustrations/sheet/limb.svg +42 -0
- package/assets/illustrations/sheet/stress-axis.svg +119 -0
- package/assets/illustrations/sheet/totality.svg +215 -0
- package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
- package/assets/logo-left.svg +1 -0
- package/assets/logo-right.svg +1 -0
- package/assets/logo.svg +1 -0
- package/dist/components/_overlay.d.ts +47 -0
- package/dist/components/_overlay.js +59 -0
- package/dist/components/accordion.d.ts +32 -0
- package/dist/components/accordion.js +39 -0
- package/dist/components/alert-dialog.d.ts +45 -0
- package/dist/components/alert-dialog.js +56 -0
- package/dist/components/alert.d.ts +35 -0
- package/dist/components/alert.js +42 -0
- package/dist/components/ascii-field.d.ts +34 -0
- package/dist/components/ascii-field.js +410 -0
- package/dist/components/aspect-ratio.d.ts +14 -0
- package/dist/components/aspect-ratio.js +17 -0
- package/dist/components/avatar.d.ts +42 -0
- package/dist/components/avatar.js +55 -0
- package/dist/components/badge.d.ts +70 -0
- package/dist/components/badge.js +62 -0
- package/dist/components/bottom-nav.d.ts +86 -0
- package/dist/components/bottom-nav.js +175 -0
- package/dist/components/breadcrumb.d.ts +31 -0
- package/dist/components/breadcrumb.js +37 -0
- package/dist/components/button-group.d.ts +30 -0
- package/dist/components/button-group.js +47 -0
- package/dist/components/button.d.ts +53 -0
- package/dist/components/button.js +130 -0
- package/dist/components/calendar.d.ts +26 -0
- package/dist/components/calendar.js +179 -0
- package/dist/components/card.d.ts +42 -0
- package/dist/components/card.js +76 -0
- package/dist/components/carousel.d.ts +109 -0
- package/dist/components/carousel.js +231 -0
- package/dist/components/chart.d.ts +189 -0
- package/dist/components/chart.js +323 -0
- package/dist/components/checkbox.d.ts +23 -0
- package/dist/components/checkbox.js +43 -0
- package/dist/components/code-block.d.ts +55 -0
- package/dist/components/code-block.js +100 -0
- package/dist/components/collapsible.d.ts +20 -0
- package/dist/components/collapsible.js +32 -0
- package/dist/components/color-picker.d.ts +107 -0
- package/dist/components/color-picker.js +428 -0
- package/dist/components/combobox.d.ts +99 -0
- package/dist/components/combobox.js +172 -0
- package/dist/components/command.d.ts +132 -0
- package/dist/components/command.js +257 -0
- package/dist/components/context-menu.d.ts +29 -0
- package/dist/components/context-menu.js +35 -0
- package/dist/components/conversation.d.ts +36 -0
- package/dist/components/conversation.js +303 -0
- package/dist/components/copy-button.d.ts +55 -0
- package/dist/components/copy-button.js +133 -0
- package/dist/components/data-table.d.ts +235 -0
- package/dist/components/data-table.js +655 -0
- package/dist/components/date-picker.d.ts +160 -0
- package/dist/components/date-picker.js +338 -0
- package/dist/components/dialog.d.ts +57 -0
- package/dist/components/dialog.js +95 -0
- package/dist/components/direction.d.ts +16 -0
- package/dist/components/direction.js +18 -0
- package/dist/components/drawer.d.ts +69 -0
- package/dist/components/drawer.js +79 -0
- package/dist/components/empty.d.ts +31 -0
- package/dist/components/empty.js +50 -0
- package/dist/components/feature-list.d.ts +54 -0
- package/dist/components/feature-list.js +43 -0
- package/dist/components/field.d.ts +34 -0
- package/dist/components/field.js +81 -0
- package/dist/components/file-drop.d.ts +77 -0
- package/dist/components/file-drop.js +258 -0
- package/dist/components/filter-bar.d.ts +153 -0
- package/dist/components/filter-bar.js +334 -0
- package/dist/components/form.d.ts +35 -0
- package/dist/components/form.js +56 -0
- package/dist/components/graph.d.ts +146 -0
- package/dist/components/graph.js +825 -0
- package/dist/components/illustration.d.ts +85 -0
- package/dist/components/illustration.js +165 -0
- package/dist/components/input-group.d.ts +138 -0
- package/dist/components/input-group.js +312 -0
- package/dist/components/input.d.ts +16 -0
- package/dist/components/input.js +25 -0
- package/dist/components/item.d.ts +64 -0
- package/dist/components/item.js +116 -0
- package/dist/components/kbd.d.ts +50 -0
- package/dist/components/kbd.js +45 -0
- package/dist/components/label.d.ts +12 -0
- package/dist/components/label.js +24 -0
- package/dist/components/layout.d.ts +136 -0
- package/dist/components/layout.js +162 -0
- package/dist/components/lightbox.d.ts +100 -0
- package/dist/components/lightbox.js +439 -0
- package/dist/components/locale.d.ts +44 -0
- package/dist/components/locale.js +37 -0
- package/dist/components/logo.d.ts +54 -0
- package/dist/components/logo.js +96 -0
- package/dist/components/menu.d.ts +60 -0
- package/dist/components/menu.js +140 -0
- package/dist/components/menubar.d.ts +62 -0
- package/dist/components/menubar.js +223 -0
- package/dist/components/message.d.ts +42 -0
- package/dist/components/message.js +59 -0
- package/dist/components/meter.d.ts +31 -0
- package/dist/components/meter.js +27 -0
- package/dist/components/money-input.d.ts +80 -0
- package/dist/components/money-input.js +253 -0
- package/dist/components/native-select.d.ts +26 -0
- package/dist/components/native-select.js +35 -0
- package/dist/components/navigation-menu.d.ts +42 -0
- package/dist/components/navigation-menu.js +97 -0
- package/dist/components/number-field.d.ts +55 -0
- package/dist/components/number-field.js +164 -0
- package/dist/components/otp-field.d.ts +48 -0
- package/dist/components/otp-field.js +102 -0
- package/dist/components/pagination.d.ts +37 -0
- package/dist/components/pagination.js +81 -0
- package/dist/components/pdf-viewer.d.ts +134 -0
- package/dist/components/pdf-viewer.js +996 -0
- package/dist/components/phone-input.d.ts +79 -0
- package/dist/components/phone-input.js +282 -0
- package/dist/components/popover.d.ts +33 -0
- package/dist/components/popover.js +48 -0
- package/dist/components/preview-card.d.ts +25 -0
- package/dist/components/preview-card.js +22 -0
- package/dist/components/progress.d.ts +27 -0
- package/dist/components/progress.js +25 -0
- package/dist/components/prompt-input.d.ts +156 -0
- package/dist/components/prompt-input.js +415 -0
- package/dist/components/quote.d.ts +22 -0
- package/dist/components/quote.js +15 -0
- package/dist/components/radio-group.d.ts +18 -0
- package/dist/components/radio-group.js +34 -0
- package/dist/components/rating.d.ts +73 -0
- package/dist/components/rating.js +124 -0
- package/dist/components/reasoning.d.ts +46 -0
- package/dist/components/reasoning.js +73 -0
- package/dist/components/resizable.d.ts +47 -0
- package/dist/components/resizable.js +44 -0
- package/dist/components/response.d.ts +41 -0
- package/dist/components/response.js +566 -0
- package/dist/components/scroll-area.d.ts +33 -0
- package/dist/components/scroll-area.js +31 -0
- package/dist/components/select.d.ts +35 -0
- package/dist/components/select.js +71 -0
- package/dist/components/separator.d.ts +14 -0
- package/dist/components/separator.js +17 -0
- package/dist/components/sidebar.d.ts +163 -0
- package/dist/components/sidebar.js +505 -0
- package/dist/components/site-header.d.ts +93 -0
- package/dist/components/site-header.js +121 -0
- package/dist/components/skeleton.d.ts +31 -0
- package/dist/components/skeleton.js +29 -0
- package/dist/components/slider.d.ts +24 -0
- package/dist/components/slider.js +131 -0
- package/dist/components/sortable.d.ts +178 -0
- package/dist/components/sortable.js +1258 -0
- package/dist/components/sources.d.ts +40 -0
- package/dist/components/sources.js +42 -0
- package/dist/components/spinner.d.ts +48 -0
- package/dist/components/spinner.js +75 -0
- package/dist/components/stat.d.ts +91 -0
- package/dist/components/stat.js +141 -0
- package/dist/components/stepper.d.ts +71 -0
- package/dist/components/stepper.js +101 -0
- package/dist/components/suggestions.d.ts +20 -0
- package/dist/components/suggestions.js +18 -0
- package/dist/components/switch.d.ts +14 -0
- package/dist/components/switch.js +26 -0
- package/dist/components/table.d.ts +172 -0
- package/dist/components/table.js +895 -0
- package/dist/components/tabs.d.ts +25 -0
- package/dist/components/tabs.js +162 -0
- package/dist/components/tag.d.ts +41 -0
- package/dist/components/tag.js +88 -0
- package/dist/components/tags-input.d.ts +56 -0
- package/dist/components/tags-input.js +271 -0
- package/dist/components/textarea.d.ts +13 -0
- package/dist/components/textarea.js +16 -0
- package/dist/components/theme.d.ts +55 -0
- package/dist/components/theme.js +120 -0
- package/dist/components/time-field.d.ts +70 -0
- package/dist/components/time-field.js +450 -0
- package/dist/components/timeline.d.ts +92 -0
- package/dist/components/timeline.js +108 -0
- package/dist/components/tippy.d.ts +48 -0
- package/dist/components/tippy.js +648 -0
- package/dist/components/toast.d.ts +88 -0
- package/dist/components/toast.js +205 -0
- package/dist/components/toggle-group.d.ts +41 -0
- package/dist/components/toggle-group.js +140 -0
- package/dist/components/toggle.d.ts +23 -0
- package/dist/components/toggle.js +35 -0
- package/dist/components/tool-call.d.ts +63 -0
- package/dist/components/tool-call.js +68 -0
- package/dist/components/toolbar.d.ts +17 -0
- package/dist/components/toolbar.js +39 -0
- package/dist/components/tooltip.d.ts +42 -0
- package/dist/components/tooltip.js +47 -0
- package/dist/components/tour.d.ts +127 -0
- package/dist/components/tour.js +648 -0
- package/dist/components/tree.d.ts +75 -0
- package/dist/components/tree.js +649 -0
- package/dist/components/typography.d.ts +134 -0
- package/dist/components/typography.js +176 -0
- package/dist/components/video-player.d.ts +284 -0
- package/dist/components/video-player.js +1392 -0
- package/dist/illustration.d.ts +2 -0
- package/dist/illustration.js +7 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.js +94 -0
- package/dist/lib/cn.d.ts +20 -0
- package/dist/lib/cn.js +38 -0
- package/dist/lib/code-highlight.d.ts +18 -0
- package/dist/lib/code-highlight.js +174 -0
- package/dist/lib/code-theme.d.ts +19 -0
- package/dist/lib/code-theme.js +140 -0
- package/dist/lib/collapse-row.d.ts +9 -0
- package/dist/lib/collapse-row.js +129 -0
- package/dist/lib/digit-roll.d.ts +21 -0
- package/dist/lib/digit-roll.js +31 -0
- package/dist/lib/editorial-assets.d.ts +16 -0
- package/dist/lib/editorial-assets.js +56 -0
- package/dist/lib/field-errors.d.ts +28 -0
- package/dist/lib/field-errors.js +24 -0
- package/dist/lib/field-value.d.ts +13 -0
- package/dist/lib/field-value.js +44 -0
- package/dist/lib/figure/catalog.d.ts +127 -0
- package/dist/lib/figure/catalog.js +130 -0
- package/dist/lib/figure/figures/automation.d.ts +7 -0
- package/dist/lib/figure/figures/automation.js +143 -0
- package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
- package/dist/lib/figure/figures/bar-chart.js +99 -0
- package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
- package/dist/lib/figure/figures/brackets-classic.js +170 -0
- package/dist/lib/figure/figures/brackets.d.ts +8 -0
- package/dist/lib/figure/figures/brackets.js +84 -0
- package/dist/lib/figure/figures/city.d.ts +7 -0
- package/dist/lib/figure/figures/city.js +93 -0
- package/dist/lib/figure/figures/conveyor.d.ts +7 -0
- package/dist/lib/figure/figures/conveyor.js +97 -0
- package/dist/lib/figure/figures/database.d.ts +7 -0
- package/dist/lib/figure/figures/database.js +65 -0
- package/dist/lib/figure/figures/documents.d.ts +7 -0
- package/dist/lib/figure/figures/documents.js +83 -0
- package/dist/lib/figure/figures/inbox.d.ts +7 -0
- package/dist/lib/figure/figures/inbox.js +92 -0
- package/dist/lib/figure/figures/laptop.d.ts +7 -0
- package/dist/lib/figure/figures/laptop.js +67 -0
- package/dist/lib/figure/figures/monitor.d.ts +7 -0
- package/dist/lib/figure/figures/monitor.js +59 -0
- package/dist/lib/figure/figures/pipeline.d.ts +8 -0
- package/dist/lib/figure/figures/pipeline.js +117 -0
- package/dist/lib/figure/figures/platform.d.ts +7 -0
- package/dist/lib/figure/figures/platform.js +117 -0
- package/dist/lib/figure/figures/server.d.ts +7 -0
- package/dist/lib/figure/figures/server.js +115 -0
- package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
- package/dist/lib/figure/figures/spreadsheet.js +87 -0
- package/dist/lib/figure/figures/timeline.d.ts +7 -0
- package/dist/lib/figure/figures/timeline.js +65 -0
- package/dist/lib/figure/kernel.d.ts +152 -0
- package/dist/lib/figure/kernel.js +576 -0
- package/dist/lib/figure/parts.d.ts +42 -0
- package/dist/lib/figure/parts.js +126 -0
- package/dist/lib/form-reset.d.ts +11 -0
- package/dist/lib/form-reset.js +22 -0
- package/dist/lib/glide.d.ts +53 -0
- package/dist/lib/glide.js +138 -0
- package/dist/lib/graph-layout.d.ts +58 -0
- package/dist/lib/graph-layout.js +209 -0
- package/dist/lib/illustration-drawings.d.ts +89 -0
- package/dist/lib/illustration-drawings.js +539 -0
- package/dist/lib/illustration-info.d.ts +37 -0
- package/dist/lib/illustration-info.js +22 -0
- package/dist/lib/illustration-library.d.ts +87 -0
- package/dist/lib/illustration-library.js +352 -0
- package/dist/lib/logo-geometry.d.ts +29 -0
- package/dist/lib/logo-geometry.js +67 -0
- package/dist/lib/markdown-guard.d.ts +16 -0
- package/dist/lib/markdown-guard.js +123 -0
- package/dist/lib/merge-refs.d.ts +10 -0
- package/dist/lib/merge-refs.js +26 -0
- package/dist/lib/money.d.ts +73 -0
- package/dist/lib/money.js +343 -0
- package/dist/lib/motion.d.ts +6 -0
- package/dist/lib/motion.js +12 -0
- package/dist/lib/pdf-worker.d.ts +1 -0
- package/dist/lib/pdf-worker.js +6 -0
- package/dist/lib/pdf.d.ts +19 -0
- package/dist/lib/pdf.js +58 -0
- package/dist/lib/phone-countries.d.ts +1 -0
- package/dist/lib/phone-countries.js +281 -0
- package/dist/lib/phone.d.ts +90 -0
- package/dist/lib/phone.js +286 -0
- package/dist/lib/platform.d.ts +38 -0
- package/dist/lib/platform.js +75 -0
- package/dist/lib/room.d.ts +25 -0
- package/dist/lib/room.js +46 -0
- package/dist/lib/row-index.d.ts +15 -0
- package/dist/lib/row-index.js +136 -0
- package/dist/lib/table-fit.d.ts +143 -0
- package/dist/lib/table-fit.js +596 -0
- package/dist/lib/theme-script.d.ts +31 -0
- package/dist/lib/theme-script.js +49 -0
- package/dist/lib/tippy/pixels.d.ts +47 -0
- package/dist/lib/tippy/pixels.js +187 -0
- package/dist/lib/tippy/sprite.d.ts +86 -0
- package/dist/lib/tippy/sprite.js +753 -0
- package/dist/messages/de.d.ts +12 -0
- package/dist/messages/de.js +326 -0
- package/dist/styles/expressive.css +203 -0
- package/dist/styles/fonts.css +145 -0
- package/dist/styles/index.css +207 -0
- package/dist/styles/material.css +317 -0
- package/dist/styles/parts/ai.css +361 -0
- package/dist/styles/parts/brand.css +75 -0
- package/dist/styles/parts/controls.css +774 -0
- package/dist/styles/parts/data.css +222 -0
- package/dist/styles/parts/editorial.css +120 -0
- package/dist/styles/parts/feedback.css +340 -0
- package/dist/styles/parts/foundations.css +166 -0
- package/dist/styles/parts/graph.css +214 -0
- package/dist/styles/parts/inputs.css +261 -0
- package/dist/styles/parts/isometric.css +124 -0
- package/dist/styles/parts/navigation.css +424 -0
- package/dist/styles/parts/overlays.css +250 -0
- package/dist/styles/parts/pdf.css +154 -0
- package/dist/styles/parts/react-flow.css +519 -0
- package/dist/styles/tokens.css +299 -0
- package/dist/vite.d.ts +66 -0
- package/dist/vite.js +29 -0
- package/package.json +183 -5
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Isometric figures: line drawings in one hairline stroke (figure/kernel.ts).
|
|
3
|
+
*
|
|
4
|
+
* Plates are filled with the colour the figure sits on, so a near plate hides what is behind it;
|
|
5
|
+
* set --fig-plate where that is not --background. One bright stroke is the only highlight.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
[data-slot="illustration"][data-kind="iso"] {
|
|
9
|
+
--fig-plate: var(--background);
|
|
10
|
+
--fig-hi: var(--foreground);
|
|
11
|
+
--fig-edge: color-mix(in oklab, var(--foreground) 70%, var(--background));
|
|
12
|
+
--fig-mid: color-mix(in oklab, var(--foreground) 46%, var(--background));
|
|
13
|
+
--fig-lo: color-mix(in oklab, var(--foreground) 26%, var(--background));
|
|
14
|
+
--fig-stroke: 1px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-slot="illustration"][data-kind="iso"] path {
|
|
18
|
+
fill: none;
|
|
19
|
+
stroke: var(--fig-mid);
|
|
20
|
+
stroke-width: var(--fig-stroke);
|
|
21
|
+
stroke-linecap: round;
|
|
22
|
+
stroke-linejoin: round;
|
|
23
|
+
vector-effect: non-scaling-stroke;
|
|
24
|
+
transition:
|
|
25
|
+
stroke var(--duration) var(--ease),
|
|
26
|
+
fill 700ms var(--ease);
|
|
27
|
+
}
|
|
28
|
+
[data-slot="illustration"][data-kind="iso"] .sil {
|
|
29
|
+
fill: var(--fig-plate);
|
|
30
|
+
stroke: var(--fig-edge);
|
|
31
|
+
}
|
|
32
|
+
[data-slot="illustration"][data-kind="iso"] .crease {
|
|
33
|
+
stroke: var(--fig-lo);
|
|
34
|
+
}
|
|
35
|
+
[data-slot="illustration"][data-kind="iso"] .guide {
|
|
36
|
+
stroke: var(--fig-lo);
|
|
37
|
+
stroke-dasharray: 2 3;
|
|
38
|
+
}
|
|
39
|
+
[data-slot="illustration"][data-kind="iso"] .led {
|
|
40
|
+
stroke-width: calc(var(--fig-stroke) * 2.4);
|
|
41
|
+
}
|
|
42
|
+
[data-slot="illustration"][data-kind="iso"] .pulse {
|
|
43
|
+
stroke: var(--fig-hi);
|
|
44
|
+
stroke-width: calc(var(--fig-stroke) * 2.4);
|
|
45
|
+
transition: none;
|
|
46
|
+
}
|
|
47
|
+
[data-slot="illustration"][data-kind="iso"] .hi {
|
|
48
|
+
stroke: var(--fig-hi);
|
|
49
|
+
}
|
|
50
|
+
/* A lit part: it fills with the bright tone as if switched on — fast on, slow off. */
|
|
51
|
+
[data-slot="illustration"][data-kind="iso"] .lit .sil {
|
|
52
|
+
fill: var(--fig-hi);
|
|
53
|
+
stroke: var(--fig-hi);
|
|
54
|
+
transition:
|
|
55
|
+
stroke 120ms var(--ease),
|
|
56
|
+
fill 120ms var(--ease);
|
|
57
|
+
}
|
|
58
|
+
[data-slot="illustration"][data-kind="iso"] .lit .crease {
|
|
59
|
+
stroke: var(--fig-plate);
|
|
60
|
+
transition: stroke 120ms var(--ease);
|
|
61
|
+
}
|
|
62
|
+
/* A reply that came back: status green, as a confirmation. */
|
|
63
|
+
[data-slot="illustration"][data-kind="iso"] .ok {
|
|
64
|
+
stroke: var(--success);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* The classic solid mark (iso/brackets-classic): filled faces in fixed tones, per scheme. */
|
|
68
|
+
[data-slot="illustration"][data-kind="iso"] {
|
|
69
|
+
--so-top: #ffffff;
|
|
70
|
+
--so-left: #ececec;
|
|
71
|
+
--so-right: #d7d7d7;
|
|
72
|
+
--so-ink-top: #555555;
|
|
73
|
+
--so-ink-left: #2b2b2b;
|
|
74
|
+
--so-ink-right: #1a1a1a;
|
|
75
|
+
--so-edge: rgb(0 0 0 / 0.22);
|
|
76
|
+
--so-ink-edge: rgb(255 255 255 / 0.1);
|
|
77
|
+
--so-shadow: rgb(0 0 0 / 0.07);
|
|
78
|
+
--so-detail: rgb(0 0 0 / 0.38);
|
|
79
|
+
}
|
|
80
|
+
:is(.dark, [data-theme="dark"], .theme-dark, .theme-night) [data-slot="illustration"][data-kind="iso"] {
|
|
81
|
+
--so-top: #2e2e2e;
|
|
82
|
+
--so-left: #202020;
|
|
83
|
+
--so-right: #161616;
|
|
84
|
+
--so-ink-top: #f4f4f4;
|
|
85
|
+
--so-ink-left: #d6d6d6;
|
|
86
|
+
--so-ink-right: #b4b4b4;
|
|
87
|
+
--so-edge: rgb(255 255 255 / 0.14);
|
|
88
|
+
--so-ink-edge: rgb(0 0 0 / 0.18);
|
|
89
|
+
--so-shadow: rgb(0 0 0 / 0.45);
|
|
90
|
+
--so-detail: rgb(255 255 255 / 0.34);
|
|
91
|
+
}
|
|
92
|
+
.theme-light [data-slot="illustration"][data-kind="iso"] {
|
|
93
|
+
--so-top: #ffffff;
|
|
94
|
+
--so-left: #ececec;
|
|
95
|
+
--so-right: #d7d7d7;
|
|
96
|
+
--so-ink-top: #555555;
|
|
97
|
+
--so-ink-left: #2b2b2b;
|
|
98
|
+
--so-ink-right: #1a1a1a;
|
|
99
|
+
--so-edge: rgb(0 0 0 / 0.22);
|
|
100
|
+
--so-ink-edge: rgb(255 255 255 / 0.1);
|
|
101
|
+
--so-shadow: rgb(0 0 0 / 0.07);
|
|
102
|
+
--so-detail: rgb(0 0 0 / 0.38);
|
|
103
|
+
}
|
|
104
|
+
[data-slot="illustration"][data-kind="iso"] :is(.so-top, .so-left, .so-right) {
|
|
105
|
+
stroke: var(--so-edge);
|
|
106
|
+
stroke-width: 1.25px;
|
|
107
|
+
}
|
|
108
|
+
[data-slot="illustration"][data-kind="iso"] :is(.so-ink-top, .so-ink-left, .so-ink-right) {
|
|
109
|
+
stroke: var(--so-ink-edge);
|
|
110
|
+
stroke-width: 1.25px;
|
|
111
|
+
}
|
|
112
|
+
[data-slot="illustration"][data-kind="iso"] .so-top { fill: var(--so-top); }
|
|
113
|
+
[data-slot="illustration"][data-kind="iso"] .so-left { fill: var(--so-left); }
|
|
114
|
+
[data-slot="illustration"][data-kind="iso"] .so-right { fill: var(--so-right); }
|
|
115
|
+
[data-slot="illustration"][data-kind="iso"] .so-ink-top { fill: var(--so-ink-top); }
|
|
116
|
+
[data-slot="illustration"][data-kind="iso"] .so-ink-left { fill: var(--so-ink-left); }
|
|
117
|
+
[data-slot="illustration"][data-kind="iso"] .so-ink-right { fill: var(--so-ink-right); }
|
|
118
|
+
[data-slot="illustration"][data-kind="iso"] .so-shadow {
|
|
119
|
+
fill: var(--so-shadow);
|
|
120
|
+
stroke: none;
|
|
121
|
+
}
|
|
122
|
+
[data-slot="illustration"][data-kind="iso"] .so-detail {
|
|
123
|
+
stroke: var(--so-detail);
|
|
124
|
+
}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
/* navigation components — owned by the navigation group. Prefer Tailwind in TSX; use this only for what classes cannot express (keyframes, complex selectors, SVG). */
|
|
2
|
+
|
|
3
|
+
/* ── ScrollArea: edge fades driven by Base UI's overflow distances ─────────────
|
|
4
|
+
* The fade grows from 0 to --scroll-fade as the user scrolls away from an edge.
|
|
5
|
+
* The end-side fallbacks keep the bottom/right fade visible before hydration. Keyed on
|
|
6
|
+
* data-scroll-viewport, not the slot, so a list rendered as the viewport keeps its own slot. */
|
|
7
|
+
|
|
8
|
+
[data-scroll-viewport] {
|
|
9
|
+
--scroll-fade: 24px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-scroll-viewport][data-fade="y"] {
|
|
13
|
+
mask-image: linear-gradient(
|
|
14
|
+
to bottom,
|
|
15
|
+
transparent 0,
|
|
16
|
+
#000 min(var(--scroll-fade), var(--scroll-area-overflow-y-start, 0px)),
|
|
17
|
+
#000 calc(100% - min(var(--scroll-fade), var(--scroll-area-overflow-y-end, var(--scroll-fade)))),
|
|
18
|
+
transparent 100%
|
|
19
|
+
);
|
|
20
|
+
mask-repeat: no-repeat;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-scroll-viewport][data-fade="x"] {
|
|
24
|
+
mask-image: linear-gradient(
|
|
25
|
+
to right,
|
|
26
|
+
transparent 0,
|
|
27
|
+
#000 min(var(--scroll-fade), var(--scroll-area-overflow-x-start, 0px)),
|
|
28
|
+
#000 calc(100% - min(var(--scroll-fade), var(--scroll-area-overflow-x-end, var(--scroll-fade)))),
|
|
29
|
+
transparent 100%
|
|
30
|
+
);
|
|
31
|
+
mask-repeat: no-repeat;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-scroll-viewport][data-fade="both"] {
|
|
35
|
+
mask-image:
|
|
36
|
+
linear-gradient(
|
|
37
|
+
to bottom,
|
|
38
|
+
transparent 0,
|
|
39
|
+
#000 min(var(--scroll-fade), var(--scroll-area-overflow-y-start, 0px)),
|
|
40
|
+
#000 calc(100% - min(var(--scroll-fade), var(--scroll-area-overflow-y-end, var(--scroll-fade)))),
|
|
41
|
+
transparent 100%
|
|
42
|
+
),
|
|
43
|
+
linear-gradient(
|
|
44
|
+
to right,
|
|
45
|
+
transparent 0,
|
|
46
|
+
#000 min(var(--scroll-fade), var(--scroll-area-overflow-x-start, 0px)),
|
|
47
|
+
#000 calc(100% - min(var(--scroll-fade), var(--scroll-area-overflow-x-end, var(--scroll-fade)))),
|
|
48
|
+
transparent 100%
|
|
49
|
+
);
|
|
50
|
+
mask-composite: intersect;
|
|
51
|
+
mask-repeat: no-repeat;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* ── Progress: indeterminate sweep (static under reduced motion) ─────────────── */
|
|
55
|
+
|
|
56
|
+
@keyframes ep-progress-indeterminate {
|
|
57
|
+
from {
|
|
58
|
+
translate: -100% 0;
|
|
59
|
+
}
|
|
60
|
+
to {
|
|
61
|
+
translate: 250% 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-slot="progress-indicator"][data-indeterminate] {
|
|
66
|
+
width: 40%;
|
|
67
|
+
animation: ep-progress-indeterminate 1.4s var(--ease) infinite;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (prefers-reduced-motion: reduce) {
|
|
71
|
+
[data-slot="progress-indicator"][data-indeterminate] {
|
|
72
|
+
animation: none;
|
|
73
|
+
width: 100%;
|
|
74
|
+
opacity: 0.35;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* ── Sidebar: scrolls, never shows a scrollbar ─────────────────────────────────
|
|
79
|
+
* Covers a Sidebar that scrolls itself and the element that directly wraps it. */
|
|
80
|
+
|
|
81
|
+
:where([data-slot="sidebar"], :has(> [data-slot="sidebar"])) {
|
|
82
|
+
scrollbar-width: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where([data-slot="sidebar"], :has(> [data-slot="sidebar"]))::-webkit-scrollbar {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ── Toolbar buttons ───────────────────────────────────────────────────────────
|
|
90
|
+
* Four states that never look alike:
|
|
91
|
+
* off flat, muted text
|
|
92
|
+
* hover text and icon brighten to foreground — no fill, so it never mimics "on"
|
|
93
|
+
* on aria-pressed: the raised material
|
|
94
|
+
* press the pressed inset, in ~90ms — the material shows the click, nothing moves
|
|
95
|
+
* Theme shadows are inlined: they are only emitted as variables when a utility uses them. */
|
|
96
|
+
|
|
97
|
+
@layer components {
|
|
98
|
+
[data-slot="toolbar-button"] {
|
|
99
|
+
color: var(--muted-foreground);
|
|
100
|
+
border: 1px solid transparent;
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
transition:
|
|
103
|
+
background-color var(--duration) var(--ease),
|
|
104
|
+
color var(--duration) var(--ease),
|
|
105
|
+
box-shadow var(--duration) var(--ease);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (hover: hover) {
|
|
109
|
+
[data-slot="toolbar-button"]:not(:disabled, [data-disabled]):hover {
|
|
110
|
+
color: var(--foreground);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[data-slot="toolbar-button"][aria-pressed="true"] {
|
|
115
|
+
color: var(--foreground);
|
|
116
|
+
background-color: var(--control-hover);
|
|
117
|
+
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
118
|
+
box-shadow:
|
|
119
|
+
0 0 0 1px var(--control-edge),
|
|
120
|
+
inset 0 1px 0 var(--control-highlight),
|
|
121
|
+
inset 0 0 0 1px var(--control-inner-edge);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-slot="toolbar-button"]:active:not(:disabled, [data-disabled]) {
|
|
125
|
+
color: var(--foreground);
|
|
126
|
+
background-color: var(--control-hover);
|
|
127
|
+
background-image: none;
|
|
128
|
+
box-shadow:
|
|
129
|
+
0 0 0 1px var(--control-edge),
|
|
130
|
+
inset 0 2px 4px #0000002e,
|
|
131
|
+
inset 0 0 0 1px var(--control-inner-edge);
|
|
132
|
+
transition-duration: var(--duration), var(--duration), 90ms;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ── Sidebar, inset variant ────────────────────────────────────────────────────
|
|
137
|
+
* The page sits beside the sidebar as a raised panel: 8px from the shell's edges, 20px corners,
|
|
138
|
+
* the region material. The edge against the sidebar has no margin while the sidebar is open (the
|
|
139
|
+
* sidebar's own padding is the gap) and takes 8px when it slides away. Desktop only; on mobile
|
|
140
|
+
* the sidebar is a sheet and the page fills the shell. Unlayered on purpose, so it wins over any
|
|
141
|
+
* utility class on SidebarInset. */
|
|
142
|
+
|
|
143
|
+
@media (width >= 48rem) {
|
|
144
|
+
[data-slot="sidebar-wrapper"]:has(> [data-variant="inset"]) > [data-slot="sidebar-inset"] {
|
|
145
|
+
@apply surface-container;
|
|
146
|
+
margin: 8px;
|
|
147
|
+
border-radius: var(--radius-card);
|
|
148
|
+
transition: margin var(--duration) var(--ease);
|
|
149
|
+
}
|
|
150
|
+
[data-slot="sidebar-wrapper"]:has(
|
|
151
|
+
> [data-variant="inset"][data-side="left"]:not([data-collapsible="offcanvas"])
|
|
152
|
+
)
|
|
153
|
+
> [data-slot="sidebar-inset"] {
|
|
154
|
+
margin-inline-start: 0;
|
|
155
|
+
}
|
|
156
|
+
[data-slot="sidebar-wrapper"]:has(
|
|
157
|
+
> [data-variant="inset"][data-side="right"]:not([data-collapsible="offcanvas"])
|
|
158
|
+
)
|
|
159
|
+
> [data-slot="sidebar-inset"] {
|
|
160
|
+
margin-inline-end: 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* ── Sidebar, floating variant ─────────────────────────────────────────────────
|
|
165
|
+
* The reverse of inset: the sidebar is the raised panel — the region material at 20px corners,
|
|
166
|
+
* 8px from the shell's top, bottom and outer edge — and the page beside it stays flat. Its width
|
|
167
|
+
* stays fixed while it collapses, so offcanvas slides it away and the icon rail keeps the margin.
|
|
168
|
+
* Unlayered: it overrides the panel's own width and inset utilities. Desktop only. */
|
|
169
|
+
|
|
170
|
+
@media (width >= 48rem) {
|
|
171
|
+
[data-slot="sidebar-shell"][data-variant="floating"] > [data-slot="sidebar"],
|
|
172
|
+
nav[data-slot="sidebar"][data-variant="floating"] {
|
|
173
|
+
@apply surface-container;
|
|
174
|
+
border-radius: var(--radius-card);
|
|
175
|
+
overflow: clip;
|
|
176
|
+
}
|
|
177
|
+
[data-slot="sidebar-shell"][data-variant="floating"] > [data-slot="sidebar"] {
|
|
178
|
+
top: 8px;
|
|
179
|
+
bottom: 8px;
|
|
180
|
+
height: auto;
|
|
181
|
+
width: calc(var(--sidebar-width) - 8px);
|
|
182
|
+
}
|
|
183
|
+
[data-slot="sidebar-shell"][data-variant="floating"][data-side="left"] > [data-slot="sidebar"] {
|
|
184
|
+
inset-inline-start: 8px;
|
|
185
|
+
}
|
|
186
|
+
[data-slot="sidebar-shell"][data-variant="floating"][data-side="right"] > [data-slot="sidebar"] {
|
|
187
|
+
inset-inline-end: 8px;
|
|
188
|
+
}
|
|
189
|
+
[data-slot="sidebar-shell"][data-variant="floating"][data-collapsible="icon"] {
|
|
190
|
+
width: calc(var(--sidebar-width-icon) + 8px);
|
|
191
|
+
}
|
|
192
|
+
[data-slot="sidebar-shell"][data-variant="floating"][data-collapsible="icon"] > [data-slot="sidebar"] {
|
|
193
|
+
width: var(--sidebar-width-icon);
|
|
194
|
+
}
|
|
195
|
+
nav[data-slot="sidebar"][data-variant="floating"] {
|
|
196
|
+
top: 8px;
|
|
197
|
+
margin: 8px;
|
|
198
|
+
height: calc(100svh - 16px);
|
|
199
|
+
max-height: calc(100% - 16px);
|
|
200
|
+
width: calc(var(--sidebar-width) - 8px);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* ── Menubar: popups on the bar's shared surface ─────────────────────────────
|
|
205
|
+
* A menubar popup hands its material to the bar's gliding surface (menubar.tsx) and keeps only
|
|
206
|
+
* its items. Unlayered so it wins over the popup's material-menu. */
|
|
207
|
+
|
|
208
|
+
[data-slot="menubar-content"][data-surface] {
|
|
209
|
+
background: transparent;
|
|
210
|
+
border-color: transparent;
|
|
211
|
+
box-shadow: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* ── Forced colours: progress, the current tab and page, pressed tools ───────
|
|
215
|
+
* A contrast theme replaces fills with the page colour and drops shadows: the value of a
|
|
216
|
+
* progress bar or meter, the raised current tab and the current page's edge would vanish. They
|
|
217
|
+
* take system colours instead (see the same block in controls.css). */
|
|
218
|
+
@media (forced-colors: active) {
|
|
219
|
+
[data-slot="progress-indicator"],
|
|
220
|
+
[data-slot="meter-indicator"] {
|
|
221
|
+
forced-color-adjust: none;
|
|
222
|
+
background: Highlight;
|
|
223
|
+
}
|
|
224
|
+
[data-slot="tabs-list"][data-variant="segmented"] > [data-slot="tabs-indicator"],
|
|
225
|
+
[data-slot="pagination-indicator"] {
|
|
226
|
+
forced-color-adjust: none;
|
|
227
|
+
border: 2px solid Highlight;
|
|
228
|
+
}
|
|
229
|
+
[data-slot="toolbar-button"][aria-pressed="true"] {
|
|
230
|
+
border-width: 2px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* ── SiteHeader once scrolled: the page ground ─────────────────────────────────
|
|
235
|
+
* A flat fill would be a band of its own: nearly black in dark mode, against a page the grain
|
|
236
|
+
* lifts. So the scrolled bar is the page ground itself — --background with the faint light from
|
|
237
|
+
* above, and the two grain layers over it, all fixed to the viewport like the body's
|
|
238
|
+
* (expressive.css) so they line up with the page's. The fill is opaque on purpose: the grain
|
|
239
|
+
* blends with it as with the body, where a see-through fill would let the raw noise through and
|
|
240
|
+
* turn the bar lighter than the page.
|
|
241
|
+
*
|
|
242
|
+
* The ground (with its grain) and the hairline follow --site-header-ground: 0 until the page has
|
|
243
|
+
* scrolled --site-header-from (the component's scrollThreshold), 1 once it has scrolled the bar's
|
|
244
|
+
* height (--site-header-span) more. Where the browser ties animations to the scroll (Chrome 115+,
|
|
245
|
+
* Safari 26), one animation of that number follows the scroll position; elsewhere the component
|
|
246
|
+
* writes it once a frame. The number is a registered property on purpose: its animation runs on
|
|
247
|
+
* the main thread, where every frame reads one scroll position. Animated on the compositor
|
|
248
|
+
* (opacity), the bar now and then drew a frame from an older scroll offset — see-through over
|
|
249
|
+
* content that had already moved — after it had turned solid. No transition either, which would
|
|
250
|
+
* leave the bar behind the content it covers; only a forced `scrolled` eases. */
|
|
251
|
+
|
|
252
|
+
@property --site-header-ground {
|
|
253
|
+
syntax: "<number>";
|
|
254
|
+
inherits: true;
|
|
255
|
+
initial-value: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@layer components {
|
|
259
|
+
[data-slot="site-header"] {
|
|
260
|
+
--site-header-span: 4rem;
|
|
261
|
+
isolation: isolate;
|
|
262
|
+
/* Under the status bar on a page that draws there (viewport-fit=cover, an iPhone home-screen
|
|
263
|
+
app): the bar keeps its links clear of it, and its ground runs up behind it. */
|
|
264
|
+
padding-top: env(safe-area-inset-top, 0px);
|
|
265
|
+
border-bottom-color: color-mix(in oklab, var(--border) calc(60% * var(--site-header-ground)), transparent);
|
|
266
|
+
}
|
|
267
|
+
/* The ground and its grain are one layer, isolated and opaque inside, that fades as a whole:
|
|
268
|
+
partly in, the bar is a mix of the content behind it and the finished ground, never lighter
|
|
269
|
+
than either (grain fading over a half-clear fill would let the raw noise through). */
|
|
270
|
+
[data-slot="site-header-ground"] {
|
|
271
|
+
position: absolute;
|
|
272
|
+
inset: 0;
|
|
273
|
+
z-index: -1;
|
|
274
|
+
pointer-events: none;
|
|
275
|
+
isolation: isolate;
|
|
276
|
+
background-color: var(--background);
|
|
277
|
+
background-image: radial-gradient(110% 65% at 50% -10%, var(--page-glow), transparent 60%);
|
|
278
|
+
background-attachment: fixed;
|
|
279
|
+
opacity: var(--site-header-ground);
|
|
280
|
+
}
|
|
281
|
+
[data-slot="site-header-ground"]::before,
|
|
282
|
+
[data-slot="site-header-ground"]::after {
|
|
283
|
+
content: "";
|
|
284
|
+
position: absolute;
|
|
285
|
+
inset: 0;
|
|
286
|
+
background-image: var(--grain-noise);
|
|
287
|
+
background-size: 200px auto;
|
|
288
|
+
background-attachment: fixed;
|
|
289
|
+
}
|
|
290
|
+
[data-slot="site-header-ground"]::before {
|
|
291
|
+
mix-blend-mode: var(--page-grain-blend);
|
|
292
|
+
opacity: var(--page-grain-opacity);
|
|
293
|
+
}
|
|
294
|
+
[data-slot="site-header-ground"]::after {
|
|
295
|
+
mix-blend-mode: screen;
|
|
296
|
+
opacity: calc(var(--grain-opacity) * 0.35);
|
|
297
|
+
background-position: 97px 61px;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* A forced state changes at a time of its own, so it eases (instant under reduced motion). */
|
|
301
|
+
[data-slot="site-header"][data-forced] {
|
|
302
|
+
transition: border-color var(--duration) var(--ease);
|
|
303
|
+
}
|
|
304
|
+
[data-slot="site-header"][data-forced] > [data-slot="site-header-ground"] {
|
|
305
|
+
transition: opacity var(--duration) var(--ease);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
@supports (animation-timeline: scroll()) {
|
|
309
|
+
[data-slot="site-header"]:not([data-forced]) {
|
|
310
|
+
animation-name: ep-site-header-ground;
|
|
311
|
+
animation-duration: auto;
|
|
312
|
+
animation-timing-function: linear;
|
|
313
|
+
animation-fill-mode: both;
|
|
314
|
+
animation-timeline: scroll(root block);
|
|
315
|
+
animation-range: var(--site-header-from, 8px) calc(var(--site-header-from, 8px) + var(--site-header-span));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@keyframes ep-site-header-ground {
|
|
321
|
+
from {
|
|
322
|
+
--site-header-ground: 0;
|
|
323
|
+
}
|
|
324
|
+
to {
|
|
325
|
+
--site-header-ground: 1;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* ── BottomNav ────────────────────────────────────────────────────────────────
|
|
330
|
+
* The bar is 12px taller than a prominent control: a 46px tile in the middle of it. While a fixed
|
|
331
|
+
* bar is on screen the page reserves it as --bottom-nav-h — the bar, its hairline and the safe
|
|
332
|
+
* area under it — and scrolls focused things clear of it (WCAG 2.4.11). Zero where it is hidden
|
|
333
|
+
* (its breakpoint) or contained in a preview, so `pb-(--bottom-nav-h)` is always safe to write. */
|
|
334
|
+
|
|
335
|
+
:root {
|
|
336
|
+
--bottom-nav-bar: calc(var(--control-h-lg) + 12px);
|
|
337
|
+
--bottom-nav-h: 0px;
|
|
338
|
+
}
|
|
339
|
+
:root:has([data-slot="bottom-nav"][data-position="fixed"]) {
|
|
340
|
+
--bottom-nav-h: calc(var(--bottom-nav-bar) + 1px + env(safe-area-inset-bottom, 0px));
|
|
341
|
+
scroll-padding-bottom: var(--bottom-nav-h);
|
|
342
|
+
}
|
|
343
|
+
@media (width >= 40rem) {
|
|
344
|
+
:root:has([data-slot="bottom-nav"][data-position="fixed"][data-breakpoint="sm"]) {
|
|
345
|
+
--bottom-nav-h: 0px;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
@media (width >= 48rem) {
|
|
349
|
+
:root:has([data-slot="bottom-nav"][data-position="fixed"]:is([data-breakpoint="sm"], [data-breakpoint="md"])) {
|
|
350
|
+
--bottom-nav-h: 0px;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
@media (width >= 64rem) {
|
|
354
|
+
:root:has([data-slot="bottom-nav"][data-position="fixed"][data-breakpoint]) {
|
|
355
|
+
--bottom-nav-h: 0px;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@layer components {
|
|
360
|
+
/* The page ground, as under a scrolled SiteHeader: --background and the two grain layers,
|
|
361
|
+
fixed to the viewport so they line up with the page's. Opaque, so content scrolling under
|
|
362
|
+
the bar never shows through the grain. */
|
|
363
|
+
[data-slot="bottom-nav-ground"] {
|
|
364
|
+
position: absolute;
|
|
365
|
+
inset: 0;
|
|
366
|
+
z-index: -1;
|
|
367
|
+
pointer-events: none;
|
|
368
|
+
isolation: isolate;
|
|
369
|
+
background-color: var(--background);
|
|
370
|
+
}
|
|
371
|
+
[data-slot="bottom-nav-ground"]::before,
|
|
372
|
+
[data-slot="bottom-nav-ground"]::after {
|
|
373
|
+
content: "";
|
|
374
|
+
position: absolute;
|
|
375
|
+
inset: 0;
|
|
376
|
+
background-image: var(--grain-noise);
|
|
377
|
+
background-size: 200px auto;
|
|
378
|
+
background-attachment: fixed;
|
|
379
|
+
}
|
|
380
|
+
[data-slot="bottom-nav-ground"]::before {
|
|
381
|
+
mix-blend-mode: var(--page-grain-blend);
|
|
382
|
+
opacity: var(--page-grain-opacity);
|
|
383
|
+
}
|
|
384
|
+
[data-slot="bottom-nav-ground"]::after {
|
|
385
|
+
mix-blend-mode: screen;
|
|
386
|
+
opacity: calc(var(--grain-opacity) * 0.35);
|
|
387
|
+
background-position: 97px 61px;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* An item rests in the muted ink; hovered or current, in the full one. */
|
|
391
|
+
[data-slot="bottom-nav-item-tile"] {
|
|
392
|
+
color: var(--muted-foreground);
|
|
393
|
+
transition:
|
|
394
|
+
color var(--duration) var(--ease),
|
|
395
|
+
background-color var(--duration) var(--ease),
|
|
396
|
+
box-shadow var(--duration) var(--ease);
|
|
397
|
+
}
|
|
398
|
+
@media (hover: hover) {
|
|
399
|
+
[data-slot="bottom-nav-item"]:not([aria-disabled="true"]):hover > [data-slot="bottom-nav-item-tile"] {
|
|
400
|
+
color: var(--foreground);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
[data-slot="bottom-nav-item"][aria-current="page"] > [data-slot="bottom-nav-item-tile"] {
|
|
404
|
+
color: var(--foreground);
|
|
405
|
+
}
|
|
406
|
+
/* Until the gliding indicator has measured (server-rendered HTML), the current tile is raised
|
|
407
|
+
itself, like a secondary button. */
|
|
408
|
+
[data-slot="bottom-nav"]:not([data-indicator])
|
|
409
|
+
[data-slot="bottom-nav-item"][aria-current="page"]
|
|
410
|
+
> [data-slot="bottom-nav-item-tile"] {
|
|
411
|
+
background-color: var(--control-surface);
|
|
412
|
+
background-image: linear-gradient(180deg, var(--control-inner-edge), transparent);
|
|
413
|
+
box-shadow:
|
|
414
|
+
0 0 0 1px var(--control-edge),
|
|
415
|
+
inset 0 1px 0 var(--control-highlight),
|
|
416
|
+
inset 0 0 0 1px var(--control-inner-edge);
|
|
417
|
+
}
|
|
418
|
+
@media (forced-colors: active) {
|
|
419
|
+
[data-slot="bottom-nav-indicator"] {
|
|
420
|
+
forced-color-adjust: none;
|
|
421
|
+
border: 2px solid Highlight;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|