@primer/brand-css 0.68.0-rc.275a2b0d → 0.68.0-rc.4784c3e3

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.
@@ -70,6 +70,10 @@
70
70
  padding: var(--brand-control-medium-paddingBlock-condensed) var(--brand-control-medium-paddingInline-normal); /* Override the default button padding */
71
71
  }
72
72
 
73
+ .ActionMenu__inner-button-dropdown-icon {
74
+ vertical-align: middle !important;
75
+ }
76
+
73
77
  .ActionMenu__innerButton--split-button:last-child {
74
78
  border-top-left-radius: 0;
75
79
  border-bottom-left-radius: 0;
@@ -38,6 +38,13 @@
38
38
  position: relative;
39
39
  }
40
40
 
41
+ .Button--label {
42
+ font-family: var(--brand-body-fontFamily);
43
+ font-style: normal;
44
+ font-weight: var(--base-text-weight-medium);
45
+ text-align: center;
46
+ }
47
+
41
48
  .Button__icon-visual {
42
49
  display: flex;
43
50
  align-self: center;
@@ -63,19 +70,20 @@
63
70
  .Button--primary {
64
71
  color: var(--brand-button-primary-fgColor-rest);
65
72
  background-color: var(--brand-button-primary-bgColor-rest);
66
- border: solid var(--brand-borderWidth-thin) var(--brand-button-primary-borderColor-rest);
73
+ }
74
+
75
+ .Button--size-small.Button--primary {
76
+ border-width: var(--brand-borderWidth-thin);
67
77
  }
68
78
 
69
79
  .Button--primary:not(.Button[disabled], .Button[aria-disabled='true'], [aria-expanded='true']):hover {
70
- background-color: var(--brand-button-primary-bgColor-hover);
71
- border-color: var(--brand-button-primary-borderColor-hover);
80
+ background: var(--brand-button-primary-bgColor-hover);
72
81
  }
73
82
 
74
83
  .Button--primary:not(.Button[disabled], .Button[aria-disabled='true']):active,
75
84
  .Button--primary[aria-expanded='true'] {
76
- background-color: var(--brand-button-primary-bgColor-active);
85
+ background: var(--brand-button-primary-bgColor-active);
77
86
  border-color: var(--brand-button-primary-borderColor-active);
78
- box-shadow: var(--brand-button-primary-shadow-active);
79
87
  }
80
88
 
81
89
  .Button--label-primary {
@@ -86,7 +94,6 @@
86
94
  .Button--primary[aria-disabled='true'],
87
95
  .Button--primary.Button--disabled {
88
96
  background-color: var(--brand-button-primary-bgColor-disabled);
89
- border-color: var(--brand-button-primary-borderColor-disabled);
90
97
  }
91
98
 
92
99
  .Button--primary:disabled .Button-arrow--disabled,
@@ -99,61 +106,24 @@
99
106
  color: var(--brand-button-primary-fgColor-disabled);
100
107
  }
101
108
 
102
- /* accent */
103
-
104
- .Button--accent {
105
- color: var(--brand-button-accent-fgColor-rest);
106
- background-color: var(--brand-button-accent-bgColor-rest);
107
- }
108
-
109
- .Button--size-small.Button--accent {
110
- border-width: var(--brand-borderWidth-thin);
111
- }
112
-
113
- .Button--accent:not(.Button[disabled], .Button[aria-disabled='true'], [aria-expanded='true']):hover {
114
- background: var(--brand-button-accent-bgColor-hover);
115
- }
116
-
117
- .Button--accent:not(.Button[disabled], .Button[aria-disabled='true']):active,
118
- .Button--accent[aria-expanded='true'] {
119
- background-color: var(--brand-button-accent-bgColor-active);
120
- border-color: var(--brand-button-accent-borderColor-active);
121
- }
122
-
123
- .Button--label-accent {
124
- color: var(--brand-button-accent-fgColor-rest);
125
- }
126
-
127
- .Button--accent:disabled,
128
- .Button--accent[aria-disabled='true'],
129
- .Button--accent.Button--disabled {
130
- background-color: var(--brand-button-accent-bgColor-disabled);
131
- }
132
-
133
- .Button--accent:disabled .Button-arrow--disabled,
134
- .Button--accent[aria-disabled='true'] .Button-arrow--disabled,
135
- .Button--accent.Button--disabled .Button-arrow--disabled,
136
- .Button--accent:disabled .Button__icon-visual--disabled,
137
- .Button--accent[aria-disabled='true'] .Button__icon-visual--disabled,
138
- .Button--accent.Button--disabled .Button__icon-visual--disabled,
139
- .Button--label-accent.Button-label--disabled {
140
- color: var(--brand-button-accent-fgColor-disabled);
141
- }
142
-
143
109
  /* secondary */
144
110
 
145
111
  .Button--secondary {
146
- transition: background-color, border-color 200ms;
112
+ transition: background var(--brand-animation-duration-faster), border-color var(--brand-animation-duration-faster);
113
+ background: var(--brand-button-secondary-bgColor-rest);
147
114
  border-color: var(--brand-button-secondary-borderColor-rest);
148
115
  color: var(--brand-button-secondary-fgColor-rest);
116
+ backdrop-filter: blur(var(--base-size-20));
149
117
  }
150
118
 
151
119
  .Button--secondary:not(.Button[disabled], .Button[aria-disabled='true'], [aria-expanded='true']):hover {
120
+ background: var(--brand-button-secondary-bgColor-hover);
152
121
  border-color: var(--brand-button-secondary-borderColor-hover);
153
122
  }
154
123
 
155
124
  .Button--secondary:not(.Button[disabled], .Button[aria-disabled='true']):active,
156
125
  .Button--secondary[aria-expanded='true'] {
126
+ background: var(--brand-button-secondary-bgColor-active);
157
127
  border-color: var(--brand-button-secondary-borderColor-active);
158
128
  }
159
129
 
@@ -174,19 +144,23 @@
174
144
  /* subtle */
175
145
 
176
146
  .Button--subtle {
177
- background-color: var(--brand-button-subtle-bgColor-rest);
147
+ transition: background var(--brand-animation-duration-faster), border-color var(--brand-animation-duration-faster);
148
+ background: var(--brand-button-subtle-bgColor-rest);
149
+ border-width: var(--brand-borderWidth-thin);
150
+ border-color: var(--brand-button-subtle-borderColor-rest);
178
151
  color: var(--brand-color-text-default);
179
- transition: background-color, border-color var(--brand-animation-duration-faster);
152
+ backdrop-filter: blur(var(--base-size-20));
180
153
  }
181
154
 
182
155
  .Button--subtle:not(.Button[disabled], .Button[aria-disabled='true'], [aria-expanded='true']):hover {
183
- background-color: var(--brand-button-subtle-bgColor-hover);
156
+ background: var(--brand-button-subtle-bgColor-hover);
157
+ border-color: var(--brand-button-subtle-borderColor-hover);
184
158
  }
185
159
 
186
160
  .Button--subtle:not(.Button[disabled], .Button[aria-disabled='true']):active,
187
161
  .Button--subtle[aria-expanded='true'] {
188
- background-color: var(--brand-button-subtle-bgColor-active);
189
- border-color: transparent;
162
+ background: var(--brand-button-subtle-bgColor-active);
163
+ border-color: var(--brand-button-subtle-borderColor-active);
190
164
  }
191
165
 
192
166
  .Button--label-subtle {
@@ -227,8 +201,9 @@
227
201
  }
228
202
 
229
203
  .Button--label-medium {
230
- font-size: var(--brand-text-subhead-size-medium);
231
- line-height: var(--brand-text-subhead-lineHeight-medium);
204
+ font-size: var(--brand-text-size-200);
205
+ line-height: var(--brand-text-lineHeight-200);
206
+ letter-spacing: 0.01rem;
232
207
  }
233
208
 
234
209
  .Button--label-large {
@@ -1,10 +1,13 @@
1
1
  .Pillar {
2
- max-width: 50ch;
3
2
  color: var(--brand-color-text-default);
4
3
  display: flex;
5
4
  flex-direction: column;
6
5
  }
7
6
 
7
+ .Pillar--has-max-width {
8
+ max-width: 50ch;
9
+ }
10
+
8
11
  .Pillar--has-border {
9
12
  border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
10
13
  border-radius: var(--brand-borderRadius-medium);
@@ -28,12 +31,13 @@
28
31
  }
29
32
 
30
33
  .Pillar__image img,
31
- .Pillar__image span {
34
+ .Pillar__image span,
35
+ .Pillar__image picture {
32
36
  display: block;
33
37
  }
34
38
 
35
39
  .Pillar__icon {
36
- margin-bottom: var(--base-size-24);
40
+ margin-bottom: var(--base-size-48);
37
41
  }
38
42
 
39
43
  .Pillar__icon--with-background > svg {
@@ -30,26 +30,6 @@
30
30
  }
31
31
  }
32
32
 
33
- .SectionIntroStacked--variant-gridline::before,
34
- .SectionIntroStacked--variant-gridline::after {
35
- content: '';
36
- position: absolute;
37
- left: 50%;
38
- transform: translateX(-50%);
39
- width: 100vw;
40
- height: 0;
41
- border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
42
- z-index: 1;
43
- }
44
-
45
- .SectionIntroStacked--variant-gridline::before {
46
- top: 0;
47
- }
48
-
49
- .SectionIntroStacked--variant-gridline::after {
50
- bottom: 0;
51
- }
52
-
53
33
  @media screen and (min-width: 80rem) {
54
34
  .SectionIntroStacked--variant-gridline {
55
35
  border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
@@ -37,29 +37,6 @@
37
37
  }
38
38
  }
39
39
 
40
- .Tiles--variant-gridlines {
41
- position: relative;
42
- }
43
-
44
- .Tiles--variant-gridlines::before,
45
- .Tiles--variant-gridlines::after {
46
- content: '';
47
- position: absolute;
48
- left: 50%;
49
- transform: translateX(-50%);
50
- width: 100vw;
51
- height: 0;
52
- border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
53
- }
54
-
55
- .Tiles--variant-gridlines::before {
56
- top: 0;
57
- }
58
-
59
- .Tiles--variant-gridlines::after {
60
- bottom: 0;
61
- }
62
-
63
40
  .Tiles--variant-gridlines .Tiles-grid {
64
41
  position: relative;
65
42
  padding-right: var(--brand-borderWidth-thin);
@@ -0,0 +1,32 @@
1
+ /*
2
+ * .gridline: horizontal gridlines that span the visible viewport, breaking
3
+ * out of constrained-width parents. Uses border-image-outset to extend the
4
+ * line visually without affecting layout or causing scrollbar overflow.
5
+ */
6
+
7
+ .gridline {
8
+ position: relative;
9
+ }
10
+
11
+ .gridline::before,
12
+ .gridline::after {
13
+ content: '';
14
+ position: absolute;
15
+ left: 0;
16
+ right: 0;
17
+ height: 0;
18
+ border-top: var(--brand-borderWidth-thin) solid;
19
+ -o-border-image: linear-gradient(var(--brand-color-border-muted), var(--brand-color-border-muted)) 1;
20
+ border-image: linear-gradient(var(--brand-color-border-muted), var(--brand-color-border-muted)) 1;
21
+ border-image-outset: 0 100vw;
22
+ z-index: 1;
23
+ pointer-events: none;
24
+ }
25
+
26
+ .gridline::before {
27
+ top: 0;
28
+ }
29
+
30
+ .gridline::after {
31
+ bottom: 0;
32
+ }
@@ -40,26 +40,6 @@
40
40
  padding-block: var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock);
41
41
  }
42
42
 
43
- .RiverAccordion--variant-gridline::before,
44
- .RiverAccordion--variant-gridline::after {
45
- content: '';
46
- position: absolute;
47
- left: 50%;
48
- transform: translateX(-50%);
49
- width: 100vw;
50
- height: 0;
51
- border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
52
- z-index: 1;
53
- }
54
-
55
- .RiverAccordion--variant-gridline::before {
56
- top: 0;
57
- }
58
-
59
- .RiverAccordion--variant-gridline::after {
60
- bottom: 0;
61
- }
62
-
63
43
  @media (min-width: 48rem) {
64
44
  .RiverAccordion--variant-gridline {
65
45
  --gap-width: var(--brand-RiverAccordion-variant-gridline-spacing-contentGap);
@@ -90,6 +70,15 @@
90
70
  border-radius: var(--brand-borderRadius-medium);
91
71
  }
92
72
 
73
+ .RiverAccordion--variant-gridline:has(.RiverAccordion__visual--has-background) .RiverAccordion__visualsContainer {
74
+ margin-inline: calc(-1 * var(--brand-RiverAccordion-variant-gridline-spacing-outerInline));
75
+ margin-block-start: calc(-1 * var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock));
76
+ }
77
+
78
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper:has(.RiverAccordion__visual--has-background) {
79
+ border-radius: 0;
80
+ }
81
+
93
82
  .RiverAccordion__accordionContainer {
94
83
  grid-area: accordion;
95
84
  }
@@ -112,6 +101,8 @@
112
101
  grid-row: 1;
113
102
  width: 100%;
114
103
  height: 100%;
104
+ display: flex;
105
+ align-items: center;
115
106
  opacity: 0;
116
107
  scale: 1.05;
117
108
  transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default),
