@beehexa/design-rules 2611.5.5 → 2611.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AGENTS.md +1 -1
- package/dist/catalog.json +3053 -777
- package/dist/docs/public/_redirects +2 -2
- package/dist/docs/public/r/action-bar.json +26 -0
- package/dist/docs/public/r/beehexa-theme.json +18 -0
- package/dist/docs/public/r/button-group.json +26 -0
- package/dist/docs/public/r/button.json +28 -0
- package/dist/docs/public/r/copy-button.json +26 -0
- package/dist/docs/public/r/dropdown-menu.json +56 -0
- package/dist/docs/public/r/index.json +66 -0
- package/dist/docs/public/r/segmented-control.json +31 -0
- package/dist/docs/public/r/toggle.json +26 -0
- package/dist/docs/public/r/toolbar.json +46 -0
- package/dist/docs/public/r/tooltip.json +41 -0
- package/dist/docs/scripts/color-pairs.mjs +2 -0
- package/dist/docs/src/components/ChildPages.astro +8 -1
- package/dist/docs/src/components/CodeExample.astro +123 -6
- package/dist/docs/src/components/ColorDemo.astro +21 -18
- package/dist/docs/src/components/ComponentTabs.astro +1 -1
- package/dist/docs/src/components/DocsFooter.astro +1 -1
- package/dist/docs/src/components/ElevationDemo.astro +2 -2
- package/dist/docs/src/components/HelpOptions.astro +8 -6
- package/dist/docs/src/components/IconBrowser.astro +2 -2
- package/dist/docs/src/components/LayoutDemo.astro +178 -99
- package/dist/docs/src/components/NativeControlsDemo.astro +169 -44
- package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
- package/dist/docs/src/components/PhaseTable.astro +9 -5
- package/dist/docs/src/components/RoleGuides.astro +30 -22
- package/dist/docs/src/components/RuleDemo.astro +111 -0
- package/dist/docs/src/components/ShapeDemo.astro +25 -37
- package/dist/docs/src/components/SiteHeader.astro +1 -1
- package/dist/docs/src/components/SpacingDemo.astro +5 -3
- package/dist/docs/src/components/SwitchToggle.astro +13 -0
- package/dist/docs/src/components/SystemAreas.astro +9 -6
- package/dist/docs/src/components/TableOfContents.astro +1 -1
- package/dist/docs/src/components/TokenSearch.astro +64 -0
- package/dist/docs/src/components/TokenTable.astro +14 -9
- package/dist/docs/src/components/TypeDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
- package/dist/docs/src/content/components/action-bar/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/action-bar/changelog.mdx +7 -0
- package/dist/docs/src/content/components/action-bar/code.mdx +69 -0
- package/dist/docs/src/content/components/action-bar/examples.mdx +16 -0
- package/dist/docs/src/content/components/action-bar/meta.json +9 -0
- package/dist/docs/src/content/components/action-bar/style.mdx +13 -0
- package/dist/docs/src/content/components/action-bar/usage.mdx +35 -0
- package/dist/docs/src/content/components/button/accessibility.mdx +10 -5
- package/dist/docs/src/content/components/button/changelog.mdx +26 -1
- package/dist/docs/src/content/components/button/code.mdx +130 -25
- package/dist/docs/src/content/components/button/examples.mdx +109 -23
- package/dist/docs/src/content/components/button/meta.json +5 -1
- package/dist/docs/src/content/components/button/style.mdx +72 -0
- package/dist/docs/src/content/components/button/usage.mdx +118 -29
- package/dist/docs/src/content/components/button-group/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/button-group/changelog.mdx +7 -0
- package/dist/docs/src/content/components/button-group/code.mdx +39 -0
- package/dist/docs/src/content/components/button-group/examples.mdx +36 -0
- package/dist/docs/src/content/components/button-group/meta.json +9 -0
- package/dist/docs/src/content/components/button-group/style.mdx +12 -0
- package/dist/docs/src/content/components/button-group/usage.mdx +31 -0
- package/dist/docs/src/content/components/icon-button/accessibility.mdx +35 -0
- package/dist/docs/src/content/components/icon-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/icon-button/code.mdx +66 -0
- package/dist/docs/src/content/components/icon-button/examples.mdx +46 -0
- package/dist/docs/src/content/components/icon-button/meta.json +9 -0
- package/dist/docs/src/content/components/icon-button/style.mdx +13 -0
- package/dist/docs/src/content/components/icon-button/usage.mdx +42 -0
- package/dist/docs/src/content/components/menu-button/accessibility.mdx +36 -0
- package/dist/docs/src/content/components/menu-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/menu-button/code.mdx +55 -0
- package/dist/docs/src/content/components/menu-button/examples.mdx +26 -0
- package/dist/docs/src/content/components/menu-button/meta.json +9 -0
- package/dist/docs/src/content/components/menu-button/style.mdx +15 -0
- package/dist/docs/src/content/components/menu-button/usage.mdx +44 -0
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
- package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
- package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
- package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content/components/segmented-control/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/segmented-control/changelog.mdx +7 -0
- package/dist/docs/src/content/components/segmented-control/code.mdx +46 -0
- package/dist/docs/src/content/components/segmented-control/examples.mdx +26 -0
- package/dist/docs/src/content/components/segmented-control/meta.json +9 -0
- package/dist/docs/src/content/components/segmented-control/style.mdx +13 -0
- package/dist/docs/src/content/components/segmented-control/usage.mdx +38 -0
- package/dist/docs/src/content/components/split-button/accessibility.mdx +32 -0
- package/dist/docs/src/content/components/split-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/split-button/code.mdx +57 -0
- package/dist/docs/src/content/components/split-button/examples.mdx +26 -0
- package/dist/docs/src/content/components/split-button/meta.json +9 -0
- package/dist/docs/src/content/components/split-button/style.mdx +12 -0
- package/dist/docs/src/content/components/split-button/usage.mdx +28 -0
- package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content/components/switch/meta.json +9 -0
- package/dist/docs/src/content/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content/components/toggle-button/accessibility.mdx +31 -0
- package/dist/docs/src/content/components/toggle-button/changelog.mdx +7 -0
- package/dist/docs/src/content/components/toggle-button/code.mdx +45 -0
- package/dist/docs/src/content/components/toggle-button/examples.mdx +36 -0
- package/dist/docs/src/content/components/toggle-button/meta.json +9 -0
- package/dist/docs/src/content/components/toggle-button/style.mdx +11 -0
- package/dist/docs/src/content/components/toggle-button/usage.mdx +33 -0
- package/dist/docs/src/content/components/toolbar/accessibility.mdx +33 -0
- package/dist/docs/src/content/components/toolbar/changelog.mdx +7 -0
- package/dist/docs/src/content/components/toolbar/code.mdx +81 -0
- package/dist/docs/src/content/components/toolbar/examples.mdx +16 -0
- package/dist/docs/src/content/components/toolbar/meta.json +9 -0
- package/dist/docs/src/content/components/toolbar/style.mdx +12 -0
- package/dist/docs/src/content/components/toolbar/usage.mdx +36 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
- package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
- package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
- package/dist/docs/src/content/foundations/styles/border.mdx +1 -6
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +2 -78
- package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +13 -69
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +3 -1
- package/dist/docs/src/content/foundations/styles/radius.mdx +32 -28
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
- package/dist/docs/src/content/get-started/content.mdx +25 -3
- package/dist/docs/src/content/get-started/design.mdx +34 -15
- package/dist/docs/src/content/get-started/develop.mdx +83 -28
- package/dist/docs/src/content/get-started/get-help.mdx +21 -5
- package/dist/docs/src/content/get-started/index.mdx +11 -12
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
- package/dist/docs/src/content/tools/application-content.mdx +52 -13
- package/dist/docs/src/content/tools/editors.mdx +36 -28
- package/dist/docs/src/content/tools/mermaid.mdx +42 -9
- package/dist/docs/src/content/tools/vueflow.mdx +199 -60
- package/dist/docs/src/content-vi/components/action-bar/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/action-bar/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/action-bar/code.mdx +69 -0
- package/dist/docs/src/content-vi/components/action-bar/examples.mdx +16 -0
- package/dist/docs/src/content-vi/components/action-bar/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/action-bar/usage.mdx +35 -0
- package/dist/docs/src/content-vi/components/button/accessibility.mdx +56 -0
- package/dist/docs/src/content-vi/components/button/changelog.mdx +31 -0
- package/dist/docs/src/content-vi/components/button/code.mdx +139 -0
- package/dist/docs/src/content-vi/components/button/examples.mdx +126 -0
- package/dist/docs/src/content-vi/components/button/style.mdx +72 -0
- package/dist/docs/src/content-vi/components/button/usage.mdx +133 -0
- package/dist/docs/src/content-vi/components/button-group/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/button-group/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/button-group/code.mdx +39 -0
- package/dist/docs/src/content-vi/components/button-group/examples.mdx +36 -0
- package/dist/docs/src/content-vi/components/button-group/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/button-group/usage.mdx +31 -0
- package/dist/docs/src/content-vi/components/icon-button/accessibility.mdx +35 -0
- package/dist/docs/src/content-vi/components/icon-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/icon-button/code.mdx +66 -0
- package/dist/docs/src/content-vi/components/icon-button/examples.mdx +46 -0
- package/dist/docs/src/content-vi/components/icon-button/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/icon-button/usage.mdx +42 -0
- package/dist/docs/src/content-vi/components/menu-button/accessibility.mdx +36 -0
- package/dist/docs/src/content-vi/components/menu-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/menu-button/code.mdx +55 -0
- package/dist/docs/src/content-vi/components/menu-button/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/menu-button/style.mdx +15 -0
- package/dist/docs/src/content-vi/components/menu-button/usage.mdx +44 -0
- package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
- package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
- package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
- package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
- package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
- package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
- package/dist/docs/src/content-vi/components/segmented-control/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/segmented-control/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/segmented-control/code.mdx +46 -0
- package/dist/docs/src/content-vi/components/segmented-control/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/segmented-control/style.mdx +13 -0
- package/dist/docs/src/content-vi/components/segmented-control/usage.mdx +38 -0
- package/dist/docs/src/content-vi/components/split-button/accessibility.mdx +32 -0
- package/dist/docs/src/content-vi/components/split-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/split-button/code.mdx +57 -0
- package/dist/docs/src/content-vi/components/split-button/examples.mdx +26 -0
- package/dist/docs/src/content-vi/components/split-button/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/split-button/usage.mdx +28 -0
- package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
- package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
- package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
- package/dist/docs/src/content-vi/components/toggle-button/accessibility.mdx +31 -0
- package/dist/docs/src/content-vi/components/toggle-button/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/toggle-button/code.mdx +45 -0
- package/dist/docs/src/content-vi/components/toggle-button/examples.mdx +36 -0
- package/dist/docs/src/content-vi/components/toggle-button/style.mdx +11 -0
- package/dist/docs/src/content-vi/components/toggle-button/usage.mdx +33 -0
- package/dist/docs/src/content-vi/components/toolbar/accessibility.mdx +33 -0
- package/dist/docs/src/content-vi/components/toolbar/changelog.mdx +7 -0
- package/dist/docs/src/content-vi/components/toolbar/code.mdx +81 -0
- package/dist/docs/src/content-vi/components/toolbar/examples.mdx +16 -0
- package/dist/docs/src/content-vi/components/toolbar/style.mdx +12 -0
- package/dist/docs/src/content-vi/components/toolbar/usage.mdx +36 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +1 -5
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +7 -7
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +1 -4
- package/dist/docs/src/content-vi/foundations/styles/illustration.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +13 -10
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +4 -4
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +32 -28
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
- package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
- package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
- package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
- package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
- package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
- package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
- package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
- package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
- package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
- package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
- package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
- package/dist/docs/src/content-vi/tools/index.mdx +7 -0
- package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
- package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
- package/dist/docs/src/content-vi/tools/vueflow.mdx +264 -0
- package/dist/docs/src/content.config.ts +13 -2
- package/dist/docs/src/lib/dates.ts +8 -0
- package/dist/docs/src/lib/i18n.ts +1 -0
- package/dist/docs/src/lib/icons.ts +2 -2
- package/dist/docs/src/lib/lucide-svg.ts +14 -0
- package/dist/docs/src/lib/navigation.ts +7 -4
- package/dist/docs/src/lib/token-descriptions-vi.ts +254 -12
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/lib/utils.ts +9 -0
- package/dist/docs/src/styles/chrome.css +7 -7
- package/dist/docs/src/styles/color.css +31 -31
- package/dist/docs/src/styles/docs.css +75 -46
- package/dist/docs/src/styles/elevation.css +1 -1
- package/dist/docs/src/styles/global.css +28 -11
- package/dist/docs/src/styles/icons.css +16 -16
- package/dist/docs/src/styles/kit.css +71 -10
- package/dist/docs/src/styles/layout.css +16 -11
- package/dist/docs/src/styles/logos.css +24 -24
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/registry.css +10 -0
- package/dist/docs/src/styles/rules.css +24 -0
- package/dist/docs/src/styles/shapes.css +2 -2
- package/dist/docs/src/styles/tokens.css +213 -120
- package/dist/docs/src/styles/tokens.js +69 -32
- package/dist/docs/src/styles/typography.css +9 -9
- package/dist/docs/src/styles/zindex.css +6 -5
- package/dist/docs/tokens/button.json +51 -0
- package/dist/docs/tokens/color.json +13 -8
- package/dist/docs/tokens/components.json +39 -0
- package/dist/docs/tokens/content.json +103 -10
- package/dist/docs/tokens/diagram.json +490 -49
- package/dist/docs/tokens/editor.json +128 -22
- package/dist/docs/tokens/flow.json +412 -80
- package/dist/docs/tokens/layout.json +13 -4
- package/dist/docs/tokens/motion.json +14 -0
- package/dist/docs/tokens/radius.json +9 -9
- package/dist/docs/tokens/renderer.json +8 -0
- package/dist/docs/tokens/resize.json +84 -15
- package/dist/docs/tokens/scrollbar.json +42 -7
- package/dist/docs/tokens/size.json +6 -6
- package/dist/docs/tokens/spacing.json +1 -1
- package/dist/docs/tokens/switch.json +306 -51
- package/dist/docs/tokens/typography.json +1 -1
- package/dist/docs/tokens/visualization.json +465 -53
- package/dist/docs/tokens/z-index.json +0 -10
- package/dist/index.js +3053 -777
- package/package.json +1 -1
- package/dist/docs/src/brand/structure-proposal.md +0 -227
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
/* Brand */
|
|
7
7
|
.c-brand { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
8
|
-
.c-brand-card { display: grid; grid-template-rows: auto 1fr; margin: 0; border:
|
|
8
|
+
.c-brand-card { display: grid; grid-template-rows: auto 1fr; margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
9
9
|
.c-brand-chip { display: flex; align-items: flex-end; height: 120px; padding: var(--bh-space-200); font: var(--bh-font-heading-small); }
|
|
10
10
|
.c-brand-card.is-yellow .c-brand-chip { color: var(--bh-color-text-on-brand); }
|
|
11
11
|
.c-brand-card.is-graphite .c-brand-chip { color: var(--bh-color-brand-white); }
|
|
12
|
-
.c-brand-card.is-white .c-brand-chip { color: var(--bh-color-brand-graphite); box-shadow: inset 0 -
|
|
12
|
+
.c-brand-card.is-white .c-brand-chip { color: var(--bh-color-brand-graphite); box-shadow: inset 0 calc(-1 * var(--bh-border-width-default)) 0 var(--c-line); }
|
|
13
13
|
.c-brand-card figcaption { display: grid; align-content: start; gap: var(--bh-space-050); padding: var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
14
14
|
.c-brand-card figcaption code { color: var(--c-ink); }
|
|
15
15
|
@container prose (min-width: 640px) { .c-brand { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
/* Actions */
|
|
40
40
|
.c-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
41
|
-
.c-action { margin: 0; border:
|
|
41
|
+
.c-action { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
42
42
|
.c-action-stage { display: grid; place-items: center; height: 96px; background: var(--bh-color-surface-subtle); }
|
|
43
43
|
.c-action figcaption { display: grid; gap: var(--bh-space-050); padding: var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
44
44
|
.c-action figcaption code { color: var(--c-ink); }
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
/* Labels */
|
|
48
48
|
.c-labels { display: grid; gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
49
|
-
.c-label-set { margin: 0; padding: var(--bh-space-250); border:
|
|
49
|
+
.c-label-set { margin: 0; padding: var(--bh-space-250); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
50
50
|
.c-label-set figcaption { margin-bottom: var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
51
51
|
.c-label-set figcaption b { color: var(--c-ink); }
|
|
52
52
|
.c-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
/* Do / Don't */
|
|
78
78
|
.c-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
79
|
-
.c-dd-panel { margin: 0; border:
|
|
79
|
+
.c-dd-panel { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
80
80
|
.c-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
|
|
81
81
|
.c-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
82
82
|
.c-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
@@ -89,16 +89,16 @@
|
|
|
89
89
|
.c-dd-tab.is-current { color: var(--bh-color-text); box-shadow: inset 0 calc(-1 * var(--bh-border-width-selected)) 0 var(--bh-color-border-selected); }
|
|
90
90
|
/* The Don't examples show colours used wrongly on purpose, so they read the scale directly. */
|
|
91
91
|
.c-dd-yellow-text { color: var(--bh-color-brand-yellow); font: var(--bh-font-label-default); text-decoration: underline; }
|
|
92
|
-
.c-dd-yellow-button { display: inline-flex; align-items: center; padding: var(--bh-space-100) var(--bh-space-200); border-radius: var(--bh-radius-
|
|
92
|
+
.c-dd-yellow-button { display: inline-flex; align-items: center; padding: var(--bh-space-100) var(--bh-space-200); border-radius: var(--bh-radius-075); color: var(--bh-color-brand-white); background: var(--bh-color-brand-yellow); font: var(--bh-font-label-default); }
|
|
93
93
|
.c-dd-dot { width: 12px; height: 12px; border-radius: var(--bh-radius-full); background: var(--bh-color-red-9); }
|
|
94
94
|
@container prose (min-width: 640px) { .c-dd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
95
95
|
|
|
96
96
|
/* Annotated example */
|
|
97
97
|
.c-ex { margin: 0 0 var(--bh-space-300); }
|
|
98
|
-
.c-ex-card { border:
|
|
99
|
-
.c-ex-head { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); padding: var(--bh-space-200); border-bottom:
|
|
98
|
+
.c-ex-card { border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); overflow: hidden; }
|
|
99
|
+
.c-ex-head { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); padding: var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--bh-color-border); }
|
|
100
100
|
.c-ex-title { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
101
|
-
.c-ex-row { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); padding: var(--bh-space-150) var(--bh-space-200); border-bottom:
|
|
101
|
+
.c-ex-row { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); padding: var(--bh-space-150) var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--bh-color-border); }
|
|
102
102
|
.c-ex-row:last-child { border-bottom: 0; }
|
|
103
103
|
.c-ex-row.is-selected { background: var(--bh-color-background-selected); box-shadow: inset var(--bh-border-width-selected) 0 0 var(--bh-color-border-selected); }
|
|
104
104
|
.c-ex-name { display: block; color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
@@ -113,23 +113,23 @@
|
|
|
113
113
|
.c-dd-fill small { font: var(--bh-font-body-small); }
|
|
114
114
|
.c-dd-fill.is-wrong small { color: var(--bh-color-red-7); }
|
|
115
115
|
.c-dd-fill.is-wrong { color: var(--bh-color-red-12); }
|
|
116
|
-
.c-dd-yellow-label { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--bh-space-075); border:
|
|
116
|
+
.c-dd-yellow-label { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--bh-space-075); border: var(--bh-border-width-default) solid var(--bh-color-brand-yellow); border-radius: var(--bh-radius-050); color: var(--bh-color-yellow-9); font: var(--bh-font-label-small); }
|
|
117
117
|
|
|
118
118
|
/* Balance bar */
|
|
119
119
|
.c-balance { margin: 0 0 var(--bh-space-300); }
|
|
120
|
-
.c-balance-bar { display: flex; height: var(--bh-space-500); overflow: hidden; border:
|
|
120
|
+
.c-balance-bar { display: flex; height: var(--bh-space-500); overflow: hidden; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
121
121
|
.c-balance figcaption { margin-top: var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
122
122
|
|
|
123
123
|
/* Token name anatomy */
|
|
124
|
-
.c-anat { display: grid; gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); padding: var(--bh-space-250); border:
|
|
124
|
+
.c-anat { display: grid; gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); padding: var(--bh-space-250); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
125
125
|
.c-anat-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--bh-space-025); }
|
|
126
126
|
.c-anat-part { display: grid; justify-items: center; gap: var(--bh-space-050); }
|
|
127
127
|
.c-anat-part code { padding: var(--bh-space-050) var(--bh-space-100); border-radius: var(--bh-radius-050); font: var(--bh-font-code-default); }
|
|
128
128
|
.c-anat-part small { color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
129
|
-
.c-anat-part.is-prop code { box-shadow: inset 0 -
|
|
130
|
-
.c-anat-part.is-role code { box-shadow: inset 0 -
|
|
131
|
-
.c-anat-part.is-emph code { box-shadow: inset 0 -
|
|
132
|
-
.c-anat-part.is-state code { box-shadow: inset 0 -
|
|
129
|
+
.c-anat-part.is-prop code { box-shadow: inset 0 calc(-1 * var(--bh-border-width-accent)) 0 var(--bh-color-border-info); }
|
|
130
|
+
.c-anat-part.is-role code { box-shadow: inset 0 calc(-1 * var(--bh-border-width-accent)) 0 var(--bh-color-border-danger); }
|
|
131
|
+
.c-anat-part.is-emph code { box-shadow: inset 0 calc(-1 * var(--bh-border-width-accent)) 0 var(--bh-color-border-success); }
|
|
132
|
+
.c-anat-part.is-state code { box-shadow: inset 0 calc(-1 * var(--bh-border-width-accent)) 0 var(--bh-color-border-warning); }
|
|
133
133
|
.c-anat-part.is-skip code { text-decoration: line-through; color: var(--c-muted); }
|
|
134
134
|
.c-anat-dot { padding-top: var(--bh-space-050); font: var(--bh-font-code-default); }
|
|
135
135
|
.c-anat figcaption { color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
.c-surf { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
139
139
|
.c-surf figure { margin: 0; }
|
|
140
140
|
.c-surf figcaption { margin-top: var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
141
|
-
.c-surf-page { position: relative; display: grid; grid-template-columns: 42% 1fr; gap: var(--bh-space-150); min-height: 180px; padding: var(--bh-space-300) var(--bh-space-150) var(--bh-space-150); border:
|
|
141
|
+
.c-surf-page { position: relative; display: grid; grid-template-columns: 42% 1fr; gap: var(--bh-space-150); min-height: 180px; padding: var(--bh-space-300) var(--bh-space-150) var(--bh-space-150); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-150); background: var(--bh-color-surface-page); }
|
|
142
142
|
.c-surf-page > .c-tag { position: absolute; top: 6px; left: 12px; }
|
|
143
143
|
.c-surf-side { padding: var(--bh-space-100); border-radius: var(--bh-radius-100); background: var(--bh-color-surface-subtle); }
|
|
144
144
|
.c-surf-card { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--bh-space-050); }
|
|
145
|
-
.c-surf-tip { position: absolute; right: 8px; bottom: 8px; padding: var(--bh-space-050) var(--bh-space-100); border-radius: var(--bh-radius-
|
|
145
|
+
.c-surf-tip { position: absolute; right: 8px; bottom: 8px; padding: var(--bh-space-050) var(--bh-space-100); border-radius: var(--bh-radius-050); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); font: var(--bh-font-body-small); }
|
|
146
146
|
.c-tag { display: inline-block; padding: 0 var(--bh-space-075); border-radius: var(--bh-radius-050); color: var(--bh-color-text-subtle); background: var(--bh-color-background-neutral); font: var(--bh-font-code-default); }
|
|
147
147
|
.c-tag.is-on-dark { color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); }
|
|
148
148
|
.c-surf-page.is-dimmed { display: grid; place-items: center; grid-template-columns: 1fr; padding: var(--bh-space-500) var(--bh-space-150) var(--bh-space-200); overflow: hidden; }
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
.c-banner-icon { display: inline-flex; }
|
|
165
165
|
|
|
166
166
|
/* Step jobs */
|
|
167
|
-
.c-steps-ill { display: grid; gap: var(--bh-space-150); margin: 0 0 var(--bh-space-300); padding: var(--bh-space-200); border:
|
|
167
|
+
.c-steps-ill { display: grid; gap: var(--bh-space-150); margin: 0 0 var(--bh-space-300); padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
168
168
|
/* Twelve steps always fit the column: on narrow columns the scale name goes on its own line. */
|
|
169
169
|
.c-steps-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: var(--bh-space-050); }
|
|
170
170
|
.c-steps-row > b { grid-column: 1 / -1; }
|
|
@@ -172,28 +172,28 @@
|
|
|
172
172
|
.c-steps-row > b { align-self: center; font: var(--bh-font-label-default); }
|
|
173
173
|
.c-step-cell { display: grid; justify-items: center; gap: var(--bh-space-050); }
|
|
174
174
|
.c-step-cell small { color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
175
|
-
.c-step-bg { width: 100%; height: var(--bh-size-control-default); border:
|
|
176
|
-
.c-step-pill, .c-step-fill { display: grid; place-items: center; overflow: hidden; width: 100%; height: var(--bh-size-control-default); border-radius: var(--bh-radius-
|
|
175
|
+
.c-step-bg { width: 100%; height: var(--bh-size-control-default); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-050); }
|
|
176
|
+
.c-step-pill, .c-step-fill { display: grid; place-items: center; overflow: hidden; width: 100%; height: var(--bh-size-control-default); border-radius: var(--bh-radius-050); color: var(--bh-color-text); font: var(--bh-font-label-small); }
|
|
177
177
|
/* Text on a solid step: the ink that meets 4.5:1 on that step in each theme (ColorDemo picks it). */
|
|
178
178
|
.c-step-fill { color: var(--fill-ink-light, var(--bh-color-text-on-bold)); }
|
|
179
179
|
:root[data-theme='dark'] .c-step-fill { color: var(--fill-ink-dark, var(--bh-color-text-on-bold)); }
|
|
180
180
|
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .c-step-fill { color: var(--fill-ink-dark, var(--bh-color-text-on-bold)); } }
|
|
181
|
-
.c-step-line { width: 100%; height: var(--bh-size-control-default); border:
|
|
181
|
+
.c-step-line { width: 100%; height: var(--bh-size-control-default); border: var(--bh-border-width-selected) solid; border-radius: var(--bh-radius-075); }
|
|
182
182
|
.c-step-text { display: grid; place-items: center; height: var(--bh-size-control-default); font: var(--bh-font-heading-small); }
|
|
183
183
|
.c-steps-ill figcaption { color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
184
184
|
|
|
185
185
|
/* Themes */
|
|
186
186
|
.c-themes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
187
187
|
.c-themes figure { margin: 0; }
|
|
188
|
-
.c-theme-stage { padding: var(--bh-space-200); border:
|
|
188
|
+
.c-theme-stage { padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
189
189
|
.c-themes figcaption { margin-top: var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
190
190
|
@container prose (min-width: 640px) { .c-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
191
191
|
|
|
192
192
|
/* Contrast samples */
|
|
193
193
|
.c-contrast { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-150); margin: 0 0 var(--bh-space-300); }
|
|
194
|
-
.c-contrast figure { margin: 0; border:
|
|
194
|
+
.c-contrast figure { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
195
195
|
.c-contrast-chip { display: grid; place-items: center; height: 72px; font: var(--bh-font-label-default); }
|
|
196
|
-
.c-contrast-box { width: 20px; height: 20px; border:
|
|
196
|
+
.c-contrast-box { width: 20px; height: 20px; border: var(--bh-border-width-default) solid; border-radius: var(--bh-radius-050); background: var(--bh-color-surface); }
|
|
197
197
|
.c-contrast figcaption { padding: var(--bh-space-100) var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
198
198
|
.c-contrast .is-pass b { color: var(--bh-color-text-success); }
|
|
199
199
|
.c-contrast .is-fail b { color: var(--bh-color-text-danger); }
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
|
|
207
207
|
/* Palette: large swatches, one column per scale, light and dark */
|
|
208
208
|
.c-pal-set { display: grid; gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
209
|
-
.c-pal { margin: 0; padding: var(--bh-space-200); border:
|
|
209
|
+
.c-pal { margin: 0; padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
210
210
|
.c-pal figcaption { margin: 0 0 var(--bh-space-150); font: var(--bh-font-heading-xsmall); }
|
|
211
211
|
.c-pal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--bh-space-100); }
|
|
212
212
|
.c-pal-col { display: grid; gap: var(--bh-space-025); }
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
|
|
222
222
|
/* Ramps on the overview */
|
|
223
223
|
.c-ramps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
224
|
-
.c-ramp-card { display: grid; gap: var(--bh-space-075); margin: 0; padding: var(--bh-space-300); border:
|
|
224
|
+
.c-ramp-card { display: grid; gap: var(--bh-space-075); margin: 0; padding: var(--bh-space-300); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
225
225
|
.c-ramp { display: grid; grid-template-columns: repeat(12, 1fr); height: 22px; overflow: hidden; border-radius: var(--bh-radius-050); }
|
|
226
226
|
.c-ramp-card figcaption { margin-top: var(--bh-space-100); font: var(--bh-font-body-small); }
|
|
227
227
|
@container prose (min-width: 640px) { .c-ramps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
@@ -236,17 +236,17 @@
|
|
|
236
236
|
@container prose (width < 560px) { .c-roles { table-layout: auto; } .c-roles .c-spec { display: inline-grid; margin: 0 var(--bh-space-100) 0 0; vertical-align: middle; } .c-roles .c-num { display: inline; } }
|
|
237
237
|
.c-spec { display: grid; place-items: center; width: 72px; height: 44px; margin-bottom: var(--bh-space-075); border-radius: var(--bh-radius-050); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border); font: var(--bh-font-heading-small); }
|
|
238
238
|
.c-spec.is-border { box-shadow: none; }
|
|
239
|
-
.c-spec-fill { width: 52px; height: 28px; border-radius: var(--bh-radius-050); background: var(--fill); box-shadow: inset 0 0 0
|
|
239
|
+
.c-spec-fill { width: 52px; height: 28px; border-radius: var(--bh-radius-050); background: var(--fill); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--edge); }
|
|
240
240
|
.c-roles .c-num { display: block; font: var(--bh-font-code-default); }
|
|
241
241
|
|
|
242
242
|
/* Pairing cards */
|
|
243
243
|
.c-pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
244
|
-
.c-pair { margin: 0; overflow: hidden; border:
|
|
244
|
+
.c-pair { margin: 0; overflow: hidden; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
245
245
|
.c-pair-stage { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--bh-space-050) var(--bh-space-150); min-height: 96px; padding: var(--bh-space-200); font: var(--bh-font-body-default); }
|
|
246
246
|
.c-pair-text { font: var(--bh-font-code-default); }
|
|
247
247
|
.c-pair-marks { display: flex; flex-basis: 100%; gap: var(--bh-space-100); margin-top: var(--bh-space-050); }
|
|
248
248
|
.c-pair-mark { display: grid; place-items: center; width: var(--bh-space-300); height: var(--bh-space-300); border-radius: var(--bh-radius-050); }
|
|
249
|
-
.c-pair figcaption { padding: var(--bh-space-150) var(--bh-space-200); border-top:
|
|
249
|
+
.c-pair figcaption { padding: var(--bh-space-150) var(--bh-space-200); border-top: var(--bh-border-width-default) solid var(--c-line); font: var(--bh-font-body-small); }
|
|
250
250
|
.c-pair figcaption b { margin-right: var(--bh-space-050); }
|
|
251
251
|
.c-pair figcaption .c-from { display: block; margin-top: var(--bh-space-050); }
|
|
252
252
|
@container prose (min-width: 640px) { .c-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
.c-state-key b { color: var(--c-ink); font-weight: var(--bh-font-weight-semibold); }
|
|
258
258
|
|
|
259
259
|
/* Emphasis */
|
|
260
|
-
.c-emph { margin: 0 0 var(--bh-space-300); padding: var(--bh-space-200); border:
|
|
260
|
+
.c-emph { margin: 0 0 var(--bh-space-300); padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
261
261
|
.c-emph-grid { display: grid; grid-template-columns: 80px repeat(3, minmax(0, 1fr)); gap: var(--bh-space-100); align-items: center; font: var(--bh-font-body-small); }
|
|
262
262
|
.c-emph-fill { display: flex; align-items: center; min-height: var(--bh-space-500); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-100); font: var(--bh-font-body-default); overflow-wrap: anywhere; }
|
|
263
263
|
.c-emph-none { color: var(--c-muted); text-align: center; }
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import './scrollbars.css';
|
|
2
|
-
|
|
3
1
|
/* Docs pages: sidebar, content, table of contents. Colour roles come from chrome.css, sizes
|
|
4
2
|
from the tokens. The page follows the app frame (Foundations › Layout): CSS starts from the
|
|
5
3
|
smallest window and adds to it at the md (768 px), lg (1024 px) and xl (1440 px) breakpoints. */
|
|
@@ -23,12 +21,12 @@
|
|
|
23
21
|
/* Sidebar: sections, groups, pages, sub-pages. Items are 32 px high, 4 px apart and 8 px
|
|
24
22
|
from the sidebar edges, so the icons and labels start 20 px from the window edge, in line
|
|
25
23
|
with the logo (App frame). */
|
|
26
|
-
.sidebar { position: sticky; top: var(--header-bottom); align-self: start; height: calc(100vh - var(--header-bottom)); padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-400); overflow-y: auto; border-right:
|
|
24
|
+
.sidebar { position: sticky; top: var(--header-bottom); align-self: start; height: calc(100vh - var(--header-bottom)); padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-400); overflow-y: auto; border-right: var(--bh-border-width-default) solid var(--c-line); background: var(--c-bg); }
|
|
27
25
|
.sidebar ul { margin: 0; padding: 0; list-style: none; }
|
|
28
26
|
.sidebar li + li { margin-top: var(--bh-space-050); }
|
|
29
27
|
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--bh-space-100); padding-left: var(--bh-space-150); }
|
|
30
28
|
.sidebar-title { color: var(--c-ink); text-decoration: none; font: var(--bh-font-heading-small); }
|
|
31
|
-
.sidebar-close { display: inline-grid; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); padding: 0; border: 0; border-radius: var(--bh-radius-
|
|
29
|
+
.sidebar-close { display: inline-grid; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); padding: 0; border: 0; border-radius: var(--bh-radius-075); color: var(--c-muted); background: none; cursor: pointer; }
|
|
32
30
|
.sidebar-label { margin: 0 0 var(--bh-space-050); padding-inline: var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
33
31
|
.sidebar-item, .sidebar-child { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--bh-space-100); min-height: var(--bh-size-control-default); border-radius: var(--bh-radius-075); color: var(--c-ink); text-decoration: none; font: var(--bh-font-label-default); }
|
|
34
32
|
.sidebar-item { padding: 0 var(--bh-space-150); }
|
|
@@ -38,7 +36,7 @@
|
|
|
38
36
|
/* The gold bar is a straight strip; the item's rounded corners clip its ends. */
|
|
39
37
|
:is(.sidebar-item[aria-current='page'], .sidebar-child[aria-current='page'], .sidebar-branch .sidebar-item[data-has-current][aria-expanded='false'])::before { content: ""; position: absolute; inset: 0 auto 0 var(--bar-x, 0); width: var(--bh-border-width-selected); background: var(--c-gold); }
|
|
40
38
|
.sidebar-item[aria-current='page']:hover, .sidebar-child[aria-current='page']:hover { background: var(--c-selected-hover); }
|
|
41
|
-
.sidebar-chevron { flex: none; color: var(--c-muted); transition: transform
|
|
39
|
+
.sidebar-chevron { flex: none; color: var(--c-muted); transition: transform var(--bh-motion-expand); }
|
|
42
40
|
.sidebar-item[aria-expanded='true'] .sidebar-chevron { transform: rotate(90deg); }
|
|
43
41
|
|
|
44
42
|
.sidebar-item:focus-visible, .sidebar-child:focus-visible, .sidebar-section-toggle:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: calc(var(--bh-border-width-focused) * -1); }
|
|
@@ -52,10 +50,10 @@
|
|
|
52
50
|
.sidebar-section-toggle:hover { background: var(--c-hover); }
|
|
53
51
|
.sidebar-section-toggle .sidebar-chevron { margin-left: auto; }
|
|
54
52
|
.sidebar-section-toggle[aria-expanded='true'] .sidebar-chevron { transform: rotate(90deg); }
|
|
55
|
-
.sidebar-branch { margin: var(--bh-space-050) 0 var(--bh-space-200) var(--bh-space-250); box-shadow: inset
|
|
53
|
+
.sidebar-branch { margin: var(--bh-space-050) 0 var(--bh-space-200) var(--bh-space-250); box-shadow: inset var(--bh-border-width-default) 0 0 var(--c-line); }
|
|
56
54
|
/* Group names are not links: smaller, lighter, no hover, and a rule above each group after the
|
|
57
55
|
first, so they read as headings of the list below and never as one more page. */
|
|
58
|
-
.sidebar-branch .sidebar-group + .sidebar-group { margin-top: var(--bh-space-150); padding-top: var(--bh-space-150); border-top:
|
|
56
|
+
.sidebar-branch .sidebar-group + .sidebar-group { margin-top: var(--bh-space-150); padding-top: var(--bh-space-150); border-top: var(--bh-border-width-default) solid var(--c-line); }
|
|
59
57
|
.sidebar-branch .sidebar-label { margin: 0 0 var(--bh-space-050); padding: var(--bh-space-050) var(--bh-space-150) 0 var(--bh-space-200); color: var(--c-muted); cursor: default; user-select: none; font: var(--bh-font-label-small); }
|
|
60
58
|
/* On the tree, the item's box stands 4 px off the guide line and keeps all four corners; the gold
|
|
61
59
|
bar sits on the guide line itself, outside the box, so the corners never cut it. Text stays 16 px
|
|
@@ -64,16 +62,23 @@
|
|
|
64
62
|
.sidebar-branch .sidebar-item { padding: 0 var(--bh-space-150); }
|
|
65
63
|
/* A closed folder that holds the current page keeps the gold bar, so the place is never lost. */
|
|
66
64
|
.sidebar-branch[hidden], .sidebar-children[hidden] { display: none; }
|
|
67
|
-
.sidebar-children { margin: var(--bh-space-050) 0 var(--bh-space-050) var(--bh-space-200) !important; box-shadow: inset
|
|
65
|
+
.sidebar-children { margin: var(--bh-space-050) 0 var(--bh-space-050) var(--bh-space-200) !important; box-shadow: inset var(--bh-border-width-default) 0 0 var(--c-line); }
|
|
68
66
|
.sidebar-child { padding: 0 var(--bh-space-100); }
|
|
69
67
|
.sidebar-child[aria-current='page'] { background: var(--c-selected); }
|
|
70
68
|
|
|
69
|
+
/* Scroll bars inside the sidebar and table of contents stay hidden until the pointer is over
|
|
70
|
+
them, then show as a thin line. The page's own scroll bar is left to the browser. */
|
|
71
|
+
.sidebar, .toc, .toc-menu nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
|
|
72
|
+
.sidebar:hover, .toc:hover, .toc-menu nav:hover { scrollbar-color: var(--c-line) transparent; }
|
|
73
|
+
.sidebar::-webkit-scrollbar, .toc::-webkit-scrollbar { width: 6px; }
|
|
74
|
+
.sidebar::-webkit-scrollbar-thumb, .toc::-webkit-scrollbar-thumb { border-radius: var(--bh-radius-050); background: transparent; }
|
|
75
|
+
.sidebar:hover::-webkit-scrollbar-thumb, .toc:hover::-webkit-scrollbar-thumb { background: var(--c-line); }
|
|
71
76
|
|
|
72
77
|
/* Table of contents. */
|
|
73
78
|
.toc { position: sticky; top: var(--header-bottom); align-self: start; display: none; max-height: calc(100vh - var(--header-bottom)); padding: var(--page-margin) 0; overflow-y: auto; }
|
|
74
79
|
.toc ul, .toc-menu ul { margin: 0; padding: 0; list-style: none; }
|
|
75
80
|
.toc-title { margin: 0 0 var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-heading-xsmall); }
|
|
76
|
-
.toc a { display: block; padding: var(--bh-space-050) 0 var(--bh-space-050) calc(var(--bh-space-150) - var(--bh-space-025)); border-left:
|
|
81
|
+
.toc a { display: block; padding: var(--bh-space-050) 0 var(--bh-space-050) calc(var(--bh-space-150) - var(--bh-space-025)); border-left: var(--bh-border-width-selected) solid var(--c-line); color: var(--c-muted); text-decoration: none; font: var(--bh-font-label-default); }
|
|
77
82
|
.toc .toc-depth-3 a { padding-left: calc(var(--bh-space-300) - var(--bh-space-025)); }
|
|
78
83
|
.toc a:hover { color: var(--c-ink); }
|
|
79
84
|
.toc a[aria-current] { border-left-color: var(--c-gold); color: var(--c-ink); }
|
|
@@ -81,7 +86,7 @@
|
|
|
81
86
|
/* Main column. The page header and the text run the full column. */
|
|
82
87
|
.docs-main { min-width: 0; padding: var(--page-margin) 0 var(--bh-space-800); }
|
|
83
88
|
.docs-main p { color: inherit; }
|
|
84
|
-
.docs-header { padding-bottom: var(--bh-space-300); border-bottom:
|
|
89
|
+
.docs-header { padding-bottom: var(--bh-space-300); border-bottom: var(--bh-border-width-default) solid var(--c-line); }
|
|
85
90
|
.docs-header:has(.component-tabs) { padding-bottom: 0; }
|
|
86
91
|
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0 0 var(--bh-space-100); padding: 0; list-style: none; color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
87
92
|
.breadcrumb li + li::before { content: '/'; margin: 0 var(--bh-space-100); }
|
|
@@ -93,7 +98,7 @@
|
|
|
93
98
|
.docs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100) var(--bh-space-150); margin: 0; color: var(--c-muted) !important; font: var(--bh-font-body-small); }
|
|
94
99
|
|
|
95
100
|
/* Release phase chip. */
|
|
96
|
-
/* Release phase label
|
|
101
|
+
/* Release phase label: a pill with a 1 px border in the role
|
|
97
102
|
colour, text in the role's fg colour and no fill, 20 px tall. The words carry the meaning;
|
|
98
103
|
the colour only helps scanning. */
|
|
99
104
|
.status-badge { display: inline-flex; align-items: center; height: var(--bh-space-250); padding: 0 var(--bh-space-075); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-050); color: var(--bh-color-text); background: transparent; text-decoration: none; white-space: nowrap; font: var(--bh-font-label-small); }
|
|
@@ -113,24 +118,24 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
113
118
|
/* Body text. */
|
|
114
119
|
.prose { container: prose / inline-size; padding-top: var(--bh-space-300); font: var(--bh-font-body-large); }
|
|
115
120
|
.prose > :first-child { margin-top: 0; }
|
|
116
|
-
.prose p, .prose li { color: var(--c-ink); }
|
|
117
|
-
.prose p { margin: 0 0 var(--bh-space-200); }
|
|
118
|
-
.prose ul, .prose ol { margin: 0 0 var(--bh-space-200); padding-left: var(--bh-space-300); }
|
|
119
|
-
.prose li + li { margin-top: var(--bh-space-050); }
|
|
120
|
-
.prose h2 { margin: var(--bh-space-600) 0 var(--bh-space-250); font: var(--bh-font-heading-large); } /* 20 px between a section heading and its content */
|
|
121
|
-
.prose h3 { margin: var(--bh-space-400) 0 var(--bh-space-150); font: var(--bh-font-heading-medium); }
|
|
122
|
-
.prose h4 { margin: var(--bh-space-300) 0 var(--bh-space-100); font: var(--bh-font-heading-small); }
|
|
123
|
-
.prose a { color: var(--c-link); text-underline-offset: 2px; }
|
|
124
|
-
.prose :not(pre) > code { overflow-wrap: anywhere; padding: 0 var(--bh-space-050); border-radius: var(--bh-radius-050); background: var(--c-surf); font-family: var(--bh-font-family-mono); }
|
|
121
|
+
.prose p:not(.code-preview *), .prose li:not(.code-preview *) { color: var(--c-ink); }
|
|
122
|
+
.prose p:not(.code-preview *) { margin: 0 0 var(--bh-space-200); }
|
|
123
|
+
.prose ul:not(.code-preview *), .prose ol:not(.code-preview *) { margin: 0 0 var(--bh-space-200); padding-left: var(--bh-space-300); }
|
|
124
|
+
.prose li:not(.code-preview *) + li { margin-top: var(--bh-space-050); }
|
|
125
|
+
.prose h2:not(.code-preview *) { margin: var(--bh-space-600) 0 var(--bh-space-250); font: var(--bh-font-heading-large); } /* 20 px between a section heading and its content */
|
|
126
|
+
.prose h3:not(.code-preview *) { margin: var(--bh-space-400) 0 var(--bh-space-150); font: var(--bh-font-heading-medium); }
|
|
127
|
+
.prose h4:not(.code-preview *) { margin: var(--bh-space-300) 0 var(--bh-space-100); font: var(--bh-font-heading-small); }
|
|
128
|
+
.prose a:not([data-slot], .bh-button) { color: var(--c-link); text-decoration-line: underline; text-underline-offset: 2px; } /* Stated, not inherited: a framework reset on the page must not remove it (WCAG 1.4.1). A link drawn as a button (data-slot from the shadcn-vue registry, or .bh-button) is not a text link and keeps its button look. */
|
|
129
|
+
.prose :not(pre) > code:not(.code-preview *) { overflow-wrap: anywhere; padding: 0 var(--bh-space-050); border-radius: var(--bh-radius-050); background: var(--c-surf); font-family: var(--bh-font-family-mono); }
|
|
125
130
|
.prose pre { margin: 0 0 var(--bh-space-200); padding: var(--bh-space-200); border-radius: var(--bh-radius-100); overflow-x: auto; font: var(--bh-font-code-default); }
|
|
126
131
|
.prose pre.astro-code { background-color: var(--c-code-bg) !important; } /* Shiki writes its own background inline */
|
|
127
132
|
.prose pre code { font: inherit; } /* the browser sets code to its own monospace */
|
|
128
|
-
.prose kbd { padding: 0 var(--bh-space-050); border:
|
|
133
|
+
.prose kbd { padding: 0 var(--bh-space-050); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-025); background: var(--c-surf); font: var(--bh-font-label-small); }
|
|
129
134
|
.prose table { width: 100%; margin: 0 0 var(--bh-space-200); border-collapse: collapse; font: var(--bh-font-body-default); }
|
|
130
|
-
.prose th, .prose td { padding: var(--bh-space-100) var(--bh-space-150); border-bottom:
|
|
135
|
+
.prose th, .prose td { padding: var(--bh-space-100) var(--bh-space-150); border-bottom: var(--bh-border-width-default) solid var(--c-line); text-align: left; vertical-align: baseline; } /* first lines share a baseline, even when code sits next to text */
|
|
131
136
|
.prose th { color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
132
137
|
.prose td code { overflow-wrap: anywhere; } /* long token names wrap instead of widening the page */
|
|
133
|
-
.prose blockquote, .callout { margin: 0 0 var(--bh-space-300); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border:
|
|
138
|
+
.prose blockquote, .callout { margin: 0 0 var(--bh-space-300); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-note-line); border-radius: var(--bh-radius-100); background: var(--c-note-bg); }
|
|
134
139
|
.prose blockquote p, .callout p { margin: 0; }
|
|
135
140
|
.callout-title { margin-bottom: var(--bh-space-050) !important; font: var(--bh-font-heading-xsmall); }
|
|
136
141
|
|
|
@@ -139,33 +144,33 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
139
144
|
.token-value > code { align-self: baseline; } /* the value, not the swatch, sets the baseline of the row */
|
|
140
145
|
.token-table td:nth-child(2) { min-width: 6.5rem; } /* short values such as 2.75rem stay on one line */
|
|
141
146
|
.token-resolved { display: block; color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
142
|
-
.swatch { flex: none; width: 1rem; height: 1rem; border:
|
|
147
|
+
.swatch { flex: none; width: 1rem; height: 1rem; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-050); }
|
|
143
148
|
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--bh-space-200); margin: var(--bh-space-300) 0; padding: 0 !important; list-style: none; font: var(--bh-font-body-small); }
|
|
144
149
|
.swatch-grid li { display: grid; gap: var(--bh-space-050); margin: 0 !important; }
|
|
145
|
-
.swatch-large { height: var(--bh-space-800); border:
|
|
150
|
+
.swatch-large { height: var(--bh-space-800); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
146
151
|
|
|
147
152
|
/* Cards. */
|
|
148
153
|
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-200); padding: 0 !important; list-style: none; }
|
|
149
154
|
.card-grid > li { margin: 0 !important; }
|
|
150
|
-
.card { display: block; height: 100%; padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border:
|
|
155
|
+
.card { display: block; height: 100%; padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink) !important; background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); text-decoration: none; transition: border-color var(--bh-motion-control); font: var(--bh-font-heading-small); }
|
|
151
156
|
.card:hover { border-color: var(--bh-color-border-bold); }
|
|
152
157
|
.card p { margin: var(--bh-space-050) 0 var(--bh-space-150); color: var(--c-muted) !important; font: var(--bh-font-body-default); }
|
|
153
158
|
.child-pages h2 { margin-top: var(--bh-space-500); }
|
|
154
159
|
|
|
155
160
|
/* Previous / next and page meta. */
|
|
156
161
|
.pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin-top: var(--bh-space-600); }
|
|
157
|
-
.pager-link { display: grid; gap: var(--bh-space-050); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border:
|
|
162
|
+
.pager-link { display: grid; gap: var(--bh-space-050); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink); text-decoration: none; }
|
|
158
163
|
.pager-link:hover { border-color: var(--c-muted); }
|
|
159
164
|
.pager-link span { color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
160
165
|
.pager-link b { font: var(--bh-font-heading-small); }
|
|
161
166
|
.pager-next { text-align: right; }
|
|
162
|
-
.page-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bh-space-100) var(--bh-space-300); margin-top: var(--bh-space-300); padding-top: var(--bh-space-200); border-top:
|
|
167
|
+
.page-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bh-space-100) var(--bh-space-300); margin-top: var(--bh-space-300); padding-top: var(--bh-space-200); border-top: var(--bh-border-width-default) solid var(--c-line); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
163
168
|
.page-meta a { color: var(--c-muted); }
|
|
164
169
|
.page-meta a:hover { color: var(--c-ink); }
|
|
165
170
|
|
|
166
171
|
/* Pages listed before their content is written. */
|
|
167
|
-
.in-development { display: flex; gap: var(--bh-space-200); padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border:
|
|
168
|
-
.in-development-icon { flex: none; display: grid; place-items: center; width: var(--bh-space-500); height: var(--bh-space-500); border-radius: var(--bh-radius-100); color: var(--bh-color-text-on-brand); background: var(--bh-color-background-brand-subtle); box-shadow: inset 0 0 0
|
|
172
|
+
.in-development { display: flex; gap: var(--bh-space-200); padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: var(--bh-border-width-default) dashed var(--c-muted); border-radius: var(--bh-radius-100); background: var(--c-surf); }
|
|
173
|
+
.in-development-icon { flex: none; display: grid; place-items: center; width: var(--bh-space-500); height: var(--bh-space-500); border-radius: var(--bh-radius-100); color: var(--bh-color-text-on-brand); background: var(--bh-color-background-brand-subtle); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-brand-subtle); }
|
|
169
174
|
.in-development p { margin: 0 0 var(--bh-space-100); }
|
|
170
175
|
.in-development p:last-child { margin-bottom: 0; }
|
|
171
176
|
.in-development-title { font: var(--bh-font-heading-small); }
|
|
@@ -173,14 +178,31 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
173
178
|
.in-development ul { margin: 0 0 var(--bh-space-150); }
|
|
174
179
|
|
|
175
180
|
/* Component examples. The preview follows the page theme, so it shows the component in both. */
|
|
176
|
-
.code-example { margin: var(--bh-space-300) 0; border:
|
|
177
|
-
.code-example figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom:
|
|
178
|
-
.code-preview { display: flex; flex-wrap: wrap; gap: var(--bh-space-150); align-items: center; padding: var(--bh-space-400) var(--bh-space-300); background: var(--bh-color-surface
|
|
181
|
+
.code-example { margin: var(--bh-space-300) 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
182
|
+
.code-example figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--c-line); font: var(--bh-font-heading-xsmall); }
|
|
183
|
+
.code-preview { display: flex; flex-wrap: wrap; gap: var(--bh-space-150); align-items: center; padding: var(--bh-space-400) var(--bh-space-300); color: var(--bh-color-text); background: var(--bh-color-surface); }
|
|
184
|
+
/* Transparent: a checkerboard, like an image with its background removed, so the component's own edges and fills show. */
|
|
185
|
+
.code-example[data-bg="transparent"] .code-preview { background: repeating-conic-gradient(var(--bh-color-background-neutral) 0 25%, var(--bh-color-surface) 0 50%) 0 0 / var(--bh-space-200) var(--bh-space-200); }
|
|
186
|
+
.code-example-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--bh-space-050); padding: var(--bh-space-100) var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--c-line); }
|
|
187
|
+
.code-example-bg { height: var(--bh-size-control-small); padding: 0 var(--bh-space-control-x-small); border: var(--bh-border-width-default) solid transparent; border-radius: var(--bh-radius-control-small); color: var(--bh-color-text-subtle); background: transparent; font: var(--bh-font-label-small); cursor: pointer; }
|
|
188
|
+
.code-example-bg:hover { background: var(--bh-button-background-subtle-hover); }
|
|
189
|
+
.code-example-bg[aria-pressed="true"] { border-color: var(--bh-color-border); color: var(--bh-color-text); background: var(--bh-color-surface); }
|
|
190
|
+
/* Prose element styles skip the live previews (:not(.code-preview *)), so an example looks as it would in
|
|
191
|
+
an app: its own classes set margins and fonts, and its text takes the light or dark scope's colour. */
|
|
192
|
+
.code-example-source { position: relative; background: var(--c-code-bg); }
|
|
193
|
+
.code-example-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-100); padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-100) var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--c-line); background: var(--bh-color-surface); }
|
|
194
|
+
.code-example-file { color: var(--bh-color-text-subtle); font: var(--bh-font-code-default); }
|
|
195
|
+
.code-example-actions { display: flex; gap: var(--bh-space-050); }
|
|
196
|
+
.code-example-tool { height: var(--bh-size-control-small); padding: 0 var(--bh-space-control-x-small); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-control-small); color: var(--bh-color-text); background: var(--bh-color-surface); font: var(--bh-font-label-small); cursor: pointer; }
|
|
197
|
+
.code-example-tool:hover { border-color: var(--bh-color-border-hover); background: var(--bh-button-background-subtle-hover); }
|
|
198
|
+
.code-example[data-collapsed="true"] .code-example-code { max-height: calc(var(--bh-space-1000) * 4); overflow: hidden; }
|
|
199
|
+
.code-example-more { display: block; width: 100%; height: var(--bh-size-control-default); border: 0; border-top: var(--bh-border-width-default) solid var(--c-line); color: var(--bh-color-text); background: var(--bh-color-surface); font: var(--bh-font-label-small); cursor: pointer; }
|
|
200
|
+
.code-example-more:hover { background: var(--bh-button-background-subtle-hover); }
|
|
179
201
|
.prose .code-example pre { margin: 0; border-radius: var(--bh-radius-0); }
|
|
180
202
|
|
|
181
203
|
/* Demo styles for component examples, until the component library ships. */
|
|
182
204
|
|
|
183
|
-
/* Label and state label
|
|
205
|
+
/* Label and state label.
|
|
184
206
|
Label: outlined pill, 1 px border in the role's emphasis colour, text in its fg colour, no
|
|
185
207
|
fill; 20 px tall with 6 px padding (large: 24 px, 8 px). State label: solid emphasis fill,
|
|
186
208
|
white text and an icon. */
|
|
@@ -199,7 +221,7 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
199
221
|
|
|
200
222
|
/* Below lg (1024 px) the side navigation is a drawer and a bar under the header opens it and
|
|
201
223
|
the folded table of contents. */
|
|
202
|
-
.docs-mobilebar { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom); box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); height: var(--header-h); padding: 0 var(--page-margin); border-bottom:
|
|
224
|
+
.docs-mobilebar { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom); box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); height: var(--header-h); padding: 0 var(--page-margin); border-bottom: var(--bh-border-width-default) solid var(--c-line); background: var(--c-bg); font: var(--bh-font-label-default); }
|
|
203
225
|
.drawer-open { display: flex; align-items: center; gap: var(--bh-space-050); min-width: 0; height: var(--bh-size-control-default); padding: 0; border: 0; color: var(--c-ink); background: none; font: inherit; cursor: pointer; }
|
|
204
226
|
.drawer-open-label { overflow: hidden; color: var(--c-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
205
227
|
.drawer-open-label b { color: var(--c-ink); }
|
|
@@ -207,12 +229,12 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
207
229
|
.toc-menu summary { display: flex; align-items: center; height: var(--bh-size-control-default); color: var(--c-muted); cursor: pointer; list-style: none; }
|
|
208
230
|
.toc-menu summary::-webkit-details-marker { display: none; }
|
|
209
231
|
.toc-menu summary::after { content: ' ▾'; }
|
|
210
|
-
.toc-menu nav { position: absolute; top: calc(100% + var(--bh-space-050)); right: 0; width: min(300px, calc(100vw - 2 * var(--page-margin))); max-height: 60vh; padding: var(--bh-space-050); overflow-y: auto; border-radius: var(--bh-radius-
|
|
232
|
+
.toc-menu nav { position: absolute; top: calc(100% + var(--bh-space-050)); right: 0; width: min(300px, calc(100vw - 2 * var(--page-margin))); max-height: 60vh; padding: var(--bh-space-050); overflow-y: auto; border-radius: var(--bh-radius-100); background: var(--bh-color-surface-overlay); box-shadow: var(--c-shadow); }
|
|
211
233
|
.toc-menu a { display: flex; align-items: center; min-height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-050); color: var(--c-ink); text-decoration: none; font: var(--bh-font-label-default); }
|
|
212
234
|
.toc-menu .toc-depth-3 a { padding-left: var(--bh-space-300); color: var(--c-muted); }
|
|
213
235
|
.toc-menu a:hover { background: var(--bh-color-surface-overlay-hover); }
|
|
214
236
|
|
|
215
|
-
.sidebar { --c-hover: var(--bh-color-surface-overlay-hover); --c-selected: var(--bh-color-surface-overlay-selected); --c-selected-hover: var(--bh-color-surface-overlay-selected-hover); position: fixed; z-index: var(--bh-z-index-modal); top: 0; bottom: 0; left: 0; width: min(var(--sidebar-w), 86vw); height: auto; border-right: 0; background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); transform: translateX(-105%); transition: transform
|
|
237
|
+
.sidebar { --c-hover: var(--bh-color-surface-overlay-hover); --c-selected: var(--bh-color-surface-overlay-selected); --c-selected-hover: var(--bh-color-surface-overlay-selected-hover); position: fixed; z-index: var(--bh-z-index-modal); top: 0; bottom: 0; left: 0; width: min(var(--sidebar-w), 86vw); height: auto; border-right: 0; background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); transform: translateX(-105%); transition: transform var(--bh-motion-modal-enter); visibility: hidden; }
|
|
216
238
|
body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
217
239
|
.drawer-backdrop { display: none; }
|
|
218
240
|
.drawer-backdrop:not([hidden]) { position: fixed; z-index: var(--bh-z-index-modal); inset: 0; display: block; background: var(--bh-color-surface-scrim); }
|
|
@@ -220,7 +242,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
220
242
|
/* Tables marked stackable are one card per row in a narrow column, and a table once the column is 720 px wide. */
|
|
221
243
|
.prose table.stackable, .prose table.stackable tbody, .prose table.stackable tr, .prose table.stackable td { display: block; width: 100%; }
|
|
222
244
|
.prose table.stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
223
|
-
.prose table.stackable tr { margin-bottom: var(--bh-space-150); padding: var(--bh-space-050) 0; border:
|
|
245
|
+
.prose table.stackable tr { margin-bottom: var(--bh-space-150); padding: var(--bh-space-050) 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
224
246
|
/* The cell stays one block, so text, code and links inside it flow as one line of text; the label sits in the left column. */
|
|
225
247
|
.prose table.stackable td { position: relative; display: block; min-height: var(--bh-space-500); --label-w: 7rem; padding: var(--bh-space-100) var(--bh-space-150) var(--bh-space-100) calc(var(--label-w) + 2 * var(--bh-space-150)); border: 0; }
|
|
226
248
|
.prose table.stackable td::before { content: attr(data-label); position: absolute; top: var(--bh-space-100); left: var(--bh-space-150); width: 7rem; color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
@@ -229,7 +251,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
229
251
|
.prose table.stackable thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
|
|
230
252
|
.prose table.stackable tbody { display: table-row-group; width: auto; }
|
|
231
253
|
.prose table.stackable tr { display: table-row; width: auto; margin: 0; padding: 0; border: 0; border-radius: var(--bh-radius-0); }
|
|
232
|
-
.prose table.stackable td { display: table-cell; width: auto; min-height: 0; padding: var(--bh-space-100) var(--bh-space-150); border-bottom:
|
|
254
|
+
.prose table.stackable td { display: table-cell; width: auto; min-height: 0; padding: var(--bh-space-100) var(--bh-space-150); border-bottom: var(--bh-border-width-default) solid var(--c-line); }
|
|
233
255
|
.prose table.stackable td::before { content: none; }
|
|
234
256
|
}
|
|
235
257
|
|
|
@@ -262,24 +284,24 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
262
284
|
|
|
263
285
|
/* Get started. */
|
|
264
286
|
.role-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin-bottom: var(--bh-space-200); }
|
|
265
|
-
.role-card { padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border:
|
|
287
|
+
.role-card { padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); }
|
|
266
288
|
.prose .role-card h3 { margin: 0 0 var(--bh-space-050); font: var(--bh-font-heading-small); }
|
|
267
289
|
.prose .role-card h3 a { color: var(--c-ink); text-decoration: none; }
|
|
268
290
|
.prose .role-card h3 a:hover { text-decoration: underline; }
|
|
269
291
|
.prose .role-card p { margin: 0 0 var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
270
|
-
.prose .role-card ul { margin: 0; padding: var(--bh-space-150) 0 0; border-top:
|
|
292
|
+
.prose .role-card ul { margin: 0; padding: var(--bh-space-150) 0 0; border-top: var(--bh-border-width-default) solid var(--c-line); list-style: none; }
|
|
271
293
|
.prose .role-card li { margin: 0; font: var(--bh-font-body-default); }
|
|
272
294
|
.prose .role-card li + li { margin-top: var(--bh-space-050); }
|
|
273
295
|
.area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
274
296
|
.card-meta { color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
275
|
-
.prose .help-list { display: grid; gap: 0; margin: 0 0 var(--bh-space-200); padding: 0; border:
|
|
297
|
+
.prose .help-list { display: grid; gap: 0; margin: 0 0 var(--bh-space-200); padding: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); list-style: none; }
|
|
276
298
|
.prose .help-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-050); margin: 0; padding: var(--bh-space-150) var(--bh-space-200); }
|
|
277
|
-
.prose .help-list li + li { border-top:
|
|
299
|
+
.prose .help-list li + li { border-top: var(--bh-border-width-default) solid var(--c-line); }
|
|
278
300
|
.help-list b { }
|
|
279
301
|
.help-list span { color: var(--c-muted); }
|
|
280
302
|
|
|
281
303
|
/* Dark button, used for downloads. */
|
|
282
|
-
.prose .button-dark { display: inline-flex; flex: none; align-items: center; justify-content: center; height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); border-radius: var(--bh-radius-
|
|
304
|
+
.prose .button-dark { display: inline-flex; flex: none; align-items: center; justify-content: center; height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); border-radius: var(--bh-radius-075); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); text-decoration: none; font: var(--bh-font-label-default); }
|
|
283
305
|
.prose .button-dark:hover { background: var(--bh-color-background-neutral-bold-hover); }
|
|
284
306
|
|
|
285
307
|
/* Inside the content column: these follow the column's width (container queries). */
|
|
@@ -291,7 +313,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
291
313
|
/* A 40 px button on small screens, the default 32 px from md. */
|
|
292
314
|
@media (min-width: 768px) { .prose .button-dark { justify-content: flex-start; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); } }
|
|
293
315
|
/* Under /vi/, a page shown in English says so above its title. */
|
|
294
|
-
.lang-notice { margin: 0 0 var(--bh-space-150); padding: calc(var(--bh-space-100) - var(--bh-border-width-default)) calc(var(--bh-space-150) - var(--bh-border-width-default)); border:
|
|
316
|
+
.lang-notice { margin: 0 0 var(--bh-space-150); padding: calc(var(--bh-space-100) - var(--bh-border-width-default)) calc(var(--bh-space-150) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-note-line); border-radius: var(--bh-radius-100); color: var(--c-ink); background: var(--c-note-bg); font: var(--bh-font-body-default); }
|
|
295
317
|
|
|
296
318
|
/* Moving between pages: the page fades across instead of flashing white, while the header and
|
|
297
319
|
the sidebar stay put (cross-document view transitions; browsers without them load as before). */
|
|
@@ -301,5 +323,12 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
301
323
|
::view-transition-group(site-header), ::view-transition-group(docs-sidebar) { animation: none; }
|
|
302
324
|
::view-transition-old(site-header), ::view-transition-old(docs-sidebar) { display: none; }
|
|
303
325
|
::view-transition-new(site-header), ::view-transition-new(docs-sidebar) { animation: none; }
|
|
304
|
-
::view-transition-old(root), ::view-transition-new(root) { animation-duration:
|
|
326
|
+
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--bh-motion-duration-fast); }
|
|
305
327
|
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
|
|
328
|
+
.child-pages .card p { margin-bottom: 0; }
|
|
329
|
+
/* All design tokens: filter box above the tables. */
|
|
330
|
+
.token-search { margin: var(--bh-space-300) 0 0; }
|
|
331
|
+
.token-search .kit-input { width: 100%; max-width: 32rem; }
|
|
332
|
+
/* Rows the filter hides; stackable tables set display on every row. */
|
|
333
|
+
.prose tr[hidden], .prose table.stackable tr[hidden] { display: none; }
|
|
334
|
+
.token-search-status { min-height: 1.25rem; margin: var(--bh-space-100) 0 0; color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Illustrations for the Elevation page. Surfaces, shadows, edges and sizes are tokens only. */
|
|
2
2
|
.bh-scope-light, .bh-scope-dark { color: var(--bh-color-text); background: var(--bh-color-surface-page); }
|
|
3
3
|
|
|
4
|
-
/* Hero: the three levels from the front and from the side
|
|
4
|
+
/* Hero: the three levels from the front and from the side. */
|
|
5
5
|
.el-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: var(--bh-space-300) 0; }
|
|
6
6
|
@container prose (min-width: 640px) { .el-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
7
7
|
.el-view { display: grid; grid-template-rows: 1fr auto; margin: 0; overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); }
|
|
@@ -34,15 +34,30 @@ html { scroll-behavior: smooth; scroll-padding-top: var(--bh-space-1000); scroll
|
|
|
34
34
|
(16 px by default), because every size token is in rem. */
|
|
35
35
|
body { margin: 0; min-width: 320px; overflow-x: hidden; font: var(--bh-font-body-default); }
|
|
36
36
|
/* Bold inside text is semibold: 700 belongs to the display styles only. */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
/* Inter character variants, on everywhere (decided 27/10/2026): cv05 gives lowercase l a tail and
|
|
38
|
+
cv08 gives uppercase I serifs, so l, I and 1 never look alike in names, IDs and keys.
|
|
39
|
+
Every text style is applied with the `font` shorthand, and the shorthand resets
|
|
40
|
+
font-feature-settings to normal, so inheritance alone can't carry the features. The token
|
|
41
|
+
font.features holds them, and tokens.css (generated, imported before this file) sets them on
|
|
42
|
+
every element from that one variable. Change the variable, not the property:
|
|
43
|
+
`--bh-font-features: "cv05", "cv08", "zero"` adds the slashed zero to a code value.
|
|
44
|
+
JetBrains Mono has no cv05 or cv08, so code is not affected. */
|
|
45
|
+
/* Element resets sit in the base layer, below every class rule and below the Tailwind utilities
|
|
46
|
+
of the shadcn-vue components shown in the docs (registry.css). The same split a product needs
|
|
47
|
+
while it runs old CSS and shadcn-vue side by side. */
|
|
48
|
+
@layer theme, base, components, utilities;
|
|
49
|
+
@layer base {
|
|
50
|
+
b, strong { font-weight: var(--bh-font-weight-semibold); }
|
|
51
|
+
h1, h2, h3, h4, h5, h6 { font-weight: var(--bh-font-weight-semibold); }
|
|
52
|
+
code, kbd, pre, samp { font-family: var(--bh-font-family-mono); }
|
|
53
|
+
button, input { font: inherit; }
|
|
54
|
+
button, a { -webkit-tap-highlight-color: transparent; }
|
|
55
|
+
a { color: inherit; }
|
|
56
|
+
svg { display: block; }
|
|
57
|
+
}
|
|
58
|
+
:root a.bh-link-underline { text-decoration: underline; text-underline-offset: var(--bh-space-025); }
|
|
44
59
|
|
|
45
|
-
.skip-link { position: fixed; z-index: var(--bh-z-index-toast); top: -5rem; left: 1rem; display: inline-flex; align-items: center; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-
|
|
60
|
+
.skip-link { position: fixed; z-index: var(--bh-z-index-toast); top: -5rem; left: 1rem; display: inline-flex; align-items: center; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-075); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); font: var(--bh-font-label-default); }
|
|
46
61
|
.skip-link:focus { top: 1rem; }
|
|
47
62
|
h1, h2, h3, p { margin-top: 0; }
|
|
48
63
|
h1, h2, h3 { text-wrap: balance; }
|
|
@@ -54,7 +69,9 @@ h1, h2, h3 { text-wrap: balance; }
|
|
|
54
69
|
|
|
55
70
|
/* Focus ring: blue, 2 px, offset 2 px (color.border.focus). The brand yellow is 1.85:1 on white,
|
|
56
71
|
below the 3:1 a focus indicator needs. */
|
|
57
|
-
|
|
72
|
+
@layer base {
|
|
73
|
+
:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
74
|
+
}
|
|
58
75
|
|
|
59
76
|
@media (prefers-reduced-motion: reduce) {
|
|
60
77
|
html { scroll-behavior: auto; }
|
|
@@ -67,8 +84,8 @@ h1, h2, h3 { text-wrap: balance; }
|
|
|
67
84
|
- Rows in lists and menus sit next to each other, so they grow to 44 px instead. */
|
|
68
85
|
@media (pointer: coarse) {
|
|
69
86
|
/* :root raises these rules above the components' own sizes, whichever file loads last. */
|
|
70
|
-
:root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button) { position: relative; }
|
|
71
|
-
:root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button)::before { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, var(--bh-size-target-touch)); height: max(100%, var(--bh-size-target-touch)); transform: translate(-50%, -50%); }
|
|
87
|
+
:root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button, .bh-switch) { position: relative; }
|
|
88
|
+
:root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button, .bh-switch)::before { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, var(--bh-size-target-touch)); height: max(100%, var(--bh-size-target-touch)); transform: translate(-50%, -50%); }
|
|
72
89
|
/* 32 px buttons 12 px apart: their 44 px tap areas meet without overlapping. */
|
|
73
90
|
:root .header-tools { gap: var(--bh-space-150); }
|
|
74
91
|
:root :is(.sidebar-item, .sidebar-child, .sidebar-section-toggle, .toc-menu a, .header-menu nav a) { min-height: var(--bh-size-target-touch); }
|