@beehexa/design-rules 2611.4.1 → 2611.5.3
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/dist/catalog.json +602 -248
- package/dist/docs/public/_redirects +2 -0
- package/dist/docs/scripts/token-utils.d.mts +5 -1
- package/dist/docs/scripts/token-utils.mjs +28 -3
- package/dist/docs/src/brand/structure-proposal.md +1 -1
- package/dist/docs/src/components/ColorDemo.astro +52 -14
- package/dist/docs/src/components/MotionDemo.astro +135 -0
- package/dist/docs/src/components/NativeControlsDemo.astro +279 -0
- package/dist/docs/src/components/OpacityDemo.astro +8 -8
- package/dist/docs/src/components/RoleGuides.astro +2 -2
- package/dist/docs/src/components/ShapeDemo.astro +78 -35
- package/dist/docs/src/components/SiteHeader.astro +19 -4
- package/dist/docs/src/components/SystemAreas.astro +1 -1
- package/dist/docs/src/components/TokenTable.astro +16 -1
- package/dist/docs/src/components/TypeDemo.astro +15 -15
- package/dist/docs/src/components/ZIndexDemo.astro +1 -1
- package/dist/docs/src/components/logos/LogoInUse.astro +3 -3
- package/dist/docs/src/content/components/button/accessibility.mdx +41 -8
- package/dist/docs/src/content/components/button/code.mdx +8 -1
- package/dist/docs/src/content/components/button/examples.mdx +23 -4
- package/dist/docs/src/content/components/button/usage.mdx +26 -0
- package/dist/docs/src/content/components/resizable-panel/accessibility.mdx +61 -0
- package/dist/docs/src/content/components/resizable-panel/changelog.mdx +20 -0
- package/dist/docs/src/content/components/resizable-panel/code.mdx +79 -0
- package/dist/docs/src/content/components/resizable-panel/examples.mdx +85 -0
- package/dist/docs/src/content/components/resizable-panel/meta.json +5 -0
- package/dist/docs/src/content/components/resizable-panel/usage.mdx +101 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +45 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +58 -0
- package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +100 -11
- package/dist/docs/src/content/foundations/guidelines/content.mdx +11 -2
- package/dist/docs/src/content/foundations/index.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/border.mdx +10 -3
- package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/index.mdx +14 -2
- package/dist/docs/src/content/foundations/styles/color/palette.mdx +4 -4
- package/dist/docs/src/content/foundations/styles/color/tokens.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/color/usage.mdx +25 -3
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +76 -0
- package/dist/docs/src/content/foundations/styles/elevation.mdx +7 -1
- package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content/foundations/styles/icons/code.mdx +6 -18
- package/dist/docs/src/content/foundations/styles/icons/index.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/icons/usage.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +82 -9
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +2 -4
- package/dist/docs/src/content/foundations/styles/layout/breakpoints.mdx +10 -7
- package/dist/docs/src/content/foundations/styles/layout/grid.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/layout/index.mdx +3 -3
- package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +28 -37
- package/dist/docs/src/content/foundations/styles/layout/page-widths.mdx +4 -4
- package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +7 -7
- package/dist/docs/src/content/foundations/styles/logos/index.mdx +13 -2
- package/dist/docs/src/content/foundations/styles/logos/placement-and-containers.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/logos/product-logos.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +3 -1
- package/dist/docs/src/content/foundations/styles/motion.mdx +131 -3
- package/dist/docs/src/content/foundations/styles/opacity.mdx +7 -1
- package/dist/docs/src/content/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content/foundations/styles/scrollbars.mdx +176 -0
- package/dist/docs/src/content/foundations/styles/size-and-density.mdx +16 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +4 -2
- package/dist/docs/src/content/foundations/styles/typography/index.mdx +13 -3
- package/dist/docs/src/content/foundations/styles/typography/usage.mdx +5 -3
- package/dist/docs/src/content/foundations/styles/typography/vietnamese.mdx +2 -2
- package/dist/docs/src/content/foundations/styles/z-index.mdx +4 -0
- package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +11 -0
- package/dist/docs/src/content/foundations/tokens/index.mdx +17 -9
- package/dist/docs/src/content/get-started/design.mdx +1 -1
- package/dist/docs/src/content/get-started/develop.mdx +2 -6
- package/dist/docs/src/content/get-started/index.mdx +1 -1
- package/dist/docs/src/content/release-phases/index.mdx +1 -1
- package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +474 -12
- package/dist/docs/src/content/tools/application-content.mdx +166 -32
- package/dist/docs/src/content/tools/editors.mdx +247 -3
- package/dist/docs/src/content/tools/eslint.mdx +1 -1
- package/dist/docs/src/content/tools/index.mdx +2 -2
- package/dist/docs/src/content/tools/mermaid.mdx +108 -13
- package/dist/docs/src/content/tools/vueflow.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/keyboard-and-focus.mdx +75 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +45 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +58 -0
- package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +108 -0
- package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +34 -0
- package/dist/docs/src/content-vi/foundations/index.mdx +9 -0
- package/dist/docs/src/content-vi/foundations/styles/border.mdx +9 -3
- package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/index.mdx +14 -2
- package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +5 -5
- package/dist/docs/src/content-vi/foundations/styles/color/tokens.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +24 -2
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +7 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
- package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +6 -18
- package/dist/docs/src/content-vi/foundations/styles/icons/index.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +22 -8
- package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/layout/breakpoints.mdx +10 -7
- package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/layout/index.mdx +3 -3
- package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +36 -0
- package/dist/docs/src/content-vi/foundations/styles/layout/page-widths.mdx +5 -1
- package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +7 -7
- package/dist/docs/src/content-vi/foundations/styles/logos/index.mdx +13 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/placement-and-containers.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/product-logos.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/logos/using-the-logo.mdx +3 -1
- package/dist/docs/src/content-vi/foundations/styles/motion.mdx +139 -0
- package/dist/docs/src/content-vi/foundations/styles/opacity.mdx +8 -2
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +16 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/typography/index.mdx +14 -4
- package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +4 -2
- package/dist/docs/src/content-vi/foundations/styles/typography/vietnamese.mdx +2 -2
- package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +4 -0
- package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +47 -0
- package/dist/docs/src/content-vi/foundations/tokens/index.mdx +35 -0
- package/dist/docs/src/lib/i18n.ts +0 -1
- package/dist/docs/src/lib/token-descriptions-vi.ts +60 -9
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/styles/chrome.css +10 -3
- package/dist/docs/src/styles/color.css +33 -23
- package/dist/docs/src/styles/docs.css +26 -28
- package/dist/docs/src/styles/elevation.css +4 -4
- package/dist/docs/src/styles/global.css +21 -1
- package/dist/docs/src/styles/icons.css +10 -9
- package/dist/docs/src/styles/kit.css +36 -32
- package/dist/docs/src/styles/layout.css +7 -7
- package/dist/docs/src/styles/motion.css +34 -0
- package/dist/docs/src/styles/opacity.css +3 -3
- package/dist/docs/src/styles/scrollbars.css +74 -0
- package/dist/docs/src/styles/shapes.css +21 -11
- package/dist/docs/src/styles/tokens.css +392 -12
- package/dist/docs/src/styles/tokens.js +185 -6
- package/dist/docs/src/styles/typography.css +4 -4
- package/dist/docs/src/styles/zindex.css +10 -7
- package/dist/docs/tokens/color.json +18 -1
- package/dist/docs/tokens/content.json +8 -3
- package/dist/docs/tokens/diagram.json +9 -3
- package/dist/docs/tokens/flow.json +2 -2
- package/dist/docs/tokens/layout.json +4 -0
- package/dist/docs/tokens/motion.json +37 -5
- package/dist/docs/tokens/radius.json +52 -8
- package/dist/docs/tokens/resize.json +12 -0
- package/dist/docs/tokens/scrollbar.json +40 -0
- package/dist/docs/tokens/size.json +1 -1
- package/dist/docs/tokens/spacing.json +31 -1
- package/dist/docs/tokens/switch.json +280 -0
- package/dist/index.js +602 -248
- package/package.json +1 -1
|
@@ -42,11 +42,16 @@ button, a { -webkit-tap-highlight-color: transparent; }
|
|
|
42
42
|
a { color: inherit; }
|
|
43
43
|
svg { display: block; }
|
|
44
44
|
|
|
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-
|
|
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-control); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); font: var(--bh-font-label-default); }
|
|
46
46
|
.skip-link:focus { top: 1rem; }
|
|
47
47
|
h1, h2, h3, p { margin-top: 0; }
|
|
48
48
|
h1, h2, h3 { text-wrap: balance; }
|
|
49
49
|
|
|
50
|
+
/* Pictures of text: colour specimens, Don't examples and mock-ups draw their words from data-sample.
|
|
51
|
+
The words are part of a picture (role="img" with a name, or aria-hidden), so a pair that fails on
|
|
52
|
+
purpose can be shown without failing the page (WCAG 1.4.3 exempts pictures and logotypes). */
|
|
53
|
+
[data-sample]::before { content: attr(data-sample); }
|
|
54
|
+
|
|
50
55
|
/* Focus ring: blue, 2 px, offset 2 px (color.border.focus). The brand yellow is 1.85:1 on white,
|
|
51
56
|
below the 3:1 a focus indicator needs. */
|
|
52
57
|
:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
@@ -55,3 +60,18 @@ h1, h2, h3 { text-wrap: balance; }
|
|
|
55
60
|
html { scroll-behavior: auto; }
|
|
56
61
|
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
|
|
57
62
|
}
|
|
63
|
+
|
|
64
|
+
/* Touch screens (Foundations › Size and density › Target size): every control responds to a tap
|
|
65
|
+
in at least 44 × 44 px (size.target.touch); mouse and keyboard screens keep the 24 px minimum.
|
|
66
|
+
- A control that stands alone keeps its look and gets an invisible tap area around it.
|
|
67
|
+
- Rows in lists and menus sit next to each other, so they grow to 44 px instead. */
|
|
68
|
+
@media (pointer: coarse) {
|
|
69
|
+
/* :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%); }
|
|
72
|
+
/* 32 px buttons 12 px apart: their 44 px tap areas meet without overlapping. */
|
|
73
|
+
:root .header-tools { gap: var(--bh-space-150); }
|
|
74
|
+
:root :is(.sidebar-item, .sidebar-child, .sidebar-section-toggle, .toc-menu a, .header-menu nav a) { min-height: var(--bh-size-target-touch); }
|
|
75
|
+
:root .component-tabs a { justify-content: center; min-width: var(--bh-size-target-touch); height: var(--bh-size-target-touch); }
|
|
76
|
+
:root .site-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--bh-size-target-touch); min-height: var(--bh-size-target-touch); }
|
|
77
|
+
}
|
|
@@ -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-050) 0 0 var(--bh-radius-050); }
|
|
24
|
+
.ib-size:last-of-type span { border-radius: 0 var(--bh-radius-050) var(--bh-radius-050) 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,14 +29,14 @@
|
|
|
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: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
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: 1px solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-surface); cursor: pointer; }
|
|
33
33
|
.ib-icon svg { width: var(--ib-size, 24px); height: var(--ib-size, 24px); }
|
|
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: 1px dashed var(--c-line); border-radius: var(--bh-radius-
|
|
39
|
+
.prose .ib-empty { margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border: 1px dashed var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-muted); text-align: center; }
|
|
40
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 150ms ease, transform 150ms ease; pointer-events: none; }
|
|
41
41
|
.ib-toast:empty { padding: 0; }
|
|
42
42
|
.ib-toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
|
|
@@ -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: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
55
|
+
.ic-size { display: grid; grid-template-rows: auto 1fr; margin: 0; border: 1px 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: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
63
|
+
.ic-panel { display: grid; grid-template-rows: auto 1fr; margin: 0; border: 1px 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); }
|
|
@@ -96,12 +96,13 @@
|
|
|
96
96
|
|
|
97
97
|
/* Common actions */
|
|
98
98
|
.prose .ic-actions td { vertical-align: middle; }
|
|
99
|
-
|
|
99
|
+
/* Keep names on one line where there is room; let them wrap on phones (WCAG 1.4.10). */
|
|
100
|
+
@media (min-width: 768px) { .prose .ic-actions code { white-space: nowrap; } }
|
|
100
101
|
.ic-action-icon { display: inline-flex; align-items: center; gap: var(--bh-space-150); color: var(--bh-color-icon); }
|
|
101
102
|
|
|
102
103
|
/* Do / Don’t: same shape as the Color pages. */
|
|
103
104
|
.ic-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
104
|
-
.ic-dd-panel { margin: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
105
|
+
.ic-dd-panel { margin: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
105
106
|
.ic-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
|
|
106
107
|
.ic-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
107
108
|
.ic-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
@@ -124,7 +125,7 @@
|
|
|
124
125
|
.ic-text14.is-baseline svg { display: inline; margin-right: var(--bh-space-050); vertical-align: baseline; }
|
|
125
126
|
.ic-text14 .is-decor { color: var(--bh-color-border-brand); }
|
|
126
127
|
.ic-nav { display: grid; gap: var(--bh-space-025); width: 180px; }
|
|
127
|
-
.ic-nav-item { position: relative; display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-
|
|
128
|
+
.ic-nav-item { position: relative; display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-075); color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
128
129
|
.ic-nav-item svg { color: var(--bh-color-icon); }
|
|
129
130
|
.ic-tip-wrap { display: grid; justify-items: center; gap: var(--bh-space-075); }
|
|
130
131
|
.ic-tip { position: relative; }
|
|
@@ -2,70 +2,72 @@
|
|
|
2
2
|
Every value is a token, and each part follows the rules on the foundation pages
|
|
3
3
|
(Color usage, Typography usage, Size and density, Spacing, Radius, Border, Elevation).
|
|
4
4
|
This is not a component library. Real components will replace it.
|
|
5
|
+
Spacing, radius and motion use the family tokens (space.control.x, radius.overlay,
|
|
6
|
+
motion.control...); a value comes from the scale only when no family covers it.
|
|
5
7
|
The older class names after each kit-* name are aliases kept while the demos move to kit-*. */
|
|
6
8
|
|
|
7
|
-
/* Button: 32 px, side padding space.
|
|
8
|
-
.kit-btn, .sp-btn, .c-button, .ui-btn, .bh-button, .ic-ibtn, .icon-button { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: var(--bh-space-
|
|
9
|
+
/* Button: 32 px, side padding space.control.x, radius.control, label.default, motion.control. */
|
|
10
|
+
.kit-btn, .sp-btn, .c-button, .ui-btn, .bh-button, .ic-ibtn, .icon-button { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: var(--bh-space-control-gap); box-sizing: border-box; height: var(--bh-size-control-default); padding: 0 var(--bh-space-control-x); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-control); color: var(--bh-color-text); background: var(--bh-color-surface); white-space: nowrap; font: var(--bh-font-label-default); transition: background-color var(--bh-motion-control), border-color var(--bh-motion-control), color var(--bh-motion-control); }
|
|
9
11
|
:is(button, a):is(.kit-btn, .bh-button) { cursor: pointer; text-decoration: none; }
|
|
10
12
|
:is(button, a):is(.kit-btn, .bh-button):hover { background: var(--bh-color-background-neutral-subtle-hover); }
|
|
11
13
|
:is(.kit-btn, .bh-button):focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
12
|
-
:is(.kit-btn, .sp-btn, .c-button).is-primary, .ui-btn, .bh-button-primary { border-color: var(--bh-color-background-
|
|
13
|
-
:is(button, a):is(.kit-btn.is-primary, .bh-button-primary):hover { border-color: var(--bh-color-background-
|
|
14
|
+
:is(.kit-btn, .sp-btn, .c-button).is-primary, .ui-btn, .bh-button-primary { border-color: var(--bh-color-background-primary); color: var(--bh-color-text-inverse); background: var(--bh-color-background-primary); }
|
|
15
|
+
:is(button, a):is(.kit-btn.is-primary, .bh-button-primary):hover { border-color: var(--bh-color-background-primary-hover); background: var(--bh-color-background-primary-hover); }
|
|
14
16
|
:is(.kit-btn, .sp-btn, .c-button).is-danger, .bh-button-danger { border-color: var(--bh-color-background-danger-bold); color: var(--bh-color-text-on-bold); background: var(--bh-color-background-danger-bold); }
|
|
15
17
|
:is(button, a):is(.kit-btn.is-danger, .bh-button-danger):hover { border-color: var(--bh-color-background-danger-bold-hover); background: var(--bh-color-background-danger-bold-hover); }
|
|
16
|
-
:is(.kit-btn, .sp-btn).is-small { height: var(--bh-size-control-small); padding: 0 var(--bh-space-
|
|
17
|
-
:is(.kit-btn, .sp-btn).is-large { height: var(--bh-size-control-large); padding: 0 var(--bh-space-
|
|
18
|
+
:is(.kit-btn, .sp-btn).is-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); }
|
|
19
|
+
:is(.kit-btn, .sp-btn).is-large { height: var(--bh-size-control-large); padding: 0 var(--bh-space-control-x-large); }
|
|
18
20
|
/* Icon button: square, same height as a button. */
|
|
19
21
|
.kit-btn.is-icon, .ic-ibtn, .icon-button { width: var(--bh-size-control-default); padding: 0; color: var(--bh-color-icon); }
|
|
20
22
|
.kit-btn.is-subtle, .ic-ibtn:not(.is-outlined) { border-color: transparent; background: transparent; }
|
|
21
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; }
|
|
22
24
|
|
|
23
25
|
/* Text field and select: 32 px, edge border.bold, placeholder text.subtlest. */
|
|
24
|
-
.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-
|
|
25
|
-
.kit-input { padding: 0 var(--bh-space-
|
|
26
|
+
.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); }
|
|
27
|
+
.kit-input { padding: 0 var(--bh-space-control-x); }
|
|
26
28
|
.kit-input::placeholder, .ib-search input::placeholder { color: var(--bh-color-text-subtlest); }
|
|
27
29
|
.kit-field, .zi-field, .ib-field { display: grid; gap: var(--bh-space-050); color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
28
30
|
|
|
29
|
-
/* Card: surface, border, radius.
|
|
30
|
-
.kit-card, .el-card, .op-tile, .ui-card, .c-surf-card { box-sizing: border-box; padding: var(--bh-space-
|
|
31
|
+
/* Card: surface, border, radius.card, padding space.card, raised at rest. */
|
|
32
|
+
.kit-card, .el-card, .op-tile, .ui-card, .c-surf-card { box-sizing: border-box; padding: var(--bh-space-card); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-card); background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); }
|
|
31
33
|
.kit-card-title, .el-card > b, .op-tile b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
32
34
|
.kit-card-text, .el-card > span, .op-tile span.op-status { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
33
35
|
|
|
34
|
-
/* Menu: surface.overlay, radius.
|
|
35
|
-
.kit-menu, .sh-menu, .el-menu { display: grid; box-sizing: border-box; padding: var(--bh-space-
|
|
36
|
-
.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-
|
|
36
|
+
/* Menu: surface.overlay, radius.050 frame, padding space.overlay, shadow overlay. Items 32 px, radius.item, space.item.x, label.default. */
|
|
37
|
+
.kit-menu, .sh-menu, .el-menu { display: grid; box-sizing: border-box; padding: var(--bh-space-overlay); border-radius: var(--bh-radius-050); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); }
|
|
38
|
+
.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); }
|
|
37
39
|
:is(.kit-menu, .sh-menu, .el-menu) .is-on { background: var(--bh-color-surface-overlay-hover); }
|
|
38
40
|
:is(.kit-menu, .sh-menu, .el-menu) .is-sel { background: var(--bh-color-surface-overlay-selected); }
|
|
39
41
|
:is(.kit-menu, .sh-menu, .el-menu) .is-sel svg { flex: none; color: var(--bh-color-icon); }
|
|
40
42
|
:is(.kit-menu, .sh-menu, .el-menu) .is-focus { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: calc(-1 * var(--bh-state-focus-offset)); }
|
|
41
43
|
|
|
42
44
|
/* Label: shows a status. 20 px pill, outline, padding space.075, label.small. */
|
|
43
|
-
.kit-label, .bh-label, .ui-badge
|
|
45
|
+
.kit-label, .bh-label, .ui-badge { display: inline-flex; align-items: center; box-sizing: border-box; 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; white-space: nowrap; font: var(--bh-font-label-small); }
|
|
44
46
|
:is(.kit-label, .bh-label).is-large { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); }
|
|
45
47
|
:is(.kit-label, .bh-label).is-brand { border-color: var(--bh-color-border-brand); }
|
|
46
48
|
:is(.kit-label, .bh-label).is-info { border-color: var(--bh-color-border-info); color: var(--bh-color-text-info); }
|
|
47
|
-
:is(.kit-label, .bh-label).is-success, .ui-badge
|
|
49
|
+
:is(.kit-label, .bh-label).is-success, .ui-badge { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
48
50
|
:is(.kit-label, .bh-label).is-warning { border-color: var(--bh-color-border-warning); color: var(--bh-color-text-warning); }
|
|
49
51
|
:is(.kit-label, .bh-label).is-danger, .ui-badge.is-error { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
50
52
|
:is(.kit-label, .bh-label).is-neutral { border-color: var(--bh-color-border-bold); color: var(--bh-color-text-subtle); }
|
|
51
53
|
|
|
52
54
|
/* Tag: something people add or remove. 24 px, radius.050, border, text. */
|
|
53
|
-
.kit-tag, .sh-tag
|
|
55
|
+
.kit-tag, .sh-tag { display: inline-flex; align-items: center; gap: var(--bh-space-050); box-sizing: border-box; height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-050); color: var(--bh-color-text); background: var(--bh-color-surface); font: var(--bh-font-label-small); }
|
|
54
56
|
|
|
55
|
-
/* Table: header surface.subtle, label.small, text.subtle. Cells space.
|
|
56
|
-
.kit-table th, .kit-th { padding: var(--bh-space-
|
|
57
|
-
.kit-table td, .kit-td { padding: var(--bh-space-
|
|
57
|
+
/* Table: header surface.subtle, label.small, text.subtle. Cells space.table.cell.y space.table.cell.x, body.default. */
|
|
58
|
+
.kit-table th, .kit-th { padding: var(--bh-space-table-cell-y) var(--bh-space-table-cell-x); border-bottom: var(--bh-border-width-default) solid var(--bh-color-border); color: var(--bh-color-text-subtle); background: var(--bh-color-surface-subtle); text-align: left; font: var(--bh-font-label-small); }
|
|
59
|
+
.kit-table td, .kit-td { padding: var(--bh-space-table-cell-y) var(--bh-space-table-cell-x); border-bottom: var(--bh-border-width-default) solid var(--bh-color-border); color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
58
60
|
|
|
59
|
-
/* Dialog: surface.overlay, radius.
|
|
60
|
-
.kit-dialog, .el-dialog, .zi-mini-dialog, .c-surf-dialog { display: grid; gap: var(--bh-space-
|
|
61
|
+
/* Dialog: surface.overlay, radius.modal, padding space.modal, shadow modal, title heading.medium. */
|
|
62
|
+
.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); }
|
|
61
63
|
.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); }
|
|
62
64
|
|
|
63
|
-
/* Tooltip: surface.inverse, radius.
|
|
64
|
-
.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-
|
|
65
|
+
/* Tooltip: surface.inverse, radius.overlay, padding space.050 space.075, body.small. */
|
|
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-overlay); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); font: var(--bh-font-body-small); }
|
|
65
67
|
|
|
66
68
|
/* Toast: surface.overlay and overlay shadow, no border (like menus); icon in the status colour.
|
|
67
69
|
Title heading.xsmall, message body.default. */
|
|
68
|
-
.kit-toast, .el-toast, .ib-toast { display: inline-flex; align-items: center; gap: var(--bh-space-100); box-sizing: border-box; padding: var(--bh-space-150) var(--bh-space-200); border-radius: var(--bh-radius-
|
|
70
|
+
.kit-toast, .el-toast, .ib-toast { display: inline-flex; align-items: center; gap: var(--bh-space-100); box-sizing: border-box; padding: var(--bh-space-150) var(--bh-space-200); border-radius: var(--bh-radius-overlay); color: var(--bh-color-text); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); font: var(--bh-font-body-default); }
|
|
69
71
|
:is(.kit-toast, .el-toast) > svg { flex: none; }
|
|
70
72
|
:is(.kit-toast, .el-toast).is-info > svg { color: var(--bh-color-icon-info); }
|
|
71
73
|
:is(.kit-toast, .el-toast).is-success > svg { color: var(--bh-color-icon-success); }
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
.kit-toast b { color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
75
77
|
|
|
76
78
|
/* Banner: background.{role}.subtle, border.{role}.subtle, text, icon.{role}. */
|
|
77
|
-
.kit-banner, .c-banner { display: flex; align-items: center; gap: var(--bh-space-100); box-sizing: border-box; padding: var(--bh-space-100) var(--bh-space-150); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
79
|
+
.kit-banner, .c-banner { display: flex; align-items: center; gap: var(--bh-space-100); box-sizing: border-box; padding: var(--bh-space-100) var(--bh-space-150); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-card); color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
78
80
|
:is(.kit-banner, .c-banner) svg { flex: none; }
|
|
79
81
|
:is(.kit-banner, .c-banner).is-info { border-color: var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
|
|
80
82
|
:is(.kit-banner, .c-banner).is-info svg { color: var(--bh-color-icon-info); }
|
|
@@ -86,27 +88,29 @@
|
|
|
86
88
|
:is(.kit-banner, .c-banner).is-danger svg { color: var(--bh-color-icon-danger); }
|
|
87
89
|
|
|
88
90
|
/* Callout: content note with a 4 px bar on the left edge. Not for statuses; those are banners. */
|
|
89
|
-
.kit-callout, .sh-alert { --kit-bar: var(--bh-color-border-info); position: relative; display: grid; gap: var(--bh-space-025); box-sizing: border-box; padding: var(--bh-space-150) var(--bh-space-200) var(--bh-space-150) calc(var(--bh-space-200) + var(--bh-border-width-accent)); overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
91
|
+
.kit-callout, .sh-alert { --kit-bar: var(--bh-color-border-info); position: relative; display: grid; gap: var(--bh-space-025); box-sizing: border-box; padding: var(--bh-space-150) var(--bh-space-200) var(--bh-space-150) calc(var(--bh-space-200) + var(--bh-border-width-accent)); overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-card); background: var(--bh-color-surface); }
|
|
90
92
|
:is(.kit-callout, .sh-alert)::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bh-border-width-accent); background: var(--kit-bar); }
|
|
91
93
|
:is(.kit-callout, .sh-alert).is-brand { --kit-bar: var(--bh-color-border-brand); }
|
|
92
94
|
:is(.kit-callout, .sh-alert) b { color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
93
95
|
:is(.kit-callout, .sh-alert) span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
94
96
|
|
|
95
97
|
/* Switch: 20 x 36, knob 16 px. On background.neutral.bold; off background.neutral with a border.bold edge. */
|
|
96
|
-
.kit-switch, .sh-switch, .op-switch { position: relative; flex: none; display: inline-block; box-sizing: border-box; width: calc(2 * var(--bh-space-200) + 2 * var(--bh-space-025)); height: var(--bh-space-250); border-radius: var(--bh-radius-
|
|
97
|
-
:is(.kit-switch, .sh-switch, .op-switch)::after { content: ""; position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: var(--bh-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-
|
|
98
|
+
.kit-switch, .sh-switch, .op-switch { position: relative; flex: none; display: inline-block; box-sizing: border-box; width: calc(2 * var(--bh-space-200) + 2 * var(--bh-space-025)); height: var(--bh-space-250); border-radius: var(--bh-radius-pill); background: var(--bh-color-background-neutral-bold); }
|
|
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-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-pill); background: var(--bh-color-surface); }
|
|
98
100
|
.kit-switch.is-off { background: var(--bh-color-background-neutral); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-bold); }
|
|
99
101
|
.kit-switch.is-off::after { right: auto; left: var(--bh-space-025); }
|
|
100
102
|
|
|
101
103
|
/* Avatar: 32 px circle, background.neutral, text, label.small. Small 24 px. */
|
|
102
|
-
.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-
|
|
104
|
+
.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); }
|
|
103
105
|
.kit-avatar.is-small { width: var(--bh-size-control-small); height: var(--bh-size-control-small); }
|
|
104
106
|
|
|
105
107
|
/* Step number or count: background.neutral.bold, text.inverse. */
|
|
106
|
-
.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-
|
|
108
|
+
.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; }
|
|
107
109
|
|
|
108
110
|
/* Selected item in a navigation list: background.selected and a border.selected bar inside the left edge. */
|
|
109
|
-
.kit-nav-item { display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-
|
|
110
|
-
.kit-nav-item.is-selected, .ic-nav-item.is-selected {
|
|
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-075); color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
112
|
+
.kit-nav-item.is-selected, .ic-nav-item.is-selected { position: relative; overflow: hidden; background: var(--bh-color-background-selected); }
|
|
113
|
+
/* 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
|
+
: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); }
|
|
111
115
|
/* A count on an inverse surface flips to the surface colours. */
|
|
112
116
|
.kit-tooltip .kit-count, .zi-tip .zi-n { color: var(--bh-color-text); background: var(--bh-color-surface); }
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* Redline card */
|
|
36
|
-
.sp-stage { display: grid; place-items: center; padding: var(--bh-space-300) var(--bh-space-100); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-
|
|
37
|
-
.sp-card { width: 100%; max-width: 26rem; padding: var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
36
|
+
.sp-stage { display: grid; place-items: center; padding: var(--bh-space-300) var(--bh-space-100); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); background: var(--c-surf); }
|
|
37
|
+
.sp-card { width: 100%; max-width: 26rem; padding: var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: linear-gradient(var(--bh-color-surface), var(--bh-color-surface)) content-box, var(--sp-mark); }
|
|
38
38
|
.sp-stack { display: flex; flex-direction: column; }
|
|
39
39
|
.sp-row { display: flex; align-items: center; }
|
|
40
40
|
.sp-row.is-end { justify-content: flex-end; }
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
|
|
61
61
|
/* Padding and gap */
|
|
62
62
|
.sp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
63
|
-
.sp-pair > figure { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-
|
|
63
|
+
.sp-pair > figure { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
64
64
|
.sp-pair .sp-pair-stage { display: grid; place-items: center; min-height: 8rem; padding: var(--bh-space-300) var(--bh-space-200); background: var(--c-surf); }
|
|
65
65
|
.sp-pair figcaption { display: grid; gap: var(--bh-space-050); padding: var(--bh-space-150) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
66
66
|
.sp-pair figcaption b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
/* Do / Don't */
|
|
72
72
|
.sp-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
73
|
-
.sp-dd-panel { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-
|
|
73
|
+
.sp-dd-panel { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
74
74
|
.sp-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
|
|
75
75
|
.sp-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
76
76
|
.sp-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
.sp-dd-panel p { margin: 0; padding: var(--bh-space-150) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
79
79
|
.sp-mini { display: flex; flex-direction: column; width: 100%; max-width: 15rem; }
|
|
80
80
|
.sp-mini-group { color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
81
|
-
.sp-badge-host { position: relative; display: inline-grid; place-items: center; width: var(--bh-space-400); height: var(--bh-space-400); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
81
|
+
.sp-badge-host { position: relative; display: inline-grid; place-items: center; width: var(--bh-space-400); height: var(--bh-space-400); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-075); background: var(--bh-color-surface); color: var(--bh-color-icon); }
|
|
82
82
|
.sp-badge { position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: var(--bh-space-100); height: var(--bh-space-100); border-radius: var(--bh-radius-full); background: var(--bh-color-background-danger-bold); }
|
|
83
83
|
.sp-dd-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
|
|
84
84
|
@container prose (min-width: 640px) { .sp-dd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
@@ -135,13 +135,13 @@
|
|
|
135
135
|
|
|
136
136
|
/* Control heights */
|
|
137
137
|
.ly-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
138
|
-
.ly-controls > figure { display: grid; grid-template-rows: auto 1fr; margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-
|
|
138
|
+
.ly-controls > figure { 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; }
|
|
139
139
|
.ly-controls-stage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--bh-space-100); min-height: 6rem; padding: var(--bh-space-200); background: var(--c-surf); }
|
|
140
140
|
.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
141
|
.ly-controls figcaption b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
142
142
|
.ly-ruler { position: relative; display: inline-flex; align-items: center; }
|
|
143
143
|
.ly-ruler::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--bh-space-100)); border-left: 2px solid var(--sp-mark-ink); }
|
|
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-
|
|
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-control); color: var(--bh-color-text-subtle); background: var(--bh-color-surface); white-space: nowrap; font: var(--bh-font-body-default); }
|
|
145
145
|
.ly-field.is-small { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); font: var(--bh-font-body-small); }
|
|
146
146
|
.ly-field.is-default { height: var(--bh-size-control-default); }
|
|
147
147
|
.ly-field.is-large { height: var(--bh-size-control-large); }
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* Illustrations for the Motion page. Every duration and curve is a motion token, so turning on
|
|
2
|
+
reduced motion stops these demos the same way it stops the product. */
|
|
3
|
+
.mo-root { display: grid; gap: var(--bh-space-200); margin: var(--bh-space-300) 0; }
|
|
4
|
+
.mo-curves { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--bh-space-150); }
|
|
5
|
+
.mo-curve { display: grid; gap: var(--bh-space-050); padding: var(--bh-space-150); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); }
|
|
6
|
+
.mo-curve svg { width: 100%; height: auto; }
|
|
7
|
+
.mo-curve .mo-grid { fill: none; stroke: var(--bh-color-border); }
|
|
8
|
+
.mo-curve .mo-line { fill: none; stroke: var(--bh-color-text); stroke-width: 2.5; }
|
|
9
|
+
.mo-curve b { color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
10
|
+
.mo-curve span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); }
|
|
11
|
+
.mo-lanes { display: grid; gap: var(--bh-space-100); }
|
|
12
|
+
.mo-lane { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); align-items: center; gap: var(--bh-space-150); }
|
|
13
|
+
.mo-lane code { overflow-wrap: anywhere; }
|
|
14
|
+
.mo-track { position: relative; height: var(--bh-size-control-small); border-radius: var(--bh-radius-050); background: var(--bh-color-surface-subtle); }
|
|
15
|
+
.mo-dot { position: absolute; top: var(--bh-space-050); left: var(--bh-space-050); width: var(--bh-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-050); background: var(--bh-color-background-neutral-bold); transition: left var(--mo-d) var(--mo-e); }
|
|
16
|
+
.mo-root.is-on .mo-dot { left: calc(100% - var(--bh-space-200) - var(--bh-space-050)); }
|
|
17
|
+
.mo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
18
|
+
.mo-actions span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); }
|
|
19
|
+
.mo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--bh-space-200); }
|
|
20
|
+
.mo-stage { position: relative; display: grid; place-items: center; min-height: 10rem; border-radius: var(--bh-radius-100); background: var(--bh-color-surface-subtle); overflow: hidden; }
|
|
21
|
+
/* Menus use motion.overlay.*, dialogs motion.modal.*. A Don't example can set --mo-out on its stage. */
|
|
22
|
+
.mo-stage .el-menu, .mo-stage .el-dialog { opacity: 0; pointer-events: none; }
|
|
23
|
+
.mo-stage .el-menu { transform: translateY(calc(-1 * var(--bh-motion-keyframe-offset-exit))); transition: opacity var(--mo-out, var(--bh-motion-overlay-exit)), transform var(--mo-out, var(--bh-motion-overlay-exit)); }
|
|
24
|
+
.mo-stage .el-dialog { transform: scale(var(--bh-motion-keyframe-scale)); transition: opacity var(--mo-out, var(--bh-motion-modal-exit)), transform var(--mo-out, var(--bh-motion-modal-exit)); }
|
|
25
|
+
.mo-stage.is-open .el-menu, .mo-stage.is-open .el-dialog { opacity: 1; transform: none; }
|
|
26
|
+
.mo-stage.is-open .el-menu { transition: opacity var(--bh-motion-overlay-enter), transform var(--bh-motion-overlay-enter); }
|
|
27
|
+
.mo-stage.is-open .el-dialog { transition: opacity var(--bh-motion-modal-enter), transform var(--bh-motion-modal-enter); }
|
|
28
|
+
/* Before opening, the menu jumps to the enter offset, so it slides 8 px in and 4 px out. */
|
|
29
|
+
.mo-stage .el-menu.is-far { transform: translateY(calc(-1 * var(--bh-motion-keyframe-offset-enter))); transition: none; }
|
|
30
|
+
.mo-list { display: grid; gap: var(--bh-space-050); width: 14rem; max-width: 100%; }
|
|
31
|
+
/* Inside a Do/Don't panel the stage fills the panel, so the list has room to show. */
|
|
32
|
+
.sp-dd-stage > .mo-stage { width: 100%; }
|
|
33
|
+
.mo-list span { height: var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-050); background: var(--bh-color-surface); opacity: 0; transform: translateY(var(--bh-motion-keyframe-offset-enter)); transition: opacity var(--bh-motion-duration-default) var(--bh-motion-easing-enter), transform var(--bh-motion-duration-default) var(--bh-motion-easing-enter); }
|
|
34
|
+
.mo-stage.is-open .mo-list span { opacity: 1; transform: none; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Illustrations for the Opacity page. Every value is a token. */
|
|
2
|
-
.op-wrap { display: grid; gap: var(--bh-space-200); margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border-radius: var(--bh-radius-
|
|
2
|
+
.op-wrap { display: grid; gap: var(--bh-space-200); margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border-radius: var(--bh-radius-100); background: var(--bh-color-surface-subtle); }
|
|
3
3
|
.op-label { color: var(--bh-color-text-subtle); font: var(--bh-font-label-small); }
|
|
4
4
|
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--bh-space-200); }
|
|
5
5
|
.op-tile { display: grid; gap: var(--bh-space-100); }
|
|
@@ -14,7 +14,7 @@
|
|
|
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
16
|
.is-off .op-switch { background: var(--bh-color-background-disabled); }
|
|
17
|
-
.op-list { overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
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); }
|
|
20
20
|
.op-name { flex: 1; color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
.op-lines { display: grid; gap: var(--bh-space-100); padding: var(--bh-space-200); }
|
|
25
25
|
.op-lines span { height: var(--bh-space-100); border-radius: var(--bh-radius-full); background: var(--bh-color-skeleton); }
|
|
26
26
|
.op-scrim { position: absolute; inset: 0; background: var(--bh-color-surface-scrim); }
|
|
27
|
-
.op-dialog { position: absolute; top: 50%; left: 50%; padding: var(--bh-space-200) var(--bh-space-300); border-radius: var(--bh-radius-
|
|
27
|
+
.op-dialog { position: absolute; top: 50%; left: 50%; padding: var(--bh-space-200) var(--bh-space-300); border-radius: var(--bh-radius-150); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); color: var(--bh-color-text); font: var(--bh-font-heading-small); transform: translate(-50%, -50%); }
|
|
28
28
|
.op-ex { background: var(--bh-color-surface-page); }
|
|
29
29
|
.op-tile-lg { width: min(100%, 16rem); }
|
|
30
30
|
.op-tile .sh-pin { display: inline-flex; }
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* Import once to opt the application into the shared native-DOM scrollbar family.
|
|
2
|
+
Appearance includes framework holders, portals and their offscreen size probes.
|
|
3
|
+
No selector changes overflow, viewport bounds, event handling or scroll ownership.
|
|
4
|
+
Virtual widgets are mapped through their own source adapters, not pseudo-elements. */
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:root[data-theme='dark'] {
|
|
11
|
+
color-scheme: dark;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* High-contrast mode retains platform scrollbar colors, geometry and interaction. */
|
|
15
|
+
@media (forced-colors: none) {
|
|
16
|
+
:where(*) {
|
|
17
|
+
scrollbar-color: var(--bh-scrollbar-thumb) var(--bh-scrollbar-track);
|
|
18
|
+
scrollbar-width: thin;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Standards expose host states, not thumb states. Do not simulate a drag. */
|
|
22
|
+
:where(*):hover {
|
|
23
|
+
scrollbar-color: var(--bh-scrollbar-thumbHover) var(--bh-scrollbar-track);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(*):active {
|
|
27
|
+
scrollbar-color: var(--bh-scrollbar-thumbActive) var(--bh-scrollbar-track);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Non-auto standard properties suppress WebKit pseudo-element styling in
|
|
31
|
+
Chromium. Use one renderer per engine, preserving real thumb hover/active. */
|
|
32
|
+
@supports selector(::-webkit-scrollbar) {
|
|
33
|
+
:where(*),
|
|
34
|
+
:where(*):hover,
|
|
35
|
+
:where(*):active {
|
|
36
|
+
scrollbar-color: auto;
|
|
37
|
+
scrollbar-width: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
*::-webkit-scrollbar {
|
|
41
|
+
width: var(--bh-scrollbar-width);
|
|
42
|
+
height: var(--bh-scrollbar-width);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
*::-webkit-scrollbar-track {
|
|
46
|
+
background-color: var(--bh-scrollbar-track);
|
|
47
|
+
border-radius: var(--bh-scrollbar-radius);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
*::-webkit-scrollbar-thumb {
|
|
51
|
+
background-color: var(--bh-scrollbar-thumb);
|
|
52
|
+
border-radius: var(--bh-scrollbar-radius);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
56
|
+
background-color: var(--bh-scrollbar-thumbHover);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
*::-webkit-scrollbar-thumb:active {
|
|
60
|
+
background-color: var(--bh-scrollbar-thumbActive);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
*::-webkit-scrollbar-corner {
|
|
64
|
+
background-color: var(--bh-scrollbar-corner);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Remove platform arrow boxes, not the track/thumb or access to overflow. */
|
|
68
|
+
*::-webkit-scrollbar-button {
|
|
69
|
+
display: none;
|
|
70
|
+
width: 0;
|
|
71
|
+
height: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@container prose (max-width: 560px) { .prose .sh-scale li { grid-template-columns: 4.5rem minmax(0, 1fr); } .sh-scale .sh-px { grid-column: 2; grid-row: 1; justify-self: end; } .sh-scale .sh-name { grid-column: 2; grid-row: 1; } .sh-scale .sh-prev { grid-row: 1 / span 2; } .sh-scale .sh-use { grid-column: 2; } }
|
|
15
15
|
|
|
16
16
|
/* A figure: stage with live examples, then a caption that names what uses the value. */
|
|
17
|
-
.sh-fig { margin: 0 0 var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
17
|
+
.sh-fig { margin: 0 0 var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
18
18
|
.sh-stage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--bh-space-300); min-height: calc(2 * var(--bh-space-800)); padding: var(--bh-space-300); background: var(--bh-color-surface-subtle); }
|
|
19
19
|
.sh-fig figcaption { display: grid; gap: var(--bh-space-050); padding: var(--bh-space-150) var(--bh-space-200); color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
20
20
|
.sh-fig figcaption b { color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
.sh-label { color: var(--bh-color-text-subtle); font: var(--bh-font-label-small); }
|
|
24
24
|
|
|
25
25
|
/* Small UI parts drawn with tokens. */
|
|
26
|
-
.sh-check { display: inline-grid; place-items: center; width: var(--bh-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-
|
|
26
|
+
.sh-check { display: inline-grid; place-items: center; width: var(--bh-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-025); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); }
|
|
27
27
|
.sh-check svg { width: var(--bh-space-150); height: var(--bh-space-150); }
|
|
28
|
-
.sh-badge { display: inline-grid; place-items: center; min-width: var(--bh-space-250); height: var(--bh-space-250); padding: 0 var(--bh-space-050); border-radius: var(--bh-radius-
|
|
28
|
+
.sh-badge { display: inline-grid; place-items: center; 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-on-bold); background: var(--bh-color-background-danger-bold); font: var(--bh-font-label-small); }
|
|
29
29
|
.sh-menu { width: 12rem; }
|
|
30
30
|
.sh-tip { position: relative; }
|
|
31
|
-
.sh-card { display: grid; gap: var(--bh-space-050); width: 15rem; padding: var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
31
|
+
.sh-card { display: grid; gap: var(--bh-space-050); width: 15rem; padding: var(--bh-space-300); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); }
|
|
32
32
|
.sh-card b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
33
33
|
.sh-card span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
34
34
|
.sh-card.is-selected { border: var(--bh-border-width-selected) solid var(--bh-color-border-selected); padding: calc(var(--bh-space-300) - var(--bh-border-width-selected) + var(--bh-border-width-default)); }
|
|
35
|
-
.sh-dialog { display: grid; gap: var(--bh-space-200); width: 18rem; padding: var(--bh-space-300); border-radius: var(--bh-radius-
|
|
35
|
+
.sh-dialog { display: grid; gap: var(--bh-space-200); width: 18rem; padding: var(--bh-space-300); border-radius: var(--bh-radius-150); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); }
|
|
36
36
|
.sh-dialog b { font: var(--bh-font-heading-small); }
|
|
37
37
|
.sh-dialog p { margin: 0; color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
38
38
|
.sh-dialog .sh-row { justify-content: flex-end; }
|
|
39
|
-
.sh-group { display: inline-flex; white-space: nowrap; gap: var(--bh-space-050); padding: var(--bh-space-050); border-radius: var(--bh-radius-
|
|
40
|
-
.sh-group > span:not(.sh-pin), .sh-group > .sh-pin > span:first-child { display: inline-flex; align-items: center; height: var(--bh-size-control-small); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-
|
|
39
|
+
.sh-group { display: inline-flex; white-space: nowrap; gap: var(--bh-space-050); padding: var(--bh-space-050); border-radius: var(--bh-radius-100); background: var(--bh-color-background-neutral); }
|
|
40
|
+
.sh-group > span:not(.sh-pin), .sh-group > .sh-pin > span:first-child { display: inline-flex; align-items: center; height: var(--bh-size-control-small); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-050); color: var(--bh-color-text-subtle); font: var(--bh-font-label-default); }
|
|
41
41
|
.sh-group > span:not(.sh-pin).is-on, .sh-group > .sh-pin > span:first-child.is-on { color: var(--bh-color-text); background: var(--bh-color-surface); box-shadow: 0 0 0 var(--bh-border-width-default) var(--bh-color-border); }
|
|
42
42
|
.sh-frame { display: grid; width: min(100%, 26rem); border: var(--bh-border-width-default) solid var(--bh-color-border); background: var(--bh-color-surface); }
|
|
43
43
|
.sh-frame header { padding: var(--bh-space-100) var(--bh-space-150); border-bottom: var(--bh-border-width-default) solid var(--bh-color-border); font: var(--bh-font-heading-small); }
|
|
@@ -61,13 +61,14 @@
|
|
|
61
61
|
.sh-tabs > span:not(.sh-pin), .sh-tabs > .sh-pin > span:first-child { padding: var(--bh-space-100) 0; color: var(--bh-color-text-subtle); font: var(--bh-font-label-default); }
|
|
62
62
|
.sh-tabs > span:not(.sh-pin).is-on, .sh-tabs > .sh-pin > span:first-child.is-on { color: var(--bh-color-text); box-shadow: inset 0 calc(-1 * var(--sh-sel, var(--bh-border-width-selected))) 0 var(--bh-color-border-selected); }
|
|
63
63
|
.sh-nav { display: grid; gap: var(--bh-space-025); width: 12rem; }
|
|
64
|
-
.sh-nav > span:not(.sh-pin), .sh-nav > .sh-pin > span:first-child { padding: var(--bh-space-075) var(--bh-space-150); border-radius:
|
|
65
|
-
.sh-nav > span:not(.sh-pin).is-on, .sh-nav > .sh-pin > span:first-child.is-on {
|
|
64
|
+
.sh-nav > span:not(.sh-pin), .sh-nav > .sh-pin > span:first-child { padding: var(--bh-space-075) var(--bh-space-150); border-radius: var(--bh-radius-075); color: var(--bh-color-text-subtle); font: var(--bh-font-label-default); }
|
|
65
|
+
.sh-nav > span:not(.sh-pin).is-on, .sh-nav > .sh-pin > span:first-child.is-on { position: relative; overflow: hidden; color: var(--bh-color-text); background: var(--bh-color-background-selected); }
|
|
66
|
+
.sh-nav > span:not(.sh-pin).is-on::before, .sh-nav > .sh-pin > span:first-child.is-on::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bh-border-width-selected); background: var(--bh-color-border-selected); }
|
|
66
67
|
.sh-ring { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
67
68
|
|
|
68
69
|
/* Nesting figures. */
|
|
69
70
|
.sh-nest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
70
|
-
.sh-nest { display: grid; gap: var(--bh-space-150); margin: 0; padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-
|
|
71
|
+
.sh-nest { display: grid; gap: var(--bh-space-150); margin: 0; padding: var(--bh-space-200); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); }
|
|
71
72
|
.sh-outer { display: grid; background: var(--sh-mark); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--sh-mark-edge); }
|
|
72
73
|
.sh-inner { display: grid; place-items: center; min-height: var(--bh-space-600); color: var(--bh-color-text); background: var(--bh-color-surface); box-shadow: 0 0 0 var(--bh-border-width-default) var(--bh-color-border-bold); font: var(--bh-font-label-small); }
|
|
73
74
|
.sh-sum { font: var(--bh-font-code-default); color: var(--bh-color-text); }
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
|
|
76
77
|
/* Radius examples, one card per example (as on Atlassian's radius page). */
|
|
77
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); }
|
|
78
|
-
.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-
|
|
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); }
|
|
79
80
|
|
|
80
81
|
.sh-ex-grid.is-one { grid-template-columns: minmax(0, 1fr); }
|
|
81
82
|
@container prose (max-width: 560px) { .sh-ex-grid { grid-template-columns: minmax(0, 1fr); } }
|
|
@@ -128,8 +129,17 @@
|
|
|
128
129
|
|
|
129
130
|
.sh-chip { display: inline-flex; align-items: center; gap: var(--bh-space-075); height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border: var(--bh-border-width-default) solid var(--bh-color-border-bold); border-radius: var(--bh-radius-full); color: var(--bh-color-text); background: var(--bh-color-surface); font: var(--bh-font-label-default); }
|
|
130
131
|
.sh-chip > span { color: var(--bh-color-text-subtle); }
|
|
132
|
+
.sh-chip.is-on { border-color: var(--bh-color-border-selected); background: var(--bh-color-background-selected); }
|
|
131
133
|
|
|
132
134
|
|
|
133
135
|
/* Focus pins touch the ring itself: its outer edge is 4 px outside the box (offset 2 + width 2);
|
|
134
136
|
inside a menu the ring ends at the item's edge. */
|
|
135
137
|
.sh-pin > .sh-ring ~ .sh-anno.is-solid.is-bottom { top: calc(100% + var(--bh-state-focus-offset) + var(--bh-border-width-focused)); }
|
|
138
|
+
|
|
139
|
+
/* Radius examples added for the role-based scale. */
|
|
140
|
+
.sh-kbd { display: inline-flex; align-items: center; height: var(--bh-space-300); padding: 0 var(--bh-space-075); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-025); background: var(--bh-color-surface); font: var(--bh-font-label-small); }
|
|
141
|
+
.sh-frame.is-framed { border-radius: var(--bh-radius-150); overflow: hidden; }
|
|
142
|
+
.sh-media { display: grid; place-items: center; width: min(100%, 20rem); aspect-ratio: 16 / 9; border-radius: var(--bh-radius-200); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); }
|
|
143
|
+
|
|
144
|
+
/* Annotations wrap on phones, so the page never scrolls sideways at 320 px (WCAG 1.4.10). */
|
|
145
|
+
@media (max-width: 767.98px) { .prose .sh-anno code, .sh-anno code { white-space: normal; } }
|