@primer/brand-css 0.83.0-rc.0b4513cd → 0.83.0-rc.79bfdd51

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.
@@ -0,0 +1,212 @@
1
+ @property --brand-GridlineGroup-hoverStart {
2
+ syntax: '<color>';
3
+ inherits: false;
4
+ initial-value: transparent;
5
+ }
6
+
7
+ .GridlineGroup__container {
8
+ inline-size: 100%;
9
+ }
10
+
11
+ .GridlineGroup {
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ .GridlineGroup__container > .GridlineGroup {
16
+ margin-inline: auto;
17
+ }
18
+
19
+ @media screen and (min-width: 48rem) and (max-width: 63.24rem) {
20
+ .GridlineGroup--contained {
21
+ /* TODO: Replace the Security recipe's 91px tablet gutters when a matching layout token exists. */
22
+ max-inline-size: calc(100% - 182px);
23
+ }
24
+ }
25
+
26
+ .GridlineGroup--outerBorder-inline {
27
+ border-inline: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
28
+ }
29
+
30
+ .GridlineGroup--outerBorder-block {
31
+ border-block: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
32
+ }
33
+
34
+ .GridlineGroup--outerBorder-all {
35
+ border: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
36
+ }
37
+
38
+ .GridlineGroup__item {
39
+ position: relative;
40
+ display: grid;
41
+ grid-template-columns: minmax(0, 1fr);
42
+ }
43
+
44
+ .GridlineGroup__content {
45
+ display: grid;
46
+ grid-template-columns: minmax(0, 1fr);
47
+ animation: GridlineGroup-content-enter var(--brand-animation-duration-default) var(--brand-animation-easing-default)
48
+ both;
49
+ animation-delay: inherit;
50
+ }
51
+
52
+ .GridlineGroup__item--animated {
53
+ animation: GridlineGroup-item-enter var(--brand-animation-duration-default) var(--brand-animation-easing-default) both;
54
+ }
55
+
56
+ @keyframes GridlineGroup-item-enter {
57
+ from {
58
+ opacity: 0;
59
+ }
60
+
61
+ to {
62
+ opacity: 1;
63
+ }
64
+ }
65
+
66
+ @keyframes GridlineGroup-content-enter {
67
+ from {
68
+ transform: translateY(var(--brand-animation-variant-slideInUp-distance));
69
+ }
70
+
71
+ to {
72
+ transform: translateY(0);
73
+ }
74
+ }
75
+
76
+ .GridlineGroup__item--animated:focus-within {
77
+ opacity: 1 !important;
78
+ }
79
+
80
+ .GridlineGroup__item--animated:focus-within > .GridlineGroup__content {
81
+ transform: none !important;
82
+ }
83
+
84
+ /* Lines are drawn over each item's edge, so they don't shift its content. */
85
+ .GridlineGroup__item::after {
86
+ content: '';
87
+ position: absolute;
88
+ inset: 0;
89
+ z-index: 1;
90
+ border-block-end: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
91
+ border-inline-end: var(--brand-borderWidth-thin) solid var(--brand-GridlineGroup-borderColor);
92
+ pointer-events: none;
93
+ }
94
+
95
+ .GridlineGroup .GridlineGroup__item {
96
+ background-image: linear-gradient(180deg, var(--brand-GridlineGroup-hoverStart) 0%, transparent 100%);
97
+ transition: --brand-GridlineGroup-hoverStart var(--brand-animation-duration-extended)
98
+ var(--brand-animation-easing-default);
99
+ }
100
+
101
+ .GridlineGroup .GridlineGroup__item:is(:hover, :focus-within) {
102
+ --brand-GridlineGroup-hoverStart: var(--brand-GridlineGroup-bgColor-hover);
103
+ }
104
+
105
+ @media (prefers-reduced-motion: reduce) {
106
+ .GridlineGroup .GridlineGroup__item {
107
+ animation: none;
108
+ transition: none;
109
+ }
110
+
111
+ .GridlineGroup .GridlineGroup__content {
112
+ animation: none;
113
+ }
114
+ }
115
+
116
+ .GridlineGroup__item--xsmall-flushEnd::after {
117
+ border-inline-end-width: 0;
118
+ }
119
+
120
+ .GridlineGroup__item--xsmall-lastRow::after {
121
+ border-block-end-width: 0;
122
+ }
123
+
124
+ @media screen and (min-width: 34rem) {
125
+ .GridlineGroup__item--small-flushEnd::after {
126
+ border-inline-end-width: 0;
127
+ }
128
+
129
+ .GridlineGroup__item--small-notFlushEnd::after {
130
+ border-inline-end-width: var(--brand-borderWidth-thin);
131
+ }
132
+
133
+ .GridlineGroup__item--small-lastRow::after {
134
+ border-block-end-width: 0;
135
+ }
136
+
137
+ .GridlineGroup__item--small-notLastRow::after {
138
+ border-block-end-width: var(--brand-borderWidth-thin);
139
+ }
140
+ }
141
+
142
+ @media screen and (min-width: 48rem) {
143
+ .GridlineGroup__item--medium-flushEnd::after {
144
+ border-inline-end-width: 0;
145
+ }
146
+
147
+ .GridlineGroup__item--medium-notFlushEnd::after {
148
+ border-inline-end-width: var(--brand-borderWidth-thin);
149
+ }
150
+
151
+ .GridlineGroup__item--medium-lastRow::after {
152
+ border-block-end-width: 0;
153
+ }
154
+
155
+ .GridlineGroup__item--medium-notLastRow::after {
156
+ border-block-end-width: var(--brand-borderWidth-thin);
157
+ }
158
+ }
159
+
160
+ @media screen and (min-width: 63.25rem) {
161
+ .GridlineGroup__item--large-flushEnd::after {
162
+ border-inline-end-width: 0;
163
+ }
164
+
165
+ .GridlineGroup__item--large-notFlushEnd::after {
166
+ border-inline-end-width: var(--brand-borderWidth-thin);
167
+ }
168
+
169
+ .GridlineGroup__item--large-lastRow::after {
170
+ border-block-end-width: 0;
171
+ }
172
+
173
+ .GridlineGroup__item--large-notLastRow::after {
174
+ border-block-end-width: var(--brand-borderWidth-thin);
175
+ }
176
+ }
177
+
178
+ @media screen and (min-width: 80rem) {
179
+ .GridlineGroup__item--xlarge-flushEnd::after {
180
+ border-inline-end-width: 0;
181
+ }
182
+
183
+ .GridlineGroup__item--xlarge-notFlushEnd::after {
184
+ border-inline-end-width: var(--brand-borderWidth-thin);
185
+ }
186
+
187
+ .GridlineGroup__item--xlarge-lastRow::after {
188
+ border-block-end-width: 0;
189
+ }
190
+
191
+ .GridlineGroup__item--xlarge-notLastRow::after {
192
+ border-block-end-width: var(--brand-borderWidth-thin);
193
+ }
194
+ }
195
+
196
+ @media screen and (min-width: 87.5rem) {
197
+ .GridlineGroup__item--xxlarge-flushEnd::after {
198
+ border-inline-end-width: 0;
199
+ }
200
+
201
+ .GridlineGroup__item--xxlarge-notFlushEnd::after {
202
+ border-inline-end-width: var(--brand-borderWidth-thin);
203
+ }
204
+
205
+ .GridlineGroup__item--xxlarge-lastRow::after {
206
+ border-block-end-width: 0;
207
+ }
208
+
209
+ .GridlineGroup__item--xxlarge-notLastRow::after {
210
+ border-block-end-width: var(--brand-borderWidth-thin);
211
+ }
212
+ }
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .Hero--variant-default {
7
- padding: var(--brand-Hero-narrow-padding);
7
+ padding: var(--brand-Hero-padding);
8
8
  }
9
9
 
10
10
  .Hero--align-start {
@@ -320,14 +320,7 @@
320
320
  }
321
321
 
322
322
  .Hero-eyebrow {
323
- margin-block-end: var(--base-size-32);
324
- }
325
-
326
- /* Small breakpoint and up */
327
- @media screen and (min-width: 34rem) {
328
- .Hero--variant-default {
329
- padding: var(--brand-Hero-regular-padding);
330
- }
323
+ margin-block-end: var(--brand-Hero-eyebrow-marginBlockEnd);
331
324
  }
332
325
 
333
326
  .Hero-video-poster-button {
@@ -367,6 +367,7 @@
367
367
  display: flex;
368
368
  position: relative;
369
369
  width: 100%;
370
+ min-inline-size: 0;
370
371
  z-index: 9999;
371
372
  justify-content: flex-end;
372
373
  padding-inline-end: var(--base-size-16);
@@ -381,10 +382,13 @@
381
382
 
382
383
  .SubNav__overlay-toggle-content {
383
384
  width: 100%;
385
+ min-inline-size: 0;
384
386
  padding-inline-start: var(--base-size-16);
385
387
  }
386
388
 
387
389
  .SubNav__overlay-toggle-label {
390
+ position: relative;
391
+ max-inline-size: 100%;
388
392
  background-color: var(--brand-SubNav-color-link-bgColor);
389
393
  border: none;
390
394
  border-radius: var(--brand-borderRadius-full);
@@ -392,8 +396,25 @@
392
396
  gap: var(--base-size-6);
393
397
  display: flex;
394
398
  align-items: center;
399
+ text-align: start;
400
+ white-space: normal;
401
+ overflow-wrap: anywhere;
395
402
  cursor: pointer;
396
403
  font: inherit;
404
+ overflow: hidden;
405
+ }
406
+
407
+ .SubNav__overlay-toggle-text {
408
+ inline-size: -moz-max-content;
409
+ inline-size: max-content;
410
+ flex-shrink: 0;
411
+ white-space: nowrap;
412
+ }
413
+
414
+ .SubNav__overlay-toggle-text--hidden {
415
+ /* Keep the intrinsic width measurable so the label can return when space allows. */
416
+ position: absolute;
417
+ visibility: hidden;
397
418
  }
398
419
 
399
420
  .SubNav--full-width .SubNav__overlay-toggle {
@@ -522,6 +543,7 @@
522
543
 
523
544
  .SubNav__overlay-toggle-icon {
524
545
  fill: var(--brand-color-text-default);
546
+ flex-shrink: 0;
525
547
  }
526
548
 
527
549
  .SubNav__overlay-toggle-content {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.83.0-rc.0b4513cd",
3
+ "version": "0.83.0-rc.79bfdd51",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",