@primer/brand-css 0.0.0-20260401120941 → 0.0.0-20260402010844

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.
@@ -2,6 +2,68 @@
2
2
  --brand-Grid-spacing-row: var(--base-size-48);
3
3
  }
4
4
 
5
+ .SectionIntroStacked--variant-gridline {
6
+ position: relative;
7
+ padding-inline: var(--base-size-24);
8
+ padding-block: var(--base-size-32);
9
+
10
+ /*
11
+ * Overflow distances for item divider pseudo-elements.
12
+ * With Grid gutters disabled, the distance is just the root padding.
13
+ * On narrow viewports, dividers extend to both edges.
14
+ * On large viewports, dividers extend only to the right edge
15
+ * (the left side is bounded by the vertical column divider).
16
+ */
17
+ --SectionIntroStacked-item-divider-overflow-start: var(--base-size-24);
18
+ --SectionIntroStacked-item-divider-overflow-end: var(--base-size-24);
19
+ }
20
+
21
+ @media screen and (min-width: 63.25rem) {
22
+ .SectionIntroStacked--variant-gridline {
23
+ padding-inline: var(--base-size-64);
24
+ padding-block: var(--base-size-64);
25
+ /* At large viewports, left overflow is 0 (vertical divider bounds the start) */
26
+ --SectionIntroStacked-item-divider-overflow-start: 0px;
27
+ --SectionIntroStacked-item-divider-overflow-end: var(--base-size-64);
28
+ }
29
+ }
30
+
31
+ @media screen and (min-width: 63.25rem) {
32
+ .SectionIntroStacked--variant-gridline {
33
+ padding-inline: var(--base-size-64);
34
+ padding-block: var(--base-size-64);
35
+ /* At large viewports, left overflow is 0 (vertical divider bounds the start) */
36
+ --SectionIntroStacked-item-divider-overflow-start: 0px;
37
+ --SectionIntroStacked-item-divider-overflow-end: calc(var(--brand-Grid-spacing-margin) + var(--base-size-64));
38
+ }
39
+ }
40
+
41
+ .SectionIntroStacked--variant-gridline::before,
42
+ .SectionIntroStacked--variant-gridline::after {
43
+ content: '';
44
+ position: absolute;
45
+ left: 50%;
46
+ transform: translateX(-50%);
47
+ width: 100vw;
48
+ height: 0;
49
+ border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
50
+ z-index: 1;
51
+ }
52
+
53
+ .SectionIntroStacked--variant-gridline::before {
54
+ top: 0;
55
+ }
56
+
57
+ .SectionIntroStacked--variant-gridline::after {
58
+ bottom: 0;
59
+ }
60
+
61
+ @media screen and (min-width: 80rem) {
62
+ .SectionIntroStacked--variant-gridline {
63
+ border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
64
+ }
65
+ }
66
+
5
67
  .SectionIntroStacked-heading--muted,
6
68
  .SectionIntroStackedItem__item-text--muted {
7
69
  color: var(--brand-color-text-muted);
@@ -20,6 +82,11 @@
20
82
  max-width: none;
21
83
  }
22
84
 
85
+ .SectionIntroStacked-description {
86
+ margin-block-start: var(--base-size-16);
87
+ max-width: 50ch;
88
+ }
89
+
23
90
  .SectionIntroStacked-link {
24
91
  margin-block-start: var(--base-size-16);
25
92
  }
@@ -30,7 +97,6 @@
30
97
  list-style: none;
31
98
  display: flex;
32
99
  flex-direction: column;
33
- gap: var(--base-size-32);
34
100
  }
35
101
 
36
102
  @media screen and (max-width: 63.25rem) {
@@ -39,14 +105,105 @@
39
105
  }
40
106
  }
41
107
 
