@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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import './scrollbars.css';
|
|
2
|
+
|
|
1
3
|
/* Docs pages: sidebar, content, table of contents. Colour roles come from chrome.css, sizes
|
|
2
4
|
from the tokens. The page follows the app frame (Foundations › Layout): CSS starts from the
|
|
3
5
|
smallest window and adds to it at the md (768 px), lg (1024 px) and xl (1440 px) breakpoints. */
|
|
@@ -26,13 +28,15 @@
|
|
|
26
28
|
.sidebar li + li { margin-top: var(--bh-space-050); }
|
|
27
29
|
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--bh-space-100); padding-left: var(--bh-space-150); }
|
|
28
30
|
.sidebar-title { color: var(--c-ink); text-decoration: none; font: var(--bh-font-heading-small); }
|
|
29
|
-
.sidebar-close { display: inline-grid; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); padding: 0; border: 0; border-radius: var(--bh-radius-
|
|
31
|
+
.sidebar-close { display: inline-grid; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); padding: 0; border: 0; border-radius: var(--bh-radius-control); color: var(--c-muted); background: none; cursor: pointer; }
|
|
30
32
|
.sidebar-label { margin: 0 0 var(--bh-space-050); padding-inline: var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
31
|
-
.sidebar-item, .sidebar-child { display: flex; align-items: center; gap: var(--bh-space-100); min-height: var(--bh-size-control-default); border-radius: var(--bh-radius-
|
|
33
|
+
.sidebar-item, .sidebar-child { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--bh-space-100); min-height: var(--bh-size-control-default); border-radius: var(--bh-radius-075); color: var(--c-ink); text-decoration: none; font: var(--bh-font-label-default); }
|
|
32
34
|
.sidebar-item { padding: 0 var(--bh-space-150); }
|
|
33
35
|
.sidebar-item > span:first-child, .sidebar-child > span:first-child { flex: 1; }
|
|
34
36
|
.sidebar-item:hover, .sidebar-child:hover { background: var(--c-hover); }
|
|
35
|
-
.sidebar-item[aria-current='page'] { background: var(--c-selected);
|
|
37
|
+
.sidebar-item[aria-current='page'] { background: var(--c-selected); }
|
|
38
|
+
/* The gold bar is a straight strip; the item's rounded corners clip its ends. */
|
|
39
|
+
:is(.sidebar-item[aria-current='page'], .sidebar-child[aria-current='page'], .sidebar-branch .sidebar-item[data-has-current][aria-expanded='false'])::before { content: ""; position: absolute; inset: 0 auto 0 var(--bar-x, 0); width: var(--bh-border-width-selected); background: var(--c-gold); }
|
|
36
40
|
.sidebar-item[aria-current='page']:hover, .sidebar-child[aria-current='page']:hover { background: var(--c-selected-hover); }
|
|
37
41
|
.sidebar-chevron { flex: none; color: var(--c-muted); transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
|
|
38
42
|
.sidebar-item[aria-expanded='true'] .sidebar-chevron { transform: rotate(90deg); }
|
|
@@ -44,7 +48,7 @@
|
|
|
44
48
|
Guidelines, Styles) are small labels, not links, so the tree stays two levels deep; a page
|
|
45
49
|
with sub-pages, such as Logos, opens a third level on its own line. The guide line is drawn
|
|
46
50
|
inside the branch, so the items sit on it without a negative margin. */
|
|
47
|
-
.sidebar-section-toggle { display: flex; width: 100%; min-height: var(--bh-size-control-default); align-items: center; gap: var(--bh-space-100); padding: 0 var(--bh-space-100) 0 var(--bh-space-150); border: 0; border-radius: var(--bh-radius-
|
|
51
|
+
.sidebar-section-toggle { display: flex; width: 100%; min-height: var(--bh-size-control-default); align-items: center; gap: var(--bh-space-100); padding: 0 var(--bh-space-100) 0 var(--bh-space-150); border: 0; border-radius: var(--bh-radius-075); color: var(--c-ink); background: none; cursor: pointer; text-align: left; font: var(--bh-font-heading-xsmall); }
|
|
48
52
|
.sidebar-section-toggle:hover { background: var(--c-hover); }
|
|
49
53
|
.sidebar-section-toggle .sidebar-chevron { margin-left: auto; }
|
|
50
54
|
.sidebar-section-toggle[aria-expanded='true'] .sidebar-chevron { transform: rotate(90deg); }
|
|
@@ -53,23 +57,17 @@
|
|
|
53
57
|
first, so they read as headings of the list below and never as one more page. */
|
|
54
58
|
.sidebar-branch .sidebar-group + .sidebar-group { margin-top: var(--bh-space-150); padding-top: var(--bh-space-150); border-top: 1px solid var(--c-line); }
|
|
55
59
|
.sidebar-branch .sidebar-label { margin: 0 0 var(--bh-space-050); padding: var(--bh-space-050) var(--bh-space-150) 0 var(--bh-space-200); color: var(--c-muted); cursor: default; user-select: none; font: var(--bh-font-label-small); }
|
|
56
|
-
/*
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
/* On the tree, the item's box stands 4 px off the guide line and keeps all four corners; the gold
|
|
61
|
+
bar sits on the guide line itself, outside the box, so the corners never cut it. Text stays 16 px
|
|
62
|
+
from the line (4 px gap + 12 px padding). */
|
|
63
|
+
.sidebar-branch .sidebar-item, .sidebar-child { --bar-x: calc(-1 * var(--bh-space-050)); overflow: visible; margin-left: var(--bh-space-050); }
|
|
64
|
+
.sidebar-branch .sidebar-item { padding: 0 var(--bh-space-150); }
|
|
59
65
|
/* A closed folder that holds the current page keeps the gold bar, so the place is never lost. */
|
|
60
|
-
.sidebar-branch .sidebar-item[data-has-current][aria-expanded='false'] { border-left-color: var(--c-gold); }
|
|
61
66
|
.sidebar-branch[hidden], .sidebar-children[hidden] { display: none; }
|
|
62
67
|
.sidebar-children { margin: var(--bh-space-050) 0 var(--bh-space-050) var(--bh-space-200) !important; box-shadow: inset 1px 0 0 var(--c-line); }
|
|
63
|
-
.sidebar-child { padding: 0 var(--bh-space-
|
|
64
|
-
.sidebar-child[aria-current='page'] {
|
|
68
|
+
.sidebar-child { padding: 0 var(--bh-space-100); }
|
|
69
|
+
.sidebar-child[aria-current='page'] { background: var(--c-selected); }
|
|
65
70
|
|
|
66
|
-
/* Scroll bars inside the sidebar and table of contents stay hidden until the pointer is over
|
|
67
|
-
them, then show as a thin line. The page's own scroll bar is left to the browser. */
|
|
68
|
-
.sidebar, .toc, .toc-menu nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
|
|
69
|
-
.sidebar:hover, .toc:hover, .toc-menu nav:hover { scrollbar-color: var(--c-line) transparent; }
|
|
70
|
-
.sidebar::-webkit-scrollbar, .toc::-webkit-scrollbar { width: 6px; }
|
|
71
|
-
.sidebar::-webkit-scrollbar-thumb, .toc::-webkit-scrollbar-thumb { border-radius: var(--bh-radius-050); background: transparent; }
|
|
72
|
-
.sidebar:hover::-webkit-scrollbar-thumb, .toc:hover::-webkit-scrollbar-thumb { background: var(--c-line); }
|
|
73
71
|
|
|
74
72
|
/* Table of contents. */
|
|
75
73
|
.toc { position: sticky; top: var(--header-bottom); align-self: start; display: none; max-height: calc(100vh - var(--header-bottom)); padding: var(--page-margin) 0; overflow-y: auto; }
|
|
@@ -98,8 +96,8 @@
|
|
|
98
96
|
/* Release phase label, learned from GitHub Primer's Label: a pill with a 1 px border in the role
|
|
99
97
|
colour, text in the role's fg colour and no fill, 20 px tall. The words carry the meaning;
|
|
100
98
|
the colour only helps scanning. */
|
|
101
|
-
.status-badge { display: inline-flex; align-items: center; height:
|
|
102
|
-
.status-badge.is-large { height: var(--bh-size-control-small); padding: 0
|
|
99
|
+
.status-badge { display: inline-flex; align-items: center; height: var(--bh-space-250); padding: 0 var(--bh-space-075); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-050); color: var(--bh-color-text); background: transparent; text-decoration: none; white-space: nowrap; font: var(--bh-font-label-small); }
|
|
100
|
+
.status-badge.is-large { height: var(--bh-size-control-small); padding: 0 var(--bh-space-100); }
|
|
103
101
|
.status-early-access { border-color: var(--bh-color-border-brand); }
|
|
104
102
|
.status-beta { border-color: var(--bh-color-border-info); color: var(--bh-color-text-info); }
|
|
105
103
|
.status-ga { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
@@ -110,7 +108,7 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
110
108
|
.component-tabs { display: flex; gap: var(--bh-space-300); margin: var(--bh-space-300) 0 0; padding: 0; border-top: 0; color: inherit; overflow-x: auto; }
|
|
111
109
|
.component-tabs a { display: flex; align-items: center; height: var(--bh-size-control-default); padding: 0; border-bottom: var(--bh-border-width-selected) solid transparent; color: var(--c-muted); text-decoration: none; white-space: nowrap; font: var(--bh-font-label-default); }
|
|
112
110
|
.component-tabs a:hover { color: var(--c-ink); }
|
|
113
|
-
.component-tabs a[aria-current='page'] { border-bottom-color: var(--c-
|
|
111
|
+
.component-tabs a[aria-current='page'] { border-bottom-color: var(--c-gold); color: var(--c-ink); }
|
|
114
112
|
|
|
115
113
|
/* Body text. */
|
|
116
114
|
.prose { container: prose / inline-size; padding-top: var(--bh-space-300); font: var(--bh-font-body-large); }
|
|
@@ -127,12 +125,12 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
127
125
|
.prose pre { margin: 0 0 var(--bh-space-200); padding: var(--bh-space-200); border-radius: var(--bh-radius-100); overflow-x: auto; font: var(--bh-font-code-default); }
|
|
128
126
|
.prose pre.astro-code { background-color: var(--c-code-bg) !important; } /* Shiki writes its own background inline */
|
|
129
127
|
.prose pre code { font: inherit; } /* the browser sets code to its own monospace */
|
|
130
|
-
.prose kbd { padding: 0 var(--bh-space-050); border: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
128
|
+
.prose kbd { padding: 0 var(--bh-space-050); border: 1px solid var(--c-line); border-radius: var(--bh-radius-025); background: var(--c-surf); font: var(--bh-font-label-small); }
|
|
131
129
|
.prose table { width: 100%; margin: 0 0 var(--bh-space-200); border-collapse: collapse; font: var(--bh-font-body-default); }
|
|
132
130
|
.prose th, .prose td { padding: var(--bh-space-100) var(--bh-space-150); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: baseline; } /* first lines share a baseline, even when code sits next to text */
|
|
133
131
|
.prose th { color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
134
132
|
.prose td code { overflow-wrap: anywhere; } /* long token names wrap instead of widening the page */
|
|
135
|
-
.prose blockquote, .callout { margin: 0 0 var(--bh-space-300); padding: calc(var(--bh-space-200) -
|
|
133
|
+
.prose blockquote, .callout { margin: 0 0 var(--bh-space-300); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: 1px solid var(--c-note-line); border-radius: var(--bh-radius-100); background: var(--c-note-bg); }
|
|
136
134
|
.prose blockquote p, .callout p { margin: 0; }
|
|
137
135
|
.callout-title { margin-bottom: var(--bh-space-050) !important; font: var(--bh-font-heading-xsmall); }
|
|
138
136
|
|
|
@@ -149,14 +147,14 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
149
147
|
/* Cards. */
|
|
150
148
|
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-200); padding: 0 !important; list-style: none; }
|
|
151
149
|
.card-grid > li { margin: 0 !important; }
|
|
152
|
-
.card { display: block; height: 100%; padding: calc(var(--bh-space-300) -
|
|
153
|
-
.card:hover { border-color: var(--
|
|
150
|
+
.card { display: block; height: 100%; padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink) !important; background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); text-decoration: none; transition: border-color 150ms ease; font: var(--bh-font-heading-small); }
|
|
151
|
+
.card:hover { border-color: var(--bh-color-border-bold); }
|
|
154
152
|
.card p { margin: var(--bh-space-050) 0 var(--bh-space-150); color: var(--c-muted) !important; font: var(--bh-font-body-default); }
|
|
155
153
|
.child-pages h2 { margin-top: var(--bh-space-500); }
|
|
156
154
|
|
|
157
155
|
/* Previous / next and page meta. */
|
|
158
156
|
.pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin-top: var(--bh-space-600); }
|
|
159
|
-
.pager-link { display: grid; gap: var(--bh-space-050); padding: calc(var(--bh-space-200) -
|
|
157
|
+
.pager-link { display: grid; gap: var(--bh-space-050); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink); text-decoration: none; }
|
|
160
158
|
.pager-link:hover { border-color: var(--c-muted); }
|
|
161
159
|
.pager-link span { color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
162
160
|
.pager-link b { font: var(--bh-font-heading-small); }
|
|
@@ -166,7 +164,7 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
166
164
|
.page-meta a:hover { color: var(--c-ink); }
|
|
167
165
|
|
|
168
166
|
/* Pages listed before their content is written. */
|
|
169
|
-
.in-development { display: flex; gap: var(--bh-space-200); padding: calc(var(--bh-space-300) -
|
|
167
|
+
.in-development { display: flex; gap: var(--bh-space-200); padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: 1px dashed var(--c-muted); border-radius: var(--bh-radius-100); background: var(--c-surf); }
|
|
170
168
|
.in-development-icon { flex: none; display: grid; place-items: center; width: var(--bh-space-500); height: var(--bh-space-500); border-radius: var(--bh-radius-100); color: var(--bh-color-text-on-brand); background: var(--bh-color-background-brand-subtle); box-shadow: inset 0 0 0 1px var(--bh-color-border-brand-subtle); }
|
|
171
169
|
.in-development p { margin: 0 0 var(--bh-space-100); }
|
|
172
170
|
.in-development p:last-child { margin-bottom: 0; }
|
|
@@ -175,34 +173,18 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
175
173
|
.in-development ul { margin: 0 0 var(--bh-space-150); }
|
|
176
174
|
|
|
177
175
|
/* Component examples. The preview follows the page theme, so it shows the component in both. */
|
|
178
|
-
.code-example { margin: var(--bh-space-300) 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
176
|
+
.code-example { margin: var(--bh-space-300) 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
|
|
179
177
|
.code-example figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 1px solid var(--c-line); font: var(--bh-font-heading-xsmall); }
|
|
180
178
|
.code-preview { display: flex; flex-wrap: wrap; gap: var(--bh-space-150); align-items: center; padding: var(--bh-space-400) var(--bh-space-300); background: var(--bh-color-surface-subtle); }
|
|
181
179
|
.prose .code-example pre { margin: 0; border-radius: var(--bh-radius-0); }
|
|
182
180
|
|
|
183
181
|
/* Demo styles for component examples, until the component library ships. */
|
|
184
|
-
.bh-button { display: inline-flex; align-items: center; gap: var(--bh-space-050); height: var(--bh-size-control-default); padding: 0 calc(var(--bh-space-150) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); background: var(--bh-color-surface-page); color: var(--bh-color-text); cursor: pointer; transition: background var(--bh-motion-duration-fast) var(--bh-motion-easing-standard); font: var(--bh-font-label-default); }
|
|
185
|
-
.bh-button:hover { background: var(--bh-color-background-neutral-subtle-hover); }
|
|
186
|
-
.bh-button:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
187
|
-
.bh-button-primary { border-color: var(--bh-color-background-neutral-bold); background: var(--bh-color-background-neutral-bold); color: var(--bh-color-text-inverse); }
|
|
188
|
-
.bh-button-primary:hover { border-color: var(--bh-color-background-neutral-bold-hover); background: var(--bh-color-background-neutral-bold-hover); }
|
|
189
|
-
.bh-button-danger { border-color: var(--bh-color-background-danger-bold); background: var(--bh-color-background-danger-bold); color: var(--bh-color-text-on-bold); }
|
|
190
|
-
.bh-button-danger:hover { border-color: var(--bh-color-background-danger-bold-hover); background: var(--bh-color-background-danger-bold-hover); }
|
|
191
|
-
.bh-button:disabled, .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; }
|
|
192
182
|
|
|
193
183
|
/* Label and state label, learned from GitHub Primer (@primer/react Label and StateLabel).
|
|
194
184
|
Label: outlined pill, 1 px border in the role's emphasis colour, text in its fg colour, no
|
|
195
185
|
fill; 20 px tall with 6 px padding (large: 24 px, 8 px). State label: solid emphasis fill,
|
|
196
186
|
white text and an icon. */
|
|
197
|
-
.bh-
|
|
198
|
-
.bh-label.is-large { height: var(--bh-size-control-small); padding: 0 calc(var(--bh-space-100) - 1px); }
|
|
199
|
-
.bh-label.is-brand { border-color: var(--bh-color-border-brand); }
|
|
200
|
-
.bh-label.is-info { border-color: var(--bh-color-border-info); color: var(--bh-color-text-info); }
|
|
201
|
-
.bh-label.is-success { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
202
|
-
.bh-label.is-warning { border-color: var(--bh-color-border-warning); color: var(--bh-color-text-warning); }
|
|
203
|
-
.bh-label.is-danger { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
204
|
-
.bh-label.is-neutral { border-color: var(--bh-color-border-bold); color: var(--bh-color-text-subtle); }
|
|
205
|
-
.bh-state { display: inline-flex; align-items: center; gap: var(--bh-space-050); height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-full); color: var(--bh-color-text-on-bold); white-space: nowrap; font: var(--bh-font-heading-xsmall); }
|
|
187
|
+
.bh-state { display: inline-flex; align-items: center; gap: var(--bh-space-050); height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-050); color: var(--bh-color-text-on-bold); white-space: nowrap; font: var(--bh-font-heading-xsmall); }
|
|
206
188
|
.bh-state svg { flex: none; }
|
|
207
189
|
.bh-state.is-info { background: var(--bh-color-background-info-bold); }
|
|
208
190
|
.bh-state.is-success { background: var(--bh-color-background-success-bold); }
|
|
@@ -217,7 +199,7 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
217
199
|
|
|
218
200
|
/* Below lg (1024 px) the side navigation is a drawer and a bar under the header opens it and
|
|
219
201
|
the folded table of contents. */
|
|
220
|
-
.docs-mobilebar { position: sticky; z-index:
|
|
202
|
+
.docs-mobilebar { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom); box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); height: var(--header-h); padding: 0 var(--page-margin); border-bottom: 1px solid var(--c-line); background: var(--c-bg); font: var(--bh-font-label-default); }
|
|
221
203
|
.drawer-open { display: flex; align-items: center; gap: var(--bh-space-050); min-width: 0; height: var(--bh-size-control-default); padding: 0; border: 0; color: var(--c-ink); background: none; font: inherit; cursor: pointer; }
|
|
222
204
|
.drawer-open-label { overflow: hidden; color: var(--c-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
223
205
|
.drawer-open-label b { color: var(--c-ink); }
|
|
@@ -225,22 +207,22 @@ a.status-badge:hover { text-decoration: underline; }
|
|
|
225
207
|
.toc-menu summary { display: flex; align-items: center; height: var(--bh-size-control-default); color: var(--c-muted); cursor: pointer; list-style: none; }
|
|
226
208
|
.toc-menu summary::-webkit-details-marker { display: none; }
|
|
227
209
|
.toc-menu summary::after { content: ' ▾'; }
|
|
228
|
-
.toc-menu nav { position: absolute; top: calc(100% + var(--bh-space-050)); right: 0; width: min(300px, calc(100vw - 2 * var(--page-margin))); max-height: 60vh; padding: var(--bh-space-
|
|
210
|
+
.toc-menu nav { position: absolute; top: calc(100% + var(--bh-space-050)); right: 0; width: min(300px, calc(100vw - 2 * var(--page-margin))); max-height: 60vh; padding: var(--bh-space-050); overflow-y: auto; border-radius: var(--bh-radius-050); background: var(--bh-color-surface-overlay); box-shadow: var(--c-shadow); }
|
|
229
211
|
.toc-menu a { display: flex; align-items: center; min-height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-050); color: var(--c-ink); text-decoration: none; font: var(--bh-font-label-default); }
|
|
230
212
|
.toc-menu .toc-depth-3 a { padding-left: var(--bh-space-300); color: var(--c-muted); }
|
|
231
|
-
.toc-menu a:hover { background: var(--
|
|
213
|
+
.toc-menu a:hover { background: var(--bh-color-surface-overlay-hover); }
|
|
232
214
|
|
|
233
|
-
.sidebar { position: fixed; z-index:
|
|
215
|
+
.sidebar { --c-hover: var(--bh-color-surface-overlay-hover); --c-selected: var(--bh-color-surface-overlay-selected); --c-selected-hover: var(--bh-color-surface-overlay-selected-hover); position: fixed; z-index: var(--bh-z-index-modal); top: 0; bottom: 0; left: 0; width: min(var(--sidebar-w), 86vw); height: auto; border-right: 0; background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); transform: translateX(-105%); transition: transform 200ms ease; visibility: hidden; }
|
|
234
216
|
body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
235
217
|
.drawer-backdrop { display: none; }
|
|
236
|
-
.drawer-backdrop:not([hidden]) { position: fixed; z-index:
|
|
218
|
+
.drawer-backdrop:not([hidden]) { position: fixed; z-index: var(--bh-z-index-modal); inset: 0; display: block; background: var(--bh-color-surface-scrim); }
|
|
237
219
|
|
|
238
220
|
/* Tables marked stackable are one card per row in a narrow column, and a table once the column is 720 px wide. */
|
|
239
221
|
.prose table.stackable, .prose table.stackable tbody, .prose table.stackable tr, .prose table.stackable td { display: block; width: 100%; }
|
|
240
222
|
.prose table.stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
241
223
|
.prose table.stackable tr { margin-bottom: var(--bh-space-150); padding: var(--bh-space-050) 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); }
|
|
242
224
|
/* The cell stays one block, so text, code and links inside it flow as one line of text; the label sits in the left column. */
|
|
243
|
-
.prose table.stackable td { position: relative; display: block; min-height: var(--bh-space-500); padding: var(--bh-space-100) var(--bh-space-150) var(--bh-space-100) calc(
|
|
225
|
+
.prose table.stackable td { position: relative; display: block; min-height: var(--bh-space-500); --label-w: 7rem; padding: var(--bh-space-100) var(--bh-space-150) var(--bh-space-100) calc(var(--label-w) + 2 * var(--bh-space-150)); border: 0; }
|
|
244
226
|
.prose table.stackable td::before { content: attr(data-label); position: absolute; top: var(--bh-space-100); left: var(--bh-space-150); width: 7rem; color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
245
227
|
@container prose (min-width: 720px) {
|
|
246
228
|
.prose table.stackable { display: table; }
|
|
@@ -262,7 +244,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
262
244
|
.docs-grid { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
|
|
263
245
|
.docs-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); }
|
|
264
246
|
.docs-mobilebar { display: none; }
|
|
265
|
-
.sidebar { position: sticky; z-index: auto; top: var(--header-bottom); bottom: auto; width: auto; height: calc(100vh - var(--header-bottom)); box-shadow: none; transform: none; transition: none; visibility: visible; }
|
|
247
|
+
.sidebar { --c-hover: var(--bh-color-background-neutral-subtle-hover); --c-selected: var(--bh-color-background-selected); --c-selected-hover: var(--bh-color-background-selected-hover); background: var(--c-bg); border-right: var(--bh-border-width-default) solid var(--c-line); position: sticky; z-index: auto; top: var(--header-bottom); bottom: auto; width: auto; height: calc(100vh - var(--header-bottom)); box-shadow: none; transform: none; transition: none; visibility: visible; }
|
|
266
248
|
.sidebar-head { display: none; }
|
|
267
249
|
.drawer-backdrop:not([hidden]) { display: none; }
|
|
268
250
|
}
|
|
@@ -280,7 +262,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
280
262
|
|
|
281
263
|
/* Get started. */
|
|
282
264
|
.role-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin-bottom: var(--bh-space-200); }
|
|
283
|
-
.role-card { padding: calc(var(--bh-space-300) -
|
|
265
|
+
.role-card { padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); }
|
|
284
266
|
.prose .role-card h3 { margin: 0 0 var(--bh-space-050); font: var(--bh-font-heading-small); }
|
|
285
267
|
.prose .role-card h3 a { color: var(--c-ink); text-decoration: none; }
|
|
286
268
|
.prose .role-card h3 a:hover { text-decoration: underline; }
|
|
@@ -290,14 +272,14 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
290
272
|
.prose .role-card li + li { margin-top: var(--bh-space-050); }
|
|
291
273
|
.area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
292
274
|
.card-meta { color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
293
|
-
.prose .help-list { display: grid; gap: 0; margin: 0 0 var(--bh-space-200); padding: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-
|
|
275
|
+
.prose .help-list { display: grid; gap: 0; margin: 0 0 var(--bh-space-200); padding: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); list-style: none; }
|
|
294
276
|
.prose .help-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-050); margin: 0; padding: var(--bh-space-150) var(--bh-space-200); }
|
|
295
277
|
.prose .help-list li + li { border-top: 1px solid var(--c-line); }
|
|
296
278
|
.help-list b { }
|
|
297
279
|
.help-list span { color: var(--c-muted); }
|
|
298
280
|
|
|
299
281
|
/* Dark button, used for downloads. */
|
|
300
|
-
.prose .button-dark { display: inline-flex; flex: none; align-items: center; justify-content: center; height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); border-radius: var(--bh-radius-
|
|
282
|
+
.prose .button-dark { display: inline-flex; flex: none; align-items: center; justify-content: center; height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); border-radius: var(--bh-radius-control); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); text-decoration: none; font: var(--bh-font-label-default); }
|
|
301
283
|
.prose .button-dark:hover { background: var(--bh-color-background-neutral-bold-hover); }
|
|
302
284
|
|
|
303
285
|
/* Inside the content column: these follow the column's width (container queries). */
|
|
@@ -309,7 +291,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
|
|
|
309
291
|
/* A 40 px button on small screens, the default 32 px from md. */
|
|
310
292
|
@media (min-width: 768px) { .prose .button-dark { justify-content: flex-start; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); } }
|
|
311
293
|
/* Under /vi/, a page shown in English says so above its title. */
|
|
312
|
-
.lang-notice { margin: 0 0 var(--bh-space-150); padding: calc(var(--bh-space-100) -
|
|
294
|
+
.lang-notice { margin: 0 0 var(--bh-space-150); padding: calc(var(--bh-space-100) - var(--bh-border-width-default)) calc(var(--bh-space-150) - var(--bh-border-width-default)); border: 1px solid var(--c-note-line); border-radius: var(--bh-radius-100); color: var(--c-ink); background: var(--c-note-bg); font: var(--bh-font-body-default); }
|
|
313
295
|
|
|
314
296
|
/* Moving between pages: the page fades across instead of flashing white, while the header and
|
|
315
297
|
the sidebar stay put (cross-document view transitions; browsers without them load as before). */
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* Illustrations for the Elevation page. Surfaces, shadows, edges and sizes are tokens only. */
|
|
2
|
+
.bh-scope-light, .bh-scope-dark { color: var(--bh-color-text); background: var(--bh-color-surface-page); }
|
|
3
|
+
|
|
4
|
+
/* Hero: the three levels from the front and from the side (as on Material's elevation page). */
|
|
5
|
+
.el-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: var(--bh-space-300) 0; }
|
|
6
|
+
@container prose (min-width: 640px) { .el-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
7
|
+
.el-view { display: grid; grid-template-rows: 1fr auto; margin: 0; overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); }
|
|
8
|
+
.el-view figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-top: var(--bh-border-width-default) solid var(--bh-color-border); color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); }
|
|
9
|
+
.el-front { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: var(--bh-space-200); min-height: calc(3 * var(--bh-space-800)); padding: var(--bh-space-400) var(--bh-space-300); background: var(--bh-color-surface-page); }
|
|
10
|
+
.el-plate { display: grid; place-items: end start; aspect-ratio: 1; padding: var(--bh-space-100); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); }
|
|
11
|
+
.el-plate b { color: var(--bh-color-text-subtle); font: var(--bh-font-label-small); }
|
|
12
|
+
.el-plate.is-page { background: transparent; border: var(--bh-border-width-default) dashed var(--bh-color-border-bold); }
|
|
13
|
+
.el-plate.is-raised { border: var(--bh-border-width-default) solid var(--bh-color-border); box-shadow: var(--bh-elevation-shadow-raised); }
|
|
14
|
+
.el-plate.is-overlay { background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); }
|
|
15
|
+
.el-plate.is-modal { background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); }
|
|
16
|
+
.el-side { display: grid; align-content: end; gap: var(--bh-space-300); min-height: calc(3 * var(--bh-space-800)); padding: var(--bh-space-300) var(--bh-space-300) 0; background: var(--bh-color-surface-page); }
|
|
17
|
+
.el-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--bh-space-025) var(--bh-space-150); }
|
|
18
|
+
.el-bar i { grid-row: span 2; width: calc(2 * var(--bh-space-800)); height: var(--bh-space-400); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); }
|
|
19
|
+
.el-bar.is-raised i { border: var(--bh-border-width-default) solid var(--bh-color-border); box-shadow: var(--bh-elevation-shadow-raised); }
|
|
20
|
+
.el-bar.is-overlay i { background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); }
|
|
21
|
+
.el-bar.is-modal i { background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); }
|
|
22
|
+
.el-bar code { font: var(--bh-font-code-default); font-size: var(--bh-font-size-100); color: var(--bh-color-text); }
|
|
23
|
+
.el-bar em { color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); font-style: normal; }
|
|
24
|
+
.el-ground { display: block; margin: var(--bh-space-100) calc(-1 * var(--bh-space-300)) 0; padding: var(--bh-space-050) var(--bh-space-300); border-top: var(--bh-border-width-default) solid var(--bh-color-border-bold); background: var(--bh-color-surface-page); }
|
|
25
|
+
.el-ground code { font: var(--bh-font-code-default); font-size: var(--bh-font-size-100); color: var(--bh-color-text-subtle); }
|
|
26
|
+
|
|
27
|
+
/* Examples: the level's real component on the page colour, so the shadow reads as it will in the product. */
|
|
28
|
+
.el-ex { background: var(--bh-color-surface-page); }
|
|
29
|
+
.el-ex.is-top { align-items: flex-start; padding-bottom: calc(var(--bh-space-1000) + var(--bh-space-200)); }
|
|
30
|
+
.el-card { display: grid; gap: var(--bh-space-050); width: min(100%, 16rem); }
|
|
31
|
+
.el-card.is-wide { width: 16rem; }
|
|
32
|
+
.el-anchor { display: grid; justify-items: start; gap: var(--bh-space-050); }
|
|
33
|
+
.el-menu { min-width: 11rem; }
|
|
34
|
+
/* Menu rows follow the site menus: a default-height control, 12 px side padding, 4 px items in an 8 px menu with 4 px padding. */
|
|
35
|
+
.el-menu > .sh-pin { display: flex; }
|
|
36
|
+
.el-menu > .sh-pin > span:first-child { flex: 1; }
|
|
37
|
+
.el-btn-icon { gap: var(--bh-space-050); }
|
|
38
|
+
.el-btn-icon svg { flex: none; color: var(--bh-color-icon); }
|
|
39
|
+
.el-menu.is-list { width: 11rem; min-width: 0; }
|
|
40
|
+
|
|
41
|
+
.el-modal-ex { position: relative; overflow: hidden; min-height: calc(4 * var(--bh-space-800)); }
|
|
42
|
+
.el-page { position: absolute; inset: 0; }
|
|
43
|
+
.el-lines { display: grid; gap: var(--bh-space-150); padding: var(--bh-space-300); }
|
|
44
|
+
.el-lines i { height: var(--bh-space-150); border-radius: var(--bh-radius-full); background: var(--bh-color-skeleton); }
|
|
45
|
+
.el-lines i:nth-child(1) { width: 60%; }
|
|
46
|
+
.el-lines i:nth-child(3) { width: 75%; }
|
|
47
|
+
.el-scrim { position: absolute; inset: 0; background: var(--bh-color-surface-scrim); }
|
|
48
|
+
.el-modal-ex > .sh-pin { position: relative; }
|
|
49
|
+
.el-dialog { width: min(100%, 20rem); }
|
|
50
|
+
.el-actions { display: flex; justify-content: flex-end; gap: var(--bh-space-100); }
|
|
51
|
+
.el-scrim-pin { position: absolute; top: var(--bh-space-300); right: calc(var(--bh-space-1000) + var(--bh-space-200)); }
|
|
52
|
+
.el-dot { display: block; width: var(--bh-space-100); height: var(--bh-space-100); }
|
|
53
|
+
|
|
54
|
+
/* Light and dark side by side. */
|
|
55
|
+
.el-themes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: var(--bh-space-300) 0; }
|
|
56
|
+
@container prose (min-width: 640px) { .el-themes:not(.is-stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
57
|
+
.el-theme { margin: 0; overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); }
|
|
58
|
+
.el-theme figcaption { 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-subtle); font: var(--bh-font-label-small); }
|
|
59
|
+
.el-theme-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--bh-space-400); padding: var(--bh-space-800) var(--bh-space-300); }
|
|
60
|
+
.el-theme-stage > .sh-pin:first-child { position: absolute; top: var(--bh-space-200); left: var(--bh-space-500); }
|
|
61
|
+
.el-theme-stage.is-col { align-items: flex-end; padding: var(--bh-space-400) var(--bh-space-1000) var(--bh-space-400) var(--bh-space-300); }
|
|
62
|
+
@container prose (max-width: 560px) { .el-theme-stage { gap: calc(var(--bh-space-1000) + var(--bh-space-400)); padding-bottom: var(--bh-space-1000); } .el-theme-stage.is-col { align-items: center; padding-right: var(--bh-space-300); } .el-menu.is-list > .sh-pin + .sh-pin { margin-top: var(--bh-space-1000); } }
|
|
63
|
+
|
|
64
|
+
/* Do and don't. */
|
|
65
|
+
.el-panel { display: grid; gap: var(--bh-space-050); width: min(100%, 16rem); 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); }
|
|
66
|
+
.el-panel b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
|
|
67
|
+
.el-panel span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
|
|
68
|
+
.el-panel.is-shadowed { box-shadow: var(--bh-elevation-shadow-modal); }
|
|
69
|
+
.el-menu.is-wrong-surface .is-on { background: var(--bh-color-background-neutral-subtle-hover); }
|
|
70
|
+
.el-menu.is-own { box-shadow: var(--bh-elevation-shadow-raised), var(--bh-elevation-shadow-modal); }
|
|
71
|
+
.el-menu.is-bordered { border: var(--bh-border-width-default) solid var(--bh-color-border-bold); }
|
|
72
|
+
.sp-dd-stage.bh-scope-dark { background: var(--bh-color-surface-page); }
|
|
73
|
+
@container prose (max-width: 560px) { .el-ex { padding-bottom: calc(var(--bh-space-1000) + var(--bh-space-800)); } }
|
|
74
|
+
@container prose (max-width: 560px) { .sh-ex.el-ex, .sh-ex.el-ex.is-top { padding-bottom: calc(2 * var(--bh-space-1000) + var(--bh-space-200)); } .el-theme-stage, .el-theme-stage.is-col { padding-bottom: calc(2 * var(--bh-space-1000)); } }
|
|
75
|
+
/* Examples with a pin to the left: the element moves right so the label has room. */
|
|
76
|
+
.sh-ex.el-ex.is-pin-left { justify-content: flex-end; padding-right: calc(2 * var(--bh-space-1000)); }
|
|
77
|
+
.el-modal-ex .el-scrim-pin { right: auto; left: calc(var(--bh-space-1000) + var(--bh-space-600)); top: auto; bottom: calc(var(--bh-space-1000) + var(--bh-space-400)); }
|
|
78
|
+
.el-theme-stage:not(.is-col) { align-items: flex-end; padding-right: calc(2 * var(--bh-space-1000)); }
|
|
79
|
+
@container prose (max-width: 560px) {
|
|
80
|
+
.sh-ex.el-ex.is-pin-left { justify-content: center; padding-right: var(--bh-space-300); }
|
|
81
|
+
.el-theme-stage:not(.is-col), .el-theme-stage.is-col { align-items: flex-start; padding-right: var(--bh-space-300); }
|
|
82
|
+
.el-modal-ex .el-scrim-pin { left: auto; right: calc(var(--bh-space-1000) + var(--bh-space-600)); top: var(--bh-space-100); }
|
|
83
|
+
}
|
|
@@ -34,15 +34,6 @@ html { scroll-behavior: smooth; scroll-padding-top: var(--bh-space-1000); scroll
|
|
|
34
34
|
(16 px by default), because every size token is in rem. */
|
|
35
35
|
body { margin: 0; min-width: 320px; overflow-x: hidden; font: var(--bh-font-body-default); }
|
|
36
36
|
/* Bold inside text is semibold: 700 belongs to the display styles only. */
|
|
37
|
-
/* Inter character variants, on everywhere (decided 27/10/2026): cv05 gives lowercase l a tail and
|
|
38
|
-
cv08 gives uppercase I serifs, so l, I and 1 never look alike in names, IDs and keys.
|
|
39
|
-
Every text style is applied with the `font` shorthand, and the shorthand resets
|
|
40
|
-
font-feature-settings to normal, so inheritance alone can't carry the features. This rule sets
|
|
41
|
-
them on every element from one variable; change the variable, not the property:
|
|
42
|
-
`--bh-font-features: "cv05", "cv08", "zero"` adds the slashed zero to a code value.
|
|
43
|
-
JetBrains Mono has no cv05 or cv08, so code is not affected. */
|
|
44
|
-
:root { --bh-font-features: "cv05", "cv08"; }
|
|
45
|
-
*, ::before, ::after { font-feature-settings: var(--bh-font-features) !important; }
|
|
46
37
|
b, strong { font-weight: var(--bh-font-weight-semibold); }
|
|
47
38
|
h1, h2, h3, h4, h5, h6 { font-weight: var(--bh-font-weight-semibold); }
|
|
48
39
|
code, kbd, pre, samp { font-family: var(--bh-font-family-mono); }
|
|
@@ -51,11 +42,16 @@ button, a { -webkit-tap-highlight-color: transparent; }
|
|
|
51
42
|
a { color: inherit; }
|
|
52
43
|
svg { display: block; }
|
|
53
44
|
|
|
54
|
-
.skip-link { position: fixed; z-index:
|
|
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); }
|
|
55
46
|
.skip-link:focus { top: 1rem; }
|
|
56
47
|
h1, h2, h3, p { margin-top: 0; }
|
|
57
48
|
h1, h2, h3 { text-wrap: balance; }
|
|
58
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
|
+
|
|
59
55
|
/* Focus ring: blue, 2 px, offset 2 px (color.border.focus). The brand yellow is 1.85:1 on white,
|
|
60
56
|
below the 3:1 a focus indicator needs. */
|
|
61
57
|
:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
|
|
@@ -64,3 +60,18 @@ h1, h2, h3 { text-wrap: balance; }
|
|
|
64
60
|
html { scroll-behavior: auto; }
|
|
65
61
|
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
|
|
66
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
|
+
}
|
|
@@ -5,24 +5,23 @@
|
|
|
5
5
|
|
|
6
6
|
/* ---------- Library ---------- */
|
|
7
7
|
.ib { margin: 0 0 var(--bh-space-400); }
|
|
8
|
-
.ib-controls { position: sticky; z-index:
|
|
8
|
+
.ib-controls { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom, 49px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--bh-space-150) var(--bh-space-200); padding: var(--bh-space-150) 0; border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
|
|
9
9
|
.ib-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 0; }
|
|
10
10
|
.ib-search-icon { position: absolute; left: var(--bh-space-150); color: var(--bh-color-icon-subtle); pointer-events: none; }
|
|
11
|
-
.ib-search input { width: 100%;
|
|
11
|
+
.ib-search input { width: 100%; padding: 0 var(--bh-space-150) 0 var(--bh-space-400); }
|
|
12
12
|
.ib-search input::placeholder { color: var(--bh-color-text-subtlest); }
|
|
13
|
-
.ib-field { display: grid; gap: var(--bh-space-050); color: var(--c-muted); font: var(--bh-font-label-small); }
|
|
14
13
|
/* Category select: the browser's own arrow sits at a fixed spot of its own, so it is replaced by the
|
|
15
14
|
Lucide chevron at the spacing tokens: 12 px from the edge, 16 px icon, 4 px to the text (as the search field). */
|
|
16
15
|
.ib-select { position: relative; display: flex; align-items: center; max-width: 100%; }
|
|
17
16
|
.ib-select-icon { position: absolute; right: var(--bh-space-150); color: var(--bh-color-icon-subtle); pointer-events: none; }
|
|
18
|
-
.ib-field select { appearance: none; -webkit-appearance: none;
|
|
17
|
+
.ib-field select { appearance: none; -webkit-appearance: none; max-width: 100%; padding: 0 var(--bh-space-400) 0 var(--bh-space-150); }
|
|
19
18
|
.ib-sizes { display: flex; }
|
|
20
19
|
.ib-size { position: relative; }
|
|
21
20
|
.ib-size input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
|
|
22
|
-
.ib-size span { display: grid; place-items: center; min-width: 44px; height:
|
|
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; }
|
|
23
22
|
.ib-size + .ib-size span { margin-left: -1px; }
|
|
24
|
-
.ib-size:first-of-type span { border-radius: var(--bh-radius-
|
|
25
|
-
.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; }
|
|
26
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); }
|
|
27
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); }
|
|
28
27
|
.ib-size input:not(:checked):hover + span { background: var(--c-hover); }
|
|
@@ -30,15 +29,15 @@
|
|
|
30
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; }
|
|
31
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; }
|
|
32
31
|
.prose .ib-grid li { margin: 0; padding: 0; content-visibility: auto; contain-intrinsic-size: auto 104px; }
|
|
33
|
-
.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; }
|
|
34
33
|
.ib-icon svg { width: var(--ib-size, 24px); height: var(--ib-size, 24px); }
|
|
35
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; }
|
|
36
35
|
.ib-icon:hover { background: var(--c-hover); }
|
|
37
36
|
.ib-icon:hover .ib-name { color: var(--c-ink); }
|
|
38
37
|
.ib-icon[data-copied] { border-color: var(--bh-color-border-success); background: var(--bh-color-background-success-subtle); }
|
|
39
38
|
.ib-icon[data-copied] .ib-name { color: var(--bh-color-text-success); }
|
|
40
|
-
.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-
|
|
41
|
-
.ib-toast { position: fixed; z-index:
|
|
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
|
+
.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; }
|
|
42
41
|
.ib-toast:empty { padding: 0; }
|
|
43
42
|
.ib-toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
|
|
44
43
|
.prose .ib-credit { margin: var(--bh-space-300) 0 0; color: var(--c-muted); font: var(--bh-font-body-small); }
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
|
|
54
53
|
/* ---------- Illustrations ---------- */
|
|
55
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); }
|
|
56
|
-
.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; }
|
|
57
56
|
.ic-size-stage { display: grid; place-items: center; height: 96px; color: var(--bh-color-icon); background: var(--bh-color-surface-subtle); }
|
|
58
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); }
|
|
59
58
|
.ic-size figcaption b { color: var(--c-ink); font: var(--bh-font-heading-xsmall); }
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
@container prose (min-width: 640px) { .ic-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
|
62
61
|
|
|
63
62
|
.ic-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
64
|
-
.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; }
|
|
65
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); }
|
|
66
65
|
.ic-panel figcaption { padding: var(--bh-space-150) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
|
|
67
66
|
.ic-panel figcaption b { color: var(--c-ink); }
|
|
@@ -84,25 +83,26 @@
|
|
|
84
83
|
.ic-spaced svg { color: var(--bh-color-icon); }
|
|
85
84
|
.ic-spaced.is-16 { font: var(--bh-font-label-default); }
|
|
86
85
|
.ic-spaced.is-20 { font: var(--bh-font-body-large); }
|
|
87
|
-
.ic-gap { position: relative; align-self: stretch; min-height:
|
|
86
|
+
.ic-gap { position: relative; align-self: stretch; min-height: var(--bh-space-300); background: var(--bh-color-background-danger-subtle); box-shadow: inset 1px 0 0 var(--bh-color-border-danger), inset -1px 0 0 var(--bh-color-border-danger); }
|
|
88
87
|
.is-16 .ic-gap { width: 4px; }
|
|
89
88
|
.is-20 .ic-gap { width: 8px; }
|
|
90
89
|
.ic-gap small { position: absolute; top: 100%; left: 50%; margin-top: var(--bh-space-050); color: var(--bh-color-text-danger); font: var(--bh-font-label-small); font-style: normal; transform: translateX(-50%); }
|
|
91
90
|
|
|
92
91
|
/* Target size */
|
|
93
92
|
.ic-target { position: relative; display: grid; place-items: center; border: 1px dashed var(--bh-color-border-info); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-background-info-subtle); }
|
|
94
|
-
.ic-target.is-24 { width:
|
|
95
|
-
.ic-target.is-32 { width:
|
|
93
|
+
.ic-target.is-24 { width: var(--bh-size-target-minimum); height: var(--bh-size-target-minimum); }
|
|
94
|
+
.ic-target.is-32 { width: var(--bh-size-control-default); height: var(--bh-size-control-default); }
|
|
96
95
|
.ic-target small { position: absolute; left: 100%; margin-left: var(--bh-space-100); color: var(--bh-color-text-info); font: var(--bh-font-label-small); }
|
|
97
96
|
|
|
98
97
|
/* Common actions */
|
|
99
98
|
.prose .ic-actions td { vertical-align: middle; }
|
|
100
|
-
|
|
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; } }
|
|
101
101
|
.ic-action-icon { display: inline-flex; align-items: center; gap: var(--bh-space-150); color: var(--bh-color-icon); }
|
|
102
102
|
|
|
103
103
|
/* Do / Don’t: same shape as the Color pages. */
|
|
104
104
|
.ic-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
|
|
105
|
-
.ic-dd-panel { margin: 0; border: 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; }
|
|
106
106
|
.ic-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
|
|
107
107
|
.ic-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
|
|
108
108
|
.ic-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
|
|
@@ -114,8 +114,7 @@
|
|
|
114
114
|
|
|
115
115
|
.ic-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
|
|
116
116
|
.ic-row.is-icons { gap: var(--bh-space-200); color: var(--bh-color-icon); }
|
|
117
|
-
.ic-ibtn {
|
|
118
|
-
.ic-ibtn.is-outlined { border: 1px solid var(--bh-color-border); background: var(--bh-color-surface); }
|
|
117
|
+
.ic-ibtn.is-outlined { border-color: var(--bh-color-border); background: var(--bh-color-surface); }
|
|
119
118
|
.ic-bare { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--bh-color-icon); outline: 1px dashed var(--bh-color-border-danger); outline-offset: 0; }
|
|
120
119
|
.ic-text14 { display: inline-flex; align-items: center; gap: var(--bh-space-050); color: var(--c-ink); font: var(--bh-font-body-default); }
|
|
121
120
|
.ic-text14 svg { color: var(--bh-color-icon); }
|
|
@@ -126,10 +125,8 @@
|
|
|
126
125
|
.ic-text14.is-baseline svg { display: inline; margin-right: var(--bh-space-050); vertical-align: baseline; }
|
|
127
126
|
.ic-text14 .is-decor { color: var(--bh-color-border-brand); }
|
|
128
127
|
.ic-nav { display: grid; gap: var(--bh-space-025); width: 180px; }
|
|
129
|
-
.ic-nav-item { position: relative; display: flex; align-items: center; gap: var(--bh-space-100); height:
|
|
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); }
|
|
130
129
|
.ic-nav-item svg { color: var(--bh-color-icon); }
|
|
131
|
-
.ic-nav-item.is-selected { background: var(--bh-color-background-selected); }
|
|
132
|
-
.ic-nav-item.is-selected::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: var(--bh-border-width-selected); border-radius: var(--bh-radius-025); background: var(--bh-color-border-selected); }
|
|
133
130
|
.ic-tip-wrap { display: grid; justify-items: center; gap: var(--bh-space-075); }
|
|
134
|
-
.ic-tip { position: relative;
|
|
131
|
+
.ic-tip { position: relative; }
|
|
135
132
|
.ic-tip::after { content: ''; position: absolute; left: 50%; top: 100%; border: 4px solid transparent; border-top-color: var(--bh-color-surface-inverse); transform: translateX(-50%); }
|