@@ -119,11 +110,113 @@
119
110
  }
120
111
 
121
112
  .RiverAccordion__visualsWrapper > .RiverAccordion__visual > * {
113
+ display: block;
122
114
  width: 100%;
115
+ height: auto;
116
+ overflow: hidden;
117
+ border-radius: var(--brand-borderRadius-xlarge);
123
118
  -o-object-fit: contain;
124
119
  object-fit: contain;
125
120
  }
126
121
 
122
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual > * {
123
+ border-radius: var(--brand-borderRadius-medium);
124
+ }
125
+
126
+ .RiverAccordion__visualsWrapper > .RiverAccordion__visual img,
127
+ .RiverAccordion__visualsWrapper > .RiverAccordion__visual picture,
128
+ .RiverAccordion__visualsWrapper > .RiverAccordion__visual video {
129
+ display: block;
130
+ width: 100%;
131
+ height: auto;
132
+ border-radius: inherit;
133
+ -o-object-fit: contain;
134
+ object-fit: contain;
135
+ }
136
+
137
+ .RiverAccordion__visualsWrapper > .RiverAccordion__visual > * img,
138
+ .RiverAccordion__visualsWrapper > .RiverAccordion__visual > * video {
139
+ display: block;
140
+ width: 100%;
141
+ height: 100%;
142
+ border-radius: inherit;
143
+ -o-object-fit: cover;
144
+ object-fit: cover;
145
+ }
146
+
147
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background {
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: center;
151
+ padding: var(--base-size-32);
152
+ background: var(--brand-RiverAccordion-visual-background, var(--brand-color-canvas-subtle));
153
+ }
154
+
155
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background > * {
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: center;
159
+ max-width: 100%;
160
+ height: auto;
161
+ border-radius: var(--brand-borderRadius-large);
162
+ }
163
+
164
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background img,
165
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background picture,
166
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background video {
167
+ max-width: 100%;
168
+ height: 100%;
169
+ border-radius: var(--brand-borderRadius-large);
170
+ }
171
+
172
+ @media (min-width: 48rem) {
173
+ .RiverAccordion--variant-gridline:has(.RiverAccordion__visual--has-background) {
174
+ padding: 0;
175
+ gap: 0;
176
+ align-items: stretch;
177
+ grid-template-columns: 1fr 1fr;
178
+ }
179
+
180
+ .RiverAccordion--variant-gridline:has(.RiverAccordion__visual--has-background) .RiverAccordion__accordionContainer {
181
+ display: flex;
182
+ flex-direction: column;
183
+ justify-content: center;
184
+ padding: var(--brand-RiverAccordion-variant-gridline-spacing-outerBlock)
185
+ var(--brand-RiverAccordion-variant-gridline-spacing-outerInline);
186
+ }
187
+
188
+ .RiverAccordion--variant-gridline.RiverAccordion__align-start:has(.RiverAccordion__visual--has-background)
189
+ .RiverAccordion__accordionContainer {
190
+ padding-inline-end: var(--brand-RiverAccordion-variant-gridline-spacing-contentGap);
191
+ }
192
+
193
+ .RiverAccordion--variant-gridline.RiverAccordion__align-end:has(.RiverAccordion__visual--has-background)
194
+ .RiverAccordion__accordionContainer {
195
+ padding-inline-start: var(--brand-RiverAccordion-variant-gridline-spacing-contentGap);
196
+ }
197
+
198
+ .RiverAccordion--variant-gridline:has(.RiverAccordion__visual--has-background) .RiverAccordion__visualsContainer {
199
+ margin: 0;
200
+ }
201
+
202
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper:has(.RiverAccordion__visual--has-background) {
203
+ height: 100%;
204
+ }
205
+
206
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background {
207
+ align-items: center;
208
+ justify-content: center;
209
+ padding: var(--base-size-64);
210
+ }
211
+
212
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background > *,
213
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background img,
214
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background picture,
215
+ .RiverAccordion--variant-gridline .RiverAccordion__visualsWrapper > .RiverAccordion__visual--has-background video {
216
+ border-radius: var(--brand-borderRadius-large);
217
+ }
218
+ }
219
+
127
220
  /* Show the visual when the corresponding accordion item is open */
