@primer/view-components 0.45.2 → 0.46.0-rc.4285adec
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/styles/primer_view_components.css +1 -6963
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar.css +1 -49
- package/app/components/primer/alpha/action_list.css +1 -525
- package/app/components/primer/alpha/action_list.css.json +64 -64
- package/app/components/primer/alpha/auto_complete.css +1 -131
- package/app/components/primer/alpha/auto_complete.css.json +3 -3
- package/app/components/primer/alpha/banner.css +1 -146
- package/app/components/primer/alpha/banner.css.json +2 -2
- package/app/components/primer/alpha/button_marketing.css +1 -183
- package/app/components/primer/alpha/button_marketing.css.json +6 -6
- package/app/components/primer/alpha/dialog.css +1 -377
- package/app/components/primer/alpha/dialog.css.json +2 -2
- package/app/components/primer/alpha/dropdown.css +1 -296
- package/app/components/primer/alpha/dropdown.css.json +19 -19
- package/app/components/primer/alpha/layout.css +1 -374
- package/app/components/primer/alpha/layout.css.json +10 -10
- package/app/components/primer/alpha/menu.css +1 -124
- package/app/components/primer/alpha/menu.css.json +5 -5
- package/app/components/primer/alpha/overlay.css +1 -25
- package/app/components/primer/alpha/segmented_control.css +1 -161
- package/app/components/primer/alpha/segmented_control.css.json +5 -5
- package/app/components/primer/alpha/select_panel.css +1 -10
- package/app/components/primer/alpha/skeleton_box.css +1 -36
- package/app/components/primer/alpha/stack.css +1 -255
- package/app/components/primer/alpha/stack.css.json +84 -84
- package/app/components/primer/alpha/stack_item.css +1 -27
- package/app/components/primer/alpha/stack_item.css.json +6 -6
- package/app/components/primer/alpha/tab_nav.css +1 -112
- package/app/components/primer/alpha/tab_nav.css.json +5 -5
- package/app/components/primer/alpha/text_field.css +1 -792
- package/app/components/primer/alpha/text_field.css.json +39 -39
- package/app/components/primer/alpha/toggle_switch.css +1 -230
- package/app/components/primer/alpha/toggle_switch.css.json +10 -10
- package/app/components/primer/alpha/tree_view.css +1 -396
- package/app/components/primer/alpha/tree_view.css.json +25 -25
- package/app/components/primer/alpha/underline_nav.css +1 -150
- package/app/components/primer/alpha/underline_nav.css.json +6 -6
- package/app/components/primer/beta/avatar.css +1 -77
- package/app/components/primer/beta/avatar_stack.css +1 -134
- package/app/components/primer/beta/avatar_stack.css.json +6 -6
- package/app/components/primer/beta/blankslate.css +1 -168
- package/app/components/primer/beta/border_box.css +1 -218
- package/app/components/primer/beta/border_box.css.json +3 -3
- package/app/components/primer/beta/breadcrumbs.css +1 -29
- package/app/components/primer/beta/breadcrumbs.css.json +2 -2
- package/app/components/primer/beta/button.css +1 -359
- package/app/components/primer/beta/button.css.json +17 -17
- package/app/components/primer/beta/button_group.css +1 -20
- package/app/components/primer/beta/button_group.css.json +3 -3
- package/app/components/primer/beta/counter.css +1 -38
- package/app/components/primer/beta/flash.css +1 -152
- package/app/components/primer/beta/label.css +1 -109
- package/app/components/primer/beta/label.css.json +3 -3
- package/app/components/primer/beta/link.css +1 -79
- package/app/components/primer/beta/link.css.json +1 -1
- package/app/components/primer/beta/popover.css +1 -215
- package/app/components/primer/beta/popover.css.json +23 -23
- package/app/components/primer/beta/progress_bar.css +1 -38
- package/app/components/primer/beta/progress_bar.css.json +1 -1
- package/app/components/primer/beta/state.css +1 -60
- package/app/components/primer/beta/state.css.json +1 -1
- package/app/components/primer/beta/subhead.css +1 -64
- package/app/components/primer/beta/subhead.css.json +1 -1
- package/app/components/primer/beta/timeline_item.css +1 -106
- package/app/components/primer/beta/timeline_item.css.json +1 -1
- package/app/components/primer/beta/truncate.css +1 -30
- package/app/components/primer/beta/truncate.css.json +6 -6
- package/app/components/primer/truncate.css +1 -23
- package/app/components/primer/truncate.css.json +4 -4
- package/package.json +1 -1
- package/static/arguments.json +1 -7
- package/static/info_arch.json +1 -7
@@ -1,374 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
.Layout {
|
4
|
-
display: grid;
|
5
|
-
|
6
|
-
--Layout-sidebar-width: 220px;
|
7
|
-
--Layout-gutter: 16px;
|
8
|
-
}
|
9
|
-
|
10
|
-
@media (max-width: calc(544px - 0.02px)) {
|
11
|
-
|
12
|
-
.Layout {
|
13
|
-
grid-auto-flow: row;
|
14
|
-
grid-template-columns: 1fr !important;
|
15
|
-
}
|
16
|
-
.Layout .Layout-sidebar,.Layout .Layout-divider,.Layout .Layout-main {
|
17
|
-
width: 100% !important;
|
18
|
-
grid-column: 1 !important;
|
19
|
-
}
|
20
|
-
.Layout.Layout--sidebarPosition-flowRow-start .Layout-sidebar {
|
21
|
-
grid-row: 1;
|
22
|
-
}
|
23
|
-
|
24
|
-
.Layout.Layout--sidebarPosition-flowRow-start .Layout-main {
|
25
|
-
grid-row: 2 / span 2;
|
26
|
-
}
|
27
|
-
.Layout.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
28
|
-
grid-row: 2 / span 2;
|
29
|
-
}
|
30
|
-
|
31
|
-
.Layout.Layout--sidebarPosition-flowRow-end .Layout-main {
|
32
|
-
grid-row: 1;
|
33
|
-
}
|
34
|
-
.Layout.Layout--sidebarPosition-flowRow-none .Layout-sidebar {
|
35
|
-
display: none;
|
36
|
-
}
|
37
|
-
.Layout.Layout--divided {
|
38
|
-
--Layout-gutter: 0;
|
39
|
-
}
|
40
|
-
.Layout.Layout--divided .Layout-divider {
|
41
|
-
height: 1px;
|
42
|
-
grid-row: 2;
|
43
|
-
}
|
44
|
-
|
45
|
-
.Layout-divider--flowRow-hidden:is(.Layout.Layout--divided .Layout-divider) {
|
46
|
-
display: none;
|
47
|
-
}
|
48
|
-
|
49
|
-
.Layout-divider--flowRow-shallow:is(.Layout.Layout--divided .Layout-divider) {
|
50
|
-
height: 8px;
|
51
|
-
margin-right: 0;
|
52
|
-
background: var(--bgColor-inset);
|
53
|
-
border-color: var(--borderColor-default);
|
54
|
-
border-style: solid;
|
55
|
-
border-width: var(--borderWidth-thin) 0;
|
56
|
-
}
|
57
|
-
|
58
|
-
.Layout.Layout--divided .Layout-main {
|
59
|
-
grid-row: 3 / span 1;
|
60
|
-
}
|
61
|
-
.Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
62
|
-
grid-row: 3 / span 1;
|
63
|
-
}
|
64
|
-
|
65
|
-
.Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main {
|
66
|
-
grid-row: 1;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
@media (max-width: calc(768px - 0.02px)) {
|
71
|
-
|
72
|
-
.Layout.Layout--flowRow-until-md {
|
73
|
-
grid-auto-flow: row;
|
74
|
-
grid-template-columns: 1fr !important;
|
75
|
-
}
|
76
|
-
.Layout.Layout--flowRow-until-md .Layout-sidebar,.Layout.Layout--flowRow-until-md .Layout-divider,.Layout.Layout--flowRow-until-md .Layout-main {
|
77
|
-
width: 100% !important;
|
78
|
-
grid-column: 1 !important;
|
79
|
-
}
|
80
|
-
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-sidebar {
|
81
|
-
grid-row: 1;
|
82
|
-
}
|
83
|
-
|
84
|
-
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-main {
|
85
|
-
grid-row: 2 / span 2;
|
86
|
-
}
|
87
|
-
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
88
|
-
grid-row: 2 / span 2;
|
89
|
-
}
|
90
|
-
|
91
|
-
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-main {
|
92
|
-
grid-row: 1;
|
93
|
-
}
|
94
|
-
.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-none .Layout-sidebar {
|
95
|
-
display: none;
|
96
|
-
}
|
97
|
-
.Layout.Layout--flowRow-until-md.Layout--divided {
|
98
|
-
--Layout-gutter: 0;
|
99
|
-
}
|
100
|
-
.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider {
|
101
|
-
height: 1px;
|
102
|
-
grid-row: 2;
|
103
|
-
}
|
104
|
-
|
105
|
-
.Layout-divider--flowRow-hidden:is(.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider) {
|
106
|
-
display: none;
|
107
|
-
}
|
108
|
-
|
109
|
-
.Layout-divider--flowRow-shallow:is(.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider) {
|
110
|
-
height: 8px;
|
111
|
-
margin-right: 0;
|
112
|
-
background: var(--bgColor-inset);
|
113
|
-
border-color: var(--borderColor-default);
|
114
|
-
border-style: solid;
|
115
|
-
border-width: var(--borderWidth-thin) 0;
|
116
|
-
}
|
117
|
-
|
118
|
-
.Layout.Layout--flowRow-until-md.Layout--divided .Layout-main {
|
119
|
-
grid-row: 3 / span 1;
|
120
|
-
}
|
121
|
-
.Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
122
|
-
grid-row: 3 / span 1;
|
123
|
-
}
|
124
|
-
|
125
|
-
.Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main {
|
126
|
-
grid-row: 1;
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
@media (max-width: calc(1012px - 0.02px)) {
|
131
|
-
|
132
|
-
.Layout.Layout--flowRow-until-lg {
|
133
|
-
grid-auto-flow: row;
|
134
|
-
grid-template-columns: 1fr !important;
|
135
|
-
}
|
136
|
-
.Layout.Layout--flowRow-until-lg .Layout-sidebar,.Layout.Layout--flowRow-until-lg .Layout-divider,.Layout.Layout--flowRow-until-lg .Layout-main {
|
137
|
-
width: 100% !important;
|
138
|
-
grid-column: 1 !important;
|
139
|
-
}
|
140
|
-
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-sidebar {
|
141
|
-
grid-row: 1;
|
142
|
-
}
|
143
|
-
|
144
|
-
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-main {
|
145
|
-
grid-row: 2 / span 2;
|
146
|
-
}
|
147
|
-
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
148
|
-
grid-row: 2 / span 2;
|
149
|
-
}
|
150
|
-
|
151
|
-
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-main {
|
152
|
-
grid-row: 1;
|
153
|
-
}
|
154
|
-
.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-none .Layout-sidebar {
|
155
|
-
display: none;
|
156
|
-
}
|
157
|
-
.Layout.Layout--flowRow-until-lg.Layout--divided {
|
158
|
-
--Layout-gutter: 0;
|
159
|
-
}
|
160
|
-
.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider {
|
161
|
-
height: 1px;
|
162
|
-
grid-row: 2;
|
163
|
-
}
|
164
|
-
|
165
|
-
.Layout-divider--flowRow-hidden:is(.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider) {
|
166
|
-
display: none;
|
167
|
-
}
|
168
|
-
|
169
|
-
.Layout-divider--flowRow-shallow:is(.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider) {
|
170
|
-
height: 8px;
|
171
|
-
margin-right: 0;
|
172
|
-
background: var(--bgColor-inset);
|
173
|
-
border-color: var(--borderColor-default);
|
174
|
-
border-style: solid;
|
175
|
-
border-width: var(--borderWidth-thin) 0;
|
176
|
-
}
|
177
|
-
|
178
|
-
.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-main {
|
179
|
-
grid-row: 3 / span 1;
|
180
|
-
}
|
181
|
-
.Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar {
|
182
|
-
grid-row: 3 / span 1;
|
183
|
-
}
|
184
|
-
|
185
|
-
.Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main {
|
186
|
-
grid-row: 1;
|
187
|
-
}
|
188
|
-
}
|
189
|
-
|
190
|
-
.Layout {
|
191
|
-
|
192
|
-
/* Flow as column */
|
193
|
-
|
194
|
-
grid-auto-flow: column;
|
195
|
-
grid-template-columns: auto 0 minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))); /* sidebar column, separator, main column */
|
196
|
-
grid-gap: var(--Layout-gutter);
|
197
|
-
}
|
198
|
-
|
199
|
-
.Layout .Layout-sidebar {
|
200
|
-
grid-column: 1;
|
201
|
-
}
|
202
|
-
|
203
|
-
.Layout .Layout-divider {
|
204
|
-
display: none;
|
205
|
-
}
|
206
|
-
|
207
|
-
.Layout .Layout-main {
|
208
|
-
grid-column: 2 / span 2;
|
209
|
-
}
|
210
|
-
|
211
|
-
/* Gutter spacing */
|
212
|
-
|
213
|
-
@media (min-width: 1012px) {
|
214
|
-
|
215
|
-
.Layout {
|
216
|
-
--Layout-gutter: 24px;
|
217
|
-
}
|
218
|
-
}
|
219
|
-
|
220
|
-
.Layout.Layout--gutter-none {
|
221
|
-
--Layout-gutter: 0px;
|
222
|
-
}
|
223
|
-
|
224
|
-
.Layout.Layout--gutter-condensed {
|
225
|
-
--Layout-gutter: 16px;
|
226
|
-
}
|
227
|
-
|
228
|
-
@media (min-width: 1012px) {
|
229
|
-
|
230
|
-
.Layout.Layout--gutter-spacious {
|
231
|
-
--Layout-gutter: 32px;
|
232
|
-
}
|
233
|
-
}
|
234
|
-
|
235
|
-
@media (min-width: 1280px) {
|
236
|
-
|
237
|
-
.Layout.Layout--gutter-spacious {
|
238
|
-
--Layout-gutter: 40px;
|
239
|
-
}
|
240
|
-
}
|
241
|
-
|
242
|
-
/* Sidebar width */
|
243
|
-
|
244
|
-
@media (min-width: 544px) {
|
245
|
-
|
246
|
-
.Layout {
|
247
|
-
--Layout-sidebar-width: 220px;
|
248
|
-
}
|
249
|
-
}
|
250
|
-
|
251
|
-
@media (min-width: 768px) {
|
252
|
-
|
253
|
-
.Layout {
|
254
|
-
--Layout-sidebar-width: 256px;
|
255
|
-
}
|
256
|
-
}
|
257
|
-
|
258
|
-
@media (min-width: 1012px) {
|
259
|
-
|
260
|
-
.Layout {
|
261
|
-
--Layout-sidebar-width: 296px;
|
262
|
-
}
|
263
|
-
}
|
264
|
-
|
265
|
-
@media (min-width: 768px) {
|
266
|
-
|
267
|
-
.Layout.Layout--sidebar-narrow {
|
268
|
-
--Layout-sidebar-width: 240px;
|
269
|
-
}
|
270
|
-
}
|
271
|
-
|
272
|
-
@media (min-width: 1012px) {
|
273
|
-
|
274
|
-
.Layout.Layout--sidebar-narrow {
|
275
|
-
--Layout-sidebar-width: 256px;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
|
279
|
-
@media (min-width: 1012px) {
|
280
|
-
|
281
|
-
.Layout.Layout--sidebar-wide {
|
282
|
-
--Layout-sidebar-width: 320px;
|
283
|
-
}
|
284
|
-
}
|
285
|
-
|
286
|
-
@media (min-width: 1280px) {
|
287
|
-
|
288
|
-
.Layout.Layout--sidebar-wide {
|
289
|
-
--Layout-sidebar-width: 336px;
|
290
|
-
}
|
291
|
-
}
|
292
|
-
|
293
|
-
/* Sidebar position */
|
294
|
-
|
295
|
-
.Layout.Layout--sidebarPosition-start .Layout-sidebar {
|
296
|
-
grid-column: 1;
|
297
|
-
}
|
298
|
-
|
299
|
-
.Layout.Layout--sidebarPosition-start .Layout-main {
|
300
|
-
grid-column: 2 / span 2;
|
301
|
-
}
|
302
|
-
|
303
|
-
.Layout.Layout--sidebarPosition-end {
|
304
|
-
grid-template-columns: minmax(0, calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))) 0 auto;
|
305
|
-
}
|
306
|
-
|
307
|
-
.Layout.Layout--sidebarPosition-end .Layout-main {
|
308
|
-
grid-column: 1;
|
309
|
-
}
|
310
|
-
|
311
|
-
.Layout.Layout--sidebarPosition-end .Layout-sidebar {
|
312
|
-
grid-column: 2 / span 2;
|
313
|
-
}
|
314
|
-
|
315
|
-
/* Sidebar divider */
|
316
|
-
|
317
|
-
.Layout.Layout--divided .Layout-divider {
|
318
|
-
display: block;
|
319
|
-
grid-column: 2;
|
320
|
-
width: 1px;
|
321
|
-
/* stylelint-disable-next-line primer/spacing */
|
322
|
-
margin-right: -1px;
|
323
|
-
/* stylelint-disable-next-line primer/colors */
|
324
|
-
background: var(--borderColor-default);
|
325
|
-
}
|
326
|
-
|
327
|
-
.Layout.Layout--divided .Layout-main {
|
328
|
-
grid-column: 3 / span 1;
|
329
|
-
}
|
330
|
-
|
331
|
-
.Layout.Layout--divided.Layout--sidebarPosition-end .Layout-sidebar {
|
332
|
-
grid-column: 3 / span 1;
|
333
|
-
}
|
334
|
-
|
335
|
-
.Layout.Layout--divided.Layout--sidebarPosition-end .Layout-main {
|
336
|
-
grid-column: 1;
|
337
|
-
}
|
338
|
-
|
339
|
-
.Layout-divider {
|
340
|
-
display: none;
|
341
|
-
width: 1px;
|
342
|
-
}
|
343
|
-
|
344
|
-
.Layout-sidebar {
|
345
|
-
width: var(--Layout-sidebar-width);
|
346
|
-
}
|
347
|
-
|
348
|
-
.Layout-main {
|
349
|
-
min-width: 0;
|
350
|
-
|
351
|
-
/* Centered main column
|
352
|
-
** FIXME: right-aligned sidebar */
|
353
|
-
}
|
354
|
-
|
355
|
-
.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl {
|
356
|
-
margin-right: auto;
|
357
|
-
margin-left: auto;
|
358
|
-
}
|
359
|
-
|
360
|
-
:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl) > .container-md,:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl) > .container-lg,:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl) > .container-xl {
|
361
|
-
margin-left: 0;
|
362
|
-
}
|
363
|
-
|
364
|
-
.Layout-main .Layout-main-centered-md {
|
365
|
-
max-width: calc(var(--breakpoint-medium) + var(--Layout-sidebar-width) + var(--Layout-gutter));
|
366
|
-
}
|
367
|
-
|
368
|
-
.Layout-main .Layout-main-centered-lg {
|
369
|
-
max-width: calc(var(--breakpoint-large) + var(--Layout-sidebar-width) + var(--Layout-gutter));
|
370
|
-
}
|
371
|
-
|
372
|
-
.Layout-main .Layout-main-centered-xl {
|
373
|
-
max-width: calc(var(--breakpoint-xlarge) + var(--Layout-sidebar-width) + var(--Layout-gutter));
|
374
|
-
}
|
1
|
+
.Layout{display:grid;--Layout-sidebar-width:220px;--Layout-gutter:16px}@media (max-width:calc(544px - 0.02px)){.Layout{grid-auto-flow:row;grid-template-columns:1fr!important}.Layout .Layout-divider,.Layout .Layout-main,.Layout .Layout-sidebar{grid-column:1!important;width:100%!important}.Layout.Layout--sidebarPosition-flowRow-start .Layout-sidebar{grid-row:1}.Layout.Layout--sidebarPosition-flowRow-end .Layout-sidebar,.Layout.Layout--sidebarPosition-flowRow-start .Layout-main{grid-row:2/span 2}.Layout.Layout--sidebarPosition-flowRow-end .Layout-main{grid-row:1}.Layout.Layout--sidebarPosition-flowRow-none .Layout-sidebar{display:none}.Layout.Layout--divided{--Layout-gutter:0}.Layout.Layout--divided .Layout-divider{grid-row:2;height:1px}.Layout-divider--flowRow-hidden:is(.Layout.Layout--divided .Layout-divider){display:none}.Layout-divider--flowRow-shallow:is(.Layout.Layout--divided .Layout-divider){background:var(--bgColor-inset);border-color:var(--borderColor-default);border-style:solid;border-width:var(--borderWidth-thin) 0;height:8px;margin-right:0}.Layout.Layout--divided .Layout-main,.Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar{grid-row:3/span 1}.Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main{grid-row:1}}@media (max-width:calc(768px - 0.02px)){.Layout.Layout--flowRow-until-md{grid-auto-flow:row;grid-template-columns:1fr!important}.Layout.Layout--flowRow-until-md .Layout-divider,.Layout.Layout--flowRow-until-md .Layout-main,.Layout.Layout--flowRow-until-md .Layout-sidebar{grid-column:1!important;width:100%!important}.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-sidebar{grid-row:1}.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-sidebar,.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-main{grid-row:2/span 2}.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-main{grid-row:1}.Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-none .Layout-sidebar{display:none}.Layout.Layout--flowRow-until-md.Layout--divided{--Layout-gutter:0}.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider{grid-row:2;height:1px}.Layout-divider--flowRow-hidden:is(.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider){display:none}.Layout-divider--flowRow-shallow:is(.Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider){background:var(--bgColor-inset);border-color:var(--borderColor-default);border-style:solid;border-width:var(--borderWidth-thin) 0;height:8px;margin-right:0}.Layout.Layout--flowRow-until-md.Layout--divided .Layout-main,.Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar{grid-row:3/span 1}.Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main{grid-row:1}}@media (max-width:calc(1012px - 0.02px)){.Layout.Layout--flowRow-until-lg{grid-auto-flow:row;grid-template-columns:1fr!important}.Layout.Layout--flowRow-until-lg .Layout-divider,.Layout.Layout--flowRow-until-lg .Layout-main,.Layout.Layout--flowRow-until-lg .Layout-sidebar{grid-column:1!important;width:100%!important}.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-sidebar{grid-row:1}.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-sidebar,.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-main{grid-row:2/span 2}.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-main{grid-row:1}.Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-none .Layout-sidebar{display:none}.Layout.Layout--flowRow-until-lg.Layout--divided{--Layout-gutter:0}.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider{grid-row:2;height:1px}.Layout-divider--flowRow-hidden:is(.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider){display:none}.Layout-divider--flowRow-shallow:is(.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider){background:var(--bgColor-inset);border-color:var(--borderColor-default);border-style:solid;border-width:var(--borderWidth-thin) 0;height:8px;margin-right:0}.Layout.Layout--flowRow-until-lg.Layout--divided .Layout-main,.Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar{grid-row:3/span 1}.Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main{grid-row:1}}.Layout{grid-auto-flow:column;grid-template-columns:auto 0 minmax(0,calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter)));grid-gap:var(--Layout-gutter)}.Layout .Layout-sidebar{grid-column:1}.Layout .Layout-divider{display:none}.Layout .Layout-main{grid-column:2/span 2}@media (min-width:1012px){.Layout{--Layout-gutter:24px}}.Layout.Layout--gutter-none{--Layout-gutter:0px}.Layout.Layout--gutter-condensed{--Layout-gutter:16px}@media (min-width:1012px){.Layout.Layout--gutter-spacious{--Layout-gutter:32px}}@media (min-width:1280px){.Layout.Layout--gutter-spacious{--Layout-gutter:40px}}@media (min-width:544px){.Layout{--Layout-sidebar-width:220px}}@media (min-width:768px){.Layout{--Layout-sidebar-width:256px}}@media (min-width:1012px){.Layout{--Layout-sidebar-width:296px}}@media (min-width:768px){.Layout.Layout--sidebar-narrow{--Layout-sidebar-width:240px}}@media (min-width:1012px){.Layout.Layout--sidebar-narrow{--Layout-sidebar-width:256px}.Layout.Layout--sidebar-wide{--Layout-sidebar-width:320px}}@media (min-width:1280px){.Layout.Layout--sidebar-wide{--Layout-sidebar-width:336px}}.Layout.Layout--sidebarPosition-start .Layout-sidebar{grid-column:1}.Layout.Layout--sidebarPosition-start .Layout-main{grid-column:2/span 2}.Layout.Layout--sidebarPosition-end{grid-template-columns:minmax(0,calc(100% - var(--Layout-sidebar-width) - var(--Layout-gutter))) 0 auto}.Layout.Layout--sidebarPosition-end .Layout-main{grid-column:1}.Layout.Layout--sidebarPosition-end .Layout-sidebar{grid-column:2/span 2}.Layout.Layout--divided .Layout-divider{background:var(--borderColor-default);display:block;grid-column:2;margin-right:-1px;width:1px}.Layout.Layout--divided .Layout-main,.Layout.Layout--divided.Layout--sidebarPosition-end .Layout-sidebar{grid-column:3/span 1}.Layout.Layout--divided.Layout--sidebarPosition-end .Layout-main{grid-column:1}.Layout-divider{display:none;width:1px}.Layout-sidebar{width:var(--Layout-sidebar-width)}.Layout-main{min-width:0}.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-xl{margin-left:auto;margin-right:auto}:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)>.container-lg,:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)>.container-md,:is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)>.container-xl{margin-left:0}.Layout-main .Layout-main-centered-md{max-width:calc(var(--breakpoint-medium) + var(--Layout-sidebar-width) + var(--Layout-gutter))}.Layout-main .Layout-main-centered-lg{max-width:calc(var(--breakpoint-large) + var(--Layout-sidebar-width) + var(--Layout-gutter))}.Layout-main .Layout-main-centered-xl{max-width:calc(var(--breakpoint-xlarge) + var(--Layout-sidebar-width) + var(--Layout-gutter))}
|
@@ -2,12 +2,12 @@
|
|
2
2
|
"name": "alpha/layout",
|
3
3
|
"selectors": [
|
4
4
|
".Layout",
|
5
|
-
".Layout .Layout-sidebar",
|
6
5
|
".Layout .Layout-divider",
|
7
6
|
".Layout .Layout-main",
|
7
|
+
".Layout .Layout-sidebar",
|
8
8
|
".Layout.Layout--sidebarPosition-flowRow-start .Layout-sidebar",
|
9
|
-
".Layout.Layout--sidebarPosition-flowRow-start .Layout-main",
|
10
9
|
".Layout.Layout--sidebarPosition-flowRow-end .Layout-sidebar",
|
10
|
+
".Layout.Layout--sidebarPosition-flowRow-start .Layout-main",
|
11
11
|
".Layout.Layout--sidebarPosition-flowRow-end .Layout-main",
|
12
12
|
".Layout.Layout--sidebarPosition-flowRow-none .Layout-sidebar",
|
13
13
|
".Layout.Layout--divided",
|
@@ -18,12 +18,12 @@
|
|
18
18
|
".Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar",
|
19
19
|
".Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main",
|
20
20
|
".Layout.Layout--flowRow-until-md",
|
21
|
-
".Layout.Layout--flowRow-until-md .Layout-sidebar",
|
22
21
|
".Layout.Layout--flowRow-until-md .Layout-divider",
|
23
22
|
".Layout.Layout--flowRow-until-md .Layout-main",
|
23
|
+
".Layout.Layout--flowRow-until-md .Layout-sidebar",
|
24
24
|
".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-sidebar",
|
25
|
-
".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-main",
|
26
25
|
".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-sidebar",
|
26
|
+
".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-main",
|
27
27
|
".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-main",
|
28
28
|
".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-none .Layout-sidebar",
|
29
29
|
".Layout.Layout--flowRow-until-md.Layout--divided",
|
@@ -34,12 +34,12 @@
|
|
34
34
|
".Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar",
|
35
35
|
".Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main",
|
36
36
|
".Layout.Layout--flowRow-until-lg",
|
37
|
-
".Layout.Layout--flowRow-until-lg .Layout-sidebar",
|
38
37
|
".Layout.Layout--flowRow-until-lg .Layout-divider",
|
39
38
|
".Layout.Layout--flowRow-until-lg .Layout-main",
|
39
|
+
".Layout.Layout--flowRow-until-lg .Layout-sidebar",
|
40
40
|
".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-sidebar",
|
41
|
-
".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-main",
|
42
41
|
".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-sidebar",
|
42
|
+
".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-main",
|
43
43
|
".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-main",
|
44
44
|
".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-none .Layout-sidebar",
|
45
45
|
".Layout.Layout--flowRow-until-lg.Layout--divided",
|
@@ -64,11 +64,11 @@
|
|
64
64
|
".Layout-divider",
|
65
65
|
".Layout-sidebar",
|
66
66
|
".Layout-main",
|
67
|
-
".Layout-main .Layout-main-centered-md",
|
68
67
|
".Layout-main .Layout-main-centered-lg",
|
68
|
+
".Layout-main .Layout-main-centered-md",
|
69
69
|
".Layout-main .Layout-main-centered-xl",
|
70
|
-
":is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)
|
71
|
-
":is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)
|
72
|
-
":is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)
|
70
|
+
":is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)>.container-lg",
|
71
|
+
":is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)>.container-md",
|
72
|
+
":is(.Layout-main .Layout-main-centered-md,.Layout-main .Layout-main-centered-lg,.Layout-main .Layout-main-centered-xl)>.container-xl"
|
73
73
|
]
|
74
74
|
}
|
@@ -1,124 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
/* A menu on the side of a page, defaults to left side. e.g. github.com/about */
|
4
|
-
|
5
|
-
.menu {
|
6
|
-
/* stylelint-disable-next-line primer/spacing */
|
7
|
-
margin-bottom: var(--stack-gap-normal);
|
8
|
-
list-style: none;
|
9
|
-
background-color: var(--bgColor-default);
|
10
|
-
border: var(--borderWidth-thin) solid var(--borderColor-default);
|
11
|
-
border-radius: var(--borderRadius-medium);
|
12
|
-
}
|
13
|
-
|
14
|
-
.menu-item {
|
15
|
-
position: relative;
|
16
|
-
display: block;
|
17
|
-
/* stylelint-disable-next-line primer/spacing */
|
18
|
-
padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);
|
19
|
-
color: var(--fgColor-default);
|
20
|
-
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
|
21
|
-
}
|
22
|
-
|
23
|
-
.menu-item:first-child {
|
24
|
-
border-top: 0;
|
25
|
-
border-top-left-radius: var(--borderRadius-medium);
|
26
|
-
border-top-right-radius: var(--borderRadius-medium);
|
27
|
-
}
|
28
|
-
|
29
|
-
.menu-item:first-child::before {
|
30
|
-
border-top-left-radius: var(--borderRadius-medium);
|
31
|
-
}
|
32
|
-
|
33
|
-
.menu-item:last-child {
|
34
|
-
border-bottom: 0;
|
35
|
-
border-bottom-right-radius: var(--borderRadius-medium);
|
36
|
-
border-bottom-left-radius: var(--borderRadius-medium);
|
37
|
-
}
|
38
|
-
|
39
|
-
.menu-item:last-child::before {
|
40
|
-
border-bottom-left-radius: var(--borderRadius-medium);
|
41
|
-
}
|
42
|
-
|
43
|
-
.menu-item:hover {
|
44
|
-
-webkit-text-decoration: none;
|
45
|
-
text-decoration: none;
|
46
|
-
background-color: var(--bgColor-neutral-muted);
|
47
|
-
}
|
48
|
-
|
49
|
-
.menu-item:active {
|
50
|
-
background-color: var(--bgColor-muted);
|
51
|
-
}
|
52
|
-
|
53
|
-
.menu-item.selected,.menu-item[aria-selected='true'],.menu-item[aria-current]:not([aria-current='false']) {
|
54
|
-
cursor: default;
|
55
|
-
background-color: var(--menu-bgColor-active);
|
56
|
-
}
|
57
|
-
|
58
|
-
:is(.menu-item.selected,.menu-item[aria-selected='true'],.menu-item[aria-current]:not([aria-current='false']))::before {
|
59
|
-
position: absolute;
|
60
|
-
top: 0;
|
61
|
-
bottom: 0;
|
62
|
-
left: 0;
|
63
|
-
width: 2px;
|
64
|
-
content: '';
|
65
|
-
/* stylelint-disable-next-line primer/colors */
|
66
|
-
background-color: var(--underlineNav-borderColor-active);
|
67
|
-
}
|
68
|
-
|
69
|
-
.menu-item .octicon {
|
70
|
-
width: 16px;
|
71
|
-
/* stylelint-disable-next-line primer/spacing */
|
72
|
-
margin-right: var(--control-medium-gap);
|
73
|
-
color: var(--fgColor-muted);
|
74
|
-
text-align: center;
|
75
|
-
}
|
76
|
-
|
77
|
-
.menu-item .Counter {
|
78
|
-
float: right;
|
79
|
-
/* stylelint-disable-next-line primer/spacing */
|
80
|
-
margin-left: var(--control-small-gap);
|
81
|
-
}
|
82
|
-
|
83
|
-
.menu-item .menu-warning {
|
84
|
-
float: right;
|
85
|
-
color: var(--fgColor-attention);
|
86
|
-
}
|
87
|
-
|
88
|
-
.menu-item .avatar {
|
89
|
-
float: left;
|
90
|
-
/* stylelint-disable-next-line primer/spacing */
|
91
|
-
margin-right: var(--control-small-gap);
|
92
|
-
}
|
93
|
-
|
94
|
-
.menu-item.alert .Counter {
|
95
|
-
color: var(--fgColor-danger);
|
96
|
-
}
|
97
|
-
|
98
|
-
.menu-heading {
|
99
|
-
display: block;
|
100
|
-
/* stylelint-disable-next-line primer/spacing */
|
101
|
-
padding: var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);
|
102
|
-
margin-top: 0;
|
103
|
-
margin-bottom: 0;
|
104
|
-
font-size: inherit;
|
105
|
-
font-weight: var(--base-text-weight-semibold);
|
106
|
-
color: var(--fgColor-default);
|
107
|
-
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);
|
108
|
-
}
|
109
|
-
|
110
|
-
.menu-heading:hover {
|
111
|
-
-webkit-text-decoration: none;
|
112
|
-
text-decoration: none;
|
113
|
-
}
|
114
|
-
|
115
|
-
.menu-heading:first-child {
|
116
|
-
border-top-left-radius: var(--borderRadius-medium);
|
117
|
-
border-top-right-radius: var(--borderRadius-medium);
|
118
|
-
}
|
119
|
-
|
120
|
-
.menu-heading:last-child {
|
121
|
-
border-bottom: 0;
|
122
|
-
border-bottom-right-radius: var(--borderRadius-medium);
|
123
|
-
border-bottom-left-radius: var(--borderRadius-medium);
|
124
|
-
}
|
1
|
+
.menu{background-color:var(--bgColor-default);border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:var(--borderRadius-medium);list-style:none;margin-bottom:var(--stack-gap-normal)}.menu-item{border-bottom:var(--borderWidth-thin) solid var(--borderColor-default);color:var(--fgColor-default);display:block;padding:var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious);position:relative}.menu-item:first-child{border-top:0;border-top-right-radius:var(--borderRadius-medium)}.menu-item:first-child,.menu-item:first-child:before{border-top-left-radius:var(--borderRadius-medium)}.menu-item:last-child{border-bottom:0;border-bottom-right-radius:var(--borderRadius-medium)}.menu-item:last-child,.menu-item:last-child:before{border-bottom-left-radius:var(--borderRadius-medium)}.menu-item:hover{background-color:var(--bgColor-neutral-muted);-webkit-text-decoration:none;text-decoration:none}.menu-item:active{background-color:var(--bgColor-muted)}.menu-item.selected,.menu-item[aria-current]:not([aria-current=false]),.menu-item[aria-selected=true]{background-color:var(--menu-bgColor-active);cursor:default}:is(.menu-item.selected,.menu-item[aria-selected=true],.menu-item[aria-current]:not([aria-current=false])):before{background-color:var(--underlineNav-borderColor-active);bottom:0;content:"";left:0;position:absolute;top:0;width:2px}.menu-item .octicon{color:var(--fgColor-muted);margin-right:var(--control-medium-gap);text-align:center;width:16px}.menu-item .Counter{float:right;margin-left:var(--control-small-gap)}.menu-item .menu-warning{color:var(--fgColor-attention);float:right}.menu-item .avatar{float:left;margin-right:var(--control-small-gap)}.menu-item.alert .Counter{color:var(--fgColor-danger)}.menu-heading{border-bottom:var(--borderWidth-thin) solid var(--borderColor-default);color:var(--fgColor-default);display:block;font-size:inherit;font-weight:var(--base-text-weight-semibold);margin-bottom:0;margin-top:0;padding:var(--control-medium-paddingInline-condensed) var(--control-medium-paddingInline-spacious)}.menu-heading:hover{-webkit-text-decoration:none;text-decoration:none}.menu-heading:first-child{border-top-left-radius:var(--borderRadius-medium);border-top-right-radius:var(--borderRadius-medium)}.menu-heading:last-child{border-bottom:0;border-bottom-left-radius:var(--borderRadius-medium);border-bottom-right-radius:var(--borderRadius-medium)}
|
@@ -4,15 +4,15 @@
|
|
4
4
|
".menu",
|
5
5
|
".menu-item",
|
6
6
|
".menu-item:first-child",
|
7
|
-
".menu-item:first-child
|
7
|
+
".menu-item:first-child:before",
|
8
8
|
".menu-item:last-child",
|
9
|
-
".menu-item:last-child
|
9
|
+
".menu-item:last-child:before",
|
10
10
|
".menu-item:hover",
|
11
11
|
".menu-item:active",
|
12
12
|
".menu-item.selected",
|
13
|
-
".menu-item[aria-
|
14
|
-
".menu-item[aria-
|
15
|
-
":is(.menu-item.selected,.menu-item[aria-selected=
|
13
|
+
".menu-item[aria-current]:not([aria-current=false])",
|
14
|
+
".menu-item[aria-selected=true]",
|
15
|
+
":is(.menu-item.selected,.menu-item[aria-selected=true],.menu-item[aria-current]:not([aria-current=false])):before",
|
16
16
|
".menu-item .octicon",
|
17
17
|
".menu-item .Counter",
|
18
18
|
".menu-item .menu-warning",
|
@@ -1,25 +1 @@
|
|
1
|
-
|
2
|
-
anchored-position[popover] {
|
3
|
-
position: absolute;
|
4
|
-
min-width: 192px;
|
5
|
-
padding: 0;
|
6
|
-
overflow: visible;
|
7
|
-
border-width: 0;
|
8
|
-
}
|
9
|
-
anchored-position:not(.Overlay) {
|
10
|
-
background: none;
|
11
|
-
}
|
12
|
-
.Overlay[popover]:not(:popover-open) {
|
13
|
-
display: none
|
14
|
-
}
|
15
|
-
anchored-position.not-anchored::backdrop, dialog::backdrop {
|
16
|
-
background-color: var(--overlay-backdrop-bgColor, var(--color-neutral-muted));
|
17
|
-
}
|
18
|
-
select-panel dialog::backdrop {
|
19
|
-
background: none;
|
20
|
-
}
|
21
|
-
@media (forced-colors: active) {
|
22
|
-
.Overlay {
|
23
|
-
outline: solid 1px transparent;
|
24
|
-
}
|
25
|
-
}
|
1
|
+
anchored-position[popover]{border-width:0;min-width:192px;overflow:visible;padding:0;position:absolute}anchored-position:not(.Overlay){background:none}.Overlay[popover]:not(:popover-open){display:none}anchored-position.not-anchored::backdrop,dialog::backdrop{background-color:var(--overlay-backdrop-bgColor,var(--color-neutral-muted))}select-panel dialog::backdrop{background:none}@media (forced-colors:active){.Overlay{outline:1px solid #0000}}
|