42
- @media screen and (min-width: 48rem) {
43
- .SectionIntroStackedItem-item {
44
- gap: var(--base-size-40);
45
- }
46
-
108
+ @media screen and (min-width: 63.25rem) {
47
109
  .SectionIntroStacked-items {
48
110
  /* Optical alignment with adjacent content */
49
111
  position: relative;
50
112
  top: var(--base-size-2);
51
113
  }
114
+
115
+ .SectionIntroStacked--variant-gridline .SectionIntroStacked-items {
116
+ /* Vertical divider between content and items columns */
117
+ border-inline-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
118
+
119
+ /* Extend vertically to reach the top and bottom gridlines */
120
+ margin-block: calc(-1 * var(--base-size-64));
121
+ padding-block: 0;
122
+
123
+ /* Reset optical alignment for gridline variant */
124
+ position: static;
125
+ top: auto;
126
+ }
127
+
128
+ .SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item {
129
+ /* Inset item content from the vertical gridline */
130
+ padding-inline-start: var(--base-size-32);
131
+ padding-inline-end: var(--base-size-32);
132
+ }
133
+ }
134
+
135
+ /*
136
+ * Item dividers in gridline variant use pseudo-elements that extend
137
+ * from the item's left edge to the right edge of the root component.
138
+ * The negative `right` value compensates for Grid gutters and root padding.
139
+ */
140
+ .SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item {
141
+ border-block-end: none;
142
+ position: relative;
143
+ }
144
+
145
+ /* Restore equal padding on first/last items in gridline variant */
146
+ .SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:first-child {
147
+ padding-block-start: var(--base-size-40);
148
+ }
149
+
150
+ .SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:last-child {
151
+ padding-block-end: var(--base-size-40);
152
+ }
153
+
154
+ .SectionIntroStacked--variant-gridline .SectionIntroStackedItem-item:not(:last-child)::after {
155
+ content: '';
156
+ position: absolute;
157
+ bottom: 0;
158
+ left: calc(-1 * var(--SectionIntroStacked-item-divider-overflow-start));
159
+ right: calc(-1 * var(--SectionIntroStacked-item-divider-overflow-end));
160
+ border-bottom: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
161
+ }
162
+
163
+ .SectionIntroStackedItem-item {
164
+ padding-block: var(--base-size-40);
165
+ border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
166
+ }
167
+
168
+ .SectionIntroStackedItem-item:last-child {
169
+ border-block-end: none;
170
+ padding-block-end: 0;
171
+ }
172
+
173
+ .SectionIntroStackedItem-item:first-child {
174
+ padding-block-start: 0;
175
+ }
176
+
177
+ .SectionIntroStackedItem-item--with-icon {
178
+ display: flex;
179
+ flex-direction: row;
180
+ align-items: flex-start;
181
+ gap: var(--base-size-24);
182
+ }
183
+
184
+ @media screen and (min-width: 63.25rem) {
185
+ .SectionIntroStackedItem-item--with-icon {
186
+ gap: var(--base-size-48);
187
+ }
188
+ }
189
+
190
+ .SectionIntroStackedItem__content {
191
+ display: flex;
192
+ flex-direction: column;
193
+ gap: var(--base-size-8);
194
+ flex: 1;
195
+ min-width: 0;
196
+ }
197
+
198
+ .SectionIntroStackedItem__icon {
199
+ flex-shrink: 0;
200
+ border-radius: var(--brand-borderRadius-medium);
201
+ }
202
+
203
+ .SectionIntroStackedItem__heading {
204
+ /* Heading styles are inherited from the Heading component */
205
+ }
206
+
207
+ .SectionIntroStackedItem__description {
208
+ /* Description styles are inherited from the Text component */
52
209
  }
@@ -280,10 +280,6 @@
280
280
  z-index: 9998;
281
281
  }
282
282
 
283
- .SubNav__heading-container + .SubNav__heading-container {
284
- padding-inline-start: var(--base-size-16);
285
- }
286
-
287
283
  .SubNav__heading-separator {
288
284
  margin-inline-end: var(--base-size-16);
289
285
  z-index: 9998;
@@ -709,7 +705,6 @@
709
705
  .SubNav__links-overlay .SubNav__link[aria-current]:not([aria-current='false']) {
710
706
  background-color: var(--brand-SubNav-color-link-bgColor);
711
707
  line-height: 1.1em;
712
- padding: var(--base-size-2) var(--base-size-12) var(--base-size-4);
713
708
  }
714
709
 
715
710
  /* Firefox optical alignment fix */
@@ -1,4 +1,5 @@
1
1
  .Testimonial {
2
+ display: grid;
2
3
  color: var(--brand-color-text-default);
3
4
  font-family: var(--brand-fontStack-sansSerif);
4
5
  }
@@ -86,27 +87,11 @@
86
87
  mask-composite: exclude;
87
88
  }
88
89
 
