@mixtint/primer-view-components 0.89.2 → 0.90.1

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.
Files changed (54) hide show
  1. package/app/assets/javascripts/primer_view_components.js +1 -1
  2. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  3. package/app/assets/styles/primer_view_components.css +206 -646
  4. package/app/assets/styles/primer_view_components.css.map +1 -1
  5. package/app/components/primer/alpha/action_bar.css +9 -3
  6. package/app/components/primer/alpha/action_list.css +92 -2
  7. package/app/components/primer/alpha/auto_complete.css +4 -22
  8. package/app/components/primer/alpha/auto_complete.css.json +1 -3
  9. package/app/components/primer/alpha/banner.css +0 -1
  10. package/app/components/primer/alpha/button_marketing.css +4 -4
  11. package/app/components/primer/alpha/dialog.css +63 -0
  12. package/app/components/primer/alpha/dropdown.css +0 -6
  13. package/app/components/primer/alpha/layout.css +3 -1
  14. package/app/components/primer/alpha/menu.css +0 -6
  15. package/app/components/primer/alpha/overlay.css +5 -0
  16. package/app/components/primer/alpha/segmented_control.css +0 -4
  17. package/app/components/primer/alpha/tab_nav.css +0 -8
  18. package/app/components/primer/alpha/text_field.css +97 -5
  19. package/app/components/primer/alpha/text_field.css.json +2 -2
  20. package/app/components/primer/alpha/toggle_switch.css +8 -7
  21. package/app/components/primer/alpha/tree_view.css +1 -0
  22. package/app/components/primer/alpha/underline_nav.css +0 -3
  23. package/app/components/primer/beta/avatar.css +0 -1
  24. package/app/components/primer/beta/avatar_stack.css +33 -0
  25. package/app/components/primer/beta/blankslate.css +2 -61
  26. package/app/components/primer/beta/border_box.css +35 -0
  27. package/app/components/primer/beta/breadcrumbs.css +7 -4
  28. package/app/components/primer/beta/breadcrumbs.css.json +2 -1
  29. package/app/components/primer/beta/button.css +51 -1
  30. package/app/components/primer/beta/flash.css +0 -16
  31. package/app/components/primer/beta/label.css +0 -2
  32. package/app/components/primer/beta/link.css +0 -2
  33. package/app/components/primer/beta/popover.css +138 -85
  34. package/app/components/primer/beta/popover.css.json +22 -16
  35. package/app/components/primer/beta/state.css +0 -1
  36. package/app/components/primer/beta/subhead.css +0 -8
  37. package/app/components/primer/beta/timeline_item.css +0 -5
  38. package/app/components/primer/beta/truncate.css +0 -1
  39. package/app/components/primer/open_project/avatar_stack.css +10 -0
  40. package/app/components/primer/open_project/border_box/collapsible_header.css +3 -1
  41. package/app/components/primer/open_project/border_grid.css +11 -9
  42. package/app/components/primer/open_project/collapsible.d.ts +1 -1
  43. package/app/components/primer/open_project/collapsible.js +8 -4
  44. package/app/components/primer/open_project/filterable_tree_view.css +2 -7
  45. package/app/components/primer/open_project/page_header.css +2 -5
  46. package/app/components/primer/open_project/pagination.css +4 -1
  47. package/app/components/primer/open_project/side_panel/section.css +3 -3
  48. package/package.json +31 -11
  49. package/static/classes.json +21 -0
  50. package/static/classnames.cjs +516 -0
  51. package/static/classnames.d.ts +2 -0
  52. package/static/classnames.js +518 -0
  53. package/static/info_arch.json +26 -0
  54. package/static/previews.json +2404 -2378
@@ -18,7 +18,7 @@
18
18
  }
19
19
 
20
20
  .blankslate p {
21
- font-size: var(--text-body-size-large);
21
+ font-size: var(--text-body-size-medium);
22
22
  color: var(--fgColor-muted);
23
23
  max-width: 56rem;
24
24
  margin: auto;
@@ -42,23 +42,19 @@
42
42
  }
43
43
 
44
44
  .blankslate-icon {
45
- /* stylelint-disable-next-line primer/spacing */
46
45
  margin-right: var(--control-small-gap);
47
- /* stylelint-disable-next-line primer/spacing */
48
46
  margin-bottom: var(--stack-gap-condensed);
49
- /* stylelint-disable-next-line primer/spacing */
50
47
  margin-left: var(--control-small-gap);
51
48
  color: var(--fgColor-muted);
52
49
  }
