@primer/view-components 0.3.0-rc.dc2abcf9 → 0.3.0
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 +4999 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_list.css +710 -1
- package/app/components/primer/alpha/action_list.css.json +77 -77
- package/app/components/primer/alpha/auto_complete.css +130 -1
- package/app/components/primer/alpha/auto_complete.css.json +4 -4
- package/app/components/primer/alpha/banner.css +131 -1
- package/app/components/primer/alpha/banner.css.json +2 -2
- package/app/components/primer/alpha/button_marketing.css +204 -1
- package/app/components/primer/alpha/button_marketing.css.json +9 -9
- package/app/components/primer/alpha/dialog.css +607 -1
- package/app/components/primer/alpha/dialog.css.json +10 -10
- package/app/components/primer/alpha/dropdown.css +265 -1
- package/app/components/primer/alpha/dropdown.css.json +19 -19
- package/app/components/primer/alpha/layout.css +398 -1
- package/app/components/primer/alpha/layout.css.json +16 -16
- package/app/components/primer/alpha/menu.css +117 -1
- package/app/components/primer/alpha/menu.css.json +7 -7
- package/app/components/primer/alpha/overlay.css +32 -1
- package/app/components/primer/alpha/overlay.css.json +3 -2
- package/app/components/primer/alpha/segmented_control.css +175 -1
- package/app/components/primer/alpha/segmented_control.css.json +7 -7
- package/app/components/primer/alpha/tab_nav.css +106 -1
- package/app/components/primer/alpha/tab_nav.css.json +6 -6
- package/app/components/primer/alpha/text_field.css +849 -1
- package/app/components/primer/alpha/text_field.css.json +45 -45
- package/app/components/primer/alpha/toggle_switch.css +228 -1
- package/app/components/primer/alpha/toggle_switch.css.json +10 -10
- package/app/components/primer/alpha/underline_nav.css +149 -1
- package/app/components/primer/alpha/underline_nav.css.json +8 -8
- package/app/components/primer/anchored_position.js +1 -3
- package/app/components/primer/beta/avatar.css +74 -1
- package/app/components/primer/beta/avatar_stack.css +138 -1
- package/app/components/primer/beta/avatar_stack.css.json +6 -6
- package/app/components/primer/beta/blankslate.css +90 -1
- package/app/components/primer/beta/border_box.css +279 -1
- package/app/components/primer/beta/border_box.css.json +4 -4
- package/app/components/primer/beta/breadcrumbs.css +27 -1
- package/app/components/primer/beta/breadcrumbs.css.json +3 -3
- package/app/components/primer/beta/button.css +385 -1
- package/app/components/primer/beta/button.css.json +16 -16
- package/app/components/primer/beta/button_group.css +23 -1
- package/app/components/primer/beta/button_group.css.json +5 -5
- package/app/components/primer/beta/counter.css +36 -1
- package/app/components/primer/beta/flash.css +150 -1
- package/app/components/primer/beta/label.css +105 -1
- package/app/components/primer/beta/label.css.json +4 -4
- package/app/components/primer/beta/link.css +62 -1
- package/app/components/primer/beta/link.css.json +3 -3
- package/app/components/primer/beta/popover.css +235 -1
- package/app/components/primer/beta/popover.css.json +29 -29
- package/app/components/primer/beta/progress_bar.css +26 -1
- package/app/components/primer/beta/progress_bar.css.json +1 -1
- package/app/components/primer/beta/state.css +50 -1
- package/app/components/primer/beta/state.css.json +1 -1
- package/app/components/primer/beta/subhead.css +54 -1
- package/app/components/primer/beta/subhead.css.json +1 -1
- package/app/components/primer/beta/timeline_item.css +95 -1
- package/app/components/primer/beta/timeline_item.css.json +1 -1
- package/app/components/primer/beta/truncate.css +37 -1
- package/app/components/primer/beta/truncate.css.json +6 -6
- package/app/components/primer/truncate.css +30 -1
- package/app/components/primer/truncate.css.json +4 -4
- package/package.json +1 -1
|
@@ -5,56 +5,56 @@
|
|
|
5
5
|
".ActionListHeader",
|
|
6
6
|
".ActionListWrap",
|
|
7
7
|
".ActionListWrap--inset",
|
|
8
|
-
".ActionListWrap--divided .ActionListItem-label
|
|
9
|
-
".ActionListWrap--divided .ActionListItem-descriptionWrap--inline
|
|
10
|
-
".ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label
|
|
11
|
-
".
|
|
12
|
-
".
|
|
13
|
-
".ActionListItem:first-of-type .ActionListItem-
|
|
14
|
-
".
|
|
15
|
-
".
|
|
16
|
-
".
|
|
8
|
+
".ActionListWrap--divided .ActionListItem-label::before",
|
|
9
|
+
".ActionListWrap--divided .ActionListItem-descriptionWrap--inline::before",
|
|
10
|
+
".ActionListWrap--divided .ActionListItem-descriptionWrap--inline .ActionListItem-label::before",
|
|
11
|
+
".ActionListWrap--divided .ActionListItem--navActive .ActionListItem-label::before",
|
|
12
|
+
".ActionListWrap--divided .ActionListItem--navActive + .ActionListItem .ActionListItem-label::before",
|
|
13
|
+
".ActionListItem:first-of-type .ActionListItem-label::before",
|
|
14
|
+
".ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before",
|
|
15
|
+
".ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before",
|
|
16
|
+
".ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
|
|
17
17
|
".ActionListItem",
|
|
18
|
-
".ActionListItem:active",
|
|
19
18
|
".ActionListItem:hover",
|
|
20
|
-
".ActionListItem:
|
|
21
|
-
".ActionListItem:hover .ActionListItem-label
|
|
22
|
-
".ActionListItem:hover
|
|
23
|
-
".ActionListItem:hover
|
|
24
|
-
".ActionListItem
|
|
25
|
-
".ActionListItem.
|
|
26
|
-
".ActionListItem.ActionListItem--hasSubItem
|
|
27
|
-
".ActionListItem.ActionListItem--hasSubItem
|
|
19
|
+
".ActionListItem:active",
|
|
20
|
+
".ActionListItem:hover .ActionListItem-label::before",
|
|
21
|
+
".ActionListItem:hover + .ActionListItem .ActionListItem-label::before",
|
|
22
|
+
".ActionListItem:hover .ActionListItem-descriptionWrap--inline::before",
|
|
23
|
+
".ActionListItem:hover + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
|
|
24
|
+
".ActionListItem[hidden] + .ActionList-sectionDivider",
|
|
25
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent",
|
|
26
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover",
|
|
27
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active",
|
|
28
28
|
".ActionListItem:not(.ActionListItem--hasSubItem):hover",
|
|
29
|
-
".ActionListItem.ActionListItem--hasSubItem
|
|
30
|
-
".ActionListItem
|
|
29
|
+
".ActionListItem:not(.ActionListItem--hasSubItem):hover:not(.ActionListItem--navActive, :focus-visible)",
|
|
30
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:hover:not(.ActionListItem--navActive, :focus-visible)",
|
|
31
31
|
".ActionListItem:not(.ActionListItem--hasSubItem):active",
|
|
32
|
-
".ActionListItem.ActionListItem--hasSubItem>.ActionListContent:active:not(.ActionListItem--navActive)",
|
|
33
32
|
".ActionListItem:not(.ActionListItem--hasSubItem):active:not(.ActionListItem--navActive)",
|
|
34
|
-
".ActionListItem.ActionListItem--hasSubItem
|
|
35
|
-
".ActionListItem.ActionListItem--hasSubItem
|
|
36
|
-
".ActionListItem
|
|
37
|
-
".ActionListItem:not(.ActionListItem--hasSubItem):active
|
|
38
|
-
".ActionListItem
|
|
39
|
-
".ActionListItem[aria-selected=true]
|
|
40
|
-
".ActionListItem[aria-selected=true]
|
|
41
|
-
".ActionListItem[aria-selected=true]
|
|
42
|
-
".ActionListItem[aria-selected=true]
|
|
33
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active:not(.ActionListItem--navActive)",
|
|
34
|
+
".ActionListItem:not(.ActionListItem--hasSubItem):active .ActionListItem-label::before",
|
|
35
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active .ActionListItem-label::before",
|
|
36
|
+
".ActionListItem:not(.ActionListItem--hasSubItem):active + .ActionListItem .ActionListItem-label::before",
|
|
37
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent:active + .ActionListItem .ActionListItem-label::before",
|
|
38
|
+
".ActionListItem[aria-selected='true']",
|
|
39
|
+
".ActionListItem[aria-selected='true']:hover",
|
|
40
|
+
".ActionListItem[aria-selected='true']::before",
|
|
41
|
+
".ActionListItem[aria-selected='true'] + .ActionListItem::before",
|
|
42
|
+
".ActionListItem[aria-selected='true']::after",
|
|
43
43
|
".ActionListItem.ActionListItem--navActive",
|
|
44
44
|
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label",
|
|
45
45
|
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)",
|
|
46
46
|
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover",
|
|
47
|
-
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)
|
|
48
|
-
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)
|
|
49
|
-
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)
|
|
50
|
-
".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description",
|
|
47
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before",
|
|
48
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before",
|
|
49
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after",
|
|
51
50
|
".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-label",
|
|
52
|
-
".ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-
|
|
53
|
-
".ActionListItem
|
|
51
|
+
".ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-label",
|
|
52
|
+
".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-description",
|
|
53
|
+
".ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-description",
|
|
54
54
|
".ActionListItem.ActionListItem--disabled .ActionListContent .ActionListItem-visual",
|
|
55
|
-
".ActionListItem[aria-disabled=true] .ActionListContent .ActionListItem-visual",
|
|
55
|
+
".ActionListItem[aria-disabled='true'] .ActionListContent .ActionListItem-visual",
|
|
56
56
|
".ActionListItem.ActionListItem--disabled:hover",
|
|
57
|
-
".ActionListItem[aria-disabled=true]:hover",
|
|
57
|
+
".ActionListItem[aria-disabled='true']:hover",
|
|
58
58
|
".ActionListItem.ActionListItem--danger .ActionListItem-label",
|
|
59
59
|
".ActionListItem.ActionListItem--danger .ActionListItem-visual",
|
|
60
60
|
".ActionListItem.ActionListItem--danger:hover",
|
|
@@ -64,43 +64,43 @@
|
|
|
64
64
|
".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-label",
|
|
65
65
|
".ActionListItem.ActionListItem--danger .ActionListContent:active .ActionListItem-visual",
|
|
66
66
|
".ActionListContent",
|
|
67
|
-
".ActionListContent
|
|
67
|
+
".ActionListContent > :not(:last-child)",
|
|
68
68
|
".ActionListContent:hover",
|
|
69
|
-
".ActionListContent[aria-disabled=true] .ActionListItem-
|
|
70
|
-
".ActionListContent[aria-disabled=true] .ActionListItem-
|
|
71
|
-
".ActionListContent[aria-disabled=true] .ActionListItem-visual",
|
|
72
|
-
".ActionListContent[aria-disabled=true]:hover",
|
|
73
|
-
".ActionListContent[aria-expanded]
|
|
74
|
-
".ActionListContent[aria-expanded]
|
|
75
|
-
".ActionListContent.ActionListContent--visual16[aria-expanded]
|
|
76
|
-
".ActionListContent.ActionListContent--visual20[aria-expanded]
|
|
77
|
-
".ActionListContent.ActionListContent--visual24[aria-expanded]
|
|
78
|
-
".ActionListContent[aria-expanded=true] .ActionListItem-collapseIcon",
|
|
79
|
-
".ActionListContent[aria-expanded=true]
|
|
80
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=true]
|
|
81
|
-
".ActionListContent[aria-expanded=false] .ActionListItem-collapseIcon",
|
|
82
|
-
".ActionListContent[aria-expanded=false]
|
|
83
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]",
|
|
84
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false] .ActionListItem-label",
|
|
85
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]
|
|
86
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]
|
|
87
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]
|
|
88
|
-
".ActionListContent[aria-checked=true] .ActionListItem-multiSelectCheckmark",
|
|
89
|
-
".ActionListContent[aria-selected=true] .ActionListItem-multiSelectCheckmark",
|
|
90
|
-
".ActionListContent[aria-checked=true] .ActionListItem-singleSelectCheckmark",
|
|
91
|
-
".ActionListContent[aria-selected=true] .ActionListItem-singleSelectCheckmark",
|
|
92
|
-
".ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
93
|
-
".ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
94
|
-
".ActionListContent[aria-checked=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
|
|
95
|
-
".ActionListContent[aria-selected=true] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
|
|
96
|
-
".ActionListContent[aria-checked=false] .ActionListItem-multiSelectCheckmark",
|
|
97
|
-
".ActionListContent[aria-selected=false] .ActionListItem-multiSelectCheckmark",
|
|
98
|
-
".ActionListContent[aria-checked=false] .ActionListItem-singleSelectCheckmark",
|
|
99
|
-
".ActionListContent[aria-selected=false] .ActionListItem-singleSelectCheckmark",
|
|
100
|
-
".ActionListContent[aria-checked=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
101
|
-
".ActionListContent[aria-selected=false] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
102
|
-
".ActionListContent[aria-checked=false] .ActionListItem-multiSelectIconRect",
|
|
103
|
-
".ActionListContent[aria-selected=false] .ActionListItem-multiSelectIconRect",
|
|
69
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-label",
|
|
70
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-description",
|
|
71
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-visual",
|
|
72
|
+
".ActionListContent[aria-disabled='true']:hover",
|
|
73
|
+
".ActionListContent[aria-expanded] + .ActionList--subGroup",
|
|
74
|
+
".ActionListContent[aria-expanded] + .ActionList--subGroup .ActionListContent",
|
|
75
|
+
".ActionListContent.ActionListContent--visual16[aria-expanded] + .ActionList--subGroup .ActionListContent",
|
|
76
|
+
".ActionListContent.ActionListContent--visual20[aria-expanded] + .ActionList--subGroup .ActionListContent",
|
|
77
|
+
".ActionListContent.ActionListContent--visual24[aria-expanded] + .ActionList--subGroup .ActionListContent",
|
|
78
|
+
".ActionListContent[aria-expanded='true'] .ActionListItem-collapseIcon",
|
|
79
|
+
".ActionListContent[aria-expanded='true'] + .ActionList--subGroup",
|
|
80
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='true'] > .ActionListItem-label",
|
|
81
|
+
".ActionListContent[aria-expanded='false'] .ActionListItem-collapseIcon",
|
|
82
|
+
".ActionListContent[aria-expanded='false'] + .ActionList--subGroup",
|
|
83
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']",
|
|
84
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] .ActionListItem-label",
|
|
85
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::before",
|
|
86
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] + .ActionListItem::before",
|
|
87
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::after",
|
|
88
|
+
".ActionListContent[aria-checked='true'] .ActionListItem-multiSelectCheckmark",
|
|
89
|
+
".ActionListContent[aria-selected='true'] .ActionListItem-multiSelectCheckmark",
|
|
90
|
+
".ActionListContent[aria-checked='true'] .ActionListItem-singleSelectCheckmark",
|
|
91
|
+
".ActionListContent[aria-selected='true'] .ActionListItem-singleSelectCheckmark",
|
|
92
|
+
".ActionListContent[aria-checked='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
93
|
+
".ActionListContent[aria-selected='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
94
|
+
".ActionListContent[aria-checked='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
|
|
95
|
+
".ActionListContent[aria-selected='true'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectCheckmark",
|
|
96
|
+
".ActionListContent[aria-checked='false'] .ActionListItem-multiSelectCheckmark",
|
|
97
|
+
".ActionListContent[aria-selected='false'] .ActionListItem-multiSelectCheckmark",
|
|
98
|
+
".ActionListContent[aria-checked='false'] .ActionListItem-singleSelectCheckmark",
|
|
99
|
+
".ActionListContent[aria-selected='false'] .ActionListItem-singleSelectCheckmark",
|
|
100
|
+
".ActionListContent[aria-checked='false'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
101
|
+
".ActionListContent[aria-selected='false'] .ActionListItem-multiSelectIcon .ActionListItem-multiSelectIconRect",
|
|
102
|
+
".ActionListContent[aria-checked='false'] .ActionListItem-multiSelectIconRect",
|
|
103
|
+
".ActionListContent[aria-selected='false'] .ActionListItem-multiSelectIconRect",
|
|
104
104
|
".ActionListContent.ActionListContent--sizeLarge",
|
|
105
105
|
".ActionListContent.ActionListContent--sizeXLarge",
|
|
106
106
|
".ActionListContent.ActionListContent--blockDescription .ActionListItem-visual",
|
|
@@ -112,16 +112,16 @@
|
|
|
112
112
|
".ActionListItem-descriptionWrap .ActionListItem-label",
|
|
113
113
|
".ActionListItem-descriptionWrap--inline",
|
|
114
114
|
".ActionListItem-description",
|
|
115
|
-
".ActionListItem-action",
|
|
116
115
|
".ActionListItem-visual",
|
|
116
|
+
".ActionListItem-action",
|
|
117
117
|
".ActionListItem-label",
|
|
118
118
|
".ActionListItem-label--truncate",
|
|
119
|
-
".ActionListItem--subItem
|
|
119
|
+
".ActionListItem--subItem > .ActionListContent > .ActionListItem-label",
|
|
120
120
|
".ActionListItem--withActions",
|
|
121
121
|
".ActionListItem-trailingAction",
|
|
122
122
|
".ActionListItem--trailingActionHover .ActionListItem-trailingAction",
|
|
123
|
-
".ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction",
|
|
124
123
|
".ActionListItem--trailingActionHover:hover .ActionListItem-trailingAction",
|
|
124
|
+
".ActionListItem--trailingActionHover:focus-within .ActionListItem-trailingAction",
|
|
125
125
|
".ActionList-sectionDivider:not(:empty)",
|
|
126
126
|
".ActionList-sectionDivider:empty",
|
|
127
127
|
".ActionList-sectionDivider .ActionList-sectionDivider-title",
|
|
@@ -1 +1,130 @@
|
|
|
1
|
-
|
|
1
|
+
/* autocomplete */
|
|
2
|
+
|
|
3
|
+
/* This file can be deprecated when AutoComplete is upstreamed to PVC + rolled out to dotcom https://github.com/github/primer/issues/796
|
|
4
|
+
** AutoComplete relies on FormControl, Overlay and ActionList CSS */
|
|
5
|
+
|
|
6
|
+
/* Stacked label (default) */
|
|
7
|
+
|
|
8
|
+
.autocomplete-label-stacked {
|
|
9
|
+
display: block;
|
|
10
|
+
margin-bottom: 6px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Inline label (non-default) */
|
|
14
|
+
|
|
15
|
+
.autocomplete-label-inline {
|
|
16
|
+
display: inline;
|
|
17
|
+
margin-right: 6px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Switch to stacked at smaller viewport */
|
|
21
|
+
|
|
22
|
+
@media (max-width: 543.98px) {
|
|
23
|
+
.autocomplete-label-inline {
|
|
24
|
+
display: block;
|
|
25
|
+
margin-bottom: 6px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Wrapper for the input and result elements to ensure alignment */
|
|
30
|
+
|
|
31
|
+
.autocomplete-body {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: inline;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Wrapper and conditional styles for when an icon is added */
|
|
37
|
+
|
|
38
|
+
.autocomplete-embedded-icon-wrap {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
padding: 4px 8px;
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.autocomplete-embedded-icon-wrap:focus-within {
|
|
45
|
+
border-color: var(--borderColor-accent-emphasis,var(--color-accent-fg));
|
|
46
|
+
|
|
47
|
+
border-color: var(--focus-outlineColor,var(--color-accent-fg));
|
|
48
|
+
|
|
49
|
+
outline: none;
|
|
50
|
+
|
|
51
|
+
box-shadow: inset 0 0 0 1px var(--focus-outlineColor,var(--color-accent-fg));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.autocomplete-embedded-icon-wrap .form-control {
|
|
55
|
+
padding: 0;
|
|
56
|
+
margin-left: 8px;
|
|
57
|
+
border: none;
|
|
58
|
+
box-shadow: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.autocomplete-embedded-icon-wrap .form-control:focus {
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.autocomplete-embedded-icon-wrap .form-control:focus-visible {
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* A pop up list of items used to show autocompleted results */
|
|
70
|
+
|
|
71
|
+
.autocomplete-results {
|
|
72
|
+
position: absolute;
|
|
73
|
+
left: 0;
|
|
74
|
+
z-index: 99;
|
|
75
|
+
width: max-content;
|
|
76
|
+
min-width: 100%;
|
|
77
|
+
max-height: 20em;
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
list-style: none;
|
|
81
|
+
background: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
82
|
+
border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-default,var(--color-border-default));
|
|
83
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
84
|
+
box-shadow: var(--shadow-resting-medium,var(--color-shadow-medium));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* One of the items that appears within an autocomplete group
|
|
88
|
+
** Bold black text on white background */
|
|
89
|
+
|
|
90
|
+
.autocomplete-item {
|
|
91
|
+
display: block;
|
|
92
|
+
width: 100%;
|
|
93
|
+
padding: 4px 8px;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
96
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
97
|
+
text-align: left;
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
background-color: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
103
|
+
border: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.autocomplete-item:hover {
|
|
107
|
+
color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));
|
|
108
|
+
text-decoration: none;
|
|
109
|
+
background-color: var(--bgColor-accent-emphasis,var(--color-accent-fg));
|
|
110
|
+
|
|
111
|
+
/* Inherit color on all child elements to ensure enough contrast */
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.autocomplete-item:hover * {
|
|
115
|
+
color: inherit !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.autocomplete-item.selected,
|
|
119
|
+
.autocomplete-item[aria-selected='true'],
|
|
120
|
+
.autocomplete-item.navigation-focus {
|
|
121
|
+
color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis));
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
background-color: var(--bgColor-accent-emphasis,var(--color-accent-fg));
|
|
124
|
+
|
|
125
|
+
/* Inherit color on all child elements to ensure enough contrast */
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.autocomplete-item.selected *, .autocomplete-item[aria-selected='true'] *, .autocomplete-item.navigation-focus * {
|
|
129
|
+
color: inherit !important;
|
|
130
|
+
}
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
".autocomplete-item",
|
|
14
14
|
".autocomplete-item:hover",
|
|
15
15
|
".autocomplete-item:hover *",
|
|
16
|
-
".autocomplete-item.navigation-focus",
|
|
17
16
|
".autocomplete-item.selected",
|
|
18
|
-
".autocomplete-item[aria-selected=true]",
|
|
19
|
-
".autocomplete-item.navigation-focus
|
|
17
|
+
".autocomplete-item[aria-selected='true']",
|
|
18
|
+
".autocomplete-item.navigation-focus",
|
|
20
19
|
".autocomplete-item.selected *",
|
|
21
|
-
".autocomplete-item[aria-selected=true] *"
|
|
20
|
+
".autocomplete-item[aria-selected='true'] *",
|
|
21
|
+
".autocomplete-item.navigation-focus *"
|
|
22
22
|
]
|
|
23
23
|
}
|
|
@@ -1 +1,131 @@
|
|
|
1
|
-
|
|
1
|
+
/* Banner alert */
|
|
2
|
+
|
|
3
|
+
.Banner {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: grid;
|
|
6
|
+
padding: var(--base-size-8,0.5rem);
|
|
7
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
8
|
+
background-image: linear-gradient(var(--bgColor-accent-muted,var(--color-accent-muted)), var(--bgColor-accent-muted,var(--color-accent-muted)));
|
|
9
|
+
border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-accent-muted,var(--color-accent-muted));
|
|
10
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
11
|
+
grid-auto-flow: column;
|
|
12
|
+
grid-template-areas: 'visual message actions close';
|
|
13
|
+
grid-template-columns: min-content 1fr minmax(0, auto) min-content;
|
|
14
|
+
grid-template-rows: min-content;
|
|
15
|
+
|
|
16
|
+
/* `sm` breakpoint variantion */
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (max-width: 543.98px) {
|
|
20
|
+
|
|
21
|
+
.Banner {
|
|
22
|
+
grid-template-areas:
|
|
23
|
+
'visual message close'
|
|
24
|
+
'. actions actions';
|
|
25
|
+
grid-template-columns: min-content 1fr min-content;
|
|
26
|
+
grid-template-rows: min-content min-content;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.Banner .Banner-actions {
|
|
30
|
+
margin: var(--base-size-8,0.5rem) 0 0 var(--base-size-8,0.5rem);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Elements */
|
|
35
|
+
|
|
36
|
+
.Banner .Banner-visual {
|
|
37
|
+
display: grid;
|
|
38
|
+
padding: 0.375rem var(--base-size-8,0.5rem);
|
|
39
|
+
grid-area: visual;
|
|
40
|
+
align-self: start;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.Banner .Banner-visual > .octicon {
|
|
44
|
+
margin-block: calc(var(--base-size-4,0.25rem) / 2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.Banner .Banner-visual > * {
|
|
48
|
+
align-self: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.Banner .Banner-message {
|
|
52
|
+
padding: 0.375rem var(--base-size-8,0.5rem);
|
|
53
|
+
grid-area: message;
|
|
54
|
+
align-self: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.Banner .Banner-message p:last-child {
|
|
58
|
+
margin-bottom: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.Banner .Banner-message .Banner-title:not(:only-child) {
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.Banner .Banner-actions {
|
|
67
|
+
grid-area: actions;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.Banner .Banner-actions:last-child {
|
|
71
|
+
align-self: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* is this used anywhere? could not find any use, but unsure */
|
|
75
|
+
|
|
76
|
+
.Banner .Banner-close {
|
|
77
|
+
grid-area: close;
|
|
78
|
+
margin-left: var(--controlStack-medium-gap-condensed,0.5rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.Banner .Banner-visual .octicon {
|
|
82
|
+
color: var(--fgColor-accent,var(--color-accent-fg));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.Banner.Banner--warning {
|
|
86
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
87
|
+
background-image: linear-gradient(var(--bgColor-attention-muted,var(--color-attention-subtle)), var(--bgColor-attention-muted,var(--color-attention-subtle)));
|
|
88
|
+
border-color: var(--borderColor-attention-muted,var(--color-attention-muted));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.Banner.Banner--warning .Banner-visual .octicon {
|
|
92
|
+
color: var(--fgColor-attention,var(--color-attention-fg));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.Banner.Banner--error {
|
|
96
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
97
|
+
background-image: linear-gradient(var(--bgColor-danger-muted,var(--color-danger-subtle)), var(--bgColor-danger-muted,var(--color-danger-subtle)));
|
|
98
|
+
border-color: var(--borderColor-danger-muted,var(--color-danger-muted));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.Banner.Banner--error .Banner-visual .octicon {
|
|
102
|
+
color: var(--fgColor-danger,var(--color-danger-fg));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.Banner.Banner--success {
|
|
106
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
107
|
+
background-image: linear-gradient(var(--bgColor-success-muted,var(--color-success-subtle)), var(--bgColor-success-muted,var(--color-success-subtle)));
|
|
108
|
+
border-color: var(--borderColor-success-muted,var(--color-success-muted));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.Banner.Banner--success .Banner-visual .octicon {
|
|
112
|
+
color: var(--fgColor-success,var(--color-success-fg));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Full-width */
|
|
116
|
+
|
|
117
|
+
.Banner.Banner--full {
|
|
118
|
+
margin-top: calc(var(--borderWidth-thin,max(1px, 0.0625rem)) * -1);
|
|
119
|
+
border-right: 0;
|
|
120
|
+
border-left: 0;
|
|
121
|
+
border-radius: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (max-width: 767.98px) {
|
|
125
|
+
.Banner.Banner--full-whenNarrow {
|
|
126
|
+
margin-top: calc(var(--borderWidth-thin,max(1px, 0.0625rem)) * -1);
|
|
127
|
+
border-right: 0;
|
|
128
|
+
border-left: 0;
|
|
129
|
+
border-radius: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
".Banner",
|
|
5
5
|
".Banner .Banner-actions",
|
|
6
6
|
".Banner .Banner-visual",
|
|
7
|
-
".Banner .Banner-visual
|
|
8
|
-
".Banner .Banner-visual
|
|
7
|
+
".Banner .Banner-visual > .octicon",
|
|
8
|
+
".Banner .Banner-visual > *",
|
|
9
9
|
".Banner .Banner-message",
|
|
10
10
|
".Banner .Banner-message p:last-child",
|
|
11
11
|
".Banner .Banner-message .Banner-title:not(:only-child)",
|