baseline-foundry 0.1.3 → 0.1.4

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.
Files changed (43) hide show
  1. package/README.md +568 -552
  2. package/config/experiments/ibm-plex-engine-smoke.json +115 -115
  3. package/config/experiments/ubuntu-engine-smoke.json +115 -115
  4. package/config/foundation-theme.json +110 -110
  5. package/config/tiers/app.json +116 -116
  6. package/config/tiers/documentation.json +116 -116
  7. package/config/tiers/editorial.json +116 -116
  8. package/config/tiers/os.json +116 -116
  9. package/dist/baseline-grid-overlay.js +43 -43
  10. package/dist/css-app-tier.js +73 -73
  11. package/dist/css-components/article-pagination.js +140 -140
  12. package/dist/css-components/button-actions.js +161 -161
  13. package/dist/css-components/cards-options.js +176 -176
  14. package/dist/css-components/chip-badge-status.js +158 -158
  15. package/dist/css-components/content-card.js +490 -490
  16. package/dist/css-components/control-row.js +14 -14
  17. package/dist/css-components/cta-figure-aspect.js +120 -120
  18. package/dist/css-components/document-navigation.js +390 -390
  19. package/dist/css-components/editorial-content.js +42 -42
  20. package/dist/css-components/icon.js +72 -72
  21. package/dist/css-components/interactive-feedback.js +217 -217
  22. package/dist/css-components/interactive-tables.js +155 -155
  23. package/dist/css-components/legacy-navigation.d.ts +9 -0
  24. package/dist/css-components/legacy-navigation.js +763 -0
  25. package/dist/css-components/linked-logo-site-layout.js +177 -177
  26. package/dist/css-components/list-tree.js +94 -94
  27. package/dist/css-components/logo-media.js +201 -201
  28. package/dist/css-components/navigation-layout.js +144 -144
  29. package/dist/css-components/panel.js +144 -144
  30. package/dist/css-components/search-box-and-filter.js +263 -263
  31. package/dist/css-components/sites-editorial-ports.js +243 -243
  32. package/dist/css-components/sites-foundation.js +146 -146
  33. package/dist/css-components/sites-rich-lists.js +344 -344
  34. package/dist/css-components/static-content-ports.js +182 -182
  35. package/dist/css-components/tab-section.js +82 -82
  36. package/dist/css-components/table.js +75 -75
  37. package/dist/css-components/tabs-choice-breadcrumbs.js +303 -303
  38. package/dist/css-components/tiered-list-equal-height-row.js +271 -271
  39. package/dist/css-components.js +1791 -2542
  40. package/dist/css-grid.js +172 -172
  41. package/dist/css.js +240 -240
  42. package/docs/publishing.md +30 -13
  43. package/package.json +119 -108
@@ -1,230 +1,230 @@
1
1
  /** Credential and transient-feedback compositions built on BF controls and type roles. */
