barua-ui 0.9.0 → 0.9.1
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/css/components/content.css +8 -0
- package/css/components/marketing.css +15 -1
- package/css/tokens.css +7 -2
- package/package.json +2 -2
|
@@ -117,6 +117,14 @@
|
|
|
117
117
|
.b-card--flush .b-card__body { padding: 0; }
|
|
118
118
|
.b-card--flush .b-list { border: none; border-radius: 0; box-shadow: none; }
|
|
119
119
|
|
|
120
|
+
/* A card in a grid already stretches to the row's height; its body does not,
|
|
121
|
+
so a stack inside stops where its content stops and the button at the end
|
|
122
|
+
lands wherever the copy above happened to finish. Three prices with three
|
|
123
|
+
different feature lists gave three different buttons. --fill hands the
|
|
124
|
+
height down, so a .b-spacer inside pins the last row to the floor. */
|
|
125
|
+
.b-card--fill { display: flex; flex-direction: column; }
|
|
126
|
+
.b-card--fill > .b-card__body { flex: 1 1 auto; }
|
|
127
|
+
|
|
120
128
|
.b-card__art {
|
|
121
129
|
width: 4rem;
|
|
122
130
|
height: 4rem;
|
|
@@ -81,6 +81,10 @@
|
|
|
81
81
|
justify-content: center;
|
|
82
82
|
margin-block-start: var(--b-space-6);
|
|
83
83
|
}
|
|
84
|
+
/* What a chapter shows under its words: a rail of cards, a grid, a picture.
|
|
85
|
+
Same standoff as the actions row, so a chapter with cards and a chapter
|
|
86
|
+
with buttons breathe alike. */
|
|
87
|
+
.b-chapter__media { margin-block-start: var(--b-space-8); text-align: start; }
|
|
84
88
|
.b-chapter--start .b-chapter__actions { justify-content: flex-start; }
|
|
85
89
|
.b-feature-row .b-chapter__actions { justify-content: flex-start; margin-block-start: var(--b-space-5); }
|
|
86
90
|
|
|
@@ -263,7 +267,17 @@
|
|
|
263
267
|
overflow: hidden;
|
|
264
268
|
background: color-mix(in srgb, var(--b-color-accent) 14%, var(--b-fill-tertiary));
|
|
265
269
|
}
|
|
266
|
-
.
|
|
270
|
+
/* A picture fills the plate. A glyph is not a picture: stretched to the same
|
|
271
|
+
rule it became a two-hundred-pixel sparkle, which is how a stand-in ends up
|
|
272
|
+
louder than the thing it stands in for. It keeps a glyph's size and the
|
|
273
|
+
plate's quieter ink instead. */
|
|
274
|
+
.b-resource-card__poster > img { width: 100%; height: 100%; object-fit: cover; }
|
|
275
|
+
.b-resource-card__poster > svg,
|
|
276
|
+
.b-resource-card__poster > :not(img):not(.b-resource-card__type) svg {
|
|
277
|
+
width: var(--b-space-12);
|
|
278
|
+
height: var(--b-space-12);
|
|
279
|
+
color: color-mix(in srgb, var(--b-color-accent) 55%, var(--b-text-tertiary));
|
|
280
|
+
}
|
|
267
281
|
.b-resource-card__type {
|
|
268
282
|
position: absolute;
|
|
269
283
|
inset-block-start: var(--b-space-3);
|
package/css/tokens.css
CHANGED
|
@@ -11,8 +11,13 @@
|
|
|
11
11
|
declaration sits on, so re-declaring them here is what lets a subtree be
|
|
12
12
|
light inside a dark page — a marketing page in a dark product, a preview
|
|
13
13
|
pane, a customer's site. Without it, data-theme on anything but the root
|
|
14
|
-
only changed color-scheme and the tokens stayed as the root resolved them.
|
|
15
|
-
|
|
14
|
+
only changed color-scheme and the tokens stayed as the root resolved them.
|
|
15
|
+
|
|
16
|
+
.b-chapter--dark is in the list for the same reason: a chapter that inverts
|
|
17
|
+
IS a themed subtree, and flipping its color-scheme alone left every token
|
|
18
|
+
inside still resolved against the page it sits in, so the dark band came
|
|
19
|
+
out light. Naming it here keeps one copy of the token block. */
|
|
20
|
+
:root, [data-theme], .b-chapter--dark {
|
|
16
21
|
color-scheme: light dark;
|
|
17
22
|
|
|
18
23
|
/* ------------------------------------------------------------------ *
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barua-ui",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Barua UI
|
|
3
|
+
"version": "0.9.1",
|
|
4
|
+
"description": "Barua UI — Apple-DNA design system (glass materials, Barua blue) as React components over pure CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|