@beehexa/design-rules 2611.3.3 → 2611.5.2
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 -7
- package/dist/catalog.json +703 -321
- package/dist/docs/public/_redirects +2 -0
- package/dist/docs/scripts/color-pairs.mjs +5 -1
- package/dist/docs/scripts/token-utils.d.mts +5 -1
- package/dist/docs/scripts/token-utils.mjs +44 -4
- package/dist/docs/src/brand/structure-proposal.md +1 -1
- package/dist/docs/src/components/ColorDemo.astro +56 -18
- package/dist/docs/src/components/ElevationDemo.astro +196 -0
- package/dist/docs/src/components/LayoutDemo.astro +1 -1
- 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 +95 -0
- package/dist/docs/src/components/RoleGuides.astro +2 -2
- package/dist/docs/src/components/ShapeDemo.astro +88 -44
- package/dist/docs/src/components/ShapePin.astro +5 -3
- 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 +102 -0
- 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 +13 -6
- 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 +34 -5
- package/dist/docs/src/content/foundations/styles/data-visualization.mdx +150 -6
- package/dist/docs/src/content/foundations/styles/elevation.mdx +72 -3
- 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 +13 -8
- package/dist/docs/src/content/foundations/styles/interaction-states.mdx +82 -9
- package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +12 -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 +49 -5
- 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 +23 -6
- package/dist/docs/src/content/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content/foundations/styles/typography/code.mdx +5 -3
- 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 +67 -5
- 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 +571 -19
- package/dist/docs/src/content/tools/application-content.mdx +176 -0
- package/dist/docs/src/content/tools/editors.mdx +271 -0
- 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 +190 -0
- package/dist/docs/src/content/tools/vueflow.mdx +179 -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 +12 -6
- 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 +34 -5
- package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +75 -6
- package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +81 -0
- 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 +13 -8
- 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 +13 -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 +49 -5
- package/dist/docs/src/content-vi/foundations/styles/radius.mdx +63 -15
- package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +23 -6
- package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +17 -3
- package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +5 -3
- 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 +67 -5
- 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 +81 -14
- package/dist/docs/src/lib/tokens.ts +3 -0
- package/dist/docs/src/styles/chrome.css +21 -14
- package/dist/docs/src/styles/color.css +50 -53
- package/dist/docs/src/styles/docs.css +37 -55
- package/dist/docs/src/styles/elevation.css +83 -0
- package/dist/docs/src/styles/global.css +21 -10
- package/dist/docs/src/styles/icons.css +20 -23
- package/dist/docs/src/styles/kit.css +116 -0
- package/dist/docs/src/styles/layout.css +8 -13
- package/dist/docs/src/styles/motion.css +34 -0
- package/dist/docs/src/styles/opacity.css +43 -0
- package/dist/docs/src/styles/scrollbars.css +74 -0
- package/dist/docs/src/styles/shapes.css +35 -29
- package/dist/docs/src/styles/tokens.css +1663 -4
- package/dist/docs/src/styles/tokens.js +538 -4
- package/dist/docs/src/styles/typography.css +8 -11
- package/dist/docs/src/styles/zindex.css +59 -0
- package/dist/docs/tokens/border.json +1 -1
- package/dist/docs/tokens/color.json +75 -4
- package/dist/docs/tokens/content.json +24 -0
- package/dist/docs/tokens/diagram.json +54 -0
- package/dist/docs/tokens/editor.json +129 -0
- package/dist/docs/tokens/elevation.json +15 -5
- package/dist/docs/tokens/flow.json +497 -0
- package/dist/docs/tokens/layout.json +4 -0
- package/dist/docs/tokens/motion.json +37 -5
- package/dist/docs/tokens/opacity.json +9 -0
- package/dist/docs/tokens/radius.json +52 -8
- package/dist/docs/tokens/resize.json +79 -0
- package/dist/docs/tokens/scrollbar.json +40 -0
- package/dist/docs/tokens/size.json +7 -1
- package/dist/docs/tokens/spacing.json +35 -5
- package/dist/docs/tokens/switch.json +280 -0
- package/dist/docs/tokens/typography.json +5 -0
- package/dist/docs/tokens/visualization.json +123 -0
- package/dist/docs/tokens/z-index.json +49 -0
- package/dist/index.js +703 -321
- package/package.json +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* Example kit: the one look of each part used in the examples on this site.
|
|
2
|
+
Every value is a token, and each part follows the rules on the foundation pages
|
|
3
|
+
(Color usage, Typography usage, Size and density, Spacing, Radius, Border, Elevation).
|
|
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.
|
|
7
|
+
The older class names after each kit-* name are aliases kept while the demos move to kit-*. */
|
|
8
|
+
|
|
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); }
|
|
11
|
+
:is(button, a):is(.kit-btn, .bh-button) { cursor: pointer; text-decoration: none; }
|
|
12
|
+
:is(button, a):is(.kit-btn, .bh-button):hover { background: var(--bh-color-background-neutral-subtle-hover); }
|
|
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); }
|
|
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); }
|
|
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); }
|
|
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); }
|
|
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); }
|
|
20
|
+
/* Icon button: square, same height as a button. */
|
|
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; }
|
|
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
|
+
|
|
25
|
+
/* Text field and select: 32 px, edge border.bold, placeholder text.subtlest. */
|
|
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); }
|
|
28
|
+
.kit-input::placeholder, .ib-search input::placeholder { color: var(--bh-color-text-subtlest); }
|
|
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); }
|
|
30
|
+
|
|
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); }
|
|
33
|
+
.kit-card-title, .el-card > b, .op-tile b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
34
|
+
.kit-card-text, .el-card > span, .op-tile span.op-status { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
35
|
+
|
|
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); }
|
|
39
|
+
:is(.kit-menu, .sh-menu, .el-menu) .is-on { background: var(--bh-color-surface-overlay-hover); }
|
|
40
|
+
:is(.kit-menu, .sh-menu, .el-menu) .is-sel { background: var(--bh-color-surface-overlay-selected); }
|
|
41
|
+
:is(.kit-menu, .sh-menu, .el-menu) .is-sel svg { flex: none; color: var(--bh-color-icon); }
|
|
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)); }
|
|
43
|
+
|
|
44
|
+
/* Label: shows a status. 20 px pill, outline, padding space.075, label.small. */
|
|
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); }
|
|
46
|
+
:is(.kit-label, .bh-label).is-large { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); }
|
|
47
|
+
:is(.kit-label, .bh-label).is-brand { border-color: var(--bh-color-border-brand); }
|
|
48
|
+
:is(.kit-label, .bh-label).is-info { border-color: var(--bh-color-border-info); color: var(--bh-color-text-info); }
|
|
49
|
+
:is(.kit-label, .bh-label).is-success, .ui-badge { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
50
|
+
:is(.kit-label, .bh-label).is-warning { border-color: var(--bh-color-border-warning); color: var(--bh-color-text-warning); }
|
|
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); }
|
|
52
|
+
:is(.kit-label, .bh-label).is-neutral { border-color: var(--bh-color-border-bold); color: var(--bh-color-text-subtle); }
|
|
53
|
+
|
|
54
|
+
/* Tag: something people add or remove. 24 px, radius.050, border, text. */
|
|
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); }
|
|
56
|
+
|
|
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); }
|
|
60
|
+
|
|
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); }
|
|
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); }
|
|
64
|
+
|
|
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); }
|
|
67
|
+
|
|
68
|
+
/* Toast: surface.overlay and overlay shadow, no border (like menus); icon in the status colour.
|
|
69
|
+
Title heading.xsmall, message body.default. */
|
|
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); }
|
|
71
|
+
:is(.kit-toast, .el-toast) > svg { flex: none; }
|
|
72
|
+
:is(.kit-toast, .el-toast).is-info > svg { color: var(--bh-color-icon-info); }
|
|
73
|
+
:is(.kit-toast, .el-toast).is-success > svg { color: var(--bh-color-icon-success); }
|
|
74
|
+
:is(.kit-toast, .el-toast).is-warning > svg { color: var(--bh-color-icon-warning); }
|
|
75
|
+
:is(.kit-toast, .el-toast).is-danger > svg { color: var(--bh-color-icon-danger); }
|
|
76
|
+
.kit-toast b { color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
77
|
+
|
|
78
|
+
/* Banner: background.{role}.subtle, border.{role}.subtle, text, icon.{role}. */
|
|
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); }
|
|
80
|
+
:is(.kit-banner, .c-banner) svg { flex: none; }
|
|
81
|
+
:is(.kit-banner, .c-banner).is-info { border-color: var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
|
|
82
|
+
:is(.kit-banner, .c-banner).is-info svg { color: var(--bh-color-icon-info); }
|
|
83
|
+
:is(.kit-banner, .c-banner).is-success { border-color: var(--bh-color-border-success-subtle); background: var(--bh-color-background-success-subtle); }
|
|
84
|
+
:is(.kit-banner, .c-banner).is-success svg { color: var(--bh-color-icon-success); }
|
|
85
|
+
:is(.kit-banner, .c-banner).is-warning { border-color: var(--bh-color-border-warning-subtle); background: var(--bh-color-background-warning-subtle); }
|
|
86
|
+
:is(.kit-banner, .c-banner).is-warning svg { color: var(--bh-color-icon-warning); }
|
|
87
|
+
:is(.kit-banner, .c-banner).is-danger { border-color: var(--bh-color-border-danger-subtle); background: var(--bh-color-background-danger-subtle); }
|
|
88
|
+
:is(.kit-banner, .c-banner).is-danger svg { color: var(--bh-color-icon-danger); }
|
|
89
|
+
|
|
90
|
+
/* Callout: content note with a 4 px bar on the left edge. Not for statuses; those are banners. */
|
|
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); }
|
|
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); }
|
|
93
|
+
:is(.kit-callout, .sh-alert).is-brand { --kit-bar: var(--bh-color-border-brand); }
|
|
94
|
+
:is(.kit-callout, .sh-alert) b { color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
95
|
+
:is(.kit-callout, .sh-alert) span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
96
|
+
|
|
97
|
+
/* 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: 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); }
|
|
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); }
|
|
101
|
+
.kit-switch.is-off::after { right: auto; left: var(--bh-space-025); }
|
|
102
|
+
|
|
103
|
+
/* Avatar: 32 px circle, background.neutral, text, label.small. Small 24 px. */
|
|
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); }
|
|
105
|
+
.kit-avatar.is-small { width: var(--bh-size-control-small); height: var(--bh-size-control-small); }
|
|
106
|
+
|
|
107
|
+
/* Step number or count: background.neutral.bold, text.inverse. */
|
|
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; }
|
|
109
|
+
|
|
110
|
+
/* 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-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); }
|
|
115
|
+
/* A count on an inverse surface flips to the surface colours. */
|
|
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; }
|
|
@@ -51,20 +51,16 @@
|
|
|
51
51
|
.sp-title { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
52
52
|
.sp-desc { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
53
53
|
.sp-label { color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
54
|
-
.sp-input { display: flex; align-items: stretch; min-width: 0;
|
|
54
|
+
.sp-input { display: flex; align-items: stretch; min-width: 0; }
|
|
55
55
|
.sp-input > span:not(.sp-gap) { align-self: center; overflow: hidden; color: var(--bh-color-text-subtle); white-space: nowrap; text-overflow: ellipsis; font: var(--bh-font-body-default); }
|
|
56
56
|
.sp-input .sp-gap.is-h { margin: calc(-1 * var(--bh-border-width-default)) 0; }
|
|
57
|
-
.sp-btn { display: inline-flex; flex: none; align-items: center; height: var(--bh-size-control-default); padding: 0 var(--bh-space-200); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); color: var(--bh-color-text); background: var(--bh-color-surface); font: var(--bh-font-label-default); }
|
|
58
|
-
.sp-btn.is-primary { border-color: var(--bh-color-background-neutral-bold); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); }
|
|
59
|
-
.sp-btn.is-small { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); font: var(--bh-font-label-small); }
|
|
60
|
-
.sp-btn.is-large { height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); }
|
|
61
57
|
.sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
62
58
|
.sp-swatch { display: inline-block; width: var(--bh-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-050); background: var(--sp-mark); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--sp-mark-edge); vertical-align: middle; }
|
|
63
59
|
@container prose (min-width: 560px) { .sp-stage { padding: var(--bh-space-400) var(--bh-space-200); } .sp-gap.is-v > .sp-tag { right: 0; transform: translate(calc(100% + var(--bh-space-300) + var(--bh-space-050)), -50%); } }
|
|
64
60
|
|
|
65
61
|
/* Padding and gap */
|
|
66
62
|
.sp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
67
|
-
.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; }
|
|
68
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); }
|
|
69
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); }
|
|
70
66
|
.sp-pair figcaption b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
@@ -74,16 +70,15 @@
|
|
|
74
70
|
|
|
75
71
|
/* Do / Don't */
|
|
76
72
|
.sp-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
77
|
-
.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; }
|
|
78
74
|
.sp-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
|
|
79
75
|
.sp-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
80
76
|
.sp-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
81
77
|
.sp-dd-stage { display: grid; place-items: center; min-height: 9rem; padding: var(--bh-space-200); background: var(--c-surf); }
|
|
82
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); }
|
|
83
79
|
.sp-mini { display: flex; flex-direction: column; width: 100%; max-width: 15rem; }
|
|
84
|
-
.sp-mini .sp-input { height: var(--bh-space-400); }
|
|
85
80
|
.sp-mini-group { color: var(--bh-color-text); font: var(--bh-font-heading-xsmall); }
|
|
86
|
-
.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); }
|
|
87
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); }
|
|
88
83
|
.sp-dd-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
|
|
89
84
|
@container prose (min-width: 640px) { .sp-dd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
@@ -140,13 +135,13 @@
|
|
|
140
135
|
|
|
141
136
|
/* Control heights */
|
|
142
137
|
.ly-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
143
|
-
.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; }
|
|
144
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); }
|
|
145
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); }
|
|
146
141
|
.ly-controls figcaption b { color: var(--c-ink); font: var(--bh-font-label-default); }
|
|
147
142
|
.ly-ruler { position: relative; display: inline-flex; align-items: center; }
|
|
148
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); }
|
|
149
|
-
.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); }
|
|
150
145
|
.ly-field.is-small { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); font: var(--bh-font-body-small); }
|
|
151
146
|
.ly-field.is-default { height: var(--bh-size-control-default); }
|
|
152
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; }
|
|
@@ -0,0 +1,43 @@
|
|
|
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-100); background: var(--bh-color-surface-subtle); }
|
|
3
|
+
.op-label { color: var(--bh-color-text-subtle); font: var(--bh-font-label-small); }
|
|
4
|
+
.op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--bh-space-200); }
|
|
5
|
+
.op-tile { display: grid; gap: var(--bh-space-100); }
|
|
6
|
+
.op-tile-top { display: flex; align-items: center; justify-content: space-between; }
|
|
7
|
+
.op-tile.is-off b, .op-tile.is-off span.op-status, .op-row.is-off .op-name, .op-row.is-off .op-role { color: var(--bh-color-text-disabled); }
|
|
8
|
+
.op-logo { display: inline-grid; place-items: center; width: var(--bh-size-control-large); height: var(--bh-size-control-large); border-radius: var(--bh-radius-100); color: var(--bh-color-text-on-bold); font: var(--bh-font-label-default); }
|
|
9
|
+
.op-logo.is-a { background: var(--bh-color-background-success-bold); }
|
|
10
|
+
.op-logo.is-b { background: var(--bh-color-background-info-bold); }
|
|
11
|
+
.op-logo.is-c { background: var(--bh-color-background-warning-bold); }
|
|
12
|
+
.op-logo.is-d { background: var(--bh-color-background-danger-bold); }
|
|
13
|
+
.op-logo.is-e { background: var(--bh-color-background-neutral-bold); }
|
|
14
|
+
.op-logo.is-f { background: var(--bh-color-background-brand-bold); color: var(--bh-color-text-on-brand); }
|
|
15
|
+
.is-off .op-logo, .is-off .op-avatar { opacity: var(--bh-opacity-disabled); }
|
|
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-100); background: var(--bh-color-surface); }
|
|
18
|
+
.op-row { display: flex; align-items: center; gap: var(--bh-space-150); padding: var(--bh-space-100) var(--bh-space-200); }
|
|
19
|
+
.op-row + .op-row { border-top: var(--bh-border-width-default) solid var(--bh-color-border); }
|
|
20
|
+
.op-name { flex: 1; color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
21
|
+
.op-role { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
22
|
+
.op-tile.is-wrong { opacity: var(--bh-opacity-disabled); }
|
|
23
|
+
.op-scrim-box { position: relative; height: 10rem; overflow: hidden; border-radius: var(--bh-radius-150); background: var(--bh-color-surface-page); }
|
|
24
|
+
.op-lines { display: grid; gap: var(--bh-space-100); padding: var(--bh-space-200); }
|
|
25
|
+
.op-lines span { height: var(--bh-space-100); border-radius: var(--bh-radius-full); background: var(--bh-color-skeleton); }
|
|
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-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
|
+
.op-ex { background: var(--bh-color-surface-page); }
|
|
29
|
+
.op-tile-lg { width: min(100%, 16rem); }
|
|
30
|
+
.op-tile .sh-pin { display: inline-flex; }
|
|
31
|
+
.el-theme .op-scrim-box { border-radius: 0; }
|
|
32
|
+
.op-scrim-pin { position: absolute; top: var(--bh-space-200); left: calc(var(--bh-space-1000) + var(--bh-space-600)); }
|
|
33
|
+
.op-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--bh-space-150); width: min(100%, 22rem); padding: var(--bh-space-150) var(--bh-space-200); border-radius: var(--bh-radius-100); background: var(--bh-color-background-warning-subtle); }
|
|
34
|
+
.op-band-text { color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
35
|
+
.op-btn-off { border-color: var(--bh-color-border-disabled); color: var(--bh-color-text-disabled); background: var(--bh-color-background-disabled); }
|
|
36
|
+
.op-btn-faded { opacity: var(--bh-opacity-disabled); }
|
|
37
|
+
.sp-dd-stage .op-tile { width: min(100%, 14rem); }
|
|
38
|
+
.op-tile-top { gap: var(--bh-space-150); }
|
|
39
|
+
.op-tile.is-wrong .op-switch { background: var(--bh-color-background-disabled); }
|
|
40
|
+
.el-theme .op-scrim-box { height: calc(2 * var(--bh-space-1000) + var(--bh-space-600)); }
|
|
41
|
+
.el-theme .op-dialog { top: auto; bottom: var(--bh-space-300); transform: translateX(-50%); }
|
|
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-color-surface); }
|
|
@@ -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,32 +23,24 @@
|
|
|
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-
|
|
29
|
-
.sh-
|
|
30
|
-
.sh-
|
|
31
|
-
.sh-
|
|
32
|
-
.sh-menu > span:not(.sh-pin), .sh-menu > .sh-pin > span:first-child { padding: var(--bh-space-075) var(--bh-space-100); border-radius: var(--bh-radius-050); color: var(--bh-color-text); font: var(--bh-font-body-default); }
|
|
33
|
-
.sh-menu > span:not(.sh-pin).is-on, .sh-menu > .sh-pin > span:first-child.is-on { background: var(--bh-color-background-neutral-subtle-hover); }
|
|
34
|
-
.sh-menu > span:not(.sh-pin).is-focus, .sh-menu > .sh-pin > span:first-child.is-focus { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: calc(-1 * var(--bh-state-focus-offset)); }
|
|
35
|
-
.sh-tip { position: relative; padding: var(--bh-space-050) var(--bh-space-100); border-radius: var(--bh-radius-100); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); font: var(--bh-font-body-small); }
|
|
36
|
-
.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-150); background: var(--bh-color-surface); }
|
|
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
|
+
.sh-menu { width: 12rem; }
|
|
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-100); background: var(--bh-color-surface); }
|
|
37
32
|
.sh-card b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
38
33
|
.sh-card span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
39
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)); }
|
|
40
|
-
.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); }
|
|
41
36
|
.sh-dialog b { font: var(--bh-font-heading-small); }
|
|
42
37
|
.sh-dialog p { margin: 0; color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
43
38
|
.sh-dialog .sh-row { justify-content: flex-end; }
|
|
44
|
-
.sh-group { display: inline-flex; white-space: nowrap; gap: var(--bh-space-050); padding: var(--bh-space-050); border-radius: var(--bh-radius-
|
|
45
|
-
.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); }
|
|
46
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); }
|
|
47
|
-
.sh-avatar { display: inline-grid; place-items: center; width: var(--bh-space-600); height: var(--bh-space-600); border-radius: var(--bh-radius-full); color: var(--bh-color-text); background: var(--bh-color-background-neutral); font: var(--bh-font-label-default); }
|
|
48
|
-
.sh-switch { position: relative; width: var(--bh-space-500); height: var(--bh-size-control-small); border-radius: var(--bh-radius-full); background: var(--bh-color-background-neutral-bold); }
|
|
49
|
-
.sh-switch::after { content: ""; position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: calc(var(--bh-size-control-small) - 2 * var(--bh-space-025)); height: calc(var(--bh-size-control-small) - 2 * var(--bh-space-025)); border-radius: var(--bh-radius-full); background: var(--bh-color-surface); }
|
|
50
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); }
|
|
51
|
-
.sh-frame header { padding: var(--bh-space-100) var(--bh-space-
|
|
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); }
|
|
52
44
|
.sh-table { display: grid; }
|
|
53
45
|
.sh-table > span:not(.sh-pin), .sh-table > .sh-pin > span:first-child { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: var(--bh-space-150); padding: var(--bh-space-100) var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--bh-color-border); color: var(--bh-color-text); font: var(--bh-font-body-default); font-variant-numeric: tabular-nums; }
|
|
54
46
|
.sh-table > span:not(.sh-pin):last-child, .sh-table > .sh-pin > span:first-child:last-child { border-bottom: 0; }
|
|
@@ -56,14 +48,11 @@
|
|
|
56
48
|
.sh-table em { font-style: normal; color: var(--bh-color-text-subtle); }
|
|
57
49
|
|
|
58
50
|
/* Alerts and quotes: the accent bar is a strip clipped by the box, so it follows the corner. */
|
|
59
|
-
.sh-alert {
|
|
60
|
-
.sh-alert
|
|
61
|
-
.sh-alert.is-
|
|
62
|
-
.sh-alert.is-info { --sh-bar: var(--bh-color-border-info); }
|
|
63
|
-
.sh-alert b { color: var(--bh-color-text); font: var(--bh-font-label-default); }
|
|
64
|
-
.sh-alert span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
51
|
+
.sh-alert { width: min(100%, 24rem); }
|
|
52
|
+
.sh-alert.is-warning { --kit-bar: var(--bh-color-border-warning); }
|
|
53
|
+
.sh-alert.is-info { --kit-bar: var(--bh-color-border-info); }
|
|
65
54
|
.sh-alert.is-squared { border-radius: 0 var(--bh-radius-100) var(--bh-radius-100) 0; }
|
|
66
|
-
.sh-alert.is-boxed { border: var(--bh-border-width-accent) solid var(--
|
|
55
|
+
.sh-alert.is-boxed { border: var(--bh-border-width-accent) solid var(--kit-bar); padding-left: var(--bh-space-200); }
|
|
67
56
|
.sh-alert.is-boxed::before { display: none; }
|
|
68
57
|
.prose .sh-quote, .sh-quote { margin: 0; max-width: 20rem; padding: var(--bh-space-050) 0 var(--bh-space-050) var(--bh-space-200); border-left: var(--bh-border-width-accent) solid var(--bh-color-border-brand); color: var(--bh-color-text); font: var(--bh-font-body-large); }
|
|
69
58
|
|
|
@@ -72,13 +61,14 @@
|
|
|
72
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); }
|
|
73
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); }
|
|
74
63
|
.sh-nav { display: grid; gap: var(--bh-space-025); width: 12rem; }
|
|
75
|
-
.sh-nav > span:not(.sh-pin), .sh-nav > .sh-pin > span:first-child { padding: var(--bh-space-075) var(--bh-space-150); border-radius:
|
|
76
|
-
.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); }
|
|
77
67
|
.sh-ring { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
78
68
|
|
|
79
69
|
/* Nesting figures. */
|
|
80
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); }
|
|
81
|
-
.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); }
|
|
82
72
|
.sh-outer { display: grid; background: var(--sh-mark); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--sh-mark-edge); }
|
|
83
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); }
|
|
84
74
|
.sh-sum { font: var(--bh-font-code-default); color: var(--bh-color-text); }
|
|
@@ -86,7 +76,7 @@
|
|
|
86
76
|
|
|
87
77
|
/* Radius examples, one card per example (as on Atlassian's radius page). */
|
|
88
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); }
|
|
89
|
-
.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); }
|
|
90
80
|
|
|
91
81
|
.sh-ex-grid.is-one { grid-template-columns: minmax(0, 1fr); }
|
|
92
82
|
@container prose (max-width: 560px) { .sh-ex-grid { grid-template-columns: minmax(0, 1fr); } }
|
|
@@ -124,7 +114,14 @@
|
|
|
124
114
|
.sh-anno.is-left { top: 50%; left: auto; right: calc(100% - var(--sh-m) / 2); flex-direction: row-reverse; align-items: center; transform: translateY(-50%); }
|
|
125
115
|
.sh-anno.is-left .sh-ln { width: var(--sh-len); height: var(--sh-lw); }
|
|
126
116
|
.sh-anno.is-solid.is-left { right: 100%; }
|
|
117
|
+
/* Inside pins point at a fill: the dot sits inside the element, the line leaves it downwards or to the left. */
|
|
118
|
+
.sh-anno.is-inside { top: calc(100% - var(--bh-space-150)); left: calc(var(--sh-in) - var(--sh-m) / 2); align-items: flex-start; }
|
|
119
|
+
.sh-anno.is-inside .sh-ln { margin-left: calc(var(--sh-m) / 2 - var(--sh-lw) / 2); }
|
|
120
|
+
.sh-anno.is-inside-left { top: 50%; right: calc(100% - var(--sh-in) - var(--sh-m) / 2); flex-direction: row-reverse; align-items: center; transform: translateY(-50%); }
|
|
121
|
+
.sh-anno.is-inside-left .sh-ln { width: var(--sh-len); height: var(--sh-lw); }
|
|
127
122
|
@container prose (max-width: 560px) {
|
|
123
|
+
.sh-anno.is-inside-left { top: calc(100% - var(--bh-space-150)); right: auto; left: calc(var(--sh-in) - var(--sh-m) / 2); flex-direction: column; align-items: flex-start; transform: none; }
|
|
124
|
+
.sh-anno.is-inside-left .sh-ln { width: var(--sh-lw); height: var(--sh-len-n, var(--bh-space-1000)); margin-left: calc(var(--sh-m) / 2 - var(--sh-lw) / 2); }
|
|
128
125
|
.sh-ex.is-left { justify-content: center; padding: var(--bh-space-500) var(--bh-space-300) var(--bh-space-1000); }
|
|
129
126
|
.sh-anno.is-left, .sh-anno.is-solid.is-left { top: 100%; right: auto; left: calc(var(--bh-border-width-selected) / 2 - var(--sh-m) / 2); flex-direction: column; align-items: flex-start; transform: none; }
|
|
130
127
|
.sh-anno.is-left .sh-ln { width: var(--sh-lw); height: var(--sh-len-n, var(--sh-len)); margin-left: calc(var(--sh-m) / 2 - var(--sh-lw) / 2); }
|
|
@@ -132,8 +129,17 @@
|
|
|
132
129
|
|
|
133
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); }
|
|
134
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); }
|
|
135
133
|
|
|
136
134
|
|
|
137
135
|
/* Focus pins touch the ring itself: its outer edge is 4 px outside the box (offset 2 + width 2);
|
|
138
136
|
inside a menu the ring ends at the item's edge. */
|
|
139
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; } }
|