128
221
  .RiverAccordion:has(.RiverAccordion__item--open:nth-child(1)) .RiverAccordion__visualsContainer .RiverAccordion__visual:nth-child(1),
129
222
  .RiverAccordion:has(.RiverAccordion__item--open:nth-child(2)) .RiverAccordion__visualsContainer .RiverAccordion__visual:nth-child(2),
@@ -20,26 +20,6 @@
20
20
  }
21
21
  }
22
22
 
23
- .River--variant-gridline::before,
24
- .River--variant-gridline::after {
25
- content: '';
26
- position: absolute;
27
- left: 50%;
28
- transform: translateX(-50%);
29
- width: 100vw;
30
- height: 0;
31
- border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
32
- z-index: 1;
33
- }
34
-
35
- .River--variant-gridline::before {
36
- top: 0;
37
- }
38
-
39
- .River--variant-gridline::after {
40
- bottom: 0;
41
- }
42
-
43
23
  @media screen and (min-width: 80rem) {
44
24
  .River--variant-gridline {
45
25
  border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
@@ -475,25 +455,6 @@
475
455
  }
476
456
  }
477
457
 
478
- .RiverBreakout--variant-gridline::before,
479
- .RiverBreakout--variant-gridline::after {
480
- content: '';
481
- position: absolute;
482
- left: 50%;
483
- transform: translateX(-50%);
484
- width: 100vw;
485
- height: 0;
486
- border-top: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
487
- }
488
-
489
- .RiverBreakout--variant-gridline::before {
490
- top: 0;
491
- }
492
-
493
- .RiverBreakout--variant-gridline::after {
494
- bottom: 0;
495
- }
496
-
497
458
  @media screen and (min-width: 618px) {
498
459
  .RiverBreakout--variant-gridline {
499
460
  border-inline: var(--brand-borderWidth-thin) solid var(--brand-color-border-muted);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.68.0-rc.275a2b0d",
3
+ "version": "0.68.0-rc.4784c3e3",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",