@primer/brand-css 0.65.0-rc.e1f4ec77 → 0.65.1-rc.7ef81232

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.
@@ -4,18 +4,15 @@
4
4
  gap: var(--brand-stack-gap-spacious);
5
5
  }
6
6
 
7
- @media screen and (min-width: 48rem) {
8
- .FAQGroup {
9
- display: grid;
10
- }
11
-
12
- .FAQGroup__accordion {
13
- display: none;
14
- }
7
+ .FAQGroup__accordion {
8
+ margin-block-start: var(--base-size-48);
15
9
  }
16
10
 
17
11
  .FAQGroup__panel-subHeading {
18
12
  margin-block-start: calc(var(--base-size-8) + 1px);
13
+ text-transform: uppercase;
14
+ font-size: var(--brand-text-size-100);
15
+ line-height: var(--brand-text-lineHeight-100);
19
16
  }
20
17
 
21
18
  .FAQGroup__tablist .FAQ__heading {
@@ -23,26 +20,62 @@
23
20
  }
24
21
 
25
22
  .FAQGroup__tablist-button {
23
+ -webkit-appearance: none;
24
+ -moz-appearance: none;
25
+ appearance: none;
26
+ border: none;
26
27
  background-color: transparent;
27
- justify-content: flex-start;
28
- }
29
-
30
- .FAQGroup__tablist-button > span {
28
+ padding-block: var(--base-size-8);
29
+ padding-inline: 0;
30
+ cursor: pointer;
31
+ display: flex;
32
+ align-items: center;
33
+ gap: var(--base-size-12);
34
+ width: 100%;
35
+ font-family: var(--brand-fontStack-monospace);
36
+ font-size: var(--brand-text-size-100);
37
+ font-weight: var(--brand-text-weight-500);
38
+ line-height: var(--brand-text-lineHeight-100);
39
+ letter-spacing: 0.15px;
40
+ text-transform: uppercase;
41
+ text-align: start;
42
+ color: var(--brand-color-text-muted);
31
43
  overflow: hidden;
32
- white-space: nowrap;
33
44
  text-overflow: ellipsis;
45
+ white-space: nowrap;
46
+ transition: gap var(--brand-animation-duration-fast) var(--brand-animation-easing-default);
34
47
  }
35
48
 
36
- .FAQGroup__tablist-button[aria-selected='true'] {
37
- background-color: var(--brand-FAQ-color-tabBg-selected);
49
+ .FAQGroup__tablist-button:focus-visible {
50
+ outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
51
+ outline-offset: 2px;
38
52
  }
39
53
 
40
- .FAQGroup__tablist-button span {
41
- color: var(--brand-color-text-muted);
54
+ .FAQGroup__tablist-button::before {
55
+ content: '';
56
+ display: block;
57
+ width: calc(var(--base-size-8) + var(--base-size-2));
58
+ height: var(--base-size-12);
59
+ flex-shrink: 0;
60
+ background-color: var(--brand-FAQGroup-buttonIndicator-idle);
61
+ transform: scaleX(0.7);
62
+ transform-origin: left;
63
+ transition: transform var(--brand-animation-duration-fast) var(--brand-animation-easing-default),
64
+ background-color var(--brand-animation-duration-fast) var(--brand-animation-easing-default);
42
65
  }
43
66
 
44
- .FAQGroup__tablist-button[aria-selected='true'] span {
67
+ .FAQGroup__tablist-button:hover::before {
68
+ background-color: var(--brand-FAQGroup-buttonIndicator-hover);
69
+ }
70
+
71
+ .FAQGroup__tablist-button[aria-selected='true'] {
45
72
  color: var(--brand-FAQ-color-tabLabel-selected);
73
+ gap: calc(var(--base-size-12) + 3px);
74
+ }
75
+
76
+ .FAQGroup__tablist-button[aria-selected='true']::before {
77
+ transform: scaleX(1);
78
+ background-color: var(--brand-FAQGroup-buttonIndicator-active);
46
79
  }
47
80
 
48
81
  .FAQGroup__nested-accordion-item summary h4 {
@@ -51,6 +84,20 @@
51
84
  line-height: var(--brand-text-lineHeight-200);
52
85
  }
53
86
 
87
+ /* Gridline variant */
88
+
89
+ .FAQGroup__tablist--gridline {
90
+ padding-inline-start: var(--base-size-48);
91
+ padding-block: var(--base-size-80);
92
+ }
93
+
94
+ .FAQGroup__content--gridline {
95
+ border-inline-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
96
+ padding-inline: var(--base-size-64);
97
+ padding-block-start: var(--base-size-80);
98
+ padding-block-end: var(--base-size-96);
99
+ }
100
+
54
101
  @media (forced-colors: active) {
55
102
  .FAQGroup__tablist-button[aria-selected='true'] {
56
103
  border-color: Highlight;
@@ -58,3 +105,69 @@
58
105
  color: HighlightText;
59
106
  }
60
107
  }
108
+
109
+ .FAQGroup__heading {
110
+ padding-inline: var(--base-size-20);
111
+ }
112
+
113
+ /* Custom tablet breakpoint */
114
+ @media screen and (min-width: 618px) {
115
+ .FAQGroup__gridline-wrapper {
116
+ border-block-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
117
+ }
118
+
119
+ .FAQGroup__accordion {
120
+ margin-block-start: 0;
121
+ max-width: 618px;
122
+ margin-inline: auto;
123
+ border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
124
+ }
125
+ .FAQGroup__heading {
126
+ max-width: 618px;
127
+ margin: 0 auto;
128
+ }
129
+
130
+ .FAQGroup__heading-wrapper {
131
+ padding-block-end: var(--base-size-40);
132
+ }
133
+ .FAQGroup__heading-wrapper--gridline {
134
+ border-block-end: var(--brand-color-border-muted) var(--brand-borderWidth-thin) solid;
135
+ }
136
+
137
+ .FAQGroup__accordion--gridline:first-child summary {
138
+ border-block-start: none !important;
139
+ }
140
+
141
+ .FAQGroup__accordion--gridline:last-child summary {
142
+ border-block-end: none !important;
143
+ }
144
+ }
145
+
146
+ @media screen and (min-width: 63.25rem) {
147
+ .FAQGroup {
148
+ display: grid;
149
+ }
150
+
151
+ .FAQGroup__accordion {
152
+ display: none;
153
+ }
154
+
155
+ .FAQGroup__heading {
156
+ padding-inline: 0;
157
+ max-width: 100%;
158
+ }
159
+
160
+ .FAQGroup__heading-wrapper {
161
+ padding-block-end: var(--base-size-64);
162
+ }
163
+ }
164
+
165
+ @media screen and (min-width: 80rem) {
166
+ .FAQGroup__tablist--gridline {
167
+ border-inline-start: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
168
+ }
169
+
170
+ .FAQGroup__content--gridline {
171
+ border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
172
+ }
173
+ }
@@ -246,7 +246,7 @@
246
246
  .Hero-label {
247
247
  text-transform: uppercase;
248
248
  letter-spacing: 1px;
249
- margin-block-end: var(--base-size-24);
249
+ margin-block-end: var(--base-size-16);
250
250
  display: flex;
251
251
  align-items: center;
252
252
  }
@@ -256,6 +256,12 @@
256
256
  max-width: 924px;
257
257
  }
258
258
 
259
+ .Hero-heading b {
260
+ color: var(--brand-color-accent-primary);
261
+ font-style: normal;
262
+ font-weight: inherit;
263
+ }
264
+
259
265
  .Hero-heading--fullWidth {
260
266
  max-width: unset;
261
267
  }
@@ -2,10 +2,21 @@
2
2
  padding-block-end: var(--brand-LogoSuite-logobar-rowGap);
3
3
  }
4
4
 
5
- .LogoSuite + .LogoSuite {
5
+ .LogoSuite--default + .LogoSuite--default {
6
6
  padding-block-start: var(--brand-LogoSuite-logobar-rowGap);
7
7
  }
8
8
 
9
+ /* Small monospace heading when standalone (no description) */
10
+ .LogoSuite:not(:has(.LogoSuite__description)) .LogoSuite__heading {
11
+ font-family: var(--brand-fontStack-monospace);
12
+ font-weight: var(--brand-text-weight-100);
13
+ font-size: var(--brand-text-size-100);
14
+ line-height: var(--brand-text-lineHeight-100);
15
+ letter-spacing: var(--brand-text-letterSpacing-100);
16
+ text-transform: uppercase;
17
+ color: var(--brand-color-text-muted);
18
+ }
19
+
9
20
  .LogoSuite__heading + .LogoSuite__description {
10
21
  padding-block-start: var(--base-size-16);
11
22
  }
@@ -19,7 +30,7 @@
19
30
  text-align: center;
20
31
  }
21
32
 
22
- .LogoSuite:not(.LogoSuite + .LogoSuite) .LogoSuite__logobar {
33
+ .LogoSuite--default:not(.LogoSuite + .LogoSuite) .LogoSuite__logobar {
23
34
  padding-block-start: var(--base-size-32);
24
35
  }
25
36
 
@@ -47,7 +58,7 @@
47
58
  + .LogoSuite__logobar,
48
59
  .LogoSuite:not(.LogoSuite + .LogoSuite) .LogoSuite__description + .LogoSuite__logobar {
49
60
  padding-block-start: 0;
50
- margin-block-start: var(--base-size-80);
61
+ margin-block-start: var(--base-size-44);
51
62
  }
52
63
 
53
64
  .LogoSuite__logobar--variant-muted svg,
@@ -57,20 +68,17 @@
57
68
  .LogoSuite__logobar--variant-emphasis img,
58
69
  .LogoSuite__logobar--variant-emphasis a {
59
70
  width: auto;
60
- height: var(--base-size-32);
71
+ height: var(--base-size-28);
61
72
  }
62
73
 
63
74
  @media screen and (min-width: 48rem) {
64
75
  .LogoSuite__logobar--variant-muted svg,
65
76
  .LogoSuite__logobar--variant-muted img,
66
- .LogoSuite__logobar--variant-muted a {
67
- height: var(--base-size-40);
68
- }
69
-
77
+ .LogoSuite__logobar--variant-muted a,
70
78
  .LogoSuite__logobar--variant-emphasis svg,
71
79
  .LogoSuite__logobar--variant-emphasis img,
72
80
  .LogoSuite__logobar--variant-emphasis a {
73
- height: var(--base-size-48);
81
+ height: var(--base-size-32);
74
82
  }
75
83
  }
76
84
 
@@ -102,8 +110,10 @@
102
110
  }
103
111
  }
104
112
 
105
- .LogoSuite--start .LogoSuite__logobar a:focus-visible {
106
- outline-color: var(--brand-color-focus);
113
+ .LogoSuite__logobar a:focus-visible {
114
+ outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
115
+ outline-offset: var(--base-size-2);
116
+ border-radius: var(--base-size-4);
107
117
  }
108
118
 
109
119
  .LogoSuite--hasDivider {
@@ -113,8 +123,9 @@
113
123
  .LogoSuite__logobar--has-marquee {
114
124
  position: relative;
115
125
  display: flex;
116
- flex-direction: column;
117
- gap: var(--base-size-40);
126
+ flex-direction: row;
127
+ align-items: center;
128
+ gap: var(--base-size-24);
118
129
  margin: auto;
119
130
  max-width: 100dvw;
120
131
  }
@@ -152,18 +163,22 @@
152
163
  }
153
164
  }
154
165
 
155
- .LogoSuite__logobar-marquee:hover .LogoSuite__logobar-marqueeGroup {
166
+ .LogoSuite__logobar-marquee:hover .LogoSuite__logobar-marqueeGroup,
167
+ .LogoSuite__logobar-marquee:focus-within .LogoSuite__logobar-marqueeGroup {
156
168
  animation-play-state: paused;
157
169
  }
158
170
 
159
171
  .LogoSuite__logobar-marquee {
160
172
  display: flex;
161
- overflow: hidden;
173
+ overflow-x: hidden;
174
+ overflow-y: visible;
175
+ padding-block: var(--base-size-4);
162
176
  -webkit-user-select: none;
163
177
  -moz-user-select: none;
164
178
  user-select: none;
165
179
  gap: var(--marquee-gap);
166
- width: calc(100% - var(--base-size-40));
180
+ flex: 1;
181
+ min-width: 0;
167
182
  -webkit-mask-image: linear-gradient(
168
183
  to right,
169
184
  hsl(0 0% 0% / 0),
@@ -178,19 +193,23 @@
178
193
  animation-play-state: paused !important;
179
194
  }
180
195
 
196
+ .LogoSuite__logobar-marquee--focused .LogoSuite__logobar-marqueeGroup {
197
+ animation-name: none;
198
+ }
199
+
181
200
  .LogoSuite__logobar-playPauseButton {
182
201
  cursor: pointer;
183
- position: absolute;
184
- right: 0;
202
+ flex-shrink: 0;
185
203
  display: flex;
186
204
  align-items: center;
187
205
  justify-content: center;
188
- width: var(--base-size-48);
189
- height: var(--base-size-48);
206
+ width: var(--base-size-32);
207
+ height: var(--base-size-32);
190
208
  margin: 0;
191
209
  padding: 0;
192
210
  border: none;
193
211
  border-radius: var(--base-size-48);
212
+ border: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
194
213
  background-color: var(--brand-LogoSuite-color-control-rest);
195
214
  transition: background-color var(--brand-animation-duration-faster);
196
215
  }
@@ -207,8 +226,137 @@
207
226
  .LogoSuite__logobar-playPauseButton svg {
208
227
  width: var(--base-size-16);
209
228
  height: var(--base-size-16);
229
+ fill: var(--brand-color-text-muted);
210
230
  }
211
231
 
212
232
  .LogoSuite__logobar-playPauseButton path {
213
- fill: var(--brand-button-subtle-fgColor-rest);
233
+ fill: var(--brand-color-text-muted);
234
+ }
235
+
236
+ /* Gridline expressive variant styles */
237
+ .LogoSuite--gridline-expressive {
238
+ padding: 0;
239
+ }
240
+
241
+ .LogoSuite--gridline-expressive .LogoSuite__content {
242
+ padding-inline: 0;
243
+ gap: 0;
244
+ max-width: 618px; /* From the Figma design */
245
+ }
246
+
247
+ .LogoSuite--gridline-expressive .LogoSuite__textContainer {
248
+ display: flex;
249
+ flex-direction: column;
250
+ justify-content: center;
251
+ padding: var(--base-size-20);
252
+ }
253
+
254
+ .LogoSuite--gridline-expressive .LogoSuite__logobar {
255
+ margin-block-start: auto;
256
+ }
257
+ .LogoSuite--gridline-expressive .LogoSuite__logobarContainer {
258
+ display: flex;
259
+ flex-direction: column;
260
+ justify-content: center;
261
+ padding: var(--base-size-32) var(--base-size-20) var(--base-size-32);
262
+ }
263
+
264
+ .LogoSuite--gridline-expressive .LogoSuite__logobar,
265
+ .LogoSuite--gridline-expressive .LogoSuite__logobar--has-marquee {
266
+ max-width: none;
267
+ width: 100%;
268
+ }
269
+
270
+ .LogoSuite--gridline-expressive .LogoSuite__heading + .LogoSuite__description {
271
+ padding-block-start: var(--base-size-8);
272
+ }
273
+
274
+ .LogoSuite--gridline-expressive .LogoSuite__logobar {
275
+ padding-block-start: 0;
276
+ }
277
+
278
+ @media screen and (min-width: 48rem) {
279
+ .LogoSuite--gridline-expressive .LogoSuite__logobarContainer {
280
+ padding: var(--base-size-36);
281
+ }
282
+ .LogoSuite--gridline-expressive .LogoSuite__content {
283
+ border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
284
+ }
285
+ .LogoSuite--gridline-expressive .LogoSuite__textContainer {
286
+ border-inline-end: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
287
+ }
288
+ }
289
+
290
+ @media screen and (min-width: 64rem) {
291
+ .LogoSuite--gridline-expressive .LogoSuite__content {
292
+ max-width: 1280px;
293
+ }
294
+
295
+ .LogoSuite--gridline-expressive .LogoSuite__textContainer {
296
+ text-align: left;
297
+ padding: var(--base-size-64);
298
+ }
299
+
300
+ .LogoSuite--gridline-expressive .LogoSuite__logobarContainer {
301
+ padding: var(--base-size-64);
302
+ }
303
+ }
304
+
305
+ @media screen and (min-width: 1281px) {
306
+ .LogoSuite--gridline-expressive .LogoSuite__content {
307
+ border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
308
+ }
309
+
310
+ /* When the logobar is the only column visible (no adjacent text), this removes start border */
311
+ .LogoSuite--gridline-expressive .LogoSuite__logobarContainer:first-child {
312
+ border-inline-start: none;
313
+ }
314
+ }
315
+
316
+ .LogoSuite__logobar--has-takeover {
317
+ position: relative;
318
+ overflow: visible;
319
+ }
320
+
321
+ /* Glass blur overlay effect */
322
+ .LogoSuite__logobar--has-takeover::before {
323
+ content: '';
324
+ position: absolute;
325
+ inset: calc(-1 * var(--base-size-16)) 0;
326
+ z-index: 1;
327
+ pointer-events: none;
328
+ opacity: 0;
329
+ backdrop-filter: blur(var(--base-size-6));
330
+ -webkit-backdrop-filter: blur(var(--base-size-6));
331
+ transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default);
332
+ }
333
+
334
+ .LogoSuite__logobar--has-takeover:hover::before,
335
+ .LogoSuite__logobar--has-takeover:focus-within::before {
336
+ opacity: 1;
337
+ }
338
+
339
+ .LogoSuite__logobar--has-takeover:hover svg,
340
+ .LogoSuite__logobar--has-takeover:focus-within svg,
341
+ .LogoSuite__logobar--has-takeover:hover img,
342
+ .LogoSuite__logobar--has-takeover:focus-within img {
343
+ opacity: 0.7;
344
+ transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default);
345
+ }
346
+
347
+ .LogoSuite__logobar-takeoverButtonContainer {
348
+ opacity: 0;
349
+ visibility: hidden;
350
+ z-index: 2;
351
+ transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default);
352
+ position: absolute;
353
+ top: 50%;
354
+ left: 50%;
355
+ transform: translate(-50%, -50%);
356
+ }
357
+
358
+ .LogoSuite__logobar--has-takeover:hover .LogoSuite__logobar-takeoverButtonContainer,
359
+ .LogoSuite__logobar--has-takeover:focus-within .LogoSuite__logobar-takeoverButtonContainer {
360
+ opacity: 1;
361
+ visibility: visible;
214
362
  }
@@ -445,6 +445,7 @@
445
445
  .PricingOptions__feature-list-accordion .PricingOptions__feature-list-accordion-heading :is(h1, h2, h3, h4, h5, h6) {
446
446
  font-size: var(--feature-list-font-size);
447
447
  line-height: var(--feature-list-line-height);
448
+ font-weight: var(--brand-text-subhead-weight-large);
448
449
  gap: var(--base-size-8);
449
450
  display: inline-flex;
450
451
  align-items: center;