barua-ui 0.11.1 → 0.12.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/marketing.css +26 -1
- package/css/utilities.css +21 -4
- package/package.json +1 -1
|
@@ -60,9 +60,18 @@
|
|
|
60
60
|
/* ---- Chapter: one idea, centred, with room around it --------------------- */
|
|
61
61
|
.b-chapter {
|
|
62
62
|
padding-block: var(--b-chapter-gap);
|
|
63
|
-
|
|
63
|
+
/* The page's margin, and now the only one: it is a sixth of a phone's width
|
|
64
|
+
at 390 and sixty pixels on a desktop, where before the chapter and the
|
|
65
|
+
container each took their own and the phone paid for both. */
|
|
66
|
+
padding-inline: clamp(var(--b-space-4), 4.5vw, var(--b-space-16));
|
|
64
67
|
text-align: center;
|
|
65
68
|
}
|
|
69
|
+
/* Padding stacks, and nobody notices on a desktop. A chapter pads, a
|
|
70
|
+
container inside it pads again, and a list row inside that pads a third
|
|
71
|
+
time: on a 390px phone that left 236px for the words, which is under thirty
|
|
72
|
+
characters a line. The chapter already holds the page's margins, so a
|
|
73
|
+
container inside one does not repeat them. */
|
|
74
|
+
.b-chapter > .b-container { padding-inline: 0; }
|
|
66
75
|
.b-chapter--tight { padding-block: calc(var(--b-chapter-gap) * 0.55); }
|
|
67
76
|
.b-chapter--start { text-align: start; }
|
|
68
77
|
.b-chapter__eyebrow {
|
|
@@ -340,6 +349,18 @@
|
|
|
340
349
|
height: var(--b-space-12);
|
|
341
350
|
color: color-mix(in srgb, var(--b-color-accent) 55%, var(--b-text-tertiary));
|
|
342
351
|
}
|
|
352
|
+
/* Stacked one per phone screen, a 16:9 plate is nearly two hundred pixels of
|
|
353
|
+
nothing but a glyph, three times over. It becomes a banner instead: the
|
|
354
|
+
type badge still reads, the card still has a face, and the section stops
|
|
355
|
+
costing half a screen per card. */
|
|
356
|
+
@media (max-width: 40rem) {
|
|
357
|
+
.b-resource-card__poster { aspect-ratio: 4 / 1; }
|
|
358
|
+
.b-resource-card__poster > svg,
|
|
359
|
+
.b-resource-card__poster > :not(img):not(.b-resource-card__type) svg {
|
|
360
|
+
width: var(--b-space-8);
|
|
361
|
+
height: var(--b-space-8);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
343
364
|
.b-resource-card__type {
|
|
344
365
|
position: absolute;
|
|
345
366
|
inset-block-start: var(--b-space-3);
|
|
@@ -433,6 +454,10 @@
|
|
|
433
454
|
middle of a tall column and stops looking like the title of what is next
|
|
434
455
|
to it. --top puts both columns on the same line. */
|
|
435
456
|
.b-feature-row--top { align-items: start; }
|
|
457
|
+
/* Same argument one level down: a list that IS a column of the row has the
|
|
458
|
+
row's margins already, and indenting every row inside it pushes the text
|
|
459
|
+
off the page's grid for no gain. */
|
|
460
|
+
.b-feature-row > .b-list--plain > .b-list-item { padding-inline: 0; }
|
|
436
461
|
.b-feature-row__title {
|
|
437
462
|
font-size: clamp(1.5rem, 3vw, 2.25rem);
|
|
438
463
|
font-weight: var(--b-weight-semibold);
|
package/css/utilities.css
CHANGED
|
@@ -108,10 +108,27 @@
|
|
|
108
108
|
gap: var(--b-gap, var(--b-space-4));
|
|
109
109
|
grid-template-columns: repeat(var(--b-cols, 12), minmax(0, 1fr));
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
/* N equal cards side by side is a desktop shape, and these modifiers held N
|
|
112
|
+
at every width: three pricing cards on a 390px phone came out 110px wide
|
|
113
|
+
with one word per line, and every page in the system that used them looked
|
|
114
|
+
like that on the device most people arrive on. They start at one column
|
|
115
|
+
and earn more. Anything that genuinely wants a fixed count at every size
|
|
116
|
+
sets --b-cols itself, which is what these are written in terms of. */
|
|
117
|
+
.b-grid--2,
|
|
118
|
+
.b-grid--3,
|
|
119
|
+
.b-grid--4,
|
|
120
|
+
.b-grid--6 { --b-cols: 1; }
|
|
121
|
+
@media (min-width: 36rem) {
|
|
122
|
+
.b-grid--2 { --b-cols: 2; }
|
|
123
|
+
.b-grid--3 { --b-cols: 2; }
|
|
124
|
+
.b-grid--4 { --b-cols: 2; }
|
|
125
|
+
.b-grid--6 { --b-cols: 3; }
|
|
126
|
+
}
|
|
127
|
+
@media (min-width: 62rem) {
|
|
128
|
+
.b-grid--3 { --b-cols: 3; }
|
|
129
|
+
.b-grid--4 { --b-cols: 4; }
|
|
130
|
+
.b-grid--6 { --b-cols: 6; }
|
|
131
|
+
}
|
|
115
132
|
.b-grid--auto {
|
|
116
133
|
grid-template-columns: repeat(auto-fill, minmax(var(--b-col-min, 16rem), 1fr));
|
|
117
134
|
}
|