@primer/brand-css 0.80.1 → 0.81.0-rc.0d1b7648

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.
@@ -73,7 +73,7 @@
73
73
  * Narrow viewport-only styles
74
74
  */
75
75
  @media screen and (max-width: 34rem) {
76
- .ComparisonTable thead .ComparisonTable-cell-heading {
76
+ .ComparisonTable-cell-heading--hidden-on-narrow {
77
77
  display: none;
78
78
  }
79
79
 
@@ -165,7 +165,7 @@
165
165
  position: relative;
166
166
  padding-left: 25px;
167
167
  }
168
- :global(.ComparisonTable--default) .ComparisonTable-cell::before {
168
+ .ComparisonTable-cell--bordered-on-narrow::before {
169
169
  content: '';
170
170
  position: absolute;
171
171
  top: 0;
@@ -235,7 +235,7 @@
235
235
 
236
236
  .MediaPlaylist__tab:focus-visible {
237
237
  outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
238
- outline-offset: var(--base-size-4);
238
+ outline-offset: calc(-1 * var(--base-size-4));
239
239
  }
240
240
 
241
241
  .MediaPlaylist__content {
@@ -156,6 +156,7 @@
156
156
 
157
157
  .MinimalFooter__social-links {
158
158
  display: flex;
159
+ flex-wrap: wrap;
159
160
  padding: 0;
160
161
  margin: 0;
161
162
  list-style: none;
@@ -57,7 +57,7 @@
57
57
  .Testimonial--variant-default .Testimonial__quoteWrapper {
58
58
  display: flex;
59
59
  flex-direction: column;
60
- gap: calc(var(--base-size-24) + var(--base-size-16));
60
+ gap: var(--base-size-40);
61
61
  }
62
62
 
63
63
  .Testimonial__quoteMark {
@@ -72,9 +72,9 @@
72
72
  color: var(--brand-Testimonial-quoteMarkColor, currentColor);
73
73
  background-color: var(--brand-Testimonial-quoteMarkBackground, var(--base-color-scale-gray-0));
74
74
  font-family: var(--brand-fontStack-monospace);
75
- font-size: 4rem;
75
+ font-size: 4rem; /* TODO: Optical quote-glyph sizing is independent of the text scale. */
76
76
  font-weight: var(--base-text-weight-normal);
77
- line-height: 1;
77
+ line-height: 1; /* TODO: Keep the quote glyph's line box independent of text leading. */
78
78
  }
79
79
 
80
80
  .Testimonial__quoteMarkGlyph {
@@ -87,7 +87,7 @@
87
87
  width: var(--base-size-40);
88
88
  height: var(--base-size-40);
89
89
  border-radius: var(--base-size-8);
90
- font-size: 3rem;
90
+ font-size: 3rem; /* TODO: Optical quote-glyph sizing for the smaller mark tile. */
91
91
  }
92
92
 
93
93
  .Testimonial--variant-default .Testimonial__quoteMarkGlyph,
@@ -100,7 +100,7 @@
100
100
  font-size: var(--brand-Testimonial-quote-fontSize-default);
101
101
  font-weight: var(--brand-Testimonial-quote-fontWeight-default);
102
102
  letter-spacing: var(--brand-Testimonial-quote-letterSpacing-default);
103
- line-height: 1.2; /* requires custom line-height */
103
+ line-height: var(--brand-text-lineHeight-700);
104
104
  display: block;
105
105
  }
106
106
 
@@ -152,7 +152,7 @@
152
152
  flex-direction: column;
153
153
  gap: var(--base-size-36);
154
154
  width: 100%;
155
- max-width: 1176px;
155
+ max-width: var(--brand-Testimonial-expressive-maxWidth);
156
156
  padding-inline: var(--base-size-20);
157
157
  padding-block: var(--base-size-40);
158
158
  }
@@ -170,7 +170,7 @@
170
170
  align-items: flex-start;
171
171
  gap: var(--base-size-28);
172
172
  margin-block-start: 0;
173
- width: 100%;
173
+ width: var(--brand-Testimonial-expressive-media-width);
174
174
  }
175
175
 
176
176
  .Testimonial--variant-expressive .Testimonial-avatar {
@@ -189,10 +189,6 @@
189
189
  .Testimonial--variant-expressive .Testimonial__quoteWrapper {
190
190
  gap: var(--base-size-40);
191
191
  }
192
-
193
- .Testimonial--variant-expressive .Testimonial__media {
194
- width: 356px;
195
- }
196
192
  }
197
193
 
198
194
  .Testimonial--variant-expressive .Testimonial-from {
@@ -203,21 +199,21 @@
203
199
  font-weight: var(--brand-heading-weight-500);
204
200
  line-height: var(--brand-text-lineHeight-100);
205
201
  text-transform: uppercase;
206
- letter-spacing: 0.0107em;
202
+ letter-spacing: var(--brand-Testimonial-expressive-name-letterSpacing);
207
203
  }
208
204
 
209
205
  .Testimonial--variant-expressive .Testimonial-position {
210
206
  font-size: var(--brand-text-size-200);
211
207
  font-weight: var(--base-text-weight-normal);
212
- line-height: 1.6;
213
- letter-spacing: 0.01em;
208
+ line-height: var(--brand-Testimonial-expressive-position-lineHeight);
209
+ letter-spacing: var(--brand-Testimonial-expressive-position-letterSpacing);
214
210
  }
215
211
 
216
212
  .Testimonial--variant-expressive .Testimonial-quote {
217
213
  font-family: var(--brand-fontStack-monospace);
218
- font-size: 1.5rem;
219
- font-weight: 425;
220
- letter-spacing: -0.01em;
214
+ font-size: var(--brand-Testimonial-expressive-quote-fontSize);
215
+ font-weight: var(--brand-Testimonial-expressive-quote-fontWeight);
216
+ letter-spacing: var(--brand-Testimonial-expressive-quote-letterSpacing);
221
217
  line-height: var(--brand-text-lineHeight-100);
222
218
  -webkit-font-smoothing: antialiased;
223
219
  -moz-osx-font-smoothing: grayscale;
@@ -225,25 +221,21 @@
225
221
 
226
222
  @media screen and (min-width: 48rem) {
227
223
  .Testimonial--variant-expressive {
228
- max-width: 618px;
229
224
  margin-inline: auto;
230
225
  padding-inline: var(--base-size-36);
231
226
  padding-block: var(--base-size-44);
232
227
  }
233
- .Testimonial--variant-expressive .Testimonial-quote {
234
- font-size: 1.625rem;
235
- letter-spacing: -0.02em;
236
- }
237
228
  }
238
229
 
239
230
  @media screen and (min-width: 63.25rem) {
240
231
  .Testimonial--variant-expressive {
241
232
  display: grid;
242
- grid-template-columns: minmax(0, 744px) 312px;
233
+ grid-template-columns: minmax(0, var(--brand-Testimonial-expressive-quote-maxWidth)) var(
234
+ --brand-Testimonial-expressive-media-width
235
+ );
243
236
  -moz-column-gap: calc(var(--base-size-96) + var(--base-size-24));
244
237
  column-gap: calc(var(--base-size-96) + var(--base-size-24));
245
238
  align-items: end;
246
- max-width: 1176px;
247
239
  margin-inline: auto;
248
240
  padding-inline: var(--base-size-48);
249
241
  padding-block: var(--base-size-88);
@@ -262,7 +254,6 @@
262
254
  .Testimonial--variant-expressive .Testimonial__media {
263
255
  grid-column: 2;
264
256
  grid-row: 1;
265
- width: 312px;
266
257
  gap: var(--base-size-32);
267
258
  }
268
259
 
@@ -274,10 +265,6 @@
274
265
  padding-block-start: var(--base-size-24);
275
266
  }
276
267
 
277
- .Testimonial--variant-expressive .Testimonial-quote {
278
- font-size: 2rem;
279
- }
280
-
281
268
  .Testimonial--variant-expressive .Testimonial-link {
282
269
  grid-column: 1;
283
270
  grid-row: 2;
@@ -385,7 +372,7 @@
385
372
  display: flex;
386
373
  flex-direction: column;
387
374
  align-items: flex-start;
388
- gap: calc(var(--base-size-24) + var(--base-size-16));
375
+ gap: var(--base-size-40);
389
376
  }
390
377
 
391
378
  .Testimonial--variant-minimal.Testimonial--size-large .Testimonial__quoteWrapper {
@@ -399,8 +386,8 @@
399
386
  .Testimonial--variant-minimal .Testimonial-quote {
400
387
  font-size: var(--brand-Testimonial-quote-fontSize-default);
401
388
  font-weight: var(--brand-Testimonial-quote-fontWeight-default);
402
- line-height: 1.2;
403
- letter-spacing: 0;
389
+ line-height: var(--brand-text-lineHeight-700);
390
+ letter-spacing: var(--brand-text-letterSpacing-400);
404
391
  }
405
392
 
406
393
  .Testimonial--variant-minimal.Testimonial--size-large .Testimonial-quote {
@@ -411,7 +398,7 @@
411
398
 
412
399
  .Testimonial--variant-minimal .Testimonial__media {
413
400
  gap: var(--base-size-16);
414
- margin-block-start: calc(var(--base-size-32) + var(--base-size-8));
401
+ margin-block-start: var(--base-size-40);
415
402
  padding-block-start: 0;
416
403
  }
417
404
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.80.1",
3
+ "version": "0.81.0-rc.0d1b7648",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",