53
50
 
54
51
  .blankslate-image {
55
- /* stylelint-disable-next-line primer/spacing */
56
52
  margin-bottom: var(--stack-gap-normal);
57
53
  }
58
54
 
59
55
  .blankslate-heading {
60
56
  margin-bottom: var(--base-size-4);
61
- font-size: var(--text-title-size-medium);
57
+ font-size: var(--text-title-size-small);
62
58
  font-weight: var(--text-title-weight-medium);
63
59
  text-wrap: balance;
64
60
  }
@@ -68,17 +64,14 @@
68
64
  }
69
65
 
70
66
  .blankslate-action {
71
- /* stylelint-disable-next-line primer/spacing */
72
67
  margin-top: var(--stack-gap-normal);
73
68
  }
74
69
 
75
70
  .blankslate-action:first-of-type {
76
- /* stylelint-disable-next-line primer/spacing */
77
71
  margin-top: var(--stack-gap-spacious);
78
72
  }
79
73
 
80
74
  .blankslate-action:last-of-type {
81
- /* stylelint-disable-next-line primer/spacing */
82
75
  margin-bottom: var(--stack-gap-condensed);
83
76
  }
84
77
 
@@ -98,78 +91,26 @@
98
91
 
99
92
  /* was .large-format
100
93
  ** QUESTION: should we deprecate this? */
101
-
102
94
  /* stylelint-disable-next-line selector-max-type */
103
-
104
95
  .blankslate-large img {
105
96
  width: 80px;
106
97
  height: 80px;
107
98
  }
108
-
109
99
  /* stylelint-disable-next-line selector-max-type */
110
-
111
100
  .blankslate-large h3 {
112
- /* stylelint-disable-next-line primer/spacing */
113
101
  margin: var(--stack-gap-normal) 0;
114
102
 
115
103
  /* font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size? */
116
104
  /* stylelint-disable-next-line primer/typography */
117
105
  font-size: 24px;
118
106
  }
119
-
120
107
  /* stylelint-disable-next-line selector-max-type */
121
-
122
108
  .blankslate-large p {
123
109
  font-size: var(--text-body-size-large);
124
110
  }
125
111
 
126
112
  /* was .clean-background
127
113
  ** TO DO: deprecate this and use utility instead */
128
-
129
114
  .blankslate-clean-background {
130
115
  border: 0;
131
116
  }
132
-
133
- /* At the time these styles were written,
134
- `34rem` was our "small" breakpoint width */
135
-
136
- @container (max-width: 34rem) {
137
- .blankslate {
138
- --blankslate-outer-padding-block: var(--base-size-20);
139
- --blankslate-outer-padding-inline: var(--base-size-20);
140
- }
141
-
142
- .blankslate-spacious {
143
- --blankslate-outer-padding-block: var(--base-size-44);
144
- --blankslate-outer-padding-inline: var(--base-size-28);
145
- }
146
-
147
- .blankslate-icon {
148
- /* stylelint-disable-next-line primer/spacing */
149
- margin-bottom: var(--stack-gap-condensed);
150
- }
151
-
152
- .blankslate-heading {
153
- font-size: var(--text-title-size-small);
154
- }
155
-
156
- /* stylelint-disable-next-line selector-max-type */
157
- .blankslate p {
158
- font-size: var(--text-body-size-medium);
159
- }
160
-
161
- .blankslate-action {
162
- /* stylelint-disable-next-line primer/spacing */
163
- margin-top: var(--stack-gap-condensed);
164
- }
165
-
166
- .blankslate-action:first-of-type {
167
- /* stylelint-disable-next-line primer/spacing */
168
- margin-top: var(--stack-gap-normal);
169
- }
170
-
171
- .blankslate-action:last-of-type {
172
- /* stylelint-disable-next-line primer/spacing */
173
- margin-bottom: calc(var(--stack-gap-condensed) / 2);
174
- }
175
- }
@@ -1,6 +1,8 @@
1
1
  /* stylelint-disable primer/spacing */
2
2
  /* stylelint-disable primer/typography */
3
+
3
4
  /* BorderBox */
5
+
4
6
  /* TODO: Rename to BorderBox to match PVC */