89
- .Testimonial__quoteMark--hasBackground {
90
- display: inline-flex;
91
- align-items: center;
92
- justify-content: center;
93
- width: calc(var(--base-size-48) + var(--base-size-8));
94
- height: calc(var(--base-size-48) + var(--base-size-8));
95
- border-radius: var(--base-size-12);
96
- background-color: var(--brand-Testimonial-quoteMarkBackground, var(--base-color-scale-gray-0));
97
- font-size: var(--base-size-64);
98
- line-height: 1;
99
- }
100
-
101
- .Testimonial--size-large .Testimonial__quoteMark:not(.Testimonial__quoteMark--hasBackground) {
90
+ .Testimonial--size-large .Testimonial__quoteMark {
102
91
  font-size: 7.5rem; /* 120px */
103
92
  line-height: 1;
104
93
  }
105
94
 
106
- .Testimonial__quoteMarkGlyph {
107
- display: block;
108
- }
109
-
110
95
  .Testimonial-quote {
111
96
  font-family: var(--brand-fontStack-sansSerif);
112
97
  font-size: var(--brand-Testimonial-quote-fontSize-default);
@@ -122,9 +107,13 @@
122
107
  letter-spacing: var(--brand-Testimonial-quote-letterSpacing-large);
123
108
  }
124
109
 
110
+ .Testimonial-quote--muted {
111
+ color: var(--brand-color-text-muted);
112
+ }
113
+
125
114
  .Testimonial-quote em,
126
115
  .Testimonial-quote b {
127
- color: var(--brand-Testimonial-quote-color-emphasis);
116
+ color: var(--brand-color-text-default);
128
117
  font-style: normal;
129
118
  font-weight: inherit;
130
119
  }
@@ -157,187 +146,83 @@
157
146
  font-family: var(--brand-fontStack-monospace);
158
147
  }
159
148
 
160
- /* Expressive variant */
161
- .Testimonial--variant-expressive {
162
- display: flex;
163
- flex-direction: column;
164
- gap: var(--base-size-48);
165
- }
166
-
167
- @media screen and (min-width: 48rem) {
168
- .Testimonial--variant-expressive {
169
- flex-direction: row;
170
- align-items: flex-end;
171
- gap: var(--base-size-64);
172
- }
173
- }
174
-
175
- .Testimonial--variant-expressive .Testimonial__quoteWrapper {
176
- display: flex;
177
- flex-direction: column;
178
- align-items: flex-start;
179
- gap: var(--base-size-24);
180
- flex: 1 1 0;
181
- min-width: 0;
182
- }
183
-
184
- .Testimonial--variant-expressive .Testimonial__media {
185
- flex-direction: column;
186
- align-items: flex-start;
187
- gap: var(--base-size-24);
188
- margin-top: 0;
189
- flex: 0 0 auto;
190
- }
191
-
192
- .Testimonial--variant-expressive .Testimonial-caption {
193
- border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
194
- padding-top: var(--base-size-24);
195
- width: 100%;
196
- }
197
-
198
- @media screen and (min-width: 48rem) {
199
- .Testimonial--variant-expressive .Testimonial__media {
200
- min-width: 240px;
201
- max-width: 320px;
202
- }
203
- }
204
-
205
- .Testimonial--variant-expressive .Testimonial-from {
206
- display: flex;
207
- align-items: center;
208
- gap: var(--base-size-8);
209
- font-family: var(--brand-fontStack-monospace);
210
- font-weight: var(--base-text-weight-medium);
211
- text-transform: uppercase;
212
- letter-spacing: 0.01em;
213
- }
214
-
215
- .Testimonial--variant-expressive .Testimonial-from::before {
216
- content: '';
217
- display: inline-block;
218
- width: 9px;
219
- height: 14px;
220
- background-color: var(--testimonial-accent-color, var(--brand-Testimonial-quoteMarkColor-default));
221
- flex-shrink: 0;
222
- }
223
-
224
- .Testimonial--variant-expressive .Testimonial__quoteMark {
225
- font-family: var(--brand-fontStack-monospace);
226
- font-weight: var(--brand-fontWeight-300);
227
- }
228
-
229
- .Testimonial--variant-expressive .Testimonial__quoteMarkGlyph {
230
- transform: translateY(var(--base-size-12));
231
- }
232
-
233
- .Testimonial--variant-expressive .Testimonial__quoteMark:not(.Testimonial__quoteMark--hasBackground) {
234
- margin-left: -0.18em;
235
- }
236
-
237
- .Testimonial--variant-expressive .Testimonial-quote {
238
- font-family: var(--brand-fontStack-monospace);
239
- }
240
-
241
- .Testimonial-link {
242
- margin-top: var(--base-size-8);
243
- }
244
-
245
149
  .Testimonial__quoteMark--default {
246
150
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-default);
247
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-default);
248
151
  }
