@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
|
@@ -10,40 +10,46 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
justify-content: flex-end;
|
|
12
12
|
}
|
|
13
|
+
|
|
13
14
|
.ActionBar-item-container {
|
|
14
15
|
height: var(--control-medium-size);
|
|
15
16
|
box-sizing: content-box;
|
|
16
17
|
overflow: hidden;
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
.ActionBar-item {
|
|
19
21
|
position: relative;
|
|
20
22
|
float: left;
|
|
21
23
|
}
|
|
24
|
+
|
|
22
25
|
.ActionBar-more-menu {
|
|
23
26
|
float: left;
|
|
24
27
|
}
|
|
28
|
+
|
|
25
29
|
.ActionBar--small {
|
|
26
30
|
min-width: calc(var(--control-small-size) * 3);
|
|
27
31
|
}
|
|
32
|
+
|
|
28
33
|
.ActionBar--large {
|
|
29
34
|
min-width: calc(var(--control-large-size) * 3);
|
|
30
35
|
}
|
|
36
|
+
|
|
31
37
|
/* Divider */
|
|
38
|
+
|
|
32
39
|
.ActionBar-divider {
|
|
33
40
|
top: 50%;
|
|
34
41
|
bottom: 50%;
|
|
35
42
|
float: left;
|
|
36
43
|
height: calc(var(--control-medium-size) / 2);
|
|
37
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
38
44
|
margin: 0 var(--controlStack-medium-gap-condensed);
|
|
39
45
|
border-left: var(--borderWidth-thin) solid var(--borderColor-muted);
|
|
40
46
|
transform: translateY(-50%);
|
|
41
47
|
}
|
|
48
|
+
|
|
42
49
|
.ActionBar--small .ActionBar-divider {
|
|
43
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
44
50
|
margin: 0 var(--controlStack-small-gap-condensed);
|
|
45
51
|
}
|
|
52
|
+
|
|
46
53
|
.ActionBar--large .ActionBar-divider {
|
|
47
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
48
54
|
margin: 0 var(--controlStack-large-gap-condensed);
|
|
49
55
|
}
|
|
@@ -4,29 +4,37 @@
|
|
|
4
4
|
:root {
|
|
5
5
|
--actionListContent-paddingBlock: var(--control-medium-paddingBlock);
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
/* ActionList */
|
|
9
|
+
|
|
8
10
|
/* stylelint-disable-next-line selector-max-type */
|
|
9
11
|
action-list {
|
|
10
12
|
display: block;
|
|
11
13
|
}
|
|
14
|
+
|
|
12
15
|
/* stylelint-disable-next-line selector-max-type */
|
|
13
16
|
nav-list {
|
|
14
17
|
display: block;
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
.ActionListHeader {
|
|
17
21
|
margin-bottom: var(--base-size-16);
|
|
18
22
|
margin-left: var(--base-size-8);
|
|
19
23
|
}
|
|
24
|
+
|
|
20
25
|
/* <ul> */
|
|
21
26
|
.ActionListWrap {
|
|
22
27
|
list-style: none;
|
|
23
28
|
}
|
|
29
|
+
|
|
24
30
|
.ActionListWrap--inset,
|
|
25
31
|
.ActionListWrap--inset[popover] {
|
|
26
32
|
margin-left: 0;
|
|
27
33
|
padding: var(--base-size-8);
|
|
28
34
|
}
|
|
35
|
+
|
|
29
36
|
/* list dividers */
|
|
37
|
+
|
|
30
38
|
.ActionListWrap--divided .ActionListItem-label::before {
|
|
31
39
|
position: absolute;
|
|
32
40
|
/* stylelint-disable-next-line primer/spacing */
|
|
@@ -38,7 +46,9 @@ nav-list {
|
|
|
38
46
|
/* stylelint-disable-next-line primer/colors */
|
|
39
47
|
background: var(--borderColor-muted);
|
|
40
48
|
}
|
|
49
|
+
|
|
41
50
|
/* if descriptionWrap--inline exists, move pseudo divider to wrapper */
|
|
51
|
+
|
|
42
52
|
:is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline)::before {
|
|
43
53
|
position: absolute;
|
|
44
54
|
/* stylelint-disable-next-line primer/spacing */
|
|
@@ -50,25 +60,33 @@ nav-list {
|
|
|
50
60
|
/* stylelint-disable-next-line primer/colors */
|
|
51
61
|
background: var(--borderColor-muted);
|
|
52
62
|
}
|
|
63
|
+
|
|
53
64
|
/* unset the default label pseudo */
|
|
65
|
+
|
|
54
66
|
:is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline) .ActionListItem-label::before {
|
|
55
67
|
content: unset;
|
|
56
68
|
}
|
|
69
|
+
|
|
57
70
|
/* hide divider if item is active */
|
|
71
|
+
|
|
58
72
|
:is(.ActionListWrap--divided .ActionListItem--navActive) .ActionListItem-label::before,:is(.ActionListWrap--divided .ActionListItem--navActive) + .ActionListItem .ActionListItem-label::before {
|
|
59
73
|
visibility: hidden;
|
|
60
74
|
}
|
|
75
|
+
|
|
61
76
|
/* hide if item is first of type with label::before, or is the first item after a sectionDivider */
|
|
62
77
|
.ActionListItem:first-of-type .ActionListItem-label::before,
|
|
63
78
|
.ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before {
|
|
64
79
|
visibility: hidden;
|
|
65
80
|
}
|
|
81
|
+
|
|
66
82
|
/* hide if item is first of type with label::before, or is the first item after a sectionDivider */
|
|
67
83
|
.ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before,
|
|
68
84
|
.ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before {
|
|
69
85
|
visibility: hidden;
|
|
70
86
|
}
|
|
87
|
+
|
|
71
88
|
/* ActionList::Item */
|
|
89
|
+
|
|
72
90
|
.ActionListItem {
|
|
73
91
|
position: relative;
|
|
74
92
|
list-style: none;
|
|
@@ -77,10 +95,13 @@ nav-list {
|
|
|
77
95
|
|
|
78
96
|
/* state */
|
|
79
97
|
}
|
|
98
|
+
|
|
80
99
|
.ActionListItem:hover,.ActionListItem:active {
|
|
81
100
|
cursor: pointer;
|
|
82
101
|
}
|
|
102
|
+
|
|
83
103
|
/* hide dividers */
|
|
104
|
+
|
|
84
105
|
@media (hover: hover) {
|
|
85
106
|
.ActionListItem:hover .ActionListItem-label::before,.ActionListItem:hover + .ActionListItem .ActionListItem-label::before {
|
|
86
107
|
visibility: hidden;
|
|
@@ -90,24 +111,33 @@ nav-list {
|
|
|
90
111
|
visibility: hidden;
|
|
91
112
|
}
|
|
92
113
|
}
|
|
114
|
+
|
|
93
115
|
/* Make sure that the first visible item isn't a divider */
|
|
116
|
+
|
|
94
117
|
.ActionListItem[hidden] + .ActionList-sectionDivider {
|
|
95
118
|
display: none;
|
|
96
119
|
}
|
|
120
|
+
|
|
97
121
|
/* collapse styles here */
|
|
122
|
+
|
|
98
123
|
/* first child */
|
|
124
|
+
|
|
99
125
|
.ActionListItem.ActionListItem--hasSubItem > .ActionListContent {
|
|
100
126
|
z-index: 1;
|
|
101
127
|
}
|
|
128
|
+
|
|
102
129
|
@media (hover: hover) {
|
|
103
130
|
:is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover {
|
|
104
131
|
background-color: var(--control-transparent-bgColor-hover);
|
|
105
132
|
}
|
|
106
133
|
}
|
|
134
|
+
|
|
107
135
|
:is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active {
|
|
108
136
|
background-color: var(--control-transparent-bgColor-active);
|
|
109
137
|
}
|
|
138
|
+
|
|
110
139
|
/* only hover li without list as children */
|
|
140
|
+
|
|
111
141
|
@media (hover: hover) {
|
|
112
142
|
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover {
|
|
113
143
|
cursor: pointer;
|
|
@@ -121,32 +151,41 @@ nav-list {
|
|
|
121
151
|
box-shadow: var(--boxShadow-thin) var(--control-transparent-borderColor-active);
|
|
122
152
|
}
|
|
123
153
|
}
|
|
154
|
+
|
|
124
155
|
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active {
|
|
125
156
|
background: var(--control-transparent-bgColor-active);
|
|
126
157
|
}
|
|
158
|
+
|
|
127
159
|
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active:not(.ActionListItem--navActive) {
|
|
128
160
|
/* Support for "Windows high contrast mode" https:sarahmhigley.com/writing/whcm-quick-tips/ */
|
|
129
161
|
outline: solid var(--borderWidth-thin) transparent;
|
|
130
162
|
outline-offset: calc(-1 * var(--borderWidth-thin));
|
|
131
163
|
box-shadow: var(--boxShadow-thin) var(--control-transparent-borderColor-active);
|
|
132
164
|
}
|
|
165
|
+
|
|
133
166
|
:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active .ActionListItem-label::before,:is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active + .ActionListItem .ActionListItem-label::before {
|
|
134
167
|
visibility: hidden;
|
|
135
168
|
}
|
|
169
|
+
|
|
136
170
|
/* Autocomplete [aria-selected] items */
|
|
171
|
+
|
|
137
172
|
.ActionListItem[aria-selected='true'] {
|
|
138
173
|
font-weight: var(--base-text-weight-normal);
|
|
139
174
|
background: var(--control-transparent-bgColor-selected);
|
|
140
175
|
}
|
|
176
|
+
|
|
141
177
|
@media (hover: hover) {
|
|
142
178
|
.ActionListItem[aria-selected='true']:hover {
|
|
143
179
|
background-color: var(--control-transparent-bgColor-hover);
|
|
144
180
|
}
|
|
145
181
|
}
|
|
182
|
+
|
|
146
183
|
.ActionListItem[aria-selected='true']::before,.ActionListItem[aria-selected='true'] + .ActionListItem::before {
|
|
147
184
|
visibility: hidden;
|
|
148
185
|
}
|
|
186
|
+
|
|
149
187
|
/* blue accent line */
|
|
188
|
+
|
|
150
189
|
.ActionListItem[aria-selected='true']::after {
|
|
151
190
|
position: absolute;
|
|
152
191
|
top: calc(50% - 12px);
|
|
@@ -157,26 +196,34 @@ nav-list {
|
|
|
157
196
|
background: var(--borderColor-accent-emphasis);
|
|
158
197
|
border-radius: var(--borderRadius-medium);
|
|
159
198
|
}
|
|
199
|
+
|
|
160
200
|
/* active state [aria-current] */
|
|
201
|
+
|
|
161
202
|
.ActionListItem.ActionListItem--navActive {
|
|
162
203
|
/* provides a visual indication of the current item for Windows high-contrast mode */
|
|
163
204
|
outline: 2px solid transparent;
|
|
164
205
|
}
|
|
206
|
+
|
|
165
207
|
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label {
|
|
166
208
|
font-weight: var(--base-text-weight-semibold);
|
|
167
209
|
}
|
|
210
|
+
|
|
168
211
|
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) {
|
|
169
212
|
background: var(--control-transparent-bgColor-selected);
|
|
170
213
|
}
|
|
214
|
+
|
|
171
215
|
@media (hover: hover) {
|
|
172
216
|
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover {
|
|
173
217
|
background-color: var(--control-transparent-bgColor-hover);
|
|
174
218
|
}
|
|
175
219
|
}
|
|
220
|
+
|
|
176
221
|
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before,.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before {
|
|
177
222
|
visibility: hidden;
|
|
178
223
|
}
|
|
224
|
+
|
|
179
225
|
/* blue accent line */
|
|
226
|
+
|
|
180
227
|
.ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after {
|
|
181
228
|
position: absolute;
|
|
182
229
|
top: calc(50% - 12px);
|
|
@@ -187,27 +234,36 @@ nav-list {
|
|
|
187
234
|
background: var(--borderColor-accent-emphasis);
|
|
188
235
|
border-radius: var(--borderRadius-medium);
|
|
189
236
|
}
|
|
237
|
+
|
|
190
238
|
/* disabled */
|
|
239
|
+
|
|
191
240
|
:is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-label,:is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-description {
|
|
192
241
|
color: var(--control-fgColor-disabled);
|
|
193
242
|
}
|
|
243
|
+
|
|
194
244
|
:is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-visual {
|
|
195
245
|
fill: var(--control-fgColor-disabled);
|
|
196
246
|
}
|
|
247
|
+
|
|
197
248
|
@media (hover: hover) {
|
|
198
249
|
:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']):hover {
|
|
199
250
|
cursor: not-allowed;
|
|
200
251
|
background-color: transparent;
|
|
201
252
|
}
|
|
202
253
|
}
|
|
254
|
+
|
|
203
255
|
/* variants */
|
|
256
|
+
|
|
204
257
|
/* danger */
|
|
258
|
+
|
|
205
259
|
.ActionListItem.ActionListItem--danger .ActionListItem-label {
|
|
206
260
|
color: var(--control-danger-fgColor-rest);
|
|
207
261
|
}
|
|
262
|
+
|
|
208
263
|
.ActionListItem.ActionListItem--danger .ActionListItem-visual {
|
|
209
264
|
color: var(--control-danger-fgColor-rest);
|
|
210
265
|
}
|
|
266
|
+
|
|
211
267
|
@media (hover: hover) {
|
|
212
268
|
.ActionListItem.ActionListItem--danger:hover {
|
|
213
269
|
background: var(--control-danger-bgColor-hover);
|
|
@@ -217,12 +273,15 @@ nav-list {
|
|
|
217
273
|
color: var(--control-danger-fgColor-hover);
|
|
218
274
|
}
|
|
219
275
|
}
|
|
276
|
+
|
|
220
277
|
:is(.ActionListItem.ActionListItem--danger .ActionListContent):active {
|
|
221
278
|
background: var(--control-danger-bgColor-active);
|
|
222
279
|
}
|
|
280
|
+
|
|
223
281
|
:is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-label,:is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-visual,:is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-description {
|
|
224
282
|
color: var(--control-danger-fgColor-hover);
|
|
225
283
|
}
|
|
284
|
+
|
|
226
285
|
/* button or a href */
|
|
227
286
|
.ActionListContent {
|
|
228
287
|
position: relative;
|
|
@@ -230,7 +289,6 @@ nav-list {
|
|
|
230
289
|
width: 100%;
|
|
231
290
|
/* stylelint-disable-next-line primer/spacing */
|
|
232
291
|
padding-block: var(--actionListContent-paddingBlock);
|
|
233
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
234
292
|
padding-inline: var(--control-medium-paddingInline-condensed);
|
|
235
293
|
color: var(--control-fgColor-rest);
|
|
236
294
|
text-align: left;
|
|
@@ -250,7 +308,6 @@ nav-list {
|
|
|
250
308
|
/* column-gap persists with empty grid-areas, margin applies only when children exist */
|
|
251
309
|
}
|
|
252
310
|
.ActionListContent > :not(:last-child) {
|
|
253
|
-
/* stylelint-disable-next-line primer/spacing */
|
|
254
311
|
margin-right: var(--control-medium-gap);
|
|
255
312
|
}
|
|
256
313
|
/* state */
|
|
@@ -382,24 +439,32 @@ nav-list {
|
|
|
382
439
|
.ActionListContent.ActionListContent--blockDescription .ActionListItem-visual {
|
|
383
440
|
place-self: start;
|
|
384
441
|
}
|
|
442
|
+
|
|
385
443
|
/* place children on grid */
|
|
444
|
+
|
|
386
445
|
.ActionListItem-action--leading {
|
|
387
446
|
grid-area: leadingAction;
|
|
388
447
|
}
|
|
448
|
+
|
|
389
449
|
.ActionListItem-visual--leading {
|
|
390
450
|
grid-area: leadingVisual;
|
|
391
451
|
}
|
|
452
|
+
|
|
392
453
|
.ActionListItem-visual--trailing {
|
|
393
454
|
grid-area: trailingVisual;
|
|
394
455
|
}
|
|
456
|
+
|
|
395
457
|
.ActionListItem-action--trailing {
|
|
396
458
|
grid-area: trailingAction;
|
|
397
459
|
}
|
|
460
|
+
|
|
398
461
|
/* have leading visual svg filled with chosen color */
|
|
462
|
+
|
|
399
463
|
/* stylelint-disable-next-line selector-max-type */
|
|
400
464
|
.ActionListItem-visual--leading svg {
|
|
401
465
|
fill: currentcolor;
|
|
402
466
|
}
|
|
467
|
+
|
|
403
468
|
/* wrapper span
|
|
404
469
|
default block */
|
|
405
470
|
.ActionListItem-descriptionWrap {
|
|
@@ -411,6 +476,7 @@ nav-list {
|
|
|
411
476
|
.ActionListItem-descriptionWrap .ActionListItem-label {
|
|
412
477
|
font-weight: var(--base-text-weight-semibold);
|
|
413
478
|
}
|
|
479
|
+
|
|
414
480
|
/* inline */
|
|
415
481
|
.ActionListItem-descriptionWrap--inline {
|
|
416
482
|
position: relative;
|
|
@@ -418,6 +484,7 @@ nav-list {
|
|
|
418
484
|
align-items: baseline;
|
|
419
485
|
gap: var(--base-size-8);
|
|
420
486
|
}
|
|
487
|
+
|
|
421
488
|
/* description */
|
|
422
489
|
.ActionListItem-description {
|
|
423
490
|
font-size: var(--text-body-size-small);
|
|
@@ -425,6 +492,7 @@ nav-list {
|
|
|
425
492
|
line-height: var(--text-body-lineHeight-small);
|
|
426
493
|
color: var(--fgColor-muted);
|
|
427
494
|
}
|
|
495
|
+
|
|
428
496
|
/* helper for grid alignment with multi-line content
|
|
429
497
|
span wrapping svg or text */
|
|
430
498
|
.ActionListItem-visual,
|
|
@@ -436,6 +504,7 @@ nav-list {
|
|
|
436
504
|
fill: var(--fgColor-muted);
|
|
437
505
|
align-items: center;
|
|
438
506
|
}
|
|
507
|
+
|
|
439
508
|
/* text */
|
|
440
509
|
.ActionListItem-label {
|
|
441
510
|
position: relative;
|
|
@@ -445,36 +514,48 @@ nav-list {
|
|
|
445
514
|
color: var(--fgColor-default);
|
|
446
515
|
grid-area: label;
|
|
447
516
|
}
|
|
517
|
+
|
|
448
518
|
.ActionListItem-label--truncate {
|
|
449
519
|
overflow: hidden;
|
|
450
520
|
text-overflow: ellipsis;
|
|
451
521
|
white-space: nowrap;
|
|
452
522
|
}
|
|
523
|
+
|
|
453
524
|
/* nested lists (only supports 1 level currently)
|
|
454
525
|
target ActionListItem--subItem for padding-left to maintain :active :after state */
|
|
526
|
+
|
|
455
527
|
.ActionListItem--subItem > .ActionListContent > .ActionListItem-label {
|
|
456
528
|
font-size: var(--text-body-size-small);
|
|
457
529
|
line-height: var(--text-body-lineHeight-small);
|
|
458
530
|
}
|
|
531
|
+
|
|
459
532
|
/* trailing action icon button */
|
|
533
|
+
|
|
460
534
|
.ActionListItem--withActions {
|
|
461
535
|
display: flex;
|
|
462
536
|
flex-wrap: nowrap;
|
|
463
537
|
align-items: center;
|
|
464
538
|
}
|
|
539
|
+
|
|
465
540
|
.ActionListItem-trailingAction {
|
|
466
541
|
border-top-left-radius: 0;
|
|
467
542
|
border-bottom-left-radius: 0;
|
|
468
543
|
}
|
|
544
|
+
|
|
469
545
|
/* show trailing action button on hover */
|
|
546
|
+
|
|
470
547
|
.ActionListItem--trailingActionHover .ActionListItem-trailingAction {
|
|
471
548
|
visibility: hidden;
|
|
472
549
|
}
|
|
550
|
+
|
|
473
551
|
:is(.ActionListItem--trailingActionHover:hover,.ActionListItem--trailingActionHover:focus-within) .ActionListItem-trailingAction {
|
|
474
552
|
visibility: visible;
|
|
475
553
|
}
|
|
554
|
+
|
|
476
555
|
/* ActionList::Divider */
|
|
556
|
+
|
|
477
557
|
/* with children */
|
|
558
|
+
|
|
478
559
|
.ActionList-sectionDivider:not(:empty) {
|
|
479
560
|
display: flex;
|
|
480
561
|
font-size: var(--text-body-size-small);
|
|
@@ -486,7 +567,9 @@ nav-list {
|
|
|
486
567
|
padding-inline: var(--actionListContent-paddingBlock);
|
|
487
568
|
padding-block: var(--base-size-8);
|
|
488
569
|
}
|
|
570
|
+
|
|
489
571
|
/* no children */
|
|
572
|
+
|
|
490
573
|
.ActionList-sectionDivider:empty {
|
|
491
574
|
display: block;
|
|
492
575
|
height: var(--borderWidth-thin);
|
|
@@ -500,26 +583,31 @@ nav-list {
|
|
|
500
583
|
background: var(--borderColor-muted);
|
|
501
584
|
border: 0;
|
|
502
585
|
}
|
|
586
|
+
|
|
503
587
|
.ActionList-sectionDivider .ActionList-sectionDivider-title {
|
|
504
588
|
font-size: var(--text-body-size-small);
|
|
505
589
|
font-weight: var(--base-text-weight-semibold);
|
|
506
590
|
color: var(--fgColor-muted);
|
|
507
591
|
align-self: flex-start;
|
|
508
592
|
}
|
|
593
|
+
|
|
509
594
|
.ActionList-sectionDividerHeader {
|
|
510
595
|
display: flex;
|
|
511
596
|
align-items: center;
|
|
512
597
|
gap: var(--base-size-8);
|
|
513
598
|
}
|
|
599
|
+
|
|
514
600
|
.ActionList-sectionDividerHeader .ActionList-sectionDivider-title {
|
|
515
601
|
align-self: baseline;
|
|
516
602
|
}
|
|
603
|
+
|
|
517
604
|
.ActionList-sectionDivider-trailingVisual {
|
|
518
605
|
display: inline-flex;
|
|
519
606
|
align-items: center;
|
|
520
607
|
margin-inline-start: auto;
|
|
521
608
|
flex-shrink: 0;
|
|
522
609
|
}
|
|
610
|
+
|
|
523
611
|
.ActionList-sectionDivider--filled {
|
|
524
612
|
/* stylelint-disable-next-line primer/spacing */
|
|
525
613
|
margin-block-start: calc(var(--base-size-8) - var(--borderWidth-thin));
|
|
@@ -531,10 +619,12 @@ nav-list {
|
|
|
531
619
|
|
|
532
620
|
/* if no children, treat as divider */
|
|
533
621
|
}
|
|
622
|
+
|
|
534
623
|
.ActionList-sectionDivider--filled:empty {
|
|
535
624
|
height: var(--base-size-8);
|
|
536
625
|
box-sizing: border-box;
|
|
537
626
|
}
|
|
627
|
+
|
|
538
628
|
.ActionList-sectionDivider--filled:first-child {
|
|
539
629
|
margin-block-start: 0;
|
|
540
630
|
}
|
|
@@ -4,21 +4,18 @@
|
|
|
4
4
|
** AutoComplete relies on FormControl, Overlay and ActionList CSS */
|
|
5
5
|
|
|
6
6
|
/* Stacked label (default) */
|
|
7
|
-
|
|
8
7
|
.autocomplete-label-stacked {
|
|
9
8
|
display: block;
|
|
10
9
|
margin-bottom: var(--base-size-6);
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
/* Inline label (non-default) */
|
|
14
|
-
|
|
15
13
|
.autocomplete-label-inline {
|
|
16
14
|
display: inline;
|
|
17
15
|
margin-right: var(--base-size-6);
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
/* Switch to stacked at smaller viewport */
|
|
21
|
-
|
|
22
19
|
@media (max-width: 543.98px) {
|
|
23
20
|
.autocomplete-label-inline {
|
|
24
21
|
display: block;
|
|
@@ -27,20 +24,17 @@
|
|
|
27
24
|
}
|
|
28
25
|
|
|
29
26
|
/* Wrapper for the input and result elements to ensure alignment */
|
|
30
|
-
|
|
31
27
|
.autocomplete-body {
|
|
32
28
|
position: relative;
|
|
33
29
|
display: inline;
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
/* Wrapper and conditional styles for when an icon is added */
|
|
37
|
-
|
|
38
33
|
.autocomplete-embedded-icon-wrap {
|
|
39
34
|
display: inline-flex;
|
|
40
35
|
padding: var(--base-size-4) var(--base-size-8);
|
|
41
36
|
align-items: center;
|
|
42
37
|
}
|
|
43
|
-
|
|
44
38
|
.autocomplete-embedded-icon-wrap:focus-within {
|
|
45
39
|
border-color: var(--borderColor-accent-emphasis);
|
|
46
40
|
|
|
@@ -50,24 +44,20 @@
|
|
|
50
44
|
|
|
51
45
|
box-shadow: inset 0 0 0 1px var(--focus-outlineColor);
|
|
52
46
|
}
|
|
53
|
-
|
|
54
47
|
.autocomplete-embedded-icon-wrap .form-control {
|
|
55
48
|
padding: 0;
|
|
56
49
|
margin-left: var(--base-size-8);
|
|
57
50
|
border: none;
|
|
58
51
|
box-shadow: none;
|
|
59
52
|
}
|
|
60
|
-
|
|
61
53
|
:is(.autocomplete-embedded-icon-wrap .form-control):focus {
|
|
62
54
|
box-shadow: none;
|
|
63
55
|
}
|
|
64
|
-
|
|
65
56
|
:is(.autocomplete-embedded-icon-wrap .form-control):focus-visible {
|
|
66
57
|
box-shadow: none;
|
|
67
58
|
}
|
|
68
59
|
|
|
69
60
|
/* A pop up list of items used to show autocompleted results */
|
|
70
|
-
|
|
71
61
|
.autocomplete-results {
|
|
72
62
|
position: absolute;
|
|
73
63
|
left: 0;
|
|
@@ -102,6 +92,10 @@
|
|
|
102
92
|
cursor: pointer;
|
|
103
93
|
background-color: var(--overlay-bgColor);
|
|
104
94
|
border: 0;
|
|
95
|
+
|
|
96
|
+
/* `color` is inherited, so setting it on the item recolors descendants
|
|
97
|
+
** without a universal `… *` descendant rule (which forces a slow
|
|
98
|
+
** style-recalc match attempt against every element on the page). */
|
|
105
99
|
}
|
|
106
100
|
|
|
107
101
|
.autocomplete-item:hover {
|
|
@@ -109,23 +103,11 @@
|
|
|
109
103
|
-webkit-text-decoration: none;
|
|
110
104
|
text-decoration: none;
|
|
111
105
|
background-color: var(--bgColor-accent-emphasis);
|
|
112
|
-
|
|
113
|
-
/* Inherit color on all child elements to ensure enough contrast */
|
|
114
106
|
}
|
|
115
107
|
|
|
116
|
-
.autocomplete-item:hover * {
|
|
117
|
-
color: inherit !important;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
108
|
.autocomplete-item.selected,.autocomplete-item[aria-selected='true'],.autocomplete-item.navigation-focus {
|
|
121
109
|
color: var(--fgColor-onEmphasis);
|
|
122
110
|
-webkit-text-decoration: none;
|
|
123
111
|
text-decoration: none;
|
|
124
112
|
background-color: var(--bgColor-accent-emphasis);
|
|
125
|
-
|
|
126
|
-
/* Inherit color on all child elements to ensure enough contrast */
|
|
127
113
|
}
|
|
128
|
-
|
|
129
|
-
:is(.autocomplete-item.selected,.autocomplete-item[aria-selected='true'],.autocomplete-item.navigation-focus) * {
|
|
130
|
-
color: inherit !important;
|
|
131
|
-
}
|
|
@@ -12,10 +12,8 @@
|
|
|
12
12
|
".autocomplete-results",
|
|
13
13
|
".autocomplete-item",
|
|
14
14
|
".autocomplete-item:hover",
|
|
15
|
-
".autocomplete-item:hover *",
|
|
16
15
|
".autocomplete-item.selected",
|
|
17
16
|
".autocomplete-item[aria-selected='true']",
|
|
18
|
-
".autocomplete-item.navigation-focus"
|
|
19
|
-
":is(.autocomplete-item.selected,.autocomplete-item[aria-selected='true'],.autocomplete-item.navigation-focus) *"
|
|
17
|
+
".autocomplete-item.navigation-focus"
|
|
20
18
|
]
|
|
21
19
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
-webkit-user-select: none;
|
|
20
20
|
user-select: none;
|
|
21
21
|
/* stylelint-disable-next-line primer/colors */
|
|
22
|
-
background: linear-gradient(180deg,
|
|
22
|
+
background: linear-gradient(180deg, rgb(255, 255, 255, 0.15) 0%, rgb(255, 255, 255, 0) 100%),
|
|
23
23
|
var(--color-mktg-btn-bg) !important;
|
|
24
24
|
border: 0;
|
|
25
25
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
content: '';
|
|
40
40
|
|
|
41
41
|
/* stylelint-disable-next-line primer/colors */
|
|
42
|
-
background: linear-gradient(180deg,
|
|
42
|
+
background: linear-gradient(180deg, rgb(255, 255, 255, 0.15) 0%, rgb(255, 255, 255, 0) 100%) !important;
|
|
43
43
|
border-radius: inherit;
|
|
44
44
|
opacity: 0;
|
|
45
45
|
transition: opacity 0.2s;
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
color: #fff;
|
|
137
137
|
|
|
138
138
|
/* stylelint-disable-next-line primer/colors */
|
|
139
|
-
background: linear-gradient(180deg,
|
|
139
|
+
background: linear-gradient(180deg, rgb(52, 183, 89, 0.15) 0%, rgb(46, 164, 79, 0) 100%), rgb(46, 164, 79) !important;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.btn-signup-mktg::before {
|
|
143
143
|
/* stylelint-disable-next-line primer/colors */
|
|
144
|
-
background: linear-gradient(180deg,
|
|
144
|
+
background: linear-gradient(180deg, rgb(52, 183, 89, 0.15) 0%, rgb(46, 164, 79, 0) 100%) !important;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
/* fallback :focus state */
|