baseline-foundry 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +588 -0
- package/config/experiments/ibm-plex-engine-smoke.json +115 -0
- package/config/experiments/ubuntu-engine-smoke.json +115 -0
- package/config/foundation-theme.json +117 -0
- package/config/tiers/app.json +120 -0
- package/config/tiers/documentation.json +120 -0
- package/config/tiers/editorial.json +120 -0
- package/config/tiers/os.json +120 -0
- package/dist/accordion.d.ts +5 -0
- package/dist/accordion.js +32 -0
- package/dist/application-layout.d.ts +4 -0
- package/dist/application-layout.js +181 -0
- package/dist/baseline-grid-overlay.d.ts +5 -0
- package/dist/baseline-grid-overlay.js +50 -0
- package/dist/baseline-grid-theme.d.ts +3 -0
- package/dist/baseline-grid-theme.js +3 -0
- package/dist/baseline-grid.d.ts +7 -0
- package/dist/baseline-grid.js +35 -0
- package/dist/build.d.ts +21 -0
- package/dist/build.js +440 -0
- package/dist/code-snippet.d.ts +6 -0
- package/dist/code-snippet.js +95 -0
- package/dist/contextual-menu.d.ts +4 -0
- package/dist/contextual-menu.js +156 -0
- package/dist/css-app-tier.d.ts +1 -0
- package/dist/css-app-tier.js +77 -0
- package/dist/css-components/article-pagination.d.ts +13 -0
- package/dist/css-components/article-pagination.js +151 -0
- package/dist/css-components/button-actions.d.ts +7 -0
- package/dist/css-components/button-actions.js +165 -0
- package/dist/css-components/cards-options.d.ts +6 -0
- package/dist/css-components/cards-options.js +180 -0
- package/dist/css-components/chip-badge-status.d.ts +10 -0
- package/dist/css-components/chip-badge-status.js +162 -0
- package/dist/css-components/content-card.d.ts +25 -0
- package/dist/css-components/content-card.js +517 -0
- package/dist/css-components/control-row.d.ts +2 -0
- package/dist/css-components/control-row.js +18 -0
- package/dist/css-components/cta-figure-aspect.d.ts +1 -0
- package/dist/css-components/cta-figure-aspect.js +123 -0
- package/dist/css-components/document-navigation.d.ts +13 -0
- package/dist/css-components/document-navigation.js +400 -0
- package/dist/css-components/editorial-content.d.ts +6 -0
- package/dist/css-components/editorial-content.js +52 -0
- package/dist/css-components/icon.d.ts +1 -0
- package/dist/css-components/icon.js +75 -0
- package/dist/css-components/interactive-feedback.d.ts +2 -0
- package/dist/css-components/interactive-feedback.js +230 -0
- package/dist/css-components/interactive-tables.d.ts +7 -0
- package/dist/css-components/interactive-tables.js +164 -0
- package/dist/css-components/linked-logo-site-layout.d.ts +21 -0
- package/dist/css-components/linked-logo-site-layout.js +214 -0
- package/dist/css-components/list-tree.d.ts +5 -0
- package/dist/css-components/list-tree.js +98 -0
- package/dist/css-components/list.d.ts +3 -0
- package/dist/css-components/list.js +119 -0
- package/dist/css-components/logo-media.d.ts +16 -0
- package/dist/css-components/logo-media.js +219 -0
- package/dist/css-components/navigation-layout.d.ts +5 -0
- package/dist/css-components/navigation-layout.js +151 -0
- package/dist/css-components/panel.d.ts +6 -0
- package/dist/css-components/panel.js +148 -0
- package/dist/css-components/search-box-and-filter.d.ts +9 -0
- package/dist/css-components/search-box-and-filter.js +267 -0
- package/dist/css-components/sites-editorial-ports.d.ts +19 -0
- package/dist/css-components/sites-editorial-ports.js +264 -0
- package/dist/css-components/sites-foundation.d.ts +17 -0
- package/dist/css-components/sites-foundation.js +173 -0
- package/dist/css-components/sites-rich-lists.d.ts +18 -0
- package/dist/css-components/sites-rich-lists.js +364 -0
- package/dist/css-components/static-content-ports.d.ts +14 -0
- package/dist/css-components/static-content-ports.js +206 -0
- package/dist/css-components/tab-section.d.ts +19 -0
- package/dist/css-components/tab-section.js +103 -0
- package/dist/css-components/table.d.ts +7 -0
- package/dist/css-components/table.js +79 -0
- package/dist/css-components/tabs-choice-breadcrumbs.d.ts +9 -0
- package/dist/css-components/tabs-choice-breadcrumbs.js +307 -0
- package/dist/css-components/tiered-list-equal-height-row.d.ts +1 -0
- package/dist/css-components/tiered-list-equal-height-row.js +286 -0
- package/dist/css-components.d.ts +2 -0
- package/dist/css-components.js +2701 -0
- package/dist/css-grid.d.ts +1 -0
- package/dist/css-grid.js +179 -0
- package/dist/css.d.ts +6 -0
- package/dist/css.js +431 -0
- package/dist/experiments/ibm-plex-engine-smoke/styles.css +8969 -0
- package/dist/experiments/ibm-plex-engine-smoke/surfaces.json +604 -0
- package/dist/experiments/ibm-plex-engine-smoke/tokens.json +217 -0
- package/dist/in-page-navigation.d.ts +7 -0
- package/dist/in-page-navigation.js +136 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +18 -0
- package/dist/interactive-feedback.d.ts +14 -0
- package/dist/interactive-feedback.js +96 -0
- package/dist/interactive-tables.d.ts +28 -0
- package/dist/interactive-tables.js +184 -0
- package/dist/list-tree.d.ts +4 -0
- package/dist/list-tree.js +44 -0
- package/dist/panel-drawer.d.ts +4 -0
- package/dist/panel-drawer.js +171 -0
- package/dist/presets/app-tier/styles.css +9459 -0
- package/dist/presets/app-tier/surfaces.json +1225 -0
- package/dist/presets/app-tier/tokens.json +221 -0
- package/dist/presets/prose/styles.css +9442 -0
- package/dist/presets/prose/surfaces.json +1225 -0
- package/dist/presets/prose/tokens.json +221 -0
- package/dist/presets.d.ts +6 -0
- package/dist/presets.js +27 -0
- package/dist/range-controls.d.ts +9 -0
- package/dist/range-controls.js +73 -0
- package/dist/resizable-aside.d.ts +4 -0
- package/dist/resizable-aside.js +328 -0
- package/dist/side-navigation.d.ts +4 -0
- package/dist/side-navigation.js +219 -0
- package/dist/styles.css +9442 -0
- package/dist/surfaces.json +1225 -0
- package/dist/tabs.d.ts +4 -0
- package/dist/tabs.js +88 -0
- package/dist/tier-registry.d.ts +10 -0
- package/dist/tier-registry.js +25 -0
- package/dist/tiers/app/styles.css +9459 -0
- package/dist/tiers/app/surfaces.json +1225 -0
- package/dist/tiers/app/tokens.json +221 -0
- package/dist/tiers/documentation/styles.css +9442 -0
- package/dist/tiers/documentation/surfaces.json +1225 -0
- package/dist/tiers/documentation/tokens.json +221 -0
- package/dist/tiers/editorial/styles.css +9442 -0
- package/dist/tiers/editorial/surfaces.json +1225 -0
- package/dist/tiers/editorial/tokens.json +221 -0
- package/dist/tiers/os/styles.css +9442 -0
- package/dist/tiers/os/surfaces.json +1225 -0
- package/dist/tiers/os/tokens.json +221 -0
- package/dist/tokens.json +221 -0
- package/dist/tooltip.d.ts +4 -0
- package/dist/tooltip.js +70 -0
- package/dist/top-navigation.d.ts +4 -0
- package/dist/top-navigation.js +354 -0
- package/dist/types.d.ts +155 -0
- package/dist/types.js +1 -0
- package/dist/vanilla-theme-colors.d.ts +5 -0
- package/dist/vanilla-theme-colors.js +208 -0
- package/docs/publishing.md +66 -0
- package/package.json +108 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export function cardsOptionsCss(options) {
|
|
2
|
+
const { bodyStrongTypeStyles, bodyTypeStyles } = options;
|
|
3
|
+
return `:where(.bf-theme) :where(.bf-card, .bf-card.is-highlighted, .bf-card.is-overlay, .bf-card.is-muted) {
|
|
4
|
+
--bf-card-background: var(--bf-color-background-default);
|
|
5
|
+
--bf-card-border: var(--bf-color-border-default);
|
|
6
|
+
--bf-card-shadow: none;
|
|
7
|
+
background: var(--bf-card-background);
|
|
8
|
+
border: var(--bf-border-width) solid var(--bf-card-border);
|
|
9
|
+
box-shadow: var(--bf-card-shadow);
|
|
10
|
+
color: var(--bf-color-text-default);
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--bf-field-gap);
|
|
14
|
+
max-inline-size: 100%;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
padding-block-end: calc(var(--bf-panel-padding-block) - var(--bf-border-width));
|
|
17
|
+
padding-block-start: calc(var(--bf-panel-padding-block) - var(--bf-border-width));
|
|
18
|
+
padding-inline: var(--bf-panel-padding-inline);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(.bf-theme) :where(.bf-card.is-highlighted) {
|
|
22
|
+
--bf-card-background: color-mix(in srgb, var(--bf-color-background-default) 82%, white 18%);
|
|
23
|
+
--bf-card-shadow: 0 calc(var(--bf-control-visual-size) * 0.25) calc(var(--bf-control-visual-size) * 0.75) rgba(0, 0, 0, 0.16);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.bf-theme) :where(.bf-card.is-overlay) {
|
|
27
|
+
--bf-card-background: var(--bf-color-background-alt);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.bf-theme) :where(.bf-card.is-muted) {
|
|
31
|
+
--bf-card-background: color-mix(in srgb, var(--bf-color-background-default) 88%, black 12%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(.bf-theme) :where(a.bf-card, a.bf-card.is-highlighted, a.bf-card.is-overlay, a.bf-card.is-muted) {
|
|
35
|
+
color: inherit;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.bf-theme) :where(a.bf-card:hover, a.bf-card.is-highlighted:hover, a.bf-card.is-overlay:hover, a.bf-card.is-muted:hover) {
|
|
42
|
+
border-color: var(--bf-color-focus);
|
|
43
|
+
transform: translateY(-1px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(.bf-theme) :where(a.bf-card:focus:not(:focus-visible), a.bf-card.is-highlighted:focus:not(:focus-visible), a.bf-card.is-overlay:focus:not(:focus-visible), a.bf-card.is-muted:focus:not(:focus-visible)) {
|
|
47
|
+
outline: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(.bf-theme) :where(a.bf-card:focus-visible, a.bf-card.is-highlighted:focus-visible, a.bf-card.is-overlay:focus-visible, a.bf-card.is-muted:focus-visible) {
|
|
51
|
+
outline: 2px solid var(--bf-color-focus);
|
|
52
|
+
outline-offset: -2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where(.bf-theme) :where(.bf-card.is-preview) {
|
|
56
|
+
align-content: start;
|
|
57
|
+
min-inline-size: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(.bf-theme) :where(.bf-card-preview) {
|
|
61
|
+
aspect-ratio: 3 / 2;
|
|
62
|
+
background:
|
|
63
|
+
linear-gradient(180deg, color-mix(in srgb, var(--bf-color-background-default) 78%, var(--bf-color-background-alt) 22%), var(--bf-color-background-alt)),
|
|
64
|
+
var(--bf-color-background-alt);
|
|
65
|
+
border: var(--bf-border-width) solid var(--bf-color-border-low-contrast);
|
|
66
|
+
display: grid;
|
|
67
|
+
min-inline-size: 0;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
place-items: center;
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(.bf-theme) :where(.bf-card-preview.is-missing)::after {
|
|
74
|
+
color: var(--bf-color-text-inactive);
|
|
75
|
+
content: "Capture missing";
|
|
76
|
+
font-size: 0.75rem;
|
|
77
|
+
letter-spacing: 0.04em;
|
|
78
|
+
text-transform: uppercase;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where(.bf-theme) :where(.bf-card-preview-image) {
|
|
82
|
+
block-size: 100%;
|
|
83
|
+
display: block;
|
|
84
|
+
inline-size: 100%;
|
|
85
|
+
object-fit: contain;
|
|
86
|
+
object-position: center;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.bf-theme) :where(.bf-card-image) {
|
|
90
|
+
display: block;
|
|
91
|
+
inline-size: 100%;
|
|
92
|
+
margin: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(.bf-theme) :where(.bf-card-header) {
|
|
96
|
+
border-bottom: var(--bf-border-width) solid var(--bf-color-border-low-contrast);
|
|
97
|
+
display: grid;
|
|
98
|
+
gap: var(--bf-field-gap);
|
|
99
|
+
padding-block-end: calc(var(--bf-panel-padding-block) - var(--bf-border-width));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:where(.bf-theme) :where(.bf-card-inner) {
|
|
103
|
+
display: grid;
|
|
104
|
+
gap: var(--bf-field-gap);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(.bf-theme) :where(.bf-card-content) {
|
|
108
|
+
min-inline-size: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:where(.bf-theme) :where(.bf-card-thumbnail) {
|
|
112
|
+
block-size: auto;
|
|
113
|
+
max-block-size: calc(var(--bf-control-visual-size) * 2);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:where(.bf-theme) :where(.bf-option-grid) {
|
|
117
|
+
display: grid;
|
|
118
|
+
gap: calc(var(--bf-baseline) * 2.5);
|
|
119
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:where(.bf-theme) :where(.bf-option-card) {
|
|
123
|
+
align-content: start;
|
|
124
|
+
align-items: start;
|
|
125
|
+
background: color-mix(in srgb, var(--bf-color-background-default) 88%, black 12%);
|
|
126
|
+
border: var(--bf-border-width) solid var(--bf-color-border-default);
|
|
127
|
+
color: var(--bf-color-text-default);
|
|
128
|
+
display: grid;
|
|
129
|
+
gap: var(--bf-field-gap);
|
|
130
|
+
margin: 0;
|
|
131
|
+
min-block-size: calc((var(--bf-control-box-size) * 2) + var(--bf-baseline));
|
|
132
|
+
min-inline-size: 0;
|
|
133
|
+
padding-block-end: calc(var(--bf-panel-padding-block) - var(--bf-border-width));
|
|
134
|
+
padding-block-start: calc(var(--bf-panel-padding-block) - var(--bf-border-width));
|
|
135
|
+
padding-inline: var(--bf-panel-padding-inline);
|
|
136
|
+
text-align: left;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:where(.bf-theme) :where(button.bf-option-card) {
|
|
140
|
+
appearance: none;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:where(.bf-theme) :where(button.bf-option-card:hover:not(:disabled)) {
|
|
146
|
+
background: var(--bf-color-background-hover);
|
|
147
|
+
border-color: var(--bf-color-focus);
|
|
148
|
+
transform: translateY(-1px);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:where(.bf-theme) :where(.bf-option-card.is-active),
|
|
152
|
+
:where(.bf-theme) :where(button.bf-option-card:disabled) {
|
|
153
|
+
background: color-mix(in srgb, var(--bf-color-background-active) 82%, var(--bf-color-focus) 18%);
|
|
154
|
+
border-color: var(--bf-color-focus);
|
|
155
|
+
color: var(--bf-color-text-default);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:where(.bf-theme) :where(button.bf-option-card:focus-visible) {
|
|
159
|
+
outline: 2px solid var(--bf-color-focus);
|
|
160
|
+
outline-offset: -2px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
:where(.bf-theme) :where(.bf-option-card-label) {
|
|
164
|
+
${bodyStrongTypeStyles} display: block;
|
|
165
|
+
margin: 0;
|
|
166
|
+
min-inline-size: 0;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:where(.bf-theme) :where(.bf-option-card-meta) {
|
|
170
|
+
${bodyTypeStyles} color: var(--bf-color-text-muted);
|
|
171
|
+
display: block;
|
|
172
|
+
margin: 0;
|
|
173
|
+
min-inline-size: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(.bf-theme) :where(.bf-option-card-meta.is-quiet) {
|
|
177
|
+
color: var(--bf-color-text-inactive);
|
|
178
|
+
}
|
|
179
|
+
`;
|
|
180
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ChipBadgeStatusCssOptions = {
|
|
2
|
+
bodyCaseTypeStyles: string;
|
|
3
|
+
bodyLineHeight: string;
|
|
4
|
+
bodySelectedStartNudge: string;
|
|
5
|
+
h5SelectedEndNudge: string;
|
|
6
|
+
h5SelectedStartNudge: string;
|
|
7
|
+
bodyTypeStyles: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function chipBadgeStatusCss(options: ChipBadgeStatusCssOptions): string;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
export function chipBadgeStatusCss(options) {
|
|
2
|
+
const { bodyCaseTypeStyles, bodyLineHeight, bodySelectedStartNudge, h5SelectedEndNudge, h5SelectedStartNudge, bodyTypeStyles, } = options;
|
|
3
|
+
return `:where(.bf-theme) :where(.bf-chip, .bf-chip.is-positive, .bf-chip.is-caution, .bf-chip.is-negative, .bf-chip.is-information) {
|
|
4
|
+
--bf-ui-chip-border: var(--bf-color-border-neutral);
|
|
5
|
+
--bf-ui-chip-border-hover: var(--bf-color-border-neutral);
|
|
6
|
+
--bf-ui-chip-border-active: var(--bf-color-border-neutral);
|
|
7
|
+
--bf-ui-chip-background: var(--bf-color-background-neutral-default);
|
|
8
|
+
--bf-ui-chip-background-hover: var(--bf-color-background-neutral-hover);
|
|
9
|
+
--bf-ui-chip-background-active: var(--bf-color-background-neutral-active);
|
|
10
|
+
${bodyTypeStyles} align-items: baseline;
|
|
11
|
+
background-color: var(--bf-ui-chip-background);
|
|
12
|
+
border: var(--bf-border-width) solid var(--bf-ui-chip-border);
|
|
13
|
+
border-radius: 1rem;
|
|
14
|
+
color: var(--bf-color-text-default);
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
gap: 0;
|
|
17
|
+
inline-size: fit-content;
|
|
18
|
+
justify-self: start;
|
|
19
|
+
margin: 0 var(--bf-ui-chip-padding-inline) var(--bf-field-gap) 0;
|
|
20
|
+
max-inline-size: 100%;
|
|
21
|
+
min-block-size: var(--bf-ui-chip-block-size);
|
|
22
|
+
padding-block: var(--bf-ui-chip-padding-block);
|
|
23
|
+
padding-inline: var(--bf-ui-chip-padding-inline);
|
|
24
|
+
position: relative;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
user-select: none;
|
|
27
|
+
vertical-align: calc(var(--bf-border-width) - ${bodySelectedStartNudge});
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(.bf-theme) :where(.bf-chip.is-positive) {
|
|
32
|
+
--bf-ui-chip-border: var(--bf-color-border-positive);
|
|
33
|
+
--bf-ui-chip-border-hover: var(--bf-color-border-positive);
|
|
34
|
+
--bf-ui-chip-border-active: var(--bf-color-border-positive);
|
|
35
|
+
--bf-ui-chip-background: var(--bf-color-background-positive-default);
|
|
36
|
+
--bf-ui-chip-background-hover: var(--bf-color-background-positive-hover);
|
|
37
|
+
--bf-ui-chip-background-active: var(--bf-color-background-positive-active);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.bf-theme) :where(.bf-chip.is-caution) {
|
|
41
|
+
--bf-ui-chip-border: var(--bf-color-border-caution);
|
|
42
|
+
--bf-ui-chip-border-hover: var(--bf-color-border-caution);
|
|
43
|
+
--bf-ui-chip-border-active: var(--bf-color-border-caution);
|
|
44
|
+
--bf-ui-chip-background: var(--bf-color-background-caution-default);
|
|
45
|
+
--bf-ui-chip-background-hover: var(--bf-color-background-caution-hover);
|
|
46
|
+
--bf-ui-chip-background-active: var(--bf-color-background-caution-active);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.bf-theme) :where(.bf-chip.is-negative) {
|
|
50
|
+
--bf-ui-chip-border: var(--bf-color-border-negative);
|
|
51
|
+
--bf-ui-chip-border-hover: var(--bf-color-border-negative);
|
|
52
|
+
--bf-ui-chip-border-active: var(--bf-color-border-negative);
|
|
53
|
+
--bf-ui-chip-background: var(--bf-color-background-negative-default);
|
|
54
|
+
--bf-ui-chip-background-hover: var(--bf-color-background-negative-hover);
|
|
55
|
+
--bf-ui-chip-background-active: var(--bf-color-background-negative-active);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:where(.bf-theme) :where(.bf-chip.is-information) {
|
|
59
|
+
--bf-ui-chip-border: var(--bf-color-border-information);
|
|
60
|
+
--bf-ui-chip-border-hover: var(--bf-color-border-information);
|
|
61
|
+
--bf-ui-chip-border-active: var(--bf-color-border-information);
|
|
62
|
+
--bf-ui-chip-background: var(--bf-color-background-information-default);
|
|
63
|
+
--bf-ui-chip-background-hover: var(--bf-color-background-information-hover);
|
|
64
|
+
--bf-ui-chip-background-active: var(--bf-color-background-information-active);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(.bf-theme) :where(.bf-chip, .bf-chip.is-positive, .bf-chip.is-caution, .bf-chip.is-negative, .bf-chip.is-information):hover {
|
|
68
|
+
background-color: var(--bf-ui-chip-background-hover);
|
|
69
|
+
border-color: var(--bf-ui-chip-border-hover);
|
|
70
|
+
text-decoration: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(.bf-theme) :where(.bf-chip, .bf-chip.is-positive, .bf-chip.is-caution, .bf-chip.is-negative, .bf-chip.is-information):is(:active, [aria-pressed='true'], .is-selected) {
|
|
74
|
+
background-color: var(--bf-ui-chip-background-active);
|
|
75
|
+
border-color: var(--bf-ui-chip-border-active);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where(.bf-theme) :where(.bf-chip-lead, .bf-chip-value) {
|
|
79
|
+
${bodyTypeStyles} color: var(--bf-color-text-default);
|
|
80
|
+
display: inline;
|
|
81
|
+
margin: 0;
|
|
82
|
+
min-inline-size: 0;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
padding: 0;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
vertical-align: baseline;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.bf-theme) :where(.bf-chip-lead) {
|
|
90
|
+
${bodyCaseTypeStyles} color: var(--bf-color-text-muted);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:where(.bf-theme) :where(.bf-chip-lead + .bf-chip-value)::before {
|
|
94
|
+
${bodyTypeStyles} color: var(--bf-color-text-muted);
|
|
95
|
+
color: var(--bf-color-text-muted);
|
|
96
|
+
content: ": ";
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:where(.bf-theme) :where(.bf-badge, .bf-badge.is-negative) {
|
|
100
|
+
${bodyTypeStyles} align-items: center;
|
|
101
|
+
background-color: var(--bf-color-text-default);
|
|
102
|
+
border-radius: 1rem;
|
|
103
|
+
box-sizing: content-box;
|
|
104
|
+
color: var(--bf-color-background-default);
|
|
105
|
+
display: inline-block;
|
|
106
|
+
margin: 0;
|
|
107
|
+
max-inline-size: 4ch;
|
|
108
|
+
min-width: calc(${bodyLineHeight} - (var(--bf-ui-badge-padding-inline) * 2));
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
padding-block: 0;
|
|
111
|
+
padding-inline: var(--bf-ui-badge-padding-inline);
|
|
112
|
+
text-align: center;
|
|
113
|
+
text-indent: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:where(.bf-theme) :where(.bf-badge.is-negative) {
|
|
117
|
+
background-color: var(--bf-color-button-negative-default);
|
|
118
|
+
color: var(--bf-color-button-negative-text);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(.bf-theme) :where(.bf-chip, .bf-chip.is-positive, .bf-chip.is-caution, .bf-chip.is-negative, .bf-chip.is-information) :where(.bf-badge, .bf-badge.is-negative) {
|
|
122
|
+
align-self: center;
|
|
123
|
+
margin-inline-end: var(--bf-ui-badge-overhang);
|
|
124
|
+
margin-inline-start: var(--bf-ui-chip-padding-inline);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:where(.bf-theme) :where(.bf-status-label, .bf-status-label.is-positive, .bf-status-label.is-caution, .bf-status-label.is-information, .bf-status-label.is-negative) {
|
|
128
|
+
--bf-ui-status-background: color-mix(in srgb, var(--bf-color-background-alt) 70%, black);
|
|
129
|
+
--bf-ui-status-color: var(--bf-color-button-positive-text);
|
|
130
|
+
background-color: var(--bf-ui-status-background);
|
|
131
|
+
color: var(--bf-ui-status-color);
|
|
132
|
+
display: inline-block;
|
|
133
|
+
${bodyTypeStyles} margin: 0;
|
|
134
|
+
padding-block-end: ${h5SelectedEndNudge};
|
|
135
|
+
padding-block-start: ${h5SelectedStartNudge};
|
|
136
|
+
padding-inline: var(--bf-ui-chip-padding-inline);
|
|
137
|
+
text-align: center;
|
|
138
|
+
text-decoration: none;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:where(.bf-theme) :where(.bf-status-label.is-positive) {
|
|
143
|
+
--bf-ui-status-background: var(--bf-color-border-positive);
|
|
144
|
+
--bf-ui-status-color: var(--bf-color-button-positive-text);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:where(.bf-theme) :where(.bf-status-label.is-caution) {
|
|
148
|
+
--bf-ui-status-background: var(--bf-color-border-caution);
|
|
149
|
+
--bf-ui-status-color: #111111;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:where(.bf-theme) :where(.bf-status-label.is-information) {
|
|
153
|
+
--bf-ui-status-background: var(--bf-color-border-information);
|
|
154
|
+
--bf-ui-status-color: var(--bf-color-button-positive-text);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:where(.bf-theme) :where(.bf-status-label.is-negative) {
|
|
158
|
+
--bf-ui-status-background: var(--bf-color-border-negative);
|
|
159
|
+
--bf-ui-status-color: var(--bf-color-button-negative-text);
|
|
160
|
+
}
|
|
161
|
+
`;
|
|
162
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rich content-card parity with current Vanilla. This intentionally remains a
|
|
3
|
+
* separate family from the general-purpose `bf-card` primitive.
|
|
4
|
+
*
|
|
5
|
+
* Vanilla -> BF rhythm mapping (Vanilla's spacing unit is 0.5rem):
|
|
6
|
+
* - 16px content padding/gap -> `--bf-space-2`.
|
|
7
|
+
* - 8px footer/image spacing -> `--bf-space-1`.
|
|
8
|
+
* - 32px wrapper separation -> `--bf-space-4`.
|
|
9
|
+
* - 380px vertical minimum -> 48 BF baselines (384px in editorial), avoiding
|
|
10
|
+
* Vanilla's half-baseline ending while retaining its occupied silhouette.
|
|
11
|
+
* - 192px horizontal/text minimum -> 24 BF baselines.
|
|
12
|
+
* - 352px eight-column minimum -> 44 BF baselines.
|
|
13
|
+
* - 284px horizontal media width -> 36 BF baselines (288px in editorial).
|
|
14
|
+
*
|
|
15
|
+
* The root card establishes a named query container. Only descendants change
|
|
16
|
+
* inside container queries; this avoids the invalid query-the-container-itself
|
|
17
|
+
* pattern. Global media queries are retained only where Vanilla's behaviour is
|
|
18
|
+
* genuinely viewport/input based (grid span, hover reveal and line clamping).
|
|
19
|
+
*
|
|
20
|
+
* The expanded click target is a pseudo-element of the one real main link,
|
|
21
|
+
* rather than a duplicate aria-hidden overlay anchor. Nested controls are
|
|
22
|
+
* raised above it, so every distinct action stays pointer- and keyboard-
|
|
23
|
+
* reachable.
|
|
24
|
+
*/
|
|
25
|
+
export declare function contentCardCss(): string;
|