2
2
  export function interactiveFeedbackCss() {
3
- return `/* ------------------------------------------------------------------ */
4
- /* Credential reveal and repeated validation */
5
- /* ------------------------------------------------------------------ */
6
-
7
- :where(.bf-theme) :where(.bf-credential) {
8
- min-inline-size: 0;
9
- }
10
-
11
- :where(.bf-theme) :where(.bf-credential-header) {
12
- align-items: flex-start;
13
- display: flex;
14
- gap: var(--bf-space-2);
15
- justify-content: space-between;
16
- min-inline-size: 0;
17
- }
18
-
19
- :where(.bf-theme) :where(.bf-credential-header > .bf-form-label) {
20
- flex: 1 1 auto;
21
- min-inline-size: 0;
22
- }
23
-
24
- /* This button is a control inside the field heading, so the composition
25
- explicitly trims the standalone control's trailing flow compensation. */
26
- :where(.bf-theme) :where(.bf-password-reveal) {
27
- border: 0;
28
- flex: 0 0 auto;
29
- margin-block-end: 0;
30
- /* This attached action shares the label row. Its borderless base uses the
31
- paired body nudges directly, preserving the row's occupied grid block. */
32
- padding-block: var(--bf-body-nudge-start) var(--bf-body-nudge-end);
33
- }
34
-
35
- :where(.bf-theme) :where(.bf-password-reveal > .bf-password-reveal-icon) {
36
- background-color: currentColor;
37
- background-image: none;
38
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.002c2.946 0 5.612 1.666 8 4.998-2.388 3.332-5.054 4.998-8 4.998C5.054 12.998 2.388 11.332 0 8c2.388-3.332 5.054-4.998 8-4.998zM8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm0 1.49a1.51 1.51 0 1 1 0 3.02 1.51 1.51 0 0 1 0-3.02z'/%3E%3C/svg%3E");
39
- mask-position: center;
40
- mask-repeat: no-repeat;
41
- mask-size: contain;
42
- }
43
-
44
- :where(.bf-theme) :where(.bf-password-reveal[aria-pressed='true'] > .bf-password-reveal-icon) {
45
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m13.938.624 1.06 1.06-2.653 2.653c1.27.823 2.475 2.026 3.616 3.61v.106l-.193.264C13.44 11.44 10.851 13 8 13a7.654 7.654 0 0 1-3.479-.839l-2.354 2.354-1.06-1.06L13.937.624zm-2.682 4.802L9.714 6.969a2 2 0 0 1-2.745 2.745L5.653 11.03a6.114 6.114 0 0 0 2.098.465L8 11.5c2.076 0 4.03-1.042 5.893-3.233L14.115 8l-.222-.267c-.858-1.01-1.736-1.775-2.637-2.307zM8 3c.608 0 1.203.07 1.787.213L8.482 4.519a6.072 6.072 0 0 0-.233-.014L8 4.5c-2.076 0-4.03 1.042-5.893 3.233L1.884 8l.223.267c.428.503.86.946 1.3 1.33l-1.062 1.061C1.535 9.938.754 9.052 0 8c2.388-3.333 5.054-5 8-5z'/%3E%3C/svg%3E");
46
- }
47
-
48
- /* Revealed readonly credentials stay legible; the generic readonly treatment
49
- remains correct for ordinary text fields outside this explicit composition. */
50
- :where(.bf-theme) :where(.bf-credential input[type='text'][readonly]) {
51
- color: var(--bf-color-text-default);
52
- }
53
-
3
+ return `/* ------------------------------------------------------------------ */
4
+ /* Credential reveal and repeated validation */
5
+ /* ------------------------------------------------------------------ */
6
+
7
+ :where(.bf-theme) :where(.bf-credential) {
8
+ min-inline-size: 0;
9
+ }
10
+
11
+ :where(.bf-theme) :where(.bf-credential-header) {
12
+ align-items: flex-start;
13
+ display: flex;
14
+ gap: var(--bf-space-2);
15
+ justify-content: space-between;
16
+ min-inline-size: 0;
17
+ }
18
+
19
+ :where(.bf-theme) :where(.bf-credential-header > .bf-form-label) {
20
+ flex: 1 1 auto;
21
+ min-inline-size: 0;
22
+ }
23
+
24
+ /* This button is a control inside the field heading, so the composition
25
+ explicitly trims the standalone control's trailing flow compensation. */
26
+ :where(.bf-theme) :where(.bf-password-reveal) {
27
+ border: 0;
28
+ flex: 0 0 auto;
29
+ margin-block-end: 0;
30
+ /* This attached action shares the label row. Its borderless base uses the
31
+ paired body nudges directly, preserving the row's occupied grid block. */
32
+ padding-block: var(--bf-body-nudge-start) var(--bf-body-nudge-end);
33
+ }
34
+
35
+ :where(.bf-theme) :where(.bf-password-reveal > .bf-password-reveal-icon) {
36
+ background-color: currentColor;
37
+ background-image: none;
38
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.002c2.946 0 5.612 1.666 8 4.998-2.388 3.332-5.054 4.998-8 4.998C5.054 12.998 2.388 11.332 0 8c2.388-3.332 5.054-4.998 8-4.998zM8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm0 1.49a1.51 1.51 0 1 1 0 3.02 1.51 1.51 0 0 1 0-3.02z'/%3E%3C/svg%3E");
39
+ mask-position: center;
40
+ mask-repeat: no-repeat;
41
+ mask-size: contain;
42
+ }
43
+
44
+ :where(.bf-theme) :where(.bf-password-reveal[aria-pressed='true'] > .bf-password-reveal-icon) {
45
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m13.938.624 1.06 1.06-2.653 2.653c1.27.823 2.475 2.026 3.616 3.61v.106l-.193.264C13.44 11.44 10.851 13 8 13a7.654 7.654 0 0 1-3.479-.839l-2.354 2.354-1.06-1.06L13.937.624zm-2.682 4.802L9.714 6.969a2 2 0 0 1-2.745 2.745L5.653 11.03a6.114 6.114 0 0 0 2.098.465L8 11.5c2.076 0 4.03-1.042 5.893-3.233L14.115 8l-.222-.267c-.858-1.01-1.736-1.775-2.637-2.307zM8 3c.608 0 1.203.07 1.787.213L8.482 4.519a6.072 6.072 0 0 0-.233-.014L8 4.5c-2.076 0-4.03 1.042-5.893 3.233L1.884 8l.223.267c.428.503.86.946 1.3 1.33l-1.062 1.061C1.535 9.938.754 9.052 0 8c2.388-3.333 5.054-5 8-5z'/%3E%3C/svg%3E");
46
+ }
47
+
48
+ /* Revealed readonly credentials stay legible; the generic readonly treatment
49
+ remains correct for ordinary text fields outside this explicit composition. */
50
+ :where(.bf-theme) :where(.bf-credential input[type='text'][readonly]) {
51
+ color: var(--bf-color-text-default);
52
+ }
53
+
54
54
  :where(.bf-theme) :where(.bf-credential-validation) {
55
55
  align-content: start;
56
56
  display: grid;
57
57
  gap: var(--bf-space-1);
58
58
  list-style: none;
59
- margin-block: 0;
60
- padding-inline-start: 0;
61
- }
62
-
59
+ margin-block: 0;
60
+ padding-inline-start: 0;
61
+ }
62
+
63
63
  :where(.bf-theme) :where(.bf-credential-validation > .bf-validation) {
64
64
  align-content: start;
65
65
  display: grid;
66
66
  margin-block: 0;
67
- min-inline-size: 0;
68
- }
69
-
70
- /* ------------------------------------------------------------------ */
71
- /* Notification — transient status feedback, distinct from bf-notice */
72
- /* ------------------------------------------------------------------ */
73
-
74
- :where(.bf-theme) :where(.bf-notification, .bf-notification.is-information, .bf-notification.is-positive, .bf-notification.is-caution, .bf-notification.is-negative) {
75
- --bf-notification-accent: var(--bf-color-border-information);
76
- background: var(--bf-color-background-default);
77
- border: var(--bf-border-width) solid var(--bf-color-border-default);
78
- border-inline-start: var(--bf-bar-thickness) solid var(--bf-notification-accent);
79
- color: var(--bf-color-text-default);
80
- margin-block: 0 var(--bf-space-3);
81
- max-inline-size: 100%;
82
- min-inline-size: 0;
83
- overflow-wrap: anywhere;
84
- padding-block: calc(var(--bf-space-1) - var(--bf-border-width));
85
- padding-inline: calc((var(--bf-space-2) * 2) + var(--bf-icon-size-default)) 0;
86
- position: relative;
87
- }
88
-
89
- :where(.bf-theme) :where(.bf-notification.is-positive) {
90
- --bf-notification-accent: var(--bf-color-border-positive);
91
- }
92
-
93
- :where(.bf-theme) :where(.bf-notification.is-caution) {
94
- --bf-notification-accent: var(--bf-color-border-caution);
95
- }
96
-
97
- :where(.bf-theme) :where(.bf-notification.is-negative) {
98
- --bf-notification-accent: var(--bf-color-border-negative);
99
- }
100
-
101
- :where(.bf-theme) :where(.bf-notification[hidden]) {
102
- display: none;
103
- }
104
-
105
- :where(.bf-theme) :where(.bf-notification.is-borderless) {
106
- border: 0;
107
- padding-block: 0;
108
- padding-inline: calc(var(--bf-space-2) * 2) 0;
109
- }
110
-
111
- :where(.bf-theme) :where(.bf-notification-icon) {
112
- background-color: var(--bf-notification-accent);
113
- background-image: none;
114
- inset-block-start: calc(var(--bf-space-1) + ((var(--bf-body-line-height) - var(--bf-icon-size-default)) / 2) + var(--bf-body-nudge-start));
115
- inset-inline-start: var(--bf-space-2);
116
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zm-.75 5.25h1.5v5h-1.5v-5zM8 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
117
- mask-position: center;
118
- mask-repeat: no-repeat;
119
- mask-size: contain;
120
- position: absolute;
121
- }
122
-
123
- :where(.bf-theme) :where(.bf-notification.is-positive > .bf-notification-icon) {
124
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zm2.814 2.45 1.203.897-5.537 7.43-3.485-3.694 1.09-1.03 2.259 2.394 4.47-5.997z'/%3E%3C/svg%3E");
125
- }
126
-
127
- :where(.bf-theme) :where(.bf-notification.is-caution > .bf-notification-icon) {
128
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.865 1.5 15.77 13.5a1 1 0 0 1-.866 1.5H1.096a1 1 0 0 1-.866-1.5l6.905-12a1 1 0 0 1 1.73 0zM8 3.49 2.392 13.5h11.216L8 3.49zm-.75 3.01h1.5v3.75h-1.5V6.5zM8 11.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
129
- }
130
-
131
- :where(.bf-theme) :where(.bf-notification.is-negative > .bf-notification-icon) {
132
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zm2.282 3.138 1.06 1.061L9.052 7.99l2.291 2.292-1.061 1.06L7.99 9.052l-2.291 2.291-1.061-1.061L6.929 7.99 4.638 5.699l1.061-1.061L7.99 6.929l2.292-2.291z'/%3E%3C/svg%3E");
133
- }
134
-
135
- :where(.bf-theme) :where(.bf-notification.is-borderless > .bf-notification-icon) {
136
- inset-block-start: calc(((var(--bf-body-line-height) - var(--bf-icon-size-default)) / 2) + var(--bf-body-nudge-start));
137
- inset-inline-start: 0;
138
- }
139
-
140
- :where(.bf-theme) :where(.bf-notification-content, .bf-notification-meta) {
141
- max-inline-size: 100%;
142
- min-inline-size: 0;
143
- }
144
-
145
- :where(.bf-theme) :where(.bf-notification-content) {
146
- margin-block-end: calc(var(--bf-space-2) - var(--bf-body-nudge-start));
147
- padding-block-start: var(--bf-body-nudge-start);
148
- padding-inline-end: var(--bf-space-4);
149
- }
150
-
151
- :where(.bf-theme) :where(.bf-notification-title, .bf-notification-message, .bf-notification-timestamp) {
152
- font-family: var(--bf-body-font-family);
153
- font-size: var(--bf-body-font-size);
154
- font-style: var(--bf-body-font-style);
155
- line-height: var(--bf-body-line-height);
156
- max-inline-size: 100%;
157
- }
158
-
159
- :where(.bf-theme) :where(.bf-notification-title) {
160
- font-weight: 600;
161
- margin-block: 0;
162
- padding-block: 0;
163
- }
164
-
165
- :where(.bf-theme) :where(.bf-notification-message) {
166
- font-weight: var(--bf-body-font-weight);
167
- margin-block: 0;
168
- padding-block: 0;
169
- }
170
-
171
- :where(.bf-theme) :where(.bf-notification.is-inline .bf-notification-title, .bf-notification.is-inline .bf-notification-message) {
172
- display: inline;
173
- }
174
-
175
- :where(.bf-theme) :where(.bf-notification-close) {
176
- block-size: calc((var(--bf-space-1) * 2) + var(--bf-icon-size-default));
177
- border: 0;
178
- inline-size: var(--bf-icon-size-default);
179
- margin-block-end: 0;
180
- padding: 0;
181
- position: absolute;
182
- inset-block-start: var(--bf-space-1);
183
- inset-inline-end: var(--bf-space-1);
184
- }
185
-
186
- :where(.bf-theme) :where(.bf-notification.is-borderless .bf-notification-close) {
187
- inset-block-start: 0;
188
- inset-inline-end: 0;
189
- }
190
-
191
- :where(.bf-theme) :where(.bf-notification-meta) {
192
- align-items: flex-start;
193
- border-block-start: var(--bf-border-width) solid var(--bf-color-border-low-contrast);
194
- display: flex;
195
- flex-wrap: wrap;
196
- gap: var(--bf-space-1) var(--bf-space-2);
197
- justify-content: space-between;
198
- margin-block-end: var(--bf-space-1);
199
- padding-block-start: calc(var(--bf-space-1) - var(--bf-border-width));
200
- padding-inline-end: var(--bf-space-2);
201
- }
202
-
203
- :where(.bf-theme) :where(.bf-notification.is-inline .bf-notification-meta) {
204
- border-block-start: 0;
205
- padding-block-start: 0;
206
- }
207
-
208
- :where(.bf-theme) :where(.bf-notification-timestamp) {
209
- color: var(--bf-color-text-muted);
210
- font-weight: var(--bf-body-font-weight);
211
- margin-block: 0 calc(var(--bf-space-2) - var(--bf-body-nudge-start));
212
- padding-block: var(--bf-body-nudge-start) 0;
213
- }
214
-
215
- :where(.bf-theme) :where(.bf-notification-actions) {
216
- align-items: flex-start;
217
- display: flex;
218
- flex-wrap: wrap;
219
- gap: var(--bf-space-1) var(--bf-space-2);
220
- margin-inline-start: auto;
221
- min-inline-size: 0;
222
- }
223
-
224
- :where(.bf-theme) :where(.bf-notification-actions > .bf-button.is-link) {
225
- flex: 0 0 auto;
226
- margin-block-end: calc(var(--bf-space-2) - var(--bf-body-nudge-start));
227
- padding-block: var(--bf-body-nudge-start) 0;
228
- }
67
+ min-inline-size: 0;
68
+ }
69
+
70
+ /* ------------------------------------------------------------------ */
71
+ /* Notification — transient status feedback, distinct from bf-notice */
72
+ /* ------------------------------------------------------------------ */
73
+
74
+ :where(.bf-theme) :where(.bf-notification, .bf-notification.is-information, .bf-notification.is-positive, .bf-notification.is-caution, .bf-notification.is-negative) {
75
+ --bf-notification-accent: var(--bf-color-border-information);
76
+ background: var(--bf-color-background-default);
77
+ border: var(--bf-border-width) solid var(--bf-color-border-default);
78
+ border-inline-start: var(--bf-bar-thickness) solid var(--bf-notification-accent);
79
+ color: var(--bf-color-text-default);
80
+ margin-block: 0 var(--bf-space-3);
81
+ max-inline-size: 100%;
82
+ min-inline-size: 0;
83
+ overflow-wrap: anywhere;
84
+ padding-block: calc(var(--bf-space-1) - var(--bf-border-width));
85
+ padding-inline: calc((var(--bf-space-2) * 2) + var(--bf-icon-size-default)) 0;
86
+ position: relative;
87
+ }
88
+
89
+ :where(.bf-theme) :where(.bf-notification.is-positive) {
90
+ --bf-notification-accent: var(--bf-color-border-positive);
91
+ }
92
+
93
+ :where(.bf-theme) :where(.bf-notification.is-caution) {
94
+ --bf-notification-accent: var(--bf-color-border-caution);
95
+ }
96
+
97
+ :where(.bf-theme) :where(.bf-notification.is-negative) {
98
+ --bf-notification-accent: var(--bf-color-border-negative);
99
+ }
100
+
101
+ :where(.bf-theme) :where(.bf-notification[hidden]) {
102
+ display: none;
103
+ }
104
+
105
+ :where(.bf-theme) :where(.bf-notification.is-borderless) {
106
+ border: 0;
107
+ padding-block: 0;
108
+ padding-inline: calc(var(--bf-space-2) * 2) 0;
109
+ }
110
+
111
+ :where(.bf-theme) :where(.bf-notification-icon) {
112
+ background-color: var(--bf-notification-accent);
113
+ background-image: none;
114
+ inset-block-start: calc(var(--bf-space-1) + ((var(--bf-body-line-height) - var(--bf-icon-size-default)) / 2) + var(--bf-body-nudge-start));
115
+ inset-inline-start: var(--bf-space-2);
116
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zm-.75 5.25h1.5v5h-1.5v-5zM8 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
117
+ mask-position: center;
118
+ mask-repeat: no-repeat;
119
+ mask-size: contain;
120
+ position: absolute;
121
+ }
122
+
123
+ :where(.bf-theme) :where(.bf-notification.is-positive > .bf-notification-icon) {
124
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zm2.814 2.45 1.203.897-5.537 7.43-3.485-3.694 1.09-1.03 2.259 2.394 4.47-5.997z'/%3E%3C/svg%3E");
125
+ }
126
+
127
+ :where(.bf-theme) :where(.bf-notification.is-caution > .bf-notification-icon) {
128
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8.865 1.5 15.77 13.5a1 1 0 0 1-.866 1.5H1.096a1 1 0 0 1-.866-1.5l6.905-12a1 1 0 0 1 1.73 0zM8 3.49 2.392 13.5h11.216L8 3.49zm-.75 3.01h1.5v3.75h-1.5V6.5zM8 11.25a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
129
+ }
130
+
131
+ :where(.bf-theme) :where(.bf-notification.is-negative > .bf-notification-icon) {
132
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zm2.282 3.138 1.06 1.061L9.052 7.99l2.291 2.292-1.061 1.06L7.99 9.052l-2.291 2.291-1.061-1.061L6.929 7.99 4.638 5.699l1.061-1.061L7.99 6.929l2.292-2.291z'/%3E%3C/svg%3E");
133
+ }
134
+
135
+ :where(.bf-theme) :where(.bf-notification.is-borderless > .bf-notification-icon) {
136
+ inset-block-start: calc(((var(--bf-body-line-height) - var(--bf-icon-size-default)) / 2) + var(--bf-body-nudge-start));
137
+ inset-inline-start: 0;
138
+ }
139
+
140
+ :where(.bf-theme) :where(.bf-notification-content, .bf-notification-meta) {
141
+ max-inline-size: 100%;
142
+ min-inline-size: 0;
143
+ }
144
+
145
+ :where(.bf-theme) :where(.bf-notification-content) {
146
+ margin-block-end: calc(var(--bf-space-2) - var(--bf-body-nudge-start));
147
+ padding-block-start: var(--bf-body-nudge-start);
148
+ padding-inline-end: var(--bf-space-4);
149
+ }
150
+
151
+ :where(.bf-theme) :where(.bf-notification-title, .bf-notification-message, .bf-notification-timestamp) {
152
+ font-family: var(--bf-body-font-family);
153
+ font-size: var(--bf-body-font-size);
154
+ font-style: var(--bf-body-font-style);
155
+ line-height: var(--bf-body-line-height);
156
+ max-inline-size: 100%;
157
+ }
158
+
159
+ :where(.bf-theme) :where(.bf-notification-title) {
160
+ font-weight: 600;
161
+ margin-block: 0;
162
+ padding-block: 0;
163
+ }
164
+
165
+ :where(.bf-theme) :where(.bf-notification-message) {
166
+ font-weight: var(--bf-body-font-weight);
167
+ margin-block: 0;
168
+ padding-block: 0;
169
+ }
170
+
171
+ :where(.bf-theme) :where(.bf-notification.is-inline .bf-notification-title, .bf-notification.is-inline .bf-notification-message) {
172
+ display: inline;
173
+ }
174
+
175
+ :where(.bf-theme) :where(.bf-notification-close) {
176
+ block-size: calc((var(--bf-space-1) * 2) + var(--bf-icon-size-default));
177
+ border: 0;
178
+ inline-size: var(--bf-icon-size-default);
179
+ margin-block-end: 0;
180
+ padding: 0;
181
+ position: absolute;
182
+ inset-block-start: var(--bf-space-1);
183
+ inset-inline-end: var(--bf-space-1);
184
+ }
185
+
186
+ :where(.bf-theme) :where(.bf-notification.is-borderless .bf-notification-close) {
187
+ inset-block-start: 0;
188
+ inset-inline-end: 0;
189
+ }
190
+
191
+ :where(.bf-theme) :where(.bf-notification-meta) {
192
+ align-items: flex-start;
193
+ border-block-start: var(--bf-border-width) solid var(--bf-color-border-low-contrast);
194
+ display: flex;
195
+ flex-wrap: wrap;
196
+ gap: var(--bf-space-1) var(--bf-space-2);
197
+ justify-content: space-between;
198
+ margin-block-end: var(--bf-space-1);
199
+ padding-block-start: calc(var(--bf-space-1) - var(--bf-border-width));
200
+ padding-inline-end: var(--bf-space-2);
201
+ }
202
+
203
+ :where(.bf-theme) :where(.bf-notification.is-inline .bf-notification-meta) {
204
+ border-block-start: 0;
205
+ padding-block-start: 0;
206
+ }
207
+
208
+ :where(.bf-theme) :where(.bf-notification-timestamp) {
209
+ color: var(--bf-color-text-muted);
210
+ font-weight: var(--bf-body-font-weight);
211
+ margin-block: 0 calc(var(--bf-space-2) - var(--bf-body-nudge-start));
212
+ padding-block: var(--bf-body-nudge-start) 0;
213
+ }
214
+
215
+ :where(.bf-theme) :where(.bf-notification-actions) {
216
+ align-items: flex-start;
217
+ display: flex;
218
+ flex-wrap: wrap;
219
+ gap: var(--bf-space-1) var(--bf-space-2);
220
+ margin-inline-start: auto;
221
+ min-inline-size: 0;
222
+ }
223
+
224
+ :where(.bf-theme) :where(.bf-notification-actions > .bf-button.is-link) {
225
+ flex: 0 0 auto;
226
+ margin-block-end: calc(var(--bf-space-2) - var(--bf-body-nudge-start));
227
+ padding-block: var(--bf-body-nudge-start) 0;
228
+ }
229
229
  `;
230
230
  }