@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,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/* ---------- Library ---------- */
|
|
7
7
|
.ib { margin: 0 0 var(--bh-space-400); }
|
|
8
|
-
.ib-controls { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom, 49px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--bh-space-150) var(--bh-space-200); padding: var(--bh-space-150) 0; border-bottom:
|
|
8
|
+
.ib-controls { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom, 49px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--bh-space-150) var(--bh-space-200); padding: var(--bh-space-150) 0; border-bottom: var(--bh-border-width-default) solid var(--c-line); background: var(--c-bg); }
|
|
9
9
|
.ib-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 0; }
|
|
10
10
|
.ib-search-icon { position: absolute; left: var(--bh-space-150); color: var(--bh-color-icon-subtle); pointer-events: none; }
|
|
11
11
|
.ib-search input { width: 100%; padding: 0 var(--bh-space-150) 0 var(--bh-space-400); }
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
.ib-size input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
|
|
21
21
|
.ib-size span { display: grid; place-items: center; min-width: 44px; height: var(--bh-size-control-default); padding: 0 var(--bh-space-100); border: var(--bh-border-width-default) solid var(--bh-color-border-bold); color: var(--c-muted); background: var(--bh-color-surface); font: var(--bh-font-label-default); font-variant-numeric: tabular-nums; }
|
|
22
22
|
.ib-size + .ib-size span { margin-left: -1px; }
|
|
23
|
-
.ib-size:first-of-type span { border-radius: var(--bh-radius-
|
|
24
|
-
.ib-size:last-of-type span { border-radius: 0 var(--bh-radius-
|
|
23
|
+
.ib-size:first-of-type span { border-radius: var(--bh-radius-100) 0 0 var(--bh-radius-100); }
|
|
24
|
+
.ib-size:last-of-type span { border-radius: 0 var(--bh-radius-100) var(--bh-radius-100) 0; }
|
|
25
25
|
.ib-size input:checked + span { position: relative; color: var(--bh-color-text-inverse); border-color: var(--bh-color-background-neutral-bold); background: var(--bh-color-background-neutral-bold); }
|
|
26
26
|
.ib-size input:focus-visible + span { position: relative; z-index: 1; outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
27
27
|
.ib-size input:not(:checked):hover + span { background: var(--c-hover); }
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
.prose .ib-status { margin: var(--bh-space-200) 0 var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-small); font-variant-numeric: tabular-nums; }
|
|
30
30
|
.prose .ib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--bh-space-100); margin: 0; padding: 0; list-style: none; }
|
|
31
31
|
.prose .ib-grid li { margin: 0; padding: 0; content-visibility: auto; contain-intrinsic-size: auto 104px; }
|
|
32
|
-
.ib-icon { display: grid; grid-template-rows: 40px auto; justify-items: center; align-items: center; align-content: start; gap: var(--bh-space-075); width: 100%; height: 100%; min-height: 104px; padding: var(--bh-space-150) var(--bh-space-075) var(--bh-space-100); border:
|
|
33
|
-
.ib-icon svg { width: var(--ib-size,
|
|
32
|
+
.ib-icon { display: grid; grid-template-rows: 40px auto; justify-items: center; align-items: center; align-content: start; gap: var(--bh-space-075); width: 100%; height: 100%; min-height: 104px; padding: var(--bh-space-150) var(--bh-space-075) var(--bh-space-100); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-surface); cursor: pointer; }
|
|
33
|
+
.ib-icon svg { width: var(--ib-size, var(--bh-size-icon-large)); height: var(--ib-size, var(--bh-size-icon-large)); }
|
|
34
34
|
.ib-name { display: -webkit-box; max-width: 100%; overflow: hidden; color: var(--c-muted); font: var(--bh-font-body-small); text-align: center; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
|
|
35
35
|
.ib-icon:hover { background: var(--c-hover); }
|
|
36
36
|
.ib-icon:hover .ib-name { color: var(--c-ink); }
|
|
37
37
|
.ib-icon[data-copied] { border-color: var(--bh-color-border-success); background: var(--bh-color-background-success-subtle); }
|
|
38
38
|
.ib-icon[data-copied] .ib-name { color: var(--bh-color-text-success); }
|
|
39
|
-
.prose .ib-empty { margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border:
|
|
40
|
-
.ib-toast { position: fixed; z-index: var(--bh-z-index-toast); left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: var(--bh-space-100) var(--bh-space-200); border-radius: var(--bh-radius-100); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); box-shadow: var(--c-shadow); font: var(--bh-font-label-default); opacity: 0; transform: translate(-50%, 8px); transition: opacity
|
|
39
|
+
.prose .ib-empty { margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border: var(--bh-border-width-default) dashed var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-muted); text-align: center; }
|
|
40
|
+
.ib-toast { position: fixed; z-index: var(--bh-z-index-toast); left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: var(--bh-space-100) var(--bh-space-200); border-radius: var(--bh-radius-100); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); box-shadow: var(--c-shadow); font: var(--bh-font-label-default); opacity: 0; transform: translate(-50%, 8px); transition: opacity var(--bh-motion-overlay-enter), transform var(--bh-motion-overlay-enter); pointer-events: none; }
|
|
41
41
|
.ib-toast:empty { padding: 0; }
|
|
42
42
|
.ib-toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
|
|
43
43
|
.prose .ib-credit { margin: var(--bh-space-300) 0 0; color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
/* ---------- Illustrations ---------- */
|
|
54
54
|
.ic-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
55
|
-
.ic-size { display: grid; grid-template-rows: auto 1fr; margin: 0; border:
|
|
55
|
+
.ic-size { 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; }
|
|
56
56
|
.ic-size-stage { display: grid; place-items: center; height: 96px; color: var(--bh-color-icon); background: var(--bh-color-surface-subtle); }
|
|
57
57
|
.ic-size figcaption { display: grid; align-content: start; gap: var(--bh-space-025); padding: var(--bh-space-150) var(--bh-space-200) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
58
58
|
.ic-size figcaption b { color: var(--c-ink); font: var(--bh-font-heading-xsmall); }
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
@container prose (min-width: 640px) { .ic-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
|
61
61
|
|
|
62
62
|
.ic-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
63
|
-
.ic-panel { display: grid; grid-template-rows: auto 1fr; margin: 0; border:
|
|
63
|
+
.ic-panel { 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; }
|
|
64
64
|
.ic-panel-stage { display: grid; place-items: center; min-height: 112px; padding: var(--bh-space-300) var(--bh-space-200); background: var(--bh-color-surface-subtle); }
|
|
65
65
|
.ic-panel figcaption { padding: var(--bh-space-150) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
66
66
|
.ic-panel figcaption b { color: var(--c-ink); }
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
/* Alignment: a guide through the centre of the line box. */
|
|
70
70
|
.ic-line { position: relative; display: inline-flex; align-items: center; gap: var(--bh-space-050); padding: 0 var(--bh-space-100); color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
71
71
|
.ic-line svg { color: var(--bh-color-icon); }
|
|
72
|
-
.ic-line.is-guided { box-shadow: inset 0 0 0
|
|
73
|
-
.ic-line.is-guided::before, .ic-line.is-guided::after { content: ''; position: absolute; top: 50%; width: 16px; border-top:
|
|
72
|
+
.ic-line.is-guided { box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
|
|
73
|
+
.ic-line.is-guided::before, .ic-line.is-guided::after { content: ''; position: absolute; top: 50%; width: 16px; border-top: var(--bh-border-width-default) dashed var(--bh-color-border-info); }
|
|
74
74
|
.ic-line.is-guided::before { right: 100%; }
|
|
75
75
|
.ic-line.is-guided::after { left: 100%; }
|
|
76
76
|
.is-zoom > * { zoom: 2; }
|
|
77
77
|
.ic-multi { display: flex; align-items: flex-start; gap: var(--bh-space-100); max-width: 320px; color: var(--c-ink); font: var(--bh-font-body-default); }
|
|
78
|
-
.ic-multi-icon { display: flex; align-items: center; height: 1lh; box-shadow: inset 0 0 0
|
|
78
|
+
.ic-multi-icon { display: flex; align-items: center; height: 1lh; box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
|
|
79
79
|
.ic-multi .is-warning { color: var(--bh-color-icon-warning); }
|
|
80
80
|
|
|
81
81
|
/* Spacing: the gap drawn as a coloured bar with its size. */
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
.ic-spaced svg { color: var(--bh-color-icon); }
|
|
84
84
|
.ic-spaced.is-16 { font: var(--bh-font-label-default); }
|
|
85
85
|
.ic-spaced.is-20 { font: var(--bh-font-body-large); }
|
|
86
|
-
.ic-gap { position: relative; align-self: stretch; min-height: var(--bh-space-300); background: var(--bh-color-background-danger-subtle); box-shadow: inset
|
|
86
|
+
.ic-gap { position: relative; align-self: stretch; min-height: var(--bh-space-300); background: var(--bh-color-background-danger-subtle); box-shadow: inset var(--bh-border-width-default) 0 0 var(--bh-color-border-danger), inset calc(-1 * var(--bh-border-width-default)) 0 0 var(--bh-color-border-danger); }
|
|
87
87
|
.is-16 .ic-gap { width: 4px; }
|
|
88
88
|
.is-20 .ic-gap { width: 8px; }
|
|
89
89
|
.ic-gap small { position: absolute; top: 100%; left: 50%; margin-top: var(--bh-space-050); color: var(--bh-color-text-danger); font: var(--bh-font-label-small); font-style: normal; transform: translateX(-50%); }
|
|
90
90
|
|
|
91
91
|
/* Target size */
|
|
92
|
-
.ic-target { position: relative; display: grid; place-items: center; border:
|
|
92
|
+
.ic-target { position: relative; display: grid; place-items: center; border: var(--bh-border-width-default) dashed var(--bh-color-border-info); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-background-info-subtle); }
|
|
93
93
|
.ic-target.is-24 { width: var(--bh-size-target-minimum); height: var(--bh-size-target-minimum); }
|
|
94
94
|
.ic-target.is-32 { width: var(--bh-size-control-default); height: var(--bh-size-control-default); }
|
|
95
95
|
.ic-target small { position: absolute; left: 100%; margin-left: var(--bh-space-100); color: var(--bh-color-text-info); font: var(--bh-font-label-small); }
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
/* Do / Don’t: same shape as the Color pages. */
|
|
104
104
|
.ic-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
105
|
-
.ic-dd-panel { margin: 0; border:
|
|
105
|
+
.ic-dd-panel { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
106
106
|
.ic-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
|
|
107
107
|
.ic-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
108
108
|
.ic-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
.ic-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
116
116
|
.ic-row.is-icons { gap: var(--bh-space-200); color: var(--bh-color-icon); }
|
|
117
117
|
.ic-ibtn.is-outlined { border-color: var(--bh-color-border); background: var(--bh-color-surface); }
|
|
118
|
-
.ic-bare { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--bh-color-icon); outline:
|
|
118
|
+
.ic-bare { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--bh-color-icon); outline: var(--bh-border-width-default) dashed var(--bh-color-border-danger); outline-offset: 0; }
|
|
119
119
|
.ic-text14 { display: inline-flex; align-items: center; gap: var(--bh-space-050); color: var(--c-ink); font: var(--bh-font-body-default); }
|
|
120
120
|
.ic-text14 svg { color: var(--bh-color-icon); }
|
|
121
121
|
.ic-text14.is-big { gap: var(--bh-space-100); }
|
|
@@ -19,8 +19,50 @@
|
|
|
19
19
|
:is(.kit-btn, .sp-btn).is-large { height: var(--bh-size-control-large); padding: 0 var(--bh-space-control-x-large); }
|
|
20
20
|
/* Icon button: square, same height as a button. */
|
|
21
21
|
.kit-btn.is-icon, .ic-ibtn, .icon-button { width: var(--bh-size-control-default); padding: 0; color: var(--bh-color-icon); }
|
|
22
|
-
.kit-btn.is-subtle, .ic-ibtn:not(.is-outlined) { border-color: transparent; background: transparent; }
|
|
22
|
+
.kit-btn.is-subtle, .bh-button-subtle, .ic-ibtn:not(.is-outlined) { border-color: transparent; background: transparent; }
|
|
23
23
|
:is(.kit-btn, .bh-button):disabled, :is(.kit-btn, .bh-button):disabled:hover { border-color: var(--bh-color-border-disabled); color: var(--bh-color-text-disabled); background: var(--bh-color-background-disabled); cursor: not-allowed; }
|
|
24
|
+
/* Button, Components › Button: pressed states, sizes, icons, width, the danger tone on a subtle button,
|
|
25
|
+
busy and unavailable. Every value is a functional token; Button has no component tokens of its own. */
|
|
26
|
+
:is(button, a).bh-button:hover { background: var(--bh-button-background-subtle-hover); }
|
|
27
|
+
:is(button, a).bh-button:active { background: var(--bh-button-background-subtle-pressed); }
|
|
28
|
+
/* A bordered (Default) button darkens its edge one step on hover and keeps it while pressed. */
|
|
29
|
+
:is(button, a).bh-button:not(.bh-button-subtle, .bh-button-primary, .bh-button-danger):is(:hover, :active) { border-color: var(--bh-color-border-hover); }
|
|
30
|
+
/* A toggle button that is on: a fill two steps above the hover, and a bold edge as the second cue. */
|
|
31
|
+
:is(button, a).bh-button:not(.bh-button-primary, .bh-button-danger)[aria-pressed="true"] { border-color: var(--bh-button-border-selected); background: var(--bh-button-background-selected); }
|
|
32
|
+
/* An open menu trigger keeps the pressed look while its menu is open. */
|
|
33
|
+
:is(button, a).bh-button:not(.bh-button-primary, .bh-button-danger)[aria-expanded="true"] { background: var(--bh-button-background-subtle-pressed); }
|
|
34
|
+
/* Same weight as the hover rules above, so pressed wins while the pointer is still over the button. */
|
|
35
|
+
:is(button, a):is(.kit-btn.is-primary, .bh-button-primary):active { border-color: var(--bh-color-background-primary-pressed); background: var(--bh-color-background-primary-pressed); }
|
|
36
|
+
:is(button, a):is(.kit-btn.is-danger, .bh-button-danger):active { border-color: var(--bh-color-background-danger-bold-pressed); background: var(--bh-color-background-danger-bold-pressed); }
|
|
37
|
+
.bh-button-small { height: var(--bh-size-control-small); border-radius: var(--bh-radius-control-small); padding: 0 var(--bh-space-control-x-small); font: var(--bh-font-label-small); }
|
|
38
|
+
.bh-button-large { height: var(--bh-size-control-large); padding: 0 var(--bh-space-control-x-large); }
|
|
39
|
+
.bh-button svg { flex: none; width: var(--bh-size-icon-default); height: var(--bh-size-icon-default); }
|
|
40
|
+
.bh-button-icon { width: var(--bh-size-control-default); padding: 0; }
|
|
41
|
+
.bh-button-icon.bh-button-small { width: var(--bh-size-control-small); padding: 0; }
|
|
42
|
+
.bh-button-icon.bh-button-large { width: var(--bh-size-control-large); padding: 0; }
|
|
43
|
+
.bh-button-block { display: flex; width: 100%; }
|
|
44
|
+
.bh-button-subtle.bh-button-danger { border-color: transparent; color: var(--bh-color-text-danger); background: transparent; }
|
|
45
|
+
:is(button, a).bh-button-subtle.bh-button-danger:hover { border-color: transparent; background: var(--bh-color-background-danger-subtle-hover); }
|
|
46
|
+
:is(button, a).bh-button-subtle.bh-button-danger:active { background: var(--bh-color-background-danger-subtle-pressed); }
|
|
47
|
+
.bh-button[aria-busy="true"] { cursor: progress; }
|
|
48
|
+
/* Loading spinner (Lucide loader-circle, DECISIONS D11): it takes the icon's place and shows only once the wait
|
|
49
|
+
passes motion.wait.spinner, so quick actions don't flash it. Under reduced motion it turns more slowly but
|
|
50
|
+
keeps turning, because it is the only sign that work is running; the rule beats global.css by specificity. */
|
|
51
|
+
.bh-button[aria-busy="true"]:has(> .bh-button-spinner) > svg:not(.bh-button-spinner) { display: none; }
|
|
52
|
+
.bh-button .bh-button-spinner { animation: bh-button-spin var(--bh-motion-loop-spinner) var(--bh-motion-easing-linear) infinite, bh-button-spinner-wait var(--bh-motion-duration-instant) var(--bh-motion-wait-spinner) both; }
|
|
53
|
+
@keyframes bh-button-spin { to { transform: rotate(1turn); } }
|
|
54
|
+
@keyframes bh-button-spinner-wait { from { visibility: hidden; } to { visibility: visible; } }
|
|
55
|
+
@media (prefers-reduced-motion: reduce) {
|
|
56
|
+
.bh-button .bh-button-spinner { animation: bh-button-spin calc(var(--bh-motion-loop-spinner) * 2) var(--bh-motion-easing-linear) infinite, bh-button-spinner-wait var(--bh-motion-duration-instant) var(--bh-motion-wait-spinner) both !important; }
|
|
57
|
+
}
|
|
58
|
+
:is(button, a).bh-button.bh-button:is(:disabled, [aria-disabled="true"]), :is(button, a).bh-button.bh-button:is(:disabled, [aria-disabled="true"]):is(:hover, :active) { border-color: var(--bh-color-border-disabled); color: var(--bh-color-text-disabled); background: var(--bh-color-background-disabled); cursor: not-allowed; }
|
|
59
|
+
/* A button with no fill at rest keeps no fill when it can't be used: only the text turns grey. */
|
|
60
|
+
:is(button, a).bh-button.bh-button.bh-button-subtle:is(:disabled, [aria-disabled="true"]), :is(button, a).bh-button.bh-button.bh-button-subtle:is(:disabled, [aria-disabled="true"]):is(:hover, :active) { border-color: transparent; background: transparent; }
|
|
61
|
+
.bh-button > .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
62
|
+
.bh-button-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
63
|
+
.bh-button-row.is-end { justify-content: flex-end; }
|
|
64
|
+
/* Icon-only buttons in a row sit 12 px apart, so a 24 px small one keeps a 24 px tap circle clear of its neighbour (WCAG 2.5.8). */
|
|
65
|
+
.bh-button-row:has(> .bh-button-icon) { gap: var(--bh-space-150); }
|
|
24
66
|
|
|
25
67
|
/* Text field and select: 32 px, edge border.bold, placeholder text.subtlest. */
|
|
26
68
|
.kit-input, .sp-input, .ib-search input, .ib-field select { box-sizing: border-box; height: var(--bh-size-control-default); border: var(--bh-border-width-default) solid var(--bh-color-border-bold); border-radius: var(--bh-radius-control); color: var(--bh-color-text); background: var(--bh-color-surface); font: var(--bh-font-body-default); }
|
|
@@ -33,8 +75,8 @@
|
|
|
33
75
|
.kit-card-title, .el-card > b, .op-tile b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
34
76
|
.kit-card-text, .el-card > span, .op-tile span.op-status { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
35
77
|
|
|
36
|
-
/* Menu: surface.overlay, radius.
|
|
37
|
-
.kit-menu, .sh-menu, .el-menu { display: grid; box-sizing: border-box; padding: var(--bh-space-overlay); border-radius: var(--bh-radius-
|
|
78
|
+
/* Menu: surface.overlay, radius.overlay, padding space.overlay, shadow overlay. Items 32 px, radius.item, space.item.x, label.default. */
|
|
79
|
+
.kit-menu, .sh-menu, .el-menu { display: grid; box-sizing: border-box; padding: var(--bh-space-overlay); border-radius: var(--bh-radius-overlay); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); }
|
|
38
80
|
.kit-menu-item, .sh-menu > span:not(.sh-pin), .sh-menu > .sh-pin > span:first-child, .el-menu > span:not(.sh-pin):not(.zi-n), .el-menu > .sh-pin > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-100); min-height: var(--bh-size-control-default); padding: 0 var(--bh-space-item-x); border-radius: var(--bh-radius-item); color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
39
81
|
:is(.kit-menu, .sh-menu, .el-menu) .is-on { background: var(--bh-color-surface-overlay-hover); }
|
|
40
82
|
:is(.kit-menu, .sh-menu, .el-menu) .is-sel { background: var(--bh-color-surface-overlay-selected); }
|
|
@@ -62,8 +104,8 @@
|
|
|
62
104
|
.kit-dialog, .el-dialog, .zi-mini-dialog, .c-surf-dialog { display: grid; gap: var(--bh-space-modal-gap); box-sizing: border-box; padding: var(--bh-space-modal); border-radius: var(--bh-radius-modal); color: var(--bh-color-text-subtle); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); font: var(--bh-font-body-default); }
|
|
63
105
|
.kit-dialog-title, .el-dialog b, .zi-mini-dialog b, .c-surf-dialog b { color: var(--bh-color-text); font: var(--bh-font-heading-medium); }
|
|
64
106
|
|
|
65
|
-
/* Tooltip: surface.inverse, radius.
|
|
66
|
-
.kit-tooltip, .sh-tip, .ic-tip, .zi-tip { box-sizing: border-box; padding: var(--bh-space-050) var(--bh-space-075); border-radius: var(--bh-radius-
|
|
107
|
+
/* Tooltip: surface.inverse, radius.100, padding space.050 space.075, body.small. */
|
|
108
|
+
.kit-tooltip, .sh-tip, .ic-tip, .zi-tip { box-sizing: border-box; padding: var(--bh-space-050) var(--bh-space-075); border-radius: var(--bh-radius-050); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); font: var(--bh-font-body-small); }
|
|
67
109
|
|
|
68
110
|
/* Toast: surface.overlay and overlay shadow, no border (like menus); icon in the status colour.
|
|
69
111
|
Title heading.xsmall, message body.default. */
|
|
@@ -95,10 +137,29 @@
|
|
|
95
137
|
:is(.kit-callout, .sh-alert) span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
96
138
|
|
|
97
139
|
/* Switch: 20 x 36, knob 16 px. On background.neutral.bold; off background.neutral with a border.bold edge. */
|
|
98
|
-
.kit-switch, .sh-switch, .op-switch { position: relative; flex: none; display: inline-block; box-sizing: border-box; width:
|
|
99
|
-
:is(.kit-switch, .sh-switch, .op-switch)::after { content: ""; position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: var(--bh-
|
|
100
|
-
.kit-switch.is-off { background: var(--bh-
|
|
101
|
-
.kit-switch.is-off::after { right: auto; left: var(--bh-space-025); }
|
|
140
|
+
.kit-switch, .sh-switch, .op-switch { position: relative; flex: none; display: inline-block; box-sizing: border-box; width: var(--bh-switch-size-track-width); height: var(--bh-switch-size-track-height); border-radius: var(--bh-radius-pill); background: var(--bh-switch-on-track); }
|
|
141
|
+
:is(.kit-switch, .sh-switch, .op-switch)::after { content: ""; position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: var(--bh-switch-size-thumb); height: var(--bh-switch-size-thumb); border-radius: var(--bh-radius-pill); background: var(--bh-switch-on-thumb); }
|
|
142
|
+
.kit-switch.is-off { background: var(--bh-switch-off-track); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border); }
|
|
143
|
+
.kit-switch.is-off::after { right: auto; left: var(--bh-space-025); background: var(--bh-switch-off-thumb); }
|
|
144
|
+
/* Switch: a native button with role="switch". aria-checked sets ON or OFF; each state pairs its track, thumb and edge. */
|
|
145
|
+
.bh-switch-field { display: inline-flex; align-items: center; gap: var(--bh-space-100); color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
146
|
+
.bh-switch { position: relative; flex: none; box-sizing: border-box; width: var(--bh-switch-size-track-width); height: var(--bh-switch-size-track-height); margin: 0; padding: 0; border: 0; border-radius: var(--bh-radius-pill); background: var(--bh-switch-off-track); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border); cursor: pointer; transition: background-color var(--bh-motion-control), box-shadow var(--bh-motion-control); }
|
|
147
|
+
.bh-switch::after { content: ""; position: absolute; top: var(--bh-space-025); left: var(--bh-space-025); width: var(--bh-switch-size-thumb); height: var(--bh-switch-size-thumb); border-radius: var(--bh-radius-pill); background: var(--bh-switch-off-thumb); transition: left var(--bh-motion-control); }
|
|
148
|
+
.bh-switch:hover { background: var(--bh-switch-off-track-hover); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border-hover); }
|
|
149
|
+
.bh-switch:active { background: var(--bh-switch-off-track-pressed); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border-pressed); }
|
|
150
|
+
.bh-switch[aria-checked='true'] { background: var(--bh-switch-on-track); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border); }
|
|
151
|
+
.bh-switch[aria-checked='true']::after { left: calc(100% - var(--bh-switch-size-thumb) - var(--bh-space-025)); background: var(--bh-switch-on-thumb); }
|
|
152
|
+
.bh-switch[aria-checked='true']:hover { background: var(--bh-switch-on-track-hover); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border-hover); }
|
|
153
|
+
.bh-switch[aria-checked='true']:active { background: var(--bh-switch-on-track-pressed); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border-pressed); }
|
|
154
|
+
.bh-switch::before { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, var(--bh-size-target-minimum)); height: max(100%, var(--bh-size-target-minimum)); transform: translate(-50%, -50%); }
|
|
155
|
+
.bh-switch-hint { margin: 0; color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); }
|
|
156
|
+
.bh-switch:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-switch-focus-ring); outline-offset: var(--bh-state-focus-offset); }
|
|
157
|
+
.bh-switch:disabled, .bh-switch:disabled:hover, .bh-switch:disabled:active { background: var(--bh-switch-off-track-disabled); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border-disabled); cursor: not-allowed; }
|
|
158
|
+
.bh-switch:disabled::after { background: var(--bh-switch-off-thumb-disabled); }
|
|
159
|
+
.bh-switch[aria-checked='true']:disabled, .bh-switch[aria-checked='true']:disabled:hover { background: var(--bh-switch-on-track-disabled); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border-disabled); }
|
|
160
|
+
.bh-switch[aria-checked='true']:disabled::after { background: var(--bh-switch-on-thumb-disabled); }
|
|
161
|
+
.bh-switch-field:has(.bh-switch:disabled) { color: var(--bh-color-text-disabled); }
|
|
162
|
+
@media (prefers-reduced-motion: reduce) { .bh-switch, .bh-switch::after { transition: none; } }
|
|
102
163
|
|
|
103
164
|
/* Avatar: 32 px circle, background.neutral, text, label.small. Small 24 px. */
|
|
104
165
|
.kit-avatar, .sh-avatar, .op-avatar { display: inline-grid; flex: none; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); border-radius: var(--bh-radius-pill); color: var(--bh-color-text); background: var(--bh-color-background-neutral); font: var(--bh-font-label-small); }
|
|
@@ -108,7 +169,7 @@
|
|
|
108
169
|
.kit-count, .zi-n { display: inline-grid; flex: none; place-items: center; box-sizing: border-box; min-width: var(--bh-space-250); height: var(--bh-space-250); padding: 0 var(--bh-space-050); border-radius: var(--bh-radius-025); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); font: var(--bh-font-label-small); font-variant-numeric: tabular-nums; }
|
|
109
170
|
|
|
110
171
|
/* Selected item in a navigation list: background.selected and a border.selected bar inside the left edge. */
|
|
111
|
-
.kit-nav-item { display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-item-x); border-radius: var(--bh-radius-
|
|
172
|
+
.kit-nav-item { display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-item-x); border-radius: var(--bh-radius-control); color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
112
173
|
.kit-nav-item.is-selected, .ic-nav-item.is-selected { position: relative; overflow: hidden; background: var(--bh-color-background-selected); }
|
|
113
174
|
/* The selected bar is a straight strip clipped by the item's corners, like the accent bar; an inset shadow would bend round the corner. */
|
|
114
175
|
:is(.kit-nav-item, .ic-nav-item).is-selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bh-border-width-selected); background: var(--bh-color-border-selected); }
|
|
@@ -96,26 +96,29 @@
|
|
|
96
96
|
}
|
|
97
97
|
.ly-svg .f-plain { fill: var(--bh-color-surface); }
|
|
98
98
|
.ly-svg .f-page { fill: var(--bh-color-surface-page); }
|
|
99
|
-
.ly-svg .f-surface { fill: var(--bh-color-surface); stroke: var(--bh-color-border); stroke-width:
|
|
99
|
+
.ly-svg .f-surface { fill: var(--bh-color-surface); stroke: var(--bh-color-border); stroke-width: var(--bh-border-width-default); vector-effect: non-scaling-stroke; }
|
|
100
100
|
.ly-svg .f-subtle { fill: var(--bh-color-surface-subtle); }
|
|
101
101
|
.ly-svg .f-line { fill: var(--bh-color-border); }
|
|
102
|
+
/* Rules drawn as lines keep the 1 px border width at any drawing scale. */
|
|
103
|
+
.ly-svg .f-rule { stroke: var(--bh-color-border); stroke-width: var(--bh-border-width-default); vector-effect: non-scaling-stroke; }
|
|
102
104
|
.ly-svg .f-skel { fill: var(--bh-color-skeleton); }
|
|
103
105
|
.ly-svg .f-skel-subtle { fill: var(--bh-color-skeleton-subtle); }
|
|
104
106
|
.ly-svg .f-selected { fill: var(--bh-color-background-selected); }
|
|
105
107
|
.ly-svg .f-indicator { fill: var(--bh-color-border-selected); }
|
|
106
108
|
.ly-svg .f-primary { fill: var(--bh-color-background-neutral-bold); }
|
|
107
|
-
.ly-svg .f-field { fill: var(--bh-color-surface); stroke: var(--bh-color-border-bold); stroke-width:
|
|
109
|
+
.ly-svg .f-field { fill: var(--bh-color-surface); stroke: var(--bh-color-border-bold); stroke-width: var(--bh-border-width-default); vector-effect: non-scaling-stroke; }
|
|
108
110
|
.ly-svg .f-mark { fill: var(--sp-mark); }
|
|
111
|
+
.ly-svg .f-scrim { fill: var(--bh-color-surface-scrim); }
|
|
109
112
|
.ly-svg .f-col { fill: var(--bh-color-background-danger-subtle); }
|
|
110
|
-
.ly-svg .f-block { fill: var(--bh-color-surface); fill-opacity: 0.6; stroke: var(--bh-color-border-bold); stroke-width:
|
|
113
|
+
.ly-svg .f-block { fill: var(--bh-color-surface); fill-opacity: 0.6; stroke: var(--bh-color-border-bold); stroke-width: var(--bh-border-width-default); vector-effect: non-scaling-stroke; stroke-dasharray: 8 6; }
|
|
111
114
|
.ly-svg .s-dim { stroke: var(--sp-mark-ink); stroke-width: 2; fill: none; }
|
|
112
|
-
.ly-svg .t-dim { fill: var(--sp-mark-ink); font-family: var(--bh-font-family-sans); font-weight:
|
|
115
|
+
.ly-svg .t-dim { fill: var(--sp-mark-ink); font-family: var(--bh-font-family-sans); font-weight: var(--bh-font-weight-semibold); }
|
|
113
116
|
.ly-svg .t-label { fill: var(--bh-color-text); font-family: var(--bh-font-family-sans); }
|
|
114
117
|
.ly-svg .f-inverse { fill: var(--bh-color-surface-inverse); }
|
|
115
118
|
.ly-svg .t-inverse { fill: var(--bh-color-text-inverse); font-family: var(--bh-font-family-sans); }
|
|
116
|
-
.ly-svg .t-ink { fill: var(--bh-color-text); font-family: var(--bh-font-family-sans); font-weight:
|
|
119
|
+
.ly-svg .t-ink { fill: var(--bh-color-text); font-family: var(--bh-font-family-sans); font-weight: var(--bh-font-weight-semibold); }
|
|
117
120
|
.ly-svg .c-call { fill: var(--bh-color-background-neutral-bold); }
|
|
118
|
-
.ly-svg .t-call { fill: var(--bh-color-text-inverse); font-family: var(--bh-font-family-sans); font-weight:
|
|
121
|
+
.ly-svg .t-call { fill: var(--bh-color-text-inverse); font-family: var(--bh-font-family-sans); font-weight: var(--bh-font-weight-bold); text-anchor: middle; dominant-baseline: central; }
|
|
119
122
|
.ly-svg .s-icon { stroke: var(--bh-color-icon); stroke-width: 2.5; fill: none; stroke-linecap: round; }
|
|
120
123
|
|
|
121
124
|
.ly-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-100) var(--bh-space-300); margin: 0 0 var(--bh-space-300); padding: 0; list-style: none; counter-reset: ly; }
|
|
@@ -128,7 +131,6 @@
|
|
|
128
131
|
.ly-widths { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
129
132
|
.ly-widths > figure { margin: 0; }
|
|
130
133
|
.ly-widths .ly-svg * { vector-effect: non-scaling-stroke; }
|
|
131
|
-
.ly-widths .ly-svg .f-surface, .ly-widths .ly-svg .f-field { stroke-width: 1; }
|
|
132
134
|
.ly-widths figcaption { display: grid; gap: var(--bh-space-025); margin-top: var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
133
135
|
.ly-widths figcaption b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
134
136
|
@container prose (min-width: 640px) { .ly-widths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
|
@@ -140,8 +142,8 @@
|
|
|
140
142
|
.ly-controls figcaption { display: grid; align-content: start; gap: var(--bh-space-050); padding: var(--bh-space-150) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
141
143
|
.ly-controls figcaption b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
142
144
|
.ly-ruler { position: relative; display: inline-flex; align-items: center; }
|
|
143
|
-
.ly-ruler::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--bh-space-100)); border-left:
|
|
144
|
-
.ly-field { display: inline-flex; align-items: center; min-width: 0; width: 7.5rem; padding: 0 var(--bh-space-150); border: var(--bh-border-width-default) solid var(--bh-color-border-bold); border-radius: var(--bh-radius-
|
|
145
|
+
.ly-ruler::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--bh-space-100)); border-left: var(--bh-border-width-selected) solid var(--sp-mark-ink); }
|
|
146
|
+
.ly-field { display: inline-flex; align-items: center; min-width: 0; width: 7.5rem; padding: 0 var(--bh-space-150); border: var(--bh-border-width-default) solid var(--bh-color-border-bold); border-radius: var(--bh-radius-075); color: var(--bh-color-text-subtle); background: var(--bh-color-surface); white-space: nowrap; font: var(--bh-font-body-default); }
|
|
145
147
|
.ly-field.is-small { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); font: var(--bh-font-body-small); }
|
|
146
148
|
.ly-field.is-default { height: var(--bh-size-control-default); }
|
|
147
149
|
.ly-field.is-large { height: var(--bh-size-control-large); }
|
|
@@ -149,12 +151,15 @@
|
|
|
149
151
|
|
|
150
152
|
/* Breakpoints */
|
|
151
153
|
.ly-bp { display: flex; margin: 0 0 var(--bh-space-100); padding: 0; list-style: none; }
|
|
152
|
-
.prose .ly-bp li { position: relative; display: grid; align-content: start; gap: var(--bh-space-025); min-width: 0; margin: 0; padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-150); border-left:
|
|
154
|
+
.prose .ly-bp li { position: relative; display: grid; align-content: start; gap: var(--bh-space-025); min-width: 0; margin: 0; padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-150); border-left: var(--bh-border-width-selected) solid var(--bh-color-border-bold); background: var(--c-surf); }
|
|
153
155
|
.prose .ly-bp li:nth-child(even) { background: var(--bh-color-background-neutral); }
|
|
154
156
|
.ly-bp b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
155
157
|
.ly-bp span { color: var(--c-muted); font: var(--bh-font-body-small); font-variant-numeric: tabular-nums; }
|
|
156
158
|
.ly-bp-scale { margin: 0 0 var(--bh-space-300); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
157
159
|
@container prose (width < 560px) {
|
|
158
160
|
.ly-bp { flex-direction: column; }
|
|
159
|
-
.prose .ly-bp li { flex: none !important; grid-template-columns: 3rem minmax(0, 1fr); border-left: 0; border-top:
|
|
161
|
+
.prose .ly-bp li { flex: none !important; grid-template-columns: 3rem minmax(0, 1fr); border-left: 0; border-top: var(--bh-border-width-selected) solid var(--bh-color-border-bold); }
|
|
160
162
|
}
|
|
163
|
+
|
|
164
|
+
/* Detail overlays: the phone is drawn narrower so it does not tower over the two windows. */
|
|
165
|
+
.ly-widths .ly-phone { display: block; max-width: 50%; margin-inline: auto; }
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
/* Column widths rounded down to whole pixels, so every card, and the logo centred in it, starts on a pixel edge. */
|
|
24
24
|
.logo-cards { grid-template-columns: round(down, (100% - 16px) / 2, 1px) minmax(0, 1fr); }
|
|
25
25
|
.logo-cards[style*='--cols:3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: round(down, (100% - 32px) / 3, 1px) round(down, (100% - 32px) / 3, 1px) minmax(0, 1fr); }
|
|
26
|
-
.logo-card { overflow: hidden; border:
|
|
27
|
-
.logo-card > .logo-stage { border-bottom:
|
|
26
|
+
.logo-card { overflow: hidden; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-card); background: var(--c-bg); }
|
|
27
|
+
.logo-card > .logo-stage { border-bottom: var(--bh-border-width-default) solid var(--c-line); }
|
|
28
28
|
.logo-card-body { padding: var(--bh-space-150) var(--bh-space-200) var(--bh-space-200); }
|
|
29
29
|
.prose .logo-card-body p { margin: 0; color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
30
30
|
.prose .logo-card-body .card-title { margin: 0 0 var(--bh-space-050); color: var(--c-ink); font: var(--bh-font-heading-small); }
|
|
31
31
|
.card-codes { display: flex; flex-wrap: wrap; gap: var(--bh-space-075); margin: var(--bh-space-100) 0 0; }
|
|
32
|
-
.card-codes span { display: inline-flex; align-items: center; gap: var(--bh-space-075); padding: var(--bh-space-025) var(--bh-space-100) var(--bh-space-025) var(--bh-space-050); border:
|
|
32
|
+
.card-codes span { display: inline-flex; align-items: center; gap: var(--bh-space-075); padding: var(--bh-space-025) var(--bh-space-100) var(--bh-space-025) var(--bh-space-050); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-full); color: var(--c-ink); font: var(--bh-font-body-small); }
|
|
33
33
|
.prose .card-codes code { padding: 0; background: none; font-size: inherit; }
|
|
34
34
|
.card-codes i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 15%); }
|
|
35
35
|
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
.verdict svg { flex: none; }
|
|
39
39
|
.verdict-do { color: var(--bh-color-text-success); }
|
|
40
40
|
.verdict-dont { color: var(--bh-color-text-danger); }
|
|
41
|
-
.logo-card.is-dont > .logo-stage { box-shadow: inset 0 -
|
|
42
|
-
.logo-card.is-do > .logo-stage { box-shadow: inset 0 -
|
|
41
|
+
.logo-card.is-dont > .logo-stage { box-shadow: inset 0 calc(-1 * var(--bh-border-width-accent)) 0 var(--bh-color-border-danger); }
|
|
42
|
+
.logo-card.is-do > .logo-stage { box-shadow: inset 0 calc(-1 * var(--bh-border-width-accent)) 0 var(--bh-color-border-success); }
|
|
43
43
|
|
|
44
44
|
/* Diagrams drawn in SVG. They always sit on a white or paper stage, so their colours are fixed
|
|
45
45
|
and do not follow the page theme. */
|
|
46
46
|
.logo-figure { margin: 0 0 var(--bh-space-300); }
|
|
47
|
-
.logo-figure > .logo-stage { border:
|
|
47
|
+
.logo-figure > .logo-stage { border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-card); }
|
|
48
48
|
.logo-figure figcaption { margin-top: var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
49
49
|
.diagram { display: block; max-width: 100%; height: auto; }
|
|
50
50
|
.diagram .d-guide { fill: none; stroke: #2b2a28; opacity: .45; }
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
|
|
59
59
|
/* Legend under a diagram. */
|
|
60
60
|
.prose .diagram-legend { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--bh-space-150) var(--bh-space-300); margin: 0 0 var(--bh-space-300); padding: 0; list-style: none; }
|
|
61
|
-
.prose .diagram-legend li { margin: 0; padding-left: var(--bh-space-150); border-left:
|
|
61
|
+
.prose .diagram-legend li { margin: 0; padding-left: var(--bh-space-150); border-left: var(--bh-border-width-selected) solid var(--c-gold); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
62
62
|
.prose .diagram-legend b { display: block; color: var(--c-ink); }
|
|
63
63
|
|
|
64
64
|
/* Download hero. round() keeps the dark panel on a whole pixel when the column width is odd. */
|
|
65
65
|
.logo-hero { margin: 0 0 var(--bh-space-200); }
|
|
66
|
-
.logo-hero-panels { display: grid; grid-template-columns: 1fr 1fr; grid-template-columns: round(down, 50%, 1px) 1fr; overflow: hidden; border:
|
|
66
|
+
.logo-hero-panels { display: grid; grid-template-columns: 1fr 1fr; grid-template-columns: round(down, 50%, 1px) 1fr; overflow: hidden; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-card); }
|
|
67
67
|
.hero-sm { display: none !important; }
|
|
68
68
|
.logo-hero-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-200); margin-top: var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
69
69
|
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
|
|
87
87
|
/* One icon, three meanings. */
|
|
88
88
|
.prose .logo-meanings { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); padding: 0; list-style: none; }
|
|
89
|
-
.prose .logo-meanings li { overflow: hidden; margin: 0; border:
|
|
90
|
-
.meaning-stage { --stage-h: 164px; border-bottom:
|
|
89
|
+
.prose .logo-meanings li { overflow: hidden; margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-card); }
|
|
90
|
+
.meaning-stage { --stage-h: 164px; border-bottom: var(--bh-border-width-default) solid var(--c-line); }
|
|
91
91
|
.meaning-text { padding: var(--bh-space-150) var(--bh-space-200) var(--bh-space-200); }
|
|
92
92
|
.prose .meaning-text p { margin: 0; color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
93
93
|
.prose .meaning-text .meaning-title { display: flex; align-items: center; gap: var(--bh-space-100); margin-bottom: var(--bh-space-075); color: var(--c-ink); font: var(--bh-font-heading-small); }
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
.misuse-stage { --stage-h: 120px; }
|
|
105
105
|
.container-stage { --stage-h: 360px; }
|
|
106
106
|
.app-icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
107
|
-
.app-icons figure { display: flex; flex-direction: column; align-items: center; gap: var(--bh-space-100); margin: 0; padding: var(--bh-space-250) var(--bh-space-150) var(--bh-space-200); border:
|
|
107
|
+
.app-icons figure { display: flex; flex-direction: column; align-items: center; gap: var(--bh-space-100); margin: 0; padding: var(--bh-space-250) var(--bh-space-150) var(--bh-space-200); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-card); }
|
|
108
108
|
.app-icon { display: block; width: 96px; height: 96px; }
|
|
109
109
|
.shape-rounded { border-radius: 22px; }
|
|
110
110
|
.shape-circle { border-radius: 50%; }
|
|
@@ -115,32 +115,32 @@
|
|
|
115
115
|
/* In-use mock-ups. Fixed colours: they show real surfaces, not the page theme. Text inside a
|
|
116
116
|
mock-up is drawn to the scale of the mock (a business card, a browser tab), so it does not use
|
|
117
117
|
the text styles. */
|
|
118
|
-
.mock { position: relative; height: 200px; overflow: hidden; border-bottom:
|
|
118
|
+
.mock { position: relative; height: 200px; overflow: hidden; border-bottom: var(--bh-border-width-default) solid var(--c-line); background: #f8f8f8; }
|
|
119
119
|
.mock svg { display: block; }
|
|
120
|
-
.mock i, .mock b { display: block; height: 8px; border-radius:
|
|
120
|
+
.mock i, .mock b { display: block; height: 8px; border-radius: var(--bh-radius-050); background: #dfdedd; }
|
|
121
121
|
.mock b { background: #c4c4c2; }
|
|
122
122
|
.mock-site, .mock-app { background: #ffffff; }
|
|
123
123
|
.mock-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--bh-space-250); border-bottom: 1px solid #e8e8e7; background: #ffffff; }
|
|
124
124
|
.mock-bar-dark { height: 48px; border-color: #2b2a28; background: #2b2a28; }
|
|
125
125
|
.mock-links { display: flex; align-items: center; gap: var(--bh-space-150); }
|
|
126
126
|
.mock-links i { width: 40px; }
|
|
127
|
-
.mock-links b { width: 64px; height: 24px; border-radius:
|
|
127
|
+
.mock-links b { width: 64px; height: 24px; border-radius: var(--bh-radius-075); background: #2b2a28; }
|
|
128
128
|
.mock-bar-dark .mock-links i { background: #51504e; }
|
|
129
129
|
.mock-bar-dark .mock-links b.dot { width: 24px; height: 24px; border-radius: 50%; background: #fcb017; }
|
|
130
130
|
.mock-hero { display: grid; gap: var(--bh-space-150); padding: var(--bh-space-400) var(--bh-space-250); }
|
|
131
131
|
.mock-hero i { height: 14px; }
|
|
132
|
-
.mock-hero b { width: 96px; height: 28px; margin-top: var(--bh-space-075); border-radius:
|
|
132
|
+
.mock-hero b { width: 96px; height: 28px; margin-top: var(--bh-space-075); border-radius: var(--bh-radius-075); background: #2b2a28; }
|
|
133
133
|
.mock-body { display: grid; grid-template-columns: 120px 1fr; height: calc(100% - 48px); }
|
|
134
134
|
.mock-nav { display: grid; align-content: start; gap: var(--bh-space-150); padding: var(--bh-space-200); border-right: 1px solid #e8e8e7; background: #f8f8f8; }
|
|
135
135
|
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bh-space-150); padding: var(--bh-space-200); }
|
|
136
|
-
.mock-cards i { height: 44px; border-radius:
|
|
136
|
+
.mock-cards i { height: 44px; border-radius: var(--bh-radius-100); background: #f2f2f1; }
|
|
137
137
|
.mock-browser { padding-top: var(--bh-space-200); background: #dee1e6; }
|
|
138
138
|
.mock-tabs { display: flex; gap: var(--bh-space-025); padding: 0 var(--bh-space-150); }
|
|
139
139
|
.mock-tab { display: flex; align-items: center; gap: var(--bh-space-100); width: 200px; height: 36px; padding: 0 var(--bh-space-150); border-radius: 10px 10px 0 0; color: #3c4043; font: var(--bh-font-body-small); }
|
|
140
140
|
.mock-tab.is-active { background: #ffffff; }
|
|
141
141
|
.mock-tab img { display: block; flex: none; }
|
|
142
|
-
.mock-tab i { width: 16px; height: 16px; border-radius:
|
|
143
|
-
.mock-tab .ghost { width: 90px; height: 8px; border-radius:
|
|
142
|
+
.mock-tab i { width: 16px; height: 16px; border-radius: var(--bh-radius-050); }
|
|
143
|
+
.mock-tab .ghost { width: 90px; height: 8px; border-radius: var(--bh-radius-050); background: #c4c7cc; }
|
|
144
144
|
.mock-url { height: 100%; padding: var(--bh-space-100) var(--bh-space-200); background: #ffffff; }
|
|
145
145
|
.mock-url i { width: 70%; height: 28px; border-radius: 14px; background: #f1f3f4; }
|
|
146
146
|
.mock-social { display: flex; align-items: center; gap: var(--bh-space-200); padding: 0 var(--bh-space-300); background: #ffffff; }
|
|
@@ -154,14 +154,14 @@
|
|
|
154
154
|
.mock-page .mock-lines b { height: 8px; }
|
|
155
155
|
.mock-partner { display: flex; align-items: center; justify-content: center; gap: var(--bh-space-300); background: #ffffff; }
|
|
156
156
|
.mock-divider { width: 1px; height: 32px; background: #c4c4c2; }
|
|
157
|
-
.mock-partner-logo { display: grid; place-items: center; width: 120px; height: 32px; border: 1px dashed #c4c4c2; border-radius:
|
|
157
|
+
.mock-partner-logo { display: grid; place-items: center; width: 120px; height: 32px; border: 1px dashed #c4c4c2; border-radius: var(--bh-radius-075); color: #8e8c89; font: var(--bh-font-label-small); font-weight: var(--bh-font-weight-semibold); }
|
|
158
158
|
.pair { margin: 0 0 var(--bh-space-300); }
|
|
159
159
|
/* One example on its own: mock-up and text side by side, full width. */
|
|
160
160
|
.logo-cards.inuse.single { grid-template-columns: minmax(0, 1fr); }
|
|
161
161
|
.inuse.single .logo-card { display: grid; grid-template-columns: minmax(0, 1fr); }
|
|
162
|
-
.inuse.single .mock { border-right: 0; border-bottom:
|
|
162
|
+
.inuse.single .mock { border-right: 0; border-bottom: var(--bh-border-width-default) solid var(--c-line); }
|
|
163
163
|
.inuse.single .logo-card-body { align-self: center; padding: var(--bh-space-250) var(--bh-space-300); }
|
|
164
|
-
@container prose (min-width: 560px) { .inuse.single .logo-card { grid-template-columns: round(down, 50%, 1px) minmax(0, 1fr); } .inuse.single .mock { border-right:
|
|
164
|
+
@container prose (min-width: 560px) { .inuse.single .logo-card { grid-template-columns: round(down, 50%, 1px) minmax(0, 1fr); } .inuse.single .mock { border-right: var(--bh-border-width-default) solid var(--c-line); border-bottom: 0; } }
|
|
165
165
|
@container prose (min-width: 560px) { .prose td code { white-space: nowrap; } } /* file names stay on one line where there is room */
|
|
166
166
|
/* Small screens: a diagram wider than the column scales down, so the stage grows to fit it. */
|
|
167
167
|
@container prose (width < 640px) {
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
.mock-email .mock-lines b { height: 10px; }
|
|
184
184
|
.mock-rule { display: block; width: 64px; height: 1px; background: #dfdedd; }
|
|
185
185
|
.mock-cards-pair { gap: 0; }
|
|
186
|
-
.mock-bizcard { position: relative; display: grid; place-items: center; width: 170px; height: 110px; border-radius:
|
|
186
|
+
.mock-bizcard { position: relative; display: grid; place-items: center; width: 170px; height: 110px; border-radius: var(--bh-radius-050); box-shadow: 0 1px 2px rgb(0 0 0 / 12%), 0 8px 20px rgb(0 0 0 / 12%); }
|
|
187
187
|
.mock-bizcard.is-front { z-index: 1; margin-left: -40px; background: #2b2a28; transform: translateY(18px); }
|
|
188
188
|
.mock-bizcard.is-back { align-content: space-between; justify-items: start; padding: var(--bh-space-150); background: #ffffff; transform: translateY(-14px); }
|
|
189
189
|
.bizcard-text { display: grid; gap: 1px; color: #5f5e5c; font-size: 7px; line-height: 10px; letter-spacing: .01em; }
|
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
.mock-login { display: grid; place-items: center; background: #f8f8f8; }
|
|
199
199
|
.mock-login-panel { display: grid; justify-items: center; gap: var(--bh-space-100); width: 200px; padding: var(--bh-space-250); border-radius: 10px; background: #ffffff; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
|
|
200
200
|
.mock-login-panel > svg, .mock-login-panel > img { margin-bottom: var(--bh-space-075); }
|
|
201
|
-
.mock-input { display: block; width: 100%; height: 24px; border: 1px solid #dfdedd; border-radius:
|
|
202
|
-
.mock-button { display: block; width: 100%; height: 26px; border-radius:
|
|
201
|
+
.mock-input { display: block; width: 100%; height: 24px; border: 1px solid #dfdedd; border-radius: var(--bh-radius-075); }
|
|
202
|
+
.mock-button { display: block; width: 100%; height: 26px; border-radius: var(--bh-radius-075); background: #2b2a28; }
|
|
203
203
|
.mock-market { display: grid; align-content: center; gap: var(--bh-space-100); padding: 0 var(--bh-space-300); background: #f8f8f8; }
|
|
204
204
|
.mock-listing { display: flex; align-items: center; gap: var(--bh-space-150); padding: calc(var(--bh-space-100) - 1px) calc(var(--bh-space-150) - 1px); border: 1px solid #e8e8e7; border-radius: 10px; background: #ffffff; }
|
|
205
205
|
.mock-listing img { display: block; flex: none; border-radius: 9px; }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.op-logo.is-e { background: var(--bh-color-background-neutral-bold); }
|
|
14
14
|
.op-logo.is-f { background: var(--bh-color-background-brand-bold); color: var(--bh-color-text-on-brand); }
|
|
15
15
|
.is-off .op-logo, .is-off .op-avatar { opacity: var(--bh-opacity-disabled); }
|
|
16
|
-
.is-off .op-switch { background: var(--bh-
|
|
16
|
+
.is-off .op-switch { background: var(--bh-switch-off-track-disabled); }
|
|
17
17
|
.op-list { overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); }
|
|
18
18
|
.op-row { display: flex; align-items: center; gap: var(--bh-space-150); padding: var(--bh-space-100) var(--bh-space-200); }
|
|
19
19
|
.op-row + .op-row { border-top: var(--bh-border-width-default) solid var(--bh-color-border); }
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
.op-btn-faded { opacity: var(--bh-opacity-disabled); }
|
|
37
37
|
.sp-dd-stage .op-tile { width: min(100%, 14rem); }
|
|
38
38
|
.op-tile-top { gap: var(--bh-space-150); }
|
|
39
|
-
.op-tile.is-wrong .op-switch { background: var(--bh-
|
|
39
|
+
.op-tile.is-wrong .op-switch { background: var(--bh-switch-off-track-disabled); }
|
|
40
40
|
.el-theme .op-scrim-box { height: calc(2 * var(--bh-space-1000) + var(--bh-space-600)); }
|
|
41
41
|
.el-theme .op-dialog { top: auto; bottom: var(--bh-space-300); transform: translateX(-50%); }
|
|
42
42
|
/* Switch: a thumb on the track, right when on, left when off. */
|
|
43
|
-
.is-off .op-switch::after, .op-tile.is-wrong .op-switch::after { right: auto; left: var(--bh-space-025); background: var(--bh-
|
|
43
|
+
.is-off .op-switch::after, .op-tile.is-wrong .op-switch::after { right: auto; left: var(--bh-space-025); background: var(--bh-switch-off-thumb-disabled); }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Tailwind for the shadcn-vue registry components shown in the component docs.
|
|
2
|
+
Only theme variables and utilities, no preflight: the site's own CSS stays as it is.
|
|
3
|
+
Utilities are generated from the registry source and the component pages only.
|
|
4
|
+
Layer order: the site's element resets (global.css, layer base) lose to every utility. */
|
|
5
|
+
@layer theme, base, components, utilities;
|
|
6
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
7
|
+
@import "tailwindcss/utilities.css" layer(utilities) source(none);
|
|
8
|
+
@source "../../registry";
|
|
9
|
+
@source "../content/components";
|
|
10
|
+
@source "../content-vi/components";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* Do and don't pictures for Interaction states, Typography usage and Size and density.
|
|
2
|
+
Shares the panel frame (.sp-dd) from layout.css. Don't pictures carry rd-dd- classes. */
|
|
3
|
+
.rd-col { display: flex; flex-direction: column; gap: var(--bh-space-050); width: 100%; max-width: 15rem; }
|
|
4
|
+
.rd-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
5
|
+
.rd-col .kit-nav-item { width: 100%; box-sizing: border-box; }
|
|
6
|
+
.rd-focus.bh-button { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
7
|
+
.rd-hover.bh-button-primary { border-color: var(--bh-color-background-primary-hover); background: var(--bh-color-background-primary-hover); }
|
|
8
|
+
.rd-title { display: block; margin: 0; color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
9
|
+
.rd-body { display: block; margin: 0; color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
10
|
+
.rd-label { color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
11
|
+
.rd-card { box-sizing: border-box; width: 100%; max-width: 15rem; padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-card); background: var(--bh-color-surface); }
|
|
12
|
+
.rd-target { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--bh-size-target-minimum); height: var(--bh-size-target-minimum); outline: var(--bh-border-width-default) dashed var(--bh-color-border-info); color: var(--bh-color-icon); }
|
|
13
|
+
.rd-target svg { width: var(--bh-size-icon-default); height: var(--bh-size-icon-default); }
|
|
14
|
+
.rd-caption { color: var(--bh-color-text-subtlest); font: var(--bh-font-body-small); }
|
|
15
|
+
|
|
16
|
+
/* Don't pictures: each shows the mistake its caption names. */
|
|
17
|
+
.rd-dd-color-only { color: var(--bh-color-text-info); }
|
|
18
|
+
.rd-dd-no-ring.bh-button { background: var(--bh-color-background-neutral-subtle-hover); outline: none; }
|
|
19
|
+
.rd-dd-faded.bh-button-primary { opacity: var(--bh-opacity-disabled); }
|
|
20
|
+
.rd-dd-near-miss { display: block; margin: 0; color: var(--bh-color-text); font: var(--bh-font-weight-regular) var(--bh-font-size-300)/var(--bh-font-size-300) var(--bh-font-family-sans); }
|
|
21
|
+
.rd-dd-caps { text-transform: uppercase; }
|
|
22
|
+
.rd-dd-cut { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
23
|
+
.rd-dd-tall.kit-input { height: var(--bh-size-control-large); }
|
|
24
|
+
.rd-dd-small-target.rd-target { width: var(--bh-size-icon-default); height: var(--bh-size-icon-default); }
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
.sh-sum { font: var(--bh-font-code-default); color: var(--bh-color-text); }
|
|
75
75
|
.sh-nest figcaption { color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); }
|
|
76
76
|
|
|
77
|
-
/* Radius examples, one card per example
|
|
77
|
+
/* Radius examples, one card per example. */
|
|
78
78
|
.sh-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
79
79
|
.sh-ex { display: flex; align-items: center; justify-content: center; min-height: calc(2 * var(--bh-space-1000) + var(--bh-space-400)); padding: var(--bh-space-400) var(--bh-space-300) var(--bh-space-1000); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); }
|
|
80
80
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.sh-pin.is-wide { display: flex; width: min(100%, 24rem); }
|
|
103
103
|
.sh-pin.is-wide > .sh-alert { width: 100%; }
|
|
104
104
|
|
|
105
|
-
/* Border examples: the same cards, with a small dot that just touches the border and a dark line
|
|
105
|
+
/* Border examples: the same cards, with a small dot that just touches the border and a dark line. */
|
|
106
106
|
.sh-ex.is-b { padding: var(--bh-space-500) var(--bh-space-300) var(--bh-space-1000); }
|
|
107
107
|
.sh-ex.is-span { grid-column: 1 / -1; }
|
|
108
108
|
.sh-ex.is-left { justify-content: flex-start; padding-left: calc(2 * var(--bh-space-1000) + var(--bh-space-800)); padding-bottom: var(--bh-space-500); }
|