249
152
 
250
153
  .Testimonial__quoteMark--blue {
251
154
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-blue);
252
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-blue);
253
155
  }
254
156
 
255
157
  .Testimonial__quoteMark--blue-purple {
256
158
  --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-blue-purple-start);
257
159
  --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-blue-purple-end);
258
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-blue-purple);
259
160
  }
260
161
 
261
162
  .Testimonial__quoteMark--coral {
262
163
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-coral);
263
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-coral);
264
164
  }
265
165
 
266
166
  .Testimonial__quoteMark--green {
267
167
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-green);
268
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-green);
269
168
  }
270
169
 
271
170
  .Testimonial__quoteMark--green-blue {
272
171
  --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-green-blue-start);
273
172
  --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-green-blue-end);
274
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-green-blue);
275
173
  }
276
174
 
277
175
  .Testimonial__quoteMark--gray {
278
176
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-gray);
279
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-gray);
280
177
  }
281
178
 
282
179
  .Testimonial__quoteMark--indigo {
283
180
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-indigo);
284
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-indigo);
285
181
  }
286
182
 
287
183
  .Testimonial__quoteMark--lemon {
288
184
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-lemon);
289
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-lemon);
290
185
  }
291
186
 
292
187
  .Testimonial__quoteMark--lime {
293
188
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-lime);
294
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-lime);
295
189
  }
296
190
 
297
191
  .Testimonial__quoteMark--orange {
298
192
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-orange);
299
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-orange);
300
193
  }
301
194
 
302
195
  .Testimonial__quoteMark--pink {
303
196
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-pink);
304
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-pink);
305
197
  }
306
198
 
307
199
  .Testimonial__quoteMark--pink-blue {
308
200
  --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-pink-blue-start);
309
201
  --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-pink-blue-end);
310
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-pink-blue);
311
202
  }
312
203
 
313
204
  .Testimonial__quoteMark--purple {
314
205
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-purple);
315
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-purple);
316
206
  }
317
207
 
318
208
  .Testimonial__quoteMark--purple-red {
319
209
  --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-purple-red-start);
320
210
  --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-purple-red-end);
321
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-purple-red);
322
211
  }
323
212
 
324
213
  .Testimonial__quoteMark--red {
325
214
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-red);
326
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-red);
327
215
  }
328
216
 
329
217
  .Testimonial__quoteMark--red-orange {
330
218
  --brand-Testimonial-quoteMarkColor-start: var(--brand-Testimonial-quoteMarkColor-red-orange-start);
331
219
  --brand-Testimonial-quoteMarkColor-end: var(--brand-Testimonial-quoteMarkColor-red-orange-end);
332
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-red-orange);
333
220
  }
334
221
 
335
222
  .Testimonial__quoteMark--teal {
336
223
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-teal);
337
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-teal);
338
224
  }
339
225
 
340
226
  .Testimonial__quoteMark--yellow {
341
227
  --brand-Testimonial-quoteMarkColor: var(--brand-Testimonial-quoteMarkColor-yellow);
342
- --brand-Testimonial-quoteMarkBackground: var(--brand-Testimonial-quoteMarkBackground-yellow);
343
228
  }
@@ -161,15 +161,6 @@
161
161
  padding: var(--base-size-12) var(--base-size-16);
162
162
  }
163
163
 
164
- .Tiles--layout-compact .Tiles-item-media {
165
- transition: transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default);
166
- }
167
-
168
- .Tiles--layout-compact .Tiles-item-link:hover .Tiles-item-media,
169
- .Tiles--layout-compact .Tiles-item-link:focus-visible .Tiles-item-media {
170
- transform: translateY(calc(-1 * var(--base-size-4)));
171
- }
172
-
173
164
  .Tiles--layout-compact .Tiles-item-label {
174
165
  opacity: 0;
175
166
  transform: translateY(var(--base-size-4));
@@ -201,10 +192,6 @@
201
192
  transition: none;
202
193
  }
203
194
 
204
- .Tiles--layout-compact .Tiles-item-media {
205
- transition: none;
206
- }
207
-
208
195
  .Tiles--layout-compact .Tiles-item-label {
209
196
  transition: none;
210
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.0.0-20260401120941",
3
+ "version": "0.0.0-20260402010844",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",