@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.
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +206 -646
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar.css +9 -3
- package/app/components/primer/alpha/action_list.css +92 -2
- package/app/components/primer/alpha/auto_complete.css +4 -22
- package/app/components/primer/alpha/auto_complete.css.json +1 -3
- package/app/components/primer/alpha/banner.css +0 -1
- package/app/components/primer/alpha/button_marketing.css +4 -4
- package/app/components/primer/alpha/dialog.css +63 -0
- package/app/components/primer/alpha/dropdown.css +0 -6
- package/app/components/primer/alpha/layout.css +3 -1
- package/app/components/primer/alpha/menu.css +0 -6
- package/app/components/primer/alpha/overlay.css +5 -0
- package/app/components/primer/alpha/segmented_control.css +0 -4
- package/app/components/primer/alpha/tab_nav.css +0 -8
- package/app/components/primer/alpha/text_field.css +97 -5
- package/app/components/primer/alpha/text_field.css.json +2 -2
- package/app/components/primer/alpha/toggle_switch.css +8 -7
- package/app/components/primer/alpha/tree_view.css +1 -0
- package/app/components/primer/alpha/underline_nav.css +0 -3
- package/app/components/primer/beta/avatar.css +0 -1
- package/app/components/primer/beta/avatar_stack.css +33 -0
- package/app/components/primer/beta/blankslate.css +2 -61
- package/app/components/primer/beta/border_box.css +35 -0
- package/app/components/primer/beta/breadcrumbs.css +7 -4
- package/app/components/primer/beta/breadcrumbs.css.json +2 -1
- package/app/components/primer/beta/button.css +51 -1
- package/app/components/primer/beta/flash.css +0 -16
- package/app/components/primer/beta/label.css +0 -2
- package/app/components/primer/beta/link.css +0 -2
- package/app/components/primer/beta/popover.css +138 -85
- package/app/components/primer/beta/popover.css.json +22 -16
- package/app/components/primer/beta/state.css +0 -1
- package/app/components/primer/beta/subhead.css +0 -8
- package/app/components/primer/beta/timeline_item.css +0 -5
- package/app/components/primer/beta/truncate.css +0 -1
- package/app/components/primer/open_project/avatar_stack.css +10 -0
- package/app/components/primer/open_project/border_box/collapsible_header.css +3 -1
- package/app/components/primer/open_project/border_grid.css +11 -9
- package/app/components/primer/open_project/collapsible.d.ts +1 -1
- package/app/components/primer/open_project/collapsible.js +8 -4
- package/app/components/primer/open_project/filterable_tree_view.css +2 -7
- package/app/components/primer/open_project/page_header.css +2 -5
- package/app/components/primer/open_project/pagination.css +4 -1
- package/app/components/primer/open_project/side_panel/section.css +3 -3
- package/package.json +31 -11
- package/static/classes.json +21 -0
- package/static/classnames.cjs +516 -0
- package/static/classnames.d.ts +2 -0
- package/static/classnames.js +518 -0
- package/static/info_arch.json +26 -0
- package/static/previews.json +2404 -2378
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
/* stylelint-disable primer/spacing */
|
|
6
6
|
/* stylelint-disable selector-no-qualifying-type */
|
|
7
7
|
/* stylelint-disable selector-max-type */
|
|
8
|
+
|
|
8
9
|
/* Overlay */
|
|
10
|
+
|
|
9
11
|
/* The --dialog-scrollgutter property is used only on the body element to
|
|
10
12
|
* simulate scrollbar-gutter:stable. This property is not and should not
|
|
11
13
|
* be used elsewhere in the DOM. There is a performance penalty to
|
|
@@ -18,24 +20,30 @@
|
|
|
18
20
|
inherits: false;
|
|
19
21
|
syntax: "<length>";
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
body.has-modal {
|
|
22
25
|
padding-right: var(--dialog-scrollgutter) !important;
|
|
23
26
|
}
|
|
27
|
+
|
|
24
28
|
body.has-modal-disable-scroll {
|
|
25
29
|
overflow: hidden !important;
|
|
26
30
|
}
|
|
31
|
+
|
|
27
32
|
dialog.Overlay:not([open]) {
|
|
28
33
|
display: none;
|
|
29
34
|
}
|
|
35
|
+
|
|
30
36
|
.Overlay--hidden {
|
|
31
37
|
display: none !important;
|
|
32
38
|
}
|
|
39
|
+
|
|
33
40
|
.Overlay--visibilityHidden {
|
|
34
41
|
height: 0;
|
|
35
42
|
overflow: hidden;
|
|
36
43
|
visibility: hidden;
|
|
37
44
|
opacity: 0;
|
|
38
45
|
}
|
|
46
|
+
|
|
39
47
|
/* This is for @oddbird/popover-polyfill;
|
|
40
48
|
* A FOUC occurs in browsers which do not support :popover-open.
|
|
41
49
|
* We can try to hide the popover if :popover-open is not supported.
|
|
@@ -45,6 +53,7 @@ dialog.Overlay:not([open]) {
|
|
|
45
53
|
display: none;
|
|
46
54
|
}
|
|
47
55
|
}
|
|
56
|
+
|
|
48
57
|
.Overlay {
|
|
49
58
|
position: static;
|
|
50
59
|
display: flex;
|
|
@@ -63,107 +72,137 @@ dialog.Overlay:not([open]) {
|
|
|
63
72
|
opacity: 1;
|
|
64
73
|
inset: 0;
|
|
65
74
|
}
|
|
75
|
+
|
|
66
76
|
.Overlay.Overlay--size-auto {
|
|
67
77
|
min-width: 192px;
|
|
68
78
|
max-width: calc(100vw - 2rem);
|
|
69
79
|
max-height: calc(100vh - 2rem);
|
|
70
80
|
}
|
|
81
|
+
|
|
71
82
|
.Overlay.Overlay--size-full {
|
|
72
83
|
width: 100vw;
|
|
73
84
|
height: 100vh;
|
|
74
85
|
}
|
|
86
|
+
|
|
75
87
|
.Overlay.Overlay--size-xsmall {
|
|
76
88
|
--overlay-width: 192px;
|
|
77
89
|
|
|
78
90
|
max-height: calc(100vh - 2rem);
|
|
79
91
|
}
|
|
92
|
+
|
|
80
93
|
.Overlay.Overlay--size-small {
|
|
81
94
|
--overlay-height: 256px;
|
|
82
95
|
--overlay-width: 320px;
|
|
83
96
|
}
|
|
97
|
+
|
|
84
98
|
.Overlay.Overlay--size-small-portrait {
|
|
85
99
|
--overlay-height: 432px;
|
|
86
100
|
--overlay-width: 320px;
|
|
87
101
|
}
|
|
102
|
+
|
|
88
103
|
.Overlay.Overlay--size-medium {
|
|
89
104
|
--overlay-height: 320px;
|
|
90
105
|
--overlay-width: 480px;
|
|
91
106
|
}
|
|
107
|
+
|
|
92
108
|
.Overlay.Overlay--size-medium-portrait {
|
|
93
109
|
--overlay-height: 600px;
|
|
94
110
|
--overlay-width: 480px;
|
|
95
111
|
}
|
|
112
|
+
|
|
96
113
|
.Overlay.Overlay--size-large {
|
|
97
114
|
--overlay-height: 432px;
|
|
98
115
|
--overlay-width: 640px;
|
|
99
116
|
}
|
|
117
|
+
|
|
100
118
|
.Overlay.Overlay--size-xlarge {
|
|
101
119
|
--overlay-height: 600px;
|
|
102
120
|
--overlay-width: 960px;
|
|
103
121
|
}
|
|
122
|
+
|
|
104
123
|
.Overlay.Overlay--height-auto {
|
|
105
124
|
height: auto;
|
|
106
125
|
}
|
|
126
|
+
|
|
107
127
|
.Overlay.Overlay--placement-left,.Overlay.Overlay--placement-right {
|
|
108
128
|
position: fixed;
|
|
109
129
|
height: 100%;
|
|
110
130
|
max-height: unset;
|
|
111
131
|
}
|
|
132
|
+
|
|
112
133
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
134
|
+
|
|
113
135
|
.Overlay.Overlay--motion-scaleFade,.Overlay.Overlay--placement-left,.Overlay.Overlay--placement-right {
|
|
114
136
|
animation: 200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running Overlay--motion-scaleFade;
|
|
115
137
|
}
|
|
116
138
|
}
|
|
139
|
+
|
|
117
140
|
.Overlay.Overlay--placement-left {
|
|
118
141
|
inset: 0 auto 0 0;
|
|
119
142
|
border-top-left-radius: 0;
|
|
120
143
|
border-bottom-left-radius: 0;
|
|
121
144
|
animation-name: Overlay--motion-slideInRight;
|
|
122
145
|
}
|
|
146
|
+
|
|
123
147
|
.Overlay.Overlay--placement-right {
|
|
124
148
|
inset: 0 0 0 auto;
|
|
125
149
|
border-top-right-radius: 0;
|
|
126
150
|
border-bottom-right-radius: 0;
|
|
127
151
|
animation-name: Overlay--motion-slideInLeft;
|
|
128
152
|
}
|
|
153
|
+
|
|
129
154
|
/* start deprecate in favor of Alpha::Dialog */
|
|
155
|
+
|
|
130
156
|
.Overlay.Overlay--height-xsmall {
|
|
131
157
|
height: min(192px, 100vh - 2rem);
|
|
132
158
|
}
|
|
159
|
+
|
|
133
160
|
.Overlay.Overlay--height-small {
|
|
134
161
|
height: min(256px, 100vh - 2rem);
|
|
135
162
|
}
|
|
163
|
+
|
|
136
164
|
.Overlay.Overlay--height-medium {
|
|
137
165
|
height: min(320px, 100vh - 2rem);
|
|
138
166
|
}
|
|
167
|
+
|
|
139
168
|
.Overlay.Overlay--height-large {
|
|
140
169
|
height: min(432px, 100vh - 2rem);
|
|
141
170
|
}
|
|
171
|
+
|
|
142
172
|
.Overlay.Overlay--height-xlarge {
|
|
143
173
|
height: min(600px, 100vh - 2rem);
|
|
144
174
|
}
|
|
175
|
+
|
|
145
176
|
.Overlay.Overlay--width-auto {
|
|
146
177
|
width: auto;
|
|
147
178
|
}
|
|
179
|
+
|
|
148
180
|
.Overlay.Overlay--width-small {
|
|
149
181
|
width: min(256px, 100vw - 2rem);
|
|
150
182
|
}
|
|
183
|
+
|
|
151
184
|
.Overlay.Overlay--width-medium {
|
|
152
185
|
width: min(320px, 100vw - 2rem);
|
|
153
186
|
}
|
|
187
|
+
|
|
154
188
|
.Overlay.Overlay--width-large {
|
|
155
189
|
width: min(480px, 100vw - 2rem);
|
|
156
190
|
}
|
|
191
|
+
|
|
157
192
|
.Overlay.Overlay--width-xlarge {
|
|
158
193
|
width: min(640px, 100vw - 2rem);
|
|
159
194
|
}
|
|
195
|
+
|
|
160
196
|
.Overlay.Overlay--width-xxlarge {
|
|
161
197
|
width: min(960px, 100vw - 2rem);
|
|
162
198
|
}
|
|
199
|
+
|
|
163
200
|
/* end deprecate */
|
|
201
|
+
|
|
164
202
|
.Overlay:modal {
|
|
165
203
|
position: fixed;
|
|
166
204
|
}
|
|
205
|
+
|
|
167
206
|
@keyframes Overlay--motion-scaleFade {
|
|
168
207
|
0% {
|
|
169
208
|
opacity: 0;
|
|
@@ -175,6 +214,7 @@ dialog.Overlay:not([open]) {
|
|
|
175
214
|
transform: scale(1);
|
|
176
215
|
}
|
|
177
216
|
}
|
|
217
|
+
|
|
178
218
|
/* for <form> element that wraps entire contents of overlay */
|
|
179
219
|
.Overlay-form {
|
|
180
220
|
display: flex;
|
|
@@ -182,37 +222,45 @@ dialog.Overlay:not([open]) {
|
|
|
182
222
|
flex-direction: column;
|
|
183
223
|
flex-grow: 1;
|
|
184
224
|
}
|
|
225
|
+
|
|
185
226
|
.Overlay-header {
|
|
186
227
|
z-index: 1;
|
|
187
228
|
display: flex;
|
|
188
229
|
color: var(--fgColor-default);
|
|
189
230
|
flex-direction: column;
|
|
190
231
|
}
|
|
232
|
+
|
|
191
233
|
.Overlay-header.Overlay-header--divided {
|
|
192
234
|
padding-bottom: var(--stack-padding-condensed);
|
|
193
235
|
/* stylelint-disable-next-line primer/box-shadow */
|
|
194
236
|
box-shadow: inset 0 calc(var(--borderWidth-thin) * -1) var(--borderColor-default);
|
|
195
237
|
}
|
|
238
|
+
|
|
196
239
|
:is(.Overlay-header.Overlay-header--large .Overlay-headerContentWrap) .Overlay-titleWrap {
|
|
197
240
|
gap: var(--stack-gap-condensed);
|
|
198
241
|
}
|
|
242
|
+
|
|
199
243
|
:is(:is(.Overlay-header.Overlay-header--large .Overlay-headerContentWrap) .Overlay-titleWrap) .Overlay-title {
|
|
200
244
|
font-size: var(--text-title-size-medium);
|
|
201
245
|
}
|
|
246
|
+
|
|
202
247
|
:is(:is(.Overlay-header.Overlay-header--large .Overlay-headerContentWrap) .Overlay-titleWrap) .Overlay-description {
|
|
203
248
|
font-size: var(--text-body-size-medium);
|
|
204
249
|
}
|
|
250
|
+
|
|
205
251
|
.Overlay-header .Overlay-headerContentWrap {
|
|
206
252
|
display: flex;
|
|
207
253
|
align-items: flex-start;
|
|
208
254
|
gap: var(--stack-gap-condensed);
|
|
209
255
|
padding: var(--stack-gap-condensed) var(--stack-gap-condensed) 0 var(--stack-gap-condensed);
|
|
210
256
|
}
|
|
257
|
+
|
|
211
258
|
:is(.Overlay-header .Overlay-headerContentWrap) .Overlay-actionWrap {
|
|
212
259
|
display: flex;
|
|
213
260
|
flex-direction: row;
|
|
214
261
|
gap: var(--stack-gap-condensed);
|
|
215
262
|
}
|
|
263
|
+
|
|
216
264
|
:is(.Overlay-header .Overlay-headerContentWrap) .Overlay-titleWrap {
|
|
217
265
|
display: flex;
|
|
218
266
|
padding: calc(var(--stack-gap-condensed) * 0.75) 0 calc(var(--stack-gap-condensed) * 0.75)
|
|
@@ -221,20 +269,24 @@ dialog.Overlay:not([open]) {
|
|
|
221
269
|
flex-grow: 1;
|
|
222
270
|
gap: var(--control-small-gap);
|
|
223
271
|
}
|
|
272
|
+
|
|
224
273
|
:is(:is(.Overlay-header .Overlay-headerContentWrap) .Overlay-titleWrap) .Overlay-title {
|
|
225
274
|
margin: 0;
|
|
226
275
|
font-size: var(--text-body-size-medium);
|
|
227
276
|
font-weight: var(--base-text-weight-semibold);
|
|
228
277
|
}
|
|
278
|
+
|
|
229
279
|
:is(:is(.Overlay-header .Overlay-headerContentWrap) .Overlay-titleWrap) .Overlay-description {
|
|
230
280
|
margin: 0;
|
|
231
281
|
font-size: var(--text-body-size-small);
|
|
232
282
|
font-weight: var(--base-text-weight-normal);
|
|
233
283
|
color: var(--fgColor-muted);
|
|
234
284
|
}
|
|
285
|
+
|
|
235
286
|
.Overlay-headerFilter {
|
|
236
287
|
padding: var(--stack-gap-condensed) var(--stack-gap-condensed) 0 var(--stack-gap-condensed);
|
|
237
288
|
}
|
|
289
|
+
|
|
238
290
|
/* generic body content slot */
|
|
239
291
|
.Overlay-body {
|
|
240
292
|
padding: var(--stack-padding-normal);
|
|
@@ -250,6 +302,7 @@ dialog.Overlay:not([open]) {
|
|
|
250
302
|
.Overlay-body.Overlay-body--paddingNone {
|
|
251
303
|
padding: 0;
|
|
252
304
|
}
|
|
305
|
+
|
|
253
306
|
/* generic footer slot */
|
|
254
307
|
.Overlay-footer {
|
|
255
308
|
z-index: 1;
|
|
@@ -276,6 +329,7 @@ dialog.Overlay:not([open]) {
|
|
|
276
329
|
justify-content: flex-end;
|
|
277
330
|
gap: var(--stack-gap-condensed);
|
|
278
331
|
}
|
|
332
|
+
|
|
279
333
|
/* TODO: replace with refactored IconButton */
|
|
280
334
|
.Overlay-closeButton {
|
|
281
335
|
position: relative;
|
|
@@ -305,8 +359,11 @@ dialog.Overlay:not([open]) {
|
|
|
305
359
|
.Overlay-closeButton.close-button {
|
|
306
360
|
border: var(--borderWidth-thin) solid transparent;
|
|
307
361
|
}
|
|
362
|
+
|
|
308
363
|
/* variants must be mixins so we can extend within a media query (@extend is not supported inside media queries) */
|
|
364
|
+
|
|
309
365
|
/* border-radius repeats within placement options to ensure the original radius is reset when two classes co-exist */
|
|
366
|
+
|
|
310
367
|
/* full width */
|
|
311
368
|
.Overlay--full {
|
|
312
369
|
width: 100%;
|
|
@@ -316,7 +373,9 @@ dialog.Overlay:not([open]) {
|
|
|
316
373
|
border-radius: unset !important;
|
|
317
374
|
flex-grow: 1;
|
|
318
375
|
}
|
|
376
|
+
|
|
319
377
|
/* responsive variants */
|
|
378
|
+
|
|
320
379
|
/* --viewportRange-narrowLandscape */
|
|
321
380
|
@media (max-width: 767px) {
|
|
322
381
|
.Overlay.Overlay--placement-left-whenNarrow, .Overlay--placement-right-whenNarrow {
|
|
@@ -369,21 +428,25 @@ dialog.Overlay:not([open]) {
|
|
|
369
428
|
border-radius: unset !important;
|
|
370
429
|
}
|
|
371
430
|
}
|
|
431
|
+
|
|
372
432
|
@keyframes Overlay--motion-slideDown {
|
|
373
433
|
from {
|
|
374
434
|
transform: translateY(-100%);
|
|
375
435
|
}
|
|
376
436
|
}
|
|
437
|
+
|
|
377
438
|
@keyframes Overlay--motion-slideUp {
|
|
378
439
|
from {
|
|
379
440
|
transform: translateY(100%);
|
|
380
441
|
}
|
|
381
442
|
}
|
|
443
|
+
|
|
382
444
|
@keyframes Overlay--motion-slideInRight {
|
|
383
445
|
from {
|
|
384
446
|
transform: translateX(-100%);
|
|
385
447
|
}
|
|
386
448
|
}
|
|
449
|
+
|
|
387
450
|
@keyframes Overlay--motion-slideInLeft {
|
|
388
451
|
from {
|
|
389
452
|
transform: translateX(100%);
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/* Dropdown items (can be links or buttons) */
|
|
80
|
-
|
|
81
80
|
.dropdown-item {
|
|
82
81
|
display: block;
|
|
83
82
|
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-condensed) var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
|
@@ -86,28 +85,23 @@
|
|
|
86
85
|
text-overflow: ellipsis;
|
|
87
86
|
white-space: nowrap;
|
|
88
87
|
}
|
|
89
|
-
|
|
90
88
|
.dropdown-item:hover {
|
|
91
89
|
color: var(--fgColor-onEmphasis);
|
|
92
90
|
-webkit-text-decoration: none;
|
|
93
91
|
text-decoration: none;
|
|
94
92
|
background-color: var(--bgColor-accent-emphasis);
|
|
95
93
|
}
|
|
96
|
-
|
|
97
94
|
.dropdown-item:hover > .octicon {
|
|
98
95
|
color: inherit;
|
|
99
96
|
opacity: 1;
|
|
100
97
|
}
|
|
101
|
-
|
|
102
98
|
.dropdown-item:hover [class*='color-fg-'] {
|
|
103
99
|
color: inherit !important;
|
|
104
100
|
}
|
|
105
|
-
|
|
106
101
|
.dropdown-item:hover > .Label {
|
|
107
102
|
color: inherit !important;
|
|
108
103
|
border-color: currentcolor;
|
|
109
104
|
}
|
|
110
|
-
|
|
111
105
|
.dropdown-item.btn-link {
|
|
112
106
|
width: 100%;
|
|
113
107
|
text-align: left;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* Layout */
|
|
2
2
|
|
|
3
|
+
/* stylelint-disable nesting-selector-no-missing-scoping-root -- inside @define-mixin the & resolves at the @mixin include site, so there is a scoping root */
|
|
4
|
+
|
|
3
5
|
.Layout {
|
|
4
6
|
display: grid;
|
|
5
7
|
|
|
@@ -193,7 +195,7 @@
|
|
|
193
195
|
|
|
194
196
|
grid-auto-flow: column;
|
|
195
197
|
grid-template-columns: auto 0 minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))); /* sidebar column, separator, main column */
|
|
196
|
-
|
|
198
|
+
gap: var(--Layout-gutter);
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
.Layout .Layout-sidebar {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
/* A menu on the side of a page, defaults to left side. e.g. github.com/about */
|
|
4
4
|
|
|
5
5
|
.menu {
|
|
6
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
7
6
|
margin-bottom: var(--stack-gap-normal);
|
|
8
7
|
list-style: none;
|
|
9
8
|
background-color: var(--bgColor-default);
|
|
@@ -14,7 +13,6 @@
|
|
|
14
13
|
.menu-item {
|
|
15
14
|
position: relative;
|
|
16
15
|
display: block;
|
|
17
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
18
16
|
padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);
|
|
19
17
|
color: var(--fgColor-default);
|
|
20
18
|
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
|
|
@@ -68,7 +66,6 @@
|
|
|
68
66
|
|
|
69
67
|
.menu-item .octicon {
|
|
70
68
|
width: 16px;
|
|
71
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
72
69
|
margin-right: var(--control-medium-gap);
|
|
73
70
|
color: var(--fgColor-muted);
|
|
74
71
|
text-align: center;
|
|
@@ -76,7 +73,6 @@
|
|
|
76
73
|
|
|
77
74
|
.menu-item .Counter {
|
|
78
75
|
float: right;
|
|
79
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
80
76
|
margin-left: var(--control-small-gap);
|
|
81
77
|
}
|
|
82
78
|
|
|
@@ -87,7 +83,6 @@
|
|
|
87
83
|
|
|
88
84
|
.menu-item .avatar {
|
|
89
85
|
float: left;
|
|
90
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
91
86
|
margin-right: var(--control-small-gap);
|
|
92
87
|
}
|
|
93
88
|
|
|
@@ -97,7 +92,6 @@
|
|
|
97
92
|
|
|
98
93
|
.menu-heading {
|
|
99
94
|
display: block;
|
|
100
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
101
95
|
padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);
|
|
102
96
|
margin-top: 0;
|
|
103
97
|
margin-bottom: 0;
|
|
@@ -6,18 +6,23 @@ anchored-position[popover] {
|
|
|
6
6
|
overflow: visible;
|
|
7
7
|
border-width: 0;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
anchored-position:not(.Overlay) {
|
|
10
11
|
background: none;
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
.Overlay[popover]:not(:popover-open) {
|
|
13
15
|
display: none
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
anchored-position.not-anchored::backdrop, dialog::backdrop {
|
|
16
19
|
background-color: var(--overlay-backdrop-bgColor, var(--color-neutral-muted));
|
|
17
20
|
}
|
|
21
|
+
|
|
18
22
|
select-panel dialog::backdrop {
|
|
19
23
|
background: none;
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
@media (forced-colors: active) {
|
|
22
27
|
.Overlay {
|
|
23
28
|
outline: solid 1px transparent;
|
|
@@ -104,9 +104,7 @@
|
|
|
104
104
|
.SegmentedControl-item:not(:first-child)::before {
|
|
105
105
|
position: absolute;
|
|
106
106
|
inset: 0 0 0 -1px;
|
|
107
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
108
107
|
margin-top: var(--control-medium-paddingBlock);
|
|
109
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
110
108
|
margin-bottom: var(--control-medium-paddingBlock);
|
|
111
109
|
content: '';
|
|
112
110
|
border-left: var(--borderWidth-thin) solid var(--borderColor-default);
|
|
@@ -150,11 +148,9 @@
|
|
|
150
148
|
}
|
|
151
149
|
|
|
152
150
|
/* fullWidth */
|
|
153
|
-
|
|
154
151
|
.SegmentedControl--fullWidth {
|
|
155
152
|
display: flex;
|
|
156
153
|
}
|
|
157
|
-
|
|
158
154
|
.SegmentedControl--fullWidth .SegmentedControl-item {
|
|
159
155
|
flex: 1;
|
|
160
156
|
justify-content: center;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* tabnav */
|
|
2
2
|
|
|
3
3
|
/* Outer wrapper */
|
|
4
|
-
|
|
5
4
|
.tabnav {
|
|
6
5
|
margin-top: 0;
|
|
7
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
8
6
|
margin-bottom: var(--stack-gap-normal);
|
|
9
7
|
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
|
|
10
8
|
}
|
|
@@ -26,7 +24,6 @@
|
|
|
26
24
|
.tabnav-tab {
|
|
27
25
|
display: inline-block;
|
|
28
26
|
flex-shrink: 0;
|
|
29
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
30
27
|
padding: var(--base-size-8) var(--control-medium-paddingInline-spacious);
|
|
31
28
|
font-size: var(--text-body-size-medium);
|
|
32
29
|
/* stylelint-disable-next-line primer/typography */
|
|
@@ -68,13 +65,11 @@
|
|
|
68
65
|
}
|
|
69
66
|
|
|
70
67
|
.tabnav-tab .octicon {
|
|
71
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
72
68
|
margin-right: var(--control-small-gap);
|
|
73
69
|
color: var(--fgColor-muted);
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
.tabnav-tab .Counter {
|
|
77
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
78
73
|
margin-left: var(--control-small-gap);
|
|
79
74
|
color: inherit;
|
|
80
75
|
}
|
|
@@ -99,9 +94,7 @@
|
|
|
99
94
|
}
|
|
100
95
|
|
|
101
96
|
/* When tabnav-extra are anchors */
|
|
102
|
-
|
|
103
97
|
/* stylelint-disable-next-line selector-no-qualifying-type, selector-max-type */
|
|
104
|
-
|
|
105
98
|
a.tabnav-extra:hover {
|
|
106
99
|
color: var(--fgColor-accent);
|
|
107
100
|
-webkit-text-decoration: none;
|
|
@@ -114,6 +107,5 @@ a.tabnav-extra:hover {
|
|
|
114
107
|
** the buttons to be floated or inline-block. */
|
|
115
108
|
|
|
116
109
|
.tabnav-btn {
|
|
117
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
118
110
|
margin-left: var(--controlStack-medium-gap-condensed);
|
|
119
111
|
}
|