@primer/view-components 0.45.1-rc.015a120e → 0.45.2
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 +6963 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar.css +49 -1
- package/app/components/primer/alpha/action_list.css +525 -1
- package/app/components/primer/alpha/action_list.css.json +64 -64
- package/app/components/primer/alpha/auto_complete.css +131 -1
- package/app/components/primer/alpha/auto_complete.css.json +3 -3
- package/app/components/primer/alpha/banner.css +146 -1
- package/app/components/primer/alpha/banner.css.json +2 -2
- package/app/components/primer/alpha/button_marketing.css +183 -1
- package/app/components/primer/alpha/button_marketing.css.json +6 -6
- package/app/components/primer/alpha/dialog.css +377 -1
- package/app/components/primer/alpha/dialog.css.json +2 -2
- package/app/components/primer/alpha/dropdown.css +296 -1
- package/app/components/primer/alpha/dropdown.css.json +19 -19
- package/app/components/primer/alpha/layout.css +374 -1
- package/app/components/primer/alpha/layout.css.json +10 -10
- package/app/components/primer/alpha/menu.css +124 -1
- package/app/components/primer/alpha/menu.css.json +5 -5
- package/app/components/primer/alpha/overlay.css +25 -1
- package/app/components/primer/alpha/segmented_control.css +161 -1
- package/app/components/primer/alpha/segmented_control.css.json +5 -5
- package/app/components/primer/alpha/select_panel.css +10 -1
- package/app/components/primer/alpha/skeleton_box.css +36 -1
- package/app/components/primer/alpha/stack.css +255 -1
- package/app/components/primer/alpha/stack.css.json +84 -84
- package/app/components/primer/alpha/stack_item.css +27 -1
- package/app/components/primer/alpha/stack_item.css.json +6 -6
- package/app/components/primer/alpha/tab_nav.css +112 -1
- package/app/components/primer/alpha/tab_nav.css.json +5 -5
- package/app/components/primer/alpha/text_field.css +792 -1
- package/app/components/primer/alpha/text_field.css.json +39 -39
- package/app/components/primer/alpha/toggle_switch.css +230 -1
- package/app/components/primer/alpha/toggle_switch.css.json +10 -10
- package/app/components/primer/alpha/tree_view.css +396 -1
- package/app/components/primer/alpha/tree_view.css.json +25 -25
- package/app/components/primer/alpha/underline_nav.css +150 -1
- package/app/components/primer/alpha/underline_nav.css.json +6 -6
- package/app/components/primer/beta/avatar.css +77 -1
- package/app/components/primer/beta/avatar_stack.css +134 -1
- package/app/components/primer/beta/avatar_stack.css.json +6 -7
- package/app/components/primer/beta/blankslate.css +168 -1
- package/app/components/primer/beta/border_box.css +218 -1
- package/app/components/primer/beta/border_box.css.json +3 -3
- package/app/components/primer/beta/breadcrumbs.css +29 -1
- package/app/components/primer/beta/breadcrumbs.css.json +2 -2
- package/app/components/primer/beta/button.css +359 -1
- package/app/components/primer/beta/button.css.json +17 -17
- package/app/components/primer/beta/button_group.css +20 -1
- package/app/components/primer/beta/button_group.css.json +3 -3
- package/app/components/primer/beta/counter.css +38 -1
- package/app/components/primer/beta/flash.css +152 -1
- package/app/components/primer/beta/label.css +109 -1
- package/app/components/primer/beta/label.css.json +3 -3
- package/app/components/primer/beta/link.css +79 -1
- package/app/components/primer/beta/link.css.json +1 -1
- package/app/components/primer/beta/popover.css +215 -1
- package/app/components/primer/beta/popover.css.json +23 -23
- package/app/components/primer/beta/progress_bar.css +38 -1
- package/app/components/primer/beta/progress_bar.css.json +1 -1
- package/app/components/primer/beta/state.css +60 -1
- package/app/components/primer/beta/state.css.json +1 -1
- package/app/components/primer/beta/subhead.css +64 -1
- package/app/components/primer/beta/subhead.css.json +1 -1
- package/app/components/primer/beta/timeline_item.css +106 -1
- package/app/components/primer/beta/timeline_item.css.json +1 -1
- package/app/components/primer/beta/truncate.css +30 -1
- package/app/components/primer/beta/truncate.css.json +6 -6
- package/app/components/primer/truncate.css +23 -1
- package/app/components/primer/truncate.css.json +4 -4
- package/package.json +1 -1
@@ -1 +1,296 @@
|
|
1
|
-
|
1
|
+
/* dropdown */
|
2
|
+
|
3
|
+
.dropdown {
|
4
|
+
position: relative;
|
5
|
+
}
|
6
|
+
|
7
|
+
.dropdown-caret {
|
8
|
+
display: inline-block;
|
9
|
+
width: 0;
|
10
|
+
height: 0;
|
11
|
+
vertical-align: middle;
|
12
|
+
content: '';
|
13
|
+
border-style: solid;
|
14
|
+
border-width: var(--borderWidth-thicker) var(--borderWidth-thicker) 0;
|
15
|
+
border-right-color: transparent;
|
16
|
+
border-bottom-color: transparent;
|
17
|
+
border-left-color: transparent;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* Requires a positioning class (e.g., `.dropdown-menu-w`) to determine which
|
21
|
+
** way the menu should render from the element triggering it. */
|
22
|
+
|
23
|
+
.dropdown-menu {
|
24
|
+
position: absolute;
|
25
|
+
top: 100%;
|
26
|
+
left: 0;
|
27
|
+
z-index: 100;
|
28
|
+
width: 160px;
|
29
|
+
/* stylelint-disable-next-line primer/spacing */
|
30
|
+
padding-top: var(--control-small-paddingBlock);
|
31
|
+
/* stylelint-disable-next-line primer/spacing */
|
32
|
+
padding-bottom: var(--control-small-paddingBlock);
|
33
|
+
margin-top: var(--base-size-2);
|
34
|
+
list-style: none;
|
35
|
+
background-color: var(--overlay-bgColor);
|
36
|
+
background-clip: padding-box;
|
37
|
+
border: var(--borderWidth-thin) solid var(--borderColor-default);
|
38
|
+
border-radius: var(--borderRadius-medium);
|
39
|
+
box-shadow: var(--shadow-floating-legacy, var(--color-shadow-large));
|
40
|
+
}
|
41
|
+
|
42
|
+
.dropdown-menu::before,.dropdown-menu::after {
|
43
|
+
position: absolute;
|
44
|
+
display: inline-block;
|
45
|
+
content: '';
|
46
|
+
}
|
47
|
+
|
48
|
+
/* caret border */
|
49
|
+
|
50
|
+
.dropdown-menu::before {
|
51
|
+
/* stylelint-disable-next-line primer/borders */
|
52
|
+
border: 8px solid transparent;
|
53
|
+
border-bottom-color: var(--borderColor-default);
|
54
|
+
}
|
55
|
+
|
56
|
+
/* caret background (should match dropdown background) */
|
57
|
+
|
58
|
+
.dropdown-menu::after {
|
59
|
+
/* stylelint-disable-next-line primer/borders */
|
60
|
+
border: 7px solid transparent;
|
61
|
+
/* stylelint-disable-next-line primer/colors */
|
62
|
+
border-bottom-color: var(--overlay-bgColor);
|
63
|
+
}
|
64
|
+
|
65
|
+
/* stylelint-disable-next-line selector-max-type */
|
66
|
+
|
67
|
+
.dropdown-menu > ul {
|
68
|
+
list-style: none;
|
69
|
+
}
|
70
|
+
|
71
|
+
.dropdown-menu-no-overflow {
|
72
|
+
width: auto;
|
73
|
+
}
|
74
|
+
|
75
|
+
.dropdown-menu-no-overflow .dropdown-item {
|
76
|
+
/* stylelint-disable-next-line primer/spacing */
|
77
|
+
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
78
|
+
overflow: visible;
|
79
|
+
text-overflow: inherit;
|
80
|
+
}
|
81
|
+
|
82
|
+
/* Dropdown items (can be links or buttons) */
|
83
|
+
|
84
|
+
.dropdown-item {
|
85
|
+
display: block;
|
86
|
+
/* stylelint-disable-next-line primer/spacing */
|
87
|
+
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-condensed) var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
88
|
+
overflow: hidden;
|
89
|
+
color: var(--fgColor-default);
|
90
|
+
text-overflow: ellipsis;
|
91
|
+
white-space: nowrap;
|
92
|
+
}
|
93
|
+
|
94
|
+
.dropdown-item:hover {
|
95
|
+
color: var(--fgColor-onEmphasis);
|
96
|
+
-webkit-text-decoration: none;
|
97
|
+
text-decoration: none;
|
98
|
+
background-color: var(--bgColor-accent-emphasis);
|
99
|
+
}
|
100
|
+
|
101
|
+
.dropdown-item:hover > .octicon {
|
102
|
+
color: inherit;
|
103
|
+
opacity: 1;
|
104
|
+
}
|
105
|
+
|
106
|
+
.dropdown-item:hover [class*='color-fg-'] {
|
107
|
+
color: inherit !important;
|
108
|
+
}
|
109
|
+
|
110
|
+
.dropdown-item:hover > .Label {
|
111
|
+
color: inherit !important;
|
112
|
+
border-color: currentcolor;
|
113
|
+
}
|
114
|
+
|
115
|
+
.dropdown-item.btn-link {
|
116
|
+
width: 100%;
|
117
|
+
text-align: left;
|
118
|
+
}
|
119
|
+
|
120
|
+
.dropdown-signout {
|
121
|
+
width: 100%;
|
122
|
+
text-align: left;
|
123
|
+
background: none;
|
124
|
+
border: 0;
|
125
|
+
}
|
126
|
+
|
127
|
+
.dropdown-divider {
|
128
|
+
display: block;
|
129
|
+
height: 0;
|
130
|
+
/* stylelint-disable-next-line primer/spacing */
|
131
|
+
margin: var(--stack-gap-condensed) 0;
|
132
|
+
border-top: var(--borderWidth-thin) solid var(--borderColor-default);
|
133
|
+
}
|
134
|
+
|
135
|
+
.dropdown-header {
|
136
|
+
/* stylelint-disable-next-line primer/spacing */
|
137
|
+
padding: var(--control-small-paddingBlock) var(--control-medium-paddingInline-spacious);
|
138
|
+
font-size: var(--text-body-size-small);
|
139
|
+
color: var(--fgColor-muted);
|
140
|
+
}
|
141
|
+
|
142
|
+
.dropdown-item[aria-checked='false'] .octicon-check {
|
143
|
+
display: none;
|
144
|
+
}
|
145
|
+
|
146
|
+
/* Directional classes
|
147
|
+
**
|
148
|
+
** Move the menu and the caret attached to it. Requires at least one of these on
|
149
|
+
** the `.dropdown-menu` element. */
|
150
|
+
|
151
|
+
.dropdown-menu-w {
|
152
|
+
top: 0;
|
153
|
+
right: 100%;
|
154
|
+
left: auto;
|
155
|
+
width: auto;
|
156
|
+
margin-top: 0;
|
157
|
+
margin-right: var(--base-size-8);
|
158
|
+
}
|
159
|
+
|
160
|
+
.dropdown-menu-w::before {
|
161
|
+
/* stylelint-disable-next-line primer/spacing */
|
162
|
+
top: 10px;
|
163
|
+
/* stylelint-disable-next-line primer/spacing */
|
164
|
+
right: -16px;
|
165
|
+
left: auto;
|
166
|
+
border-color: transparent;
|
167
|
+
border-left-color: var(--borderColor-default);
|
168
|
+
}
|
169
|
+
|
170
|
+
.dropdown-menu-w::after {
|
171
|
+
top: var(--base-size-12);
|
172
|
+
/* stylelint-disable-next-line primer/spacing */
|
173
|
+
right: -14px;
|
174
|
+
left: auto;
|
175
|
+
border-color: transparent;
|
176
|
+
/* stylelint-disable-next-line primer/colors */
|
177
|
+
border-left-color: var(--overlay-bgColor);
|
178
|
+
}
|
179
|
+
|
180
|
+
.dropdown-menu-e {
|
181
|
+
top: 0;
|
182
|
+
left: 100%;
|
183
|
+
width: auto;
|
184
|
+
margin-top: 0;
|
185
|
+
margin-left: var(--base-size-8);
|
186
|
+
}
|
187
|
+
|
188
|
+
.dropdown-menu-e::before {
|
189
|
+
/* stylelint-disable-next-line primer/spacing */
|
190
|
+
top: 10px;
|
191
|
+
/* stylelint-disable-next-line primer/spacing */
|
192
|
+
left: -16px;
|
193
|
+
border-color: transparent;
|
194
|
+
border-right-color: var(--borderColor-default);
|
195
|
+
}
|
196
|
+
|
197
|
+
.dropdown-menu-e::after {
|
198
|
+
top: var(--base-size-12);
|
199
|
+
/* stylelint-disable-next-line primer/spacing */
|
200
|
+
left: -14px;
|
201
|
+
border-color: transparent;
|
202
|
+
/* stylelint-disable-next-line primer/colors */
|
203
|
+
border-right-color: var(--overlay-bgColor);
|
204
|
+
}
|
205
|
+
|
206
|
+
.dropdown-menu-ne {
|
207
|
+
top: auto;
|
208
|
+
bottom: 100%;
|
209
|
+
left: 0;
|
210
|
+
margin-bottom: var(--base-size-4);
|
211
|
+
}
|
212
|
+
|
213
|
+
.dropdown-menu-ne::before,.dropdown-menu-ne::after {
|
214
|
+
top: auto;
|
215
|
+
right: auto;
|
216
|
+
}
|
217
|
+
|
218
|
+
.dropdown-menu-ne::before {
|
219
|
+
/* stylelint-disable-next-line primer/spacing */
|
220
|
+
bottom: -8px;
|
221
|
+
left: var(--base-size-8);
|
222
|
+
/* stylelint-disable-next-line primer/borders */
|
223
|
+
border-top: 8px solid var(--borderColor-default);
|
224
|
+
/* stylelint-disable-next-line primer/borders */
|
225
|
+
border-right: 8px solid transparent;
|
226
|
+
border-bottom: 0;
|
227
|
+
/* stylelint-disable-next-line primer/borders */
|
228
|
+
border-left: 8px solid transparent;
|
229
|
+
}
|
230
|
+
|
231
|
+
.dropdown-menu-ne::after {
|
232
|
+
/* stylelint-disable-next-line primer/spacing */
|
233
|
+
bottom: -7px;
|
234
|
+
/* stylelint-disable-next-line primer/spacing */
|
235
|
+
left: 10px;
|
236
|
+
/* stylelint-disable-next-line primer/borders, primer/colors */
|
237
|
+
border-top: 7px solid var(--overlay-bgColor);
|
238
|
+
/* stylelint-disable-next-line primer/borders */
|
239
|
+
border-right: 7px solid transparent;
|
240
|
+
border-bottom: 0;
|
241
|
+
/* stylelint-disable-next-line primer/borders */
|
242
|
+
border-left: 7px solid transparent;
|
243
|
+
}
|
244
|
+
|
245
|
+
.dropdown-menu-s {
|
246
|
+
right: 50%;
|
247
|
+
left: auto;
|
248
|
+
transform: translateX(50%);
|
249
|
+
}
|
250
|
+
|
251
|
+
.dropdown-menu-s::before {
|
252
|
+
/* stylelint-disable-next-line primer/spacing */
|
253
|
+
top: -16px;
|
254
|
+
right: 50%;
|
255
|
+
transform: translateX(50%);
|
256
|
+
}
|
257
|
+
|
258
|
+
.dropdown-menu-s::after {
|
259
|
+
/* stylelint-disable-next-line primer/spacing */
|
260
|
+
top: -14px;
|
261
|
+
right: 50%;
|
262
|
+
transform: translateX(50%);
|
263
|
+
}
|
264
|
+
|
265
|
+
.dropdown-menu-sw {
|
266
|
+
right: 0;
|
267
|
+
left: auto;
|
268
|
+
}
|
269
|
+
|
270
|
+
.dropdown-menu-sw::before {
|
271
|
+
/* stylelint-disable-next-line primer/spacing */
|
272
|
+
top: -16px;
|
273
|
+
right: var(--base-size-8);
|
274
|
+
left: auto;
|
275
|
+
}
|
276
|
+
|
277
|
+
.dropdown-menu-sw::after {
|
278
|
+
/* stylelint-disable-next-line primer/spacing */
|
279
|
+
top: -14px;
|
280
|
+
/* stylelint-disable-next-line primer/spacing */
|
281
|
+
right: 10px;
|
282
|
+
left: auto;
|
283
|
+
}
|
284
|
+
|
285
|
+
.dropdown-menu-se::before {
|
286
|
+
/* stylelint-disable-next-line primer/spacing */
|
287
|
+
top: -16px;
|
288
|
+
left: var(--base-size-8);
|
289
|
+
}
|
290
|
+
|
291
|
+
.dropdown-menu-se::after {
|
292
|
+
/* stylelint-disable-next-line primer/spacing */
|
293
|
+
top: -14px;
|
294
|
+
/* stylelint-disable-next-line primer/spacing */
|
295
|
+
left: 10px;
|
296
|
+
}
|
@@ -4,37 +4,37 @@
|
|
4
4
|
".dropdown",
|
5
5
|
".dropdown-caret",
|
6
6
|
".dropdown-menu",
|
7
|
-
".dropdown-menu
|
8
|
-
".dropdown-menu
|
9
|
-
".dropdown-menu>ul",
|
7
|
+
".dropdown-menu::before",
|
8
|
+
".dropdown-menu::after",
|
9
|
+
".dropdown-menu > ul",
|
10
10
|
".dropdown-menu-no-overflow",
|
11
11
|
".dropdown-menu-no-overflow .dropdown-item",
|
12
12
|
".dropdown-item",
|
13
13
|
".dropdown-item:hover",
|
14
|
-
".dropdown-item:hover
|
15
|
-
".dropdown-item:hover [class*=color-fg-]",
|
16
|
-
".dropdown-item:hover
|
14
|
+
".dropdown-item:hover > .octicon",
|
15
|
+
".dropdown-item:hover [class*='color-fg-']",
|
16
|
+
".dropdown-item:hover > .Label",
|
17
17
|
".dropdown-item.btn-link",
|
18
18
|
".dropdown-signout",
|
19
19
|
".dropdown-divider",
|
20
20
|
".dropdown-header",
|
21
|
-
".dropdown-item[aria-checked=false] .octicon-check",
|
21
|
+
".dropdown-item[aria-checked='false'] .octicon-check",
|
22
22
|
".dropdown-menu-w",
|
23
|
-
".dropdown-menu-w
|
24
|
-
".dropdown-menu-w
|
23
|
+
".dropdown-menu-w::before",
|
24
|
+
".dropdown-menu-w::after",
|
25
25
|
".dropdown-menu-e",
|
26
|
-
".dropdown-menu-e
|
27
|
-
".dropdown-menu-e
|
26
|
+
".dropdown-menu-e::before",
|
27
|
+
".dropdown-menu-e::after",
|
28
28
|
".dropdown-menu-ne",
|
29
|
-
".dropdown-menu-ne
|
30
|
-
".dropdown-menu-ne
|
29
|
+
".dropdown-menu-ne::before",
|
30
|
+
".dropdown-menu-ne::after",
|
31
31
|
".dropdown-menu-s",
|
32
|
-
".dropdown-menu-s
|
33
|
-
".dropdown-menu-s
|
32
|
+
".dropdown-menu-s::before",
|
33
|
+
".dropdown-menu-s::after",
|
34
34
|
".dropdown-menu-sw",
|
35
|
-
".dropdown-menu-sw
|
36
|
-
".dropdown-menu-sw
|
37
|
-
".dropdown-menu-se
|
38
|
-
".dropdown-menu-se
|
35
|
+
".dropdown-menu-sw::before",
|
36
|
+
".dropdown-menu-sw::after",
|
37
|
+
".dropdown-menu-se::before",
|
38
|
+
".dropdown-menu-se::after"
|
39
39
|
]
|
40
40
|
}
|