5
7
  .Box {
6
8
  background-color: var(--bgColor-default);
@@ -9,6 +11,7 @@
9
11
  border-width: var(--borderWidth-thin);
10
12
  border-radius: var(--borderRadius-medium);
11
13
  }
14
+
12
15
  /* Box padding density options */
13
16
  .Box--condensed {
14
17
  line-height: 1.25;
@@ -30,26 +33,33 @@
30
33
  .Box--condensed .Box-row {
31
34
  padding: var(--stack-padding-condensed) var(--stack-padding-normal);
32
35
  }
36
+
33
37
  .Box--spacious .Box-header {
34
38
  padding: var(--stack-padding-spacious);
35
39
  line-height: 1.25;
36
40
  }
41
+
37
42
  .Box--spacious .Box-title {
38
43
  font-size: var(--text-title-size-medium);
39
44
  }
45
+
40
46
  .Box--spacious .Box-body {
41
47
  padding: var(--stack-padding-spacious);
42
48
  }
49
+
43
50
  .Box--spacious .Box-footer {
44
51
  padding: var(--stack-padding-spacious);
45
52
  }
53
+
46
54
  .btn-octicon:is(.Box--spacious .Box-btn-octicon) {
47
55
  padding: var(--stack-padding-spacious);
48
56
  margin: calc(var(--stack-gap-spacious) * -1);
49
57
  }
58
+
50
59
  .Box--spacious .Box-row {
51
60
  padding: var(--stack-padding-spacious);
52
61
  }
62
+
53
63
  .Box-header {
54
64
  padding: var(--stack-padding-normal);
55
65
  margin: calc(var(--borderWidth-thin) * -1) calc(var(--borderWidth-thin) * -1) 0;
@@ -60,21 +70,25 @@
60
70
  border-top-left-radius: var(--borderRadius-medium);
61
71
  border-top-right-radius: var(--borderRadius-medium);
62
72
  }
73
+
63
74
  .Box-title {
64
75
  font-size: var(--text-body-size-medium);
65
76
  font-weight: var(--base-text-weight-semibold);
66
77
  }
78
+
67
79
  .Box-body {
68
80
  padding: var(--stack-padding-normal);
69
81
  border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
70
82
 
71
83
  /* Ensures bottom-border doesn't poke out when .Box-body used without box-footer */
72
84
  }
85
+
73
86
  .Box-body:last-of-type {
74
87
  margin-bottom: calc(var(--borderWidth-thin) * -1);
75
88
  border-bottom-right-radius: var(--borderRadius-medium);
76
89
  border-bottom-left-radius: var(--borderRadius-medium);
77
90
  }
91
+
78
92
  /* Box rows */
79
93
  .Box-row {
80
94
  padding: var(--stack-padding-normal);
@@ -121,18 +135,23 @@
121
135
  .Box-row.navigation-focus.sortable-ghost .Box-row--drag-hide {
122
136
  opacity: 0;
123
137
  }
138
+
124
139
  .Box-row--focus-gray.navigation-focus {
125
140
  background-color: var(--bgColor-muted);
126
141
  }
142
+
127
143
  .Box-row--focus-blue.navigation-focus {
128
144
  background-color: var(--bgColor-accent-muted);
129
145
  }
146
+
130
147
  .Box-row--hover-gray:hover {
131
148
  background-color: var(--bgColor-muted);
132
149
  }
150
+
133
151
  .Box-row--hover-blue:hover {
134
152
  background-color: var(--bgColor-accent-muted);
135
153
  }
154
+
136
155
  /* Optional link style
137
156
  ** Makes links on mobile blue since they don't have hover state,
138
157
  ** and links are dark-gray with blue hover on desktop. */
@@ -149,11 +168,13 @@
149
168
  text-decoration: none;
150
169
  }
151
170
  }
171
+
152
172
  /* Optional drag icon styles for reordering items
153
173
  ** Focus styles included in .Box-row above */
154
174
  .Box-row--drag-button {
155
175
  opacity: 0;
156
176
  }
177
+
157
178
  .Box-footer {
158
179
  padding: var(--stack-padding-normal);
159
180
  margin-top: calc(var(--borderWidth-thin) * -1); /* prevents double border when used with .Box-body */
@@ -162,28 +183,36 @@
162
183
  border-top-width: var(--borderWidth-thin);
163
184
  border-radius: 0 0 var(--borderRadius-medium) var(--borderRadius-medium);
164
185
  }
186
+
165
187
  /* Option for a box with scrolling content */
166
188
  .Box--scrollable {
167
189
  max-height: 324px;
168
190
  overflow: scroll;
169
191
  }
192
+
170
193
  /* Box themes */
194
+
171
195
  .Box--blue {
172
196
  border-color: var(--borderColor-accent-muted);
173
197
  }
198
+
174
199
  .Box--blue .Box-header {
175
200
  background-color: var(--bgColor-accent-muted);
176
201
  border-color: var(--borderColor-accent-muted);
177
202
  }
203
+
178
204
  .Box--blue .Box-body {
179
205
  border-color: var(--borderColor-accent-muted);
180
206
  }
207
+
181
208
  .Box--blue .Box-row {
182
209
  border-color: var(--borderColor-accent-muted);
183
210
  }
211
+
184
212
  .Box--blue .Box-footer {
185
213
  border-color: var(--borderColor-accent-muted);
186
214
  }
215
+
187
216
  /* Applies and red border to the outside of the box,
188
217
  ** but not to the border separating rows. */
189
218
  .Box--danger {
@@ -195,20 +224,26 @@
195
224
  :is(.Box--danger .Box-body):last-of-type {
196
225
  border-color: var(--borderColor-danger-emphasis);
197
226
  }
227
+
198
228
  .Box-header--blue {
199
229
  background-color: var(--bgColor-accent-muted);
200
230
  border-color: var(--borderColor-accent-muted);
201
231
  }
232
+
202
233
  /* Box row highlight themes */
234
+
203
235
  .Box-row--yellow {
204
236
  background-color: var(--bgColor-attention-muted);
205
237
  }
238
+
206
239
  .Box-row--blue {
207
240
  background-color: var(--bgColor-accent-muted);
208
241
  }
242
+
209
243
  .Box-row--gray {
210
244
  background-color: var(--bgColor-muted);
211
245
  }
246
+
212
247
  /* Box with btn-octicon */
213
248
  /* Increase specificity when btn-octicon is used because comes after .Box in the cascade */
214
249
  .Box-btn-octicon.btn-octicon {
@@ -15,12 +15,15 @@
15
15
  transform: rotate(15deg) translateY(0.0625em);
16
16
  }
17
17
 
18
- :is(.breadcrumb-item-selected,.breadcrumb-item[aria-current]:not([aria-current='false']))::after {
19
- content: none;
20
- }
18
+ /* Expanded per-class so each selector buckets by its own class during style
19
+ ** recalc, instead of compiling to a merged `:is(...)` that Blink cannot
20
+ ** fast-reject. */
21
+ .breadcrumb-item-selected::after,
22
+ .breadcrumb-item[aria-current]:not([aria-current='false'])::after {
23
+ content: none;
24
+ }
21
25
 
22
26
  /* stylelint-disable-next-line selector-max-type */
23
-
24
27
  .breadcrumb-item-selected a {
25
28
  color: var(--fgColor-default);
26
29
  -webkit-text-decoration: none !important;
@@ -3,7 +3,8 @@
3
3
  "selectors": [
4
4
  ".breadcrumb-item",
5
5
  ".breadcrumb-item::after",
6
- ":is(.breadcrumb-item-selected,.breadcrumb-item[aria-current]:not([aria-current='false']))::after",
6
+ ".breadcrumb-item-selected::after",
7
+ ".breadcrumb-item[aria-current]:not([aria-current='false'])::after",
7
8
  ".breadcrumb-item-selected a"
8
9
  ]
9
10
  }
@@ -1,12 +1,14 @@
1
1
  /* stylelint-disable selector-no-qualifying-type */
2
2
  /* stylelint-disable selector-max-type */
3
- /* stylelint-disable primer/spacing */
3
+
4
4
  /* CSS for Button */
5
+
5
6
  /* temporary, pre primitives release */
6
7
  :root {
7
8
  --duration-fast: 80ms;
8
9
  --easing-easeInOut: cubic-bezier(0.65, 0, 0.35, 1);
9
10
  }
11
+
10
12
  /* base button */
11
13
  .Button {
12
14
  position: relative;
@@ -61,10 +63,12 @@
61
63
  .Button.Button--iconOnly {
62
64
  color: var(--fgColor-muted);
63
65
  }
66
+
64
67
  :is(a.Button,summary.Button):hover {
65
68
  -webkit-text-decoration: none;
66
69
  text-decoration: none;
67
70
  }
71
+
68
72
  /* wrap grid content to allow trailingAction to lock-right */
69
73
  .Button-content {
70
74
  flex: 1 0 auto;
@@ -79,11 +83,14 @@
79
83
  .Button-content > :not(:last-child) {
80
84
  margin-right: var(--control-medium-gap);
81
85
  }
86
+
82
87
  /* center child elements for fullWidth */
83
88
  .Button-content--alignStart {
84
89
  justify-content: start;
85
90
  }
91
+
86
92
  /* button child elements */
93
+
87
94
  /* align svg */
88
95
  .Button-visual {
89
96
  display: flex;
@@ -93,24 +100,31 @@
93
100
  color: inherit;
94
101
  background-color: var(--buttonCounter-default-bgColor-rest);
95
102
  }
103
+
96
104
  .Button-label {
97
105
  line-height: var(--text-body-lineHeight-medium);
98
106
  white-space: nowrap;
99
107
  grid-area: text;
100
108
  }
109
+
101
110
  .Button-leadingVisual {
102
111
  grid-area: leadingVisual;
103
112
  }
113
+
104
114
  .Button-leadingVisual svg {
105
115
  fill: currentcolor;
106
116
  }
117
+
107
118
  .Button-trailingVisual {
108
119
  grid-area: trailingVisual;
109
120
  }
121
+
110
122
  .Button-trailingAction {
111
123
  margin-right: calc(var(--base-size-4) * -1);
112
124
  }
125
+
113
126
  /* sizes */
127
+
114
128
  .Button--small {
115
129
  min-width: var(--control-small-size);
116
130
  height: var(--control-small-size);
@@ -118,56 +132,72 @@
118
132
  font-size: var(--text-body-size-small);
119
133
  gap: var(--control-small-gap);
120
134
  }
135
+
121
136
  .Button--small .Button-label {
122
137
  line-height: var(--text-body-lineHeight-small);
123
138
  }
139
+
124
140
  :is(.Button--small .Button-content) > :not(:last-child) {
125
141
  margin-right: var(--control-small-gap);
126
142
  }
143
+
127
144
  .Button--large {
128
145
  height: var(--control-large-size);
129
146
  padding: 0 var(--control-large-paddingInline-spacious);
130
147
  gap: var(--control-large-gap);
131
148
  }
149
+
132
150
  .Button--large .Button-label {
133
151
  line-height: var(--text-body-lineHeight-large);
134
152
  }
153
+
135
154
  :is(.Button--large .Button-content) > :not(:last-child) {
136
155
  margin-right: var(--control-large-gap);
137
156
  }
157
+
138
158
  .Button--fullWidth {
139
159
  width: 100%;
140
160
  }
161
+
141
162
  /* allow button label text to wrap */
163
+
142
164
  .Button--labelWrap {
143
165
  min-width: fit-content;
144
166
  height: unset;
145
167
  min-height: var(--control-medium-size);
146
168
  }
169
+
147
170
  .Button--labelWrap .Button-content {
148
171
  flex: 1 1 auto;
149
172
  align-self: stretch;
150
173
  padding-block: calc(var(--control-medium-paddingBlock) - var(--base-size-2));
151
174
  }
175
+
152
176
  .Button--labelWrap .Button-label {
153
177
  white-space: unset;
154
178
  }
179
+
155
180
  .Button--labelWrap.Button--small {
156
181
  height: unset;
157
182
  min-height: var(--control-small-size);
158
183
  }
184
+
159
185
  .Button--labelWrap.Button--small .Button-content {
160
186
  padding-block: calc(var(--control-small-paddingBlock) - var(--base-size-2));
161
187
  }
188
+
162
189
  .Button--labelWrap.Button--large {
163
190
  height: unset;
164
191
  min-height: var(--control-large-size);
165
192
  padding-inline: var(--control-large-paddingInline-spacious);
166
193
  }
194
+
167
195
  .Button--labelWrap.Button--large .Button-content {
168
196
  padding-block: calc(var(--control-large-paddingBlock) - var(--base-size-2));
169
197
  }
198
+
170
199
  /* variants */
200
+
171
201
  /* primary */
172
202
  .Button--primary {
173
203
  color: var(--button-primary-fgColor-rest);
@@ -215,6 +245,7 @@
215
245
  color: inherit;
216
246
  background-color: var(--buttonCounter-primary-bgColor-rest);
217
247
  }
248
+
218
249
  /* default (secondary) */
219
250
  .Button--secondary {
220
251
  color: var(--button-default-fgColor-rest);
@@ -241,34 +272,44 @@
241
272
  background-color: var(--button-default-bgColor-disabled);
242
273
  border-color: var(--button-default-borderColor-disabled);
243
274
  }
275
+
244
276
  .Button--invisible {
245
277
  color: var(--button-invisible-fgColor-rest);
246
278
  }
279
+
247
280
  .Button--invisible.Button--iconOnly {
248
281
  color: var(--button-invisible-iconColor-rest, var(--color-fg-muted));
249
282
  }
283
+
250
284
  .Button--invisible:hover:not(:disabled,.Button--inactive) {
251
285
  background-color: var(--control-transparent-bgColor-hover, var(--color-action-list-item-default-hover-bg));
252
286
  }
287
+
253
288
  .Button--invisible[aria-pressed='true'],.Button--invisible:active:not(:disabled) {
254
289
  background-color: var(--button-invisible-bgColor-active);
255
290
  }
291
+
256
292
  .Button--invisible:disabled,.Button--invisible[aria-disabled='true'] {
257
293
  color: var(--button-invisible-fgColor-disabled);
258
294
  fill: var(--button-invisible-fgColor-disabled);
259
295
  background-color: var(--button-invisible-bgColor-disabled);
260
296
  border-color: var(--button-invisible-borderColor-disabled);
261
297
  }
298
+
262
299
  /* if button has no visuals, use link blue for text */
300
+
263
301
  .Button--invisible.Button--invisible-noVisuals .Button-label {
264
302
  color: var(--button-invisible-fgColor-rest);
265
303
  }
304
+
266
305
  .Button--invisible .Button-visual {
267
306
  color: var(--button-invisible-iconColor-rest, var(--color-fg-muted));
268
307
  }
308
+
269
309
  :is(.Button--invisible .Button-visual) .Counter {
270
310
  color: var(--fgColor-default);
271
311
  }
312
+
272
313
  .Button--link {
273
314
  display: inline-block;
274
315
  min-width: fit-content;
@@ -279,22 +320,27 @@
279
320
  fill: var(--fgColor-link);
280
321
  border: none;
281
322
  }
323
+
282
324
  .Button--link:hover:not(:disabled,.Button--inactive) {
283
325
  -webkit-text-decoration: underline;
284
326
  text-decoration: underline;
285
327
  }
328
+
286
329
  .Button--link:focus-visible,.Button--link:focus {
287
330
  outline-offset: 2px;
288
331
  }
332
+
289
333
  .Button--link:disabled,.Button--link[aria-disabled='true'] {
290
334
  color: var(--control-fgColor-disabled);
291
335
  fill: var(--control-fgColor-disabled);
292
336
  background-color: transparent;
293
337
  border-color: transparent;
294
338
  }
339
+
295
340
  .Button--link .Button-label {
296
341
  white-space: unset;
297
342
  }
343
+
298
344
  /* danger */
299
345
  .Button--danger {
300
346
  color: var(--button-danger-fgColor-rest);
@@ -338,18 +384,22 @@
338
384
  color: var(--buttonCounter-danger-fgColor-rest);
339
385
  background-color: var(--buttonCounter-danger-bgColor-rest);
340
386
  }
387
+
341
388
  .Button--iconOnly {
342
389
  display: inline-grid;
343
390
  width: var(--control-medium-size);
344
391
  padding: unset;
345
392
  place-content: center;
346
393
  }
394
+
347
395
  .Button--iconOnly.Button--small {
348
396
  width: var(--control-small-size);
349
397
  }
398
+
350
399
  .Button--iconOnly.Button--large {
351
400
  width: var(--control-large-size);
352
401
  }
402
+
353
403
  /* `disabled` takes precedence over `inactive` */
354
404
  .Button--inactive:not([aria-disabled='true'], :disabled) {
355
405
  color: var(--button-inactive-fgColor);
@@ -3,7 +3,6 @@
3
3
  /* flash */
4
4
 
5
5
  /* Default flash */
6
-
7
6
  .flash:not(.Banner) {
8
7
  position: relative;
9
8
  padding: var(--base-size-20) var(--control-medium-paddingInline-spacious);
@@ -16,26 +15,21 @@
16
15
  border-width: var(--borderWidth-thin);
17
16
  border-radius: var(--borderRadius-medium);
18
17
  }
19
-
20
18
  .flash:not(.Banner) .octicon {
21
19
  margin-right: var(--base-size-12);
22
20
  color: var(--fgColor-accent);
23
21
  }
24
-
25
22
  /* stylelint-disable-next-line selector-max-type */
26
-
27
23
  .flash:not(.Banner) p:last-child {
28
24
  margin-bottom: 0;
29
25
  }
30
26
 
31
27
  /* Contain the flash messages */
32
-
33
28
  .flash-messages {
34
29
  margin-bottom: var(--stack-gap-spacious);
35
30
  }
36
31
 
37
32
  /* Close button */
38
-
39
33
  .flash-close:not(.Banner-close) {
40
34
  float: right;
41
35
  margin-top: calc(var(--base-size-4) * -1);
@@ -47,37 +41,30 @@
47
41
  border: 0;
48
42
  appearance: none;
49
43
  }
50
-
51
44
  .flash-close:not(.Banner-close):hover {
52
45
  opacity: 0.7;
53
46
  }
54
-
55
47
  .flash-close:not(.Banner-close):active {
56
48
  opacity: 0.5;
57
49
  }
58
-
59
50
  .flash-close:not(.Banner-close) .octicon {
60
51
  margin-right: 0;
61
52
  }
62
53
 
63
54
  /* Action button */
64
-
65
55
  .flash-action:not(.Banner-actions) {
66
56
  float: right;
67
57
  margin-top: -3px;
68
58
  margin-left: var(--stack-gap-spacious);
69
59
  background-clip: padding-box;
70
60
  }
71
-
72
61
  .flash-action.btn:not(.Banner-actions) .octicon {
73
62
  margin-right: var(--control-small-gap);
74
63
  color: var(--fgColor-muted);
75
64
  }
76
-
77
65
  .flash-action.btn-primary:not(.Banner-actions) {
78
66
  background-clip: border-box;
79
67
  }
80
-
81
68
  .flash-action.btn-primary:not(.Banner-actions) .octicon {
82
69
  color: inherit;
83
70
  }
@@ -123,7 +110,6 @@
123
110
  }
124
111
 
125
112
  /* A banner rendered at the top of the page. */
126
-
127
113
  .flash-banner {
128
114
  position: fixed;
129
115
  top: 0;
@@ -136,14 +122,12 @@
136
122
  }
137
123
 
138
124
  /* Makes sure the background is opaque to cover any content underneath */
139
-
140
125
  .flash-full,
141
126
  .flash-banner {
142
127
  background-color: var(--bgColor-default);
143
128
  }
144
129
 
145
130
  /* FIXME deprecate this */
146
-
147
131
  .warning {
148
132
  padding: 0.5em;
149
133
  margin-bottom: 0.8em;
@@ -1,7 +1,6 @@
1
1
  /* Labels */
2
2
 
3
3
  /* Provide a wrapper to ensure labels stick together */
4
-
5
4
  .labels {
6
5
  position: relative;
7
6
  }
@@ -38,7 +37,6 @@
38
37
 
39
38
  /* Doesn't increase height of parent element
40
39
  ** Can be used with different font-sizes */
41
-
42
40
  .Label--inline {
43
41
  display: inline;
44
42
  /* stylelint-disable-next-line primer/spacing */
@@ -54,7 +54,6 @@
54
54
 
55
55
  /* Set the link color only on hover
56
56
  Useful when you want only part of a link to turn blue on hover */
57
-
58
57
  .Link--onHover:hover {
59
58
  color: var(--fgColor-accent) !important;
60
59
  -webkit-text-decoration: underline;
@@ -64,7 +63,6 @@
64
63
 
65
64
  /* When using a color utility class inside of a link class
66
65
  color should change with link on hover. */
67
-
68
66
  :is(.Link--secondary,.Link--primary,.Link--muted):hover [class*='color-fg'] {
69
67
  color: inherit !important;
70
68
  }