@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
@@ -8,84 +8,84 @@
|
|
8
8
|
".ActionListWrap",
|
9
9
|
".ActionListWrap--inset",
|
10
10
|
".ActionListWrap--inset[popover]",
|
11
|
-
".ActionListWrap--divided .ActionListItem-label
|
12
|
-
":is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline)
|
13
|
-
":is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline) .ActionListItem-label
|
14
|
-
".
|
15
|
-
".
|
16
|
-
".ActionListItem:first-of-type .ActionListItem-
|
17
|
-
".
|
18
|
-
"
|
19
|
-
"
|
11
|
+
".ActionListWrap--divided .ActionListItem-label::before",
|
12
|
+
":is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline)::before",
|
13
|
+
":is(.ActionListWrap--divided .ActionListItem-descriptionWrap--inline) .ActionListItem-label::before",
|
14
|
+
":is(.ActionListWrap--divided .ActionListItem--navActive) .ActionListItem-label::before",
|
15
|
+
":is(.ActionListWrap--divided .ActionListItem--navActive) + .ActionListItem .ActionListItem-label::before",
|
16
|
+
".ActionListItem:first-of-type .ActionListItem-label::before",
|
17
|
+
".ActionList-sectionDivider + .ActionListItem .ActionListItem-label::before",
|
18
|
+
".ActionListItem:first-of-type .ActionListItem-descriptionWrap--inline::before",
|
19
|
+
".ActionList-sectionDivider + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
|
20
20
|
".ActionListItem",
|
21
|
-
".ActionListItem:active",
|
22
21
|
".ActionListItem:hover",
|
23
|
-
".ActionListItem:
|
24
|
-
".ActionListItem:hover .ActionListItem-label
|
25
|
-
".ActionListItem:hover
|
26
|
-
".ActionListItem:hover
|
27
|
-
".ActionListItem
|
28
|
-
".ActionListItem.
|
29
|
-
"
|
30
|
-
":is(.ActionListItem.ActionListItem--hasSubItem
|
31
|
-
":is(.ActionListItem
|
32
|
-
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem
|
33
|
-
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem
|
34
|
-
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem
|
35
|
-
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem
|
36
|
-
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem
|
37
|
-
".ActionListItem
|
38
|
-
".ActionListItem[aria-selected=true]
|
39
|
-
".ActionListItem[aria-selected=true]
|
40
|
-
".ActionListItem[aria-selected=true]
|
41
|
-
".ActionListItem[aria-selected=true]
|
22
|
+
".ActionListItem:active",
|
23
|
+
".ActionListItem:hover .ActionListItem-label::before",
|
24
|
+
".ActionListItem:hover + .ActionListItem .ActionListItem-label::before",
|
25
|
+
".ActionListItem:hover .ActionListItem-descriptionWrap--inline::before",
|
26
|
+
".ActionListItem:hover + .ActionListItem .ActionListItem-descriptionWrap--inline::before",
|
27
|
+
".ActionListItem[hidden] + .ActionList-sectionDivider",
|
28
|
+
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent",
|
29
|
+
":is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover",
|
30
|
+
":is(.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active",
|
31
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover",
|
32
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):hover:not(.ActionListItem--navActive,:focus-visible)",
|
33
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active",
|
34
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active:not(.ActionListItem--navActive)",
|
35
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active .ActionListItem-label::before",
|
36
|
+
":is(.ActionListItem:not(.ActionListItem--hasSubItem),.ActionListItem.ActionListItem--hasSubItem > .ActionListContent):active + .ActionListItem .ActionListItem-label::before",
|
37
|
+
".ActionListItem[aria-selected='true']",
|
38
|
+
".ActionListItem[aria-selected='true']:hover",
|
39
|
+
".ActionListItem[aria-selected='true']::before",
|
40
|
+
".ActionListItem[aria-selected='true'] + .ActionListItem::before",
|
41
|
+
".ActionListItem[aria-selected='true']::after",
|
42
42
|
".ActionListItem.ActionListItem--navActive",
|
43
43
|
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--subItem) .ActionListItem-label",
|
44
44
|
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)",
|
45
45
|
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger):hover",
|
46
|
-
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)
|
47
|
-
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)
|
48
|
-
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)
|
49
|
-
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled=true]) .ActionListContent) .ActionListItem-
|
50
|
-
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled=true]) .ActionListContent) .ActionListItem-
|
51
|
-
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled=true]) .ActionListContent) .ActionListItem-visual",
|
52
|
-
":is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled=true]):hover",
|
46
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::before",
|
47
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger) + .ActionListItem::before",
|
48
|
+
".ActionListItem.ActionListItem--navActive:not(.ActionListItem--danger)::after",
|
49
|
+
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-label",
|
50
|
+
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-description",
|
51
|
+
":is(:is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']) .ActionListContent) .ActionListItem-visual",
|
52
|
+
":is(.ActionListItem.ActionListItem--disabled,.ActionListItem[aria-disabled='true']):hover",
|
53
53
|
".ActionListItem.ActionListItem--danger .ActionListItem-label",
|
54
54
|
".ActionListItem.ActionListItem--danger .ActionListItem-visual",
|
55
55
|
".ActionListItem.ActionListItem--danger:hover",
|
56
|
-
".ActionListItem.ActionListItem--danger:hover .ActionListItem-description",
|
57
56
|
".ActionListItem.ActionListItem--danger:hover .ActionListItem-label",
|
58
57
|
".ActionListItem.ActionListItem--danger:hover .ActionListItem-visual",
|
58
|
+
".ActionListItem.ActionListItem--danger:hover .ActionListItem-description",
|
59
59
|
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active",
|
60
|
-
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-description",
|
61
60
|
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-label",
|
62
61
|
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-visual",
|
62
|
+
":is(.ActionListItem.ActionListItem--danger .ActionListContent):active .ActionListItem-description",
|
63
63
|
".ActionListContent",
|
64
|
-
".ActionListContent
|
64
|
+
".ActionListContent > :not(:last-child)",
|
65
65
|
".ActionListContent:hover",
|
66
|
-
".ActionListContent[aria-disabled=true] .ActionListItem-
|
67
|
-
".ActionListContent[aria-disabled=true] .ActionListItem-
|
68
|
-
".ActionListContent[aria-disabled=true] .ActionListItem-visual",
|
69
|
-
".ActionListContent[aria-disabled=true]:hover",
|
70
|
-
".ActionListContent[aria-expanded]
|
71
|
-
":is(.ActionListContent[aria-expanded]
|
72
|
-
":is(.ActionListContent.ActionListContent--visual16[aria-expanded]
|
73
|
-
":is(.ActionListContent.ActionListContent--visual20[aria-expanded]
|
74
|
-
":is(.ActionListContent.ActionListContent--visual24[aria-expanded]
|
75
|
-
".ActionListContent[aria-expanded=true] .ActionListItem-collapseIcon",
|
76
|
-
".ActionListContent[aria-expanded=true]
|
77
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=true]
|
78
|
-
".ActionListContent[aria-expanded=false] .ActionListItem-collapseIcon",
|
79
|
-
".ActionListContent[aria-expanded=false]
|
80
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]",
|
81
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false] .ActionListItem-label",
|
82
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]
|
83
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]
|
84
|
-
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded=false]
|
85
|
-
":is(.ActionListContent[aria-checked=true],.ActionListContent[aria-selected=true]) .FormControl-checkbox",
|
86
|
-
":is(:is(.ActionListContent[aria-checked=true],.ActionListContent[aria-selected=true]) .FormControl-checkbox)
|
87
|
-
":is(.ActionListContent[aria-checked=true],.ActionListContent[aria-selected=true]) .ActionListItem-singleSelectCheckmark",
|
88
|
-
":is(.ActionListContent[aria-checked=false],.ActionListContent[aria-selected=false]) .ActionListItem-singleSelectCheckmark",
|
66
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-label",
|
67
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-description",
|
68
|
+
".ActionListContent[aria-disabled='true'] .ActionListItem-visual",
|
69
|
+
".ActionListContent[aria-disabled='true']:hover",
|
70
|
+
".ActionListContent[aria-expanded] + .ActionList--subGroup",
|
71
|
+
":is(.ActionListContent[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
72
|
+
":is(.ActionListContent.ActionListContent--visual16[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
73
|
+
":is(.ActionListContent.ActionListContent--visual20[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
74
|
+
":is(.ActionListContent.ActionListContent--visual24[aria-expanded] + .ActionList--subGroup) .ActionListContent",
|
75
|
+
".ActionListContent[aria-expanded='true'] .ActionListItem-collapseIcon",
|
76
|
+
".ActionListContent[aria-expanded='true'] + .ActionList--subGroup",
|
77
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='true'] > .ActionListItem-label",
|
78
|
+
".ActionListContent[aria-expanded='false'] .ActionListItem-collapseIcon",
|
79
|
+
".ActionListContent[aria-expanded='false'] + .ActionList--subGroup",
|
80
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']",
|
81
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] .ActionListItem-label",
|
82
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::before",
|
83
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false'] + .ActionListItem::before",
|
84
|
+
".ActionListContent.ActionListContent--hasActiveSubItem[aria-expanded='false']::after",
|
85
|
+
":is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .FormControl-checkbox",
|
86
|
+
":is(:is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .FormControl-checkbox)::before",
|
87
|
+
":is(.ActionListContent[aria-checked='true'],.ActionListContent[aria-selected='true']) .ActionListItem-singleSelectCheckmark",
|
88
|
+
":is(.ActionListContent[aria-checked='false'],.ActionListContent[aria-selected='false']) .ActionListItem-singleSelectCheckmark",
|
89
89
|
".ActionListContent.ActionListContent--sizeLarge",
|
90
90
|
".ActionListContent.ActionListContent--sizeXLarge",
|
91
91
|
".ActionListContent.ActionListContent--blockDescription .ActionListItem-visual",
|
@@ -98,11 +98,11 @@
|
|
98
98
|
".ActionListItem-descriptionWrap .ActionListItem-label",
|
99
99
|
".ActionListItem-descriptionWrap--inline",
|
100
100
|
".ActionListItem-description",
|
101
|
-
".ActionListItem-action",
|
102
101
|
".ActionListItem-visual",
|
102
|
+
".ActionListItem-action",
|
103
103
|
".ActionListItem-label",
|
104
104
|
".ActionListItem-label--truncate",
|
105
|
-
".ActionListItem--subItem
|
105
|
+
".ActionListItem--subItem > .ActionListContent > .ActionListItem-label",
|
106
106
|
".ActionListItem--withActions",
|
107
107
|
".ActionListItem-trailingAction",
|
108
108
|
".ActionListItem--trailingActionHover .ActionListItem-trailingAction",
|
@@ -1 +1,131 @@
|
|
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: var(--base-size-6);
|
11
|
+
}
|
12
|
+
|
13
|
+
/* Inline label (non-default) */
|
14
|
+
|
15
|
+
.autocomplete-label-inline {
|
16
|
+
display: inline;
|
17
|
+
margin-right: var(--base-size-6);
|
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: var(--base-size-6);
|
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: var(--base-size-4) var(--base-size-8);
|
41
|
+
align-items: center;
|
42
|
+
}
|
43
|
+
|
44
|
+
.autocomplete-embedded-icon-wrap:focus-within {
|
45
|
+
border-color: var(--borderColor-accent-emphasis);
|
46
|
+
|
47
|
+
border-color: var(--focus-outlineColor);
|
48
|
+
|
49
|
+
outline: none;
|
50
|
+
|
51
|
+
box-shadow: inset 0 0 0 1px var(--focus-outlineColor);
|
52
|
+
}
|
53
|
+
|
54
|
+
.autocomplete-embedded-icon-wrap .form-control {
|
55
|
+
padding: 0;
|
56
|
+
margin-left: var(--base-size-8);
|
57
|
+
border: none;
|
58
|
+
box-shadow: none;
|
59
|
+
}
|
60
|
+
|
61
|
+
:is(.autocomplete-embedded-icon-wrap .form-control):focus {
|
62
|
+
box-shadow: none;
|
63
|
+
}
|
64
|
+
|
65
|
+
:is(.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: var(--text-codeBlock-size);
|
80
|
+
list-style: none;
|
81
|
+
background: var(--overlay-bgColor);
|
82
|
+
border: var(--borderWidth-thin) solid var(--borderColor-default);
|
83
|
+
border-radius: var(--borderRadius-medium);
|
84
|
+
box-shadow: var(--shadow-resting-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: var(--base-size-4) var(--base-size-8);
|
94
|
+
overflow: hidden;
|
95
|
+
font-weight: var(--base-text-weight-semibold);
|
96
|
+
color: var(--fgColor-default);
|
97
|
+
text-align: left;
|
98
|
+
-webkit-text-decoration: none;
|
99
|
+
text-decoration: none;
|
100
|
+
text-overflow: ellipsis;
|
101
|
+
white-space: nowrap;
|
102
|
+
cursor: pointer;
|
103
|
+
background-color: var(--overlay-bgColor);
|
104
|
+
border: 0;
|
105
|
+
}
|
106
|
+
|
107
|
+
.autocomplete-item:hover {
|
108
|
+
color: var(--fgColor-onEmphasis);
|
109
|
+
-webkit-text-decoration: none;
|
110
|
+
text-decoration: none;
|
111
|
+
background-color: var(--bgColor-accent-emphasis);
|
112
|
+
|
113
|
+
/* Inherit color on all child elements to ensure enough contrast */
|
114
|
+
}
|
115
|
+
|
116
|
+
.autocomplete-item:hover * {
|
117
|
+
color: inherit !important;
|
118
|
+
}
|
119
|
+
|
120
|
+
.autocomplete-item.selected,.autocomplete-item[aria-selected='true'],.autocomplete-item.navigation-focus {
|
121
|
+
color: var(--fgColor-onEmphasis);
|
122
|
+
-webkit-text-decoration: none;
|
123
|
+
text-decoration: none;
|
124
|
+
background-color: var(--bgColor-accent-emphasis);
|
125
|
+
|
126
|
+
/* Inherit color on all child elements to ensure enough contrast */
|
127
|
+
}
|
128
|
+
|
129
|
+
:is(.autocomplete-item.selected,.autocomplete-item[aria-selected='true'],.autocomplete-item.navigation-focus) * {
|
130
|
+
color: inherit !important;
|
131
|
+
}
|
@@ -13,9 +13,9 @@
|
|
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
|
-
"
|
17
|
+
".autocomplete-item[aria-selected='true']",
|
18
|
+
".autocomplete-item.navigation-focus",
|
19
|
+
":is(.autocomplete-item.selected,.autocomplete-item[aria-selected='true'],.autocomplete-item.navigation-focus) *"
|
20
20
|
]
|
21
21
|
}
|
@@ -1 +1,146 @@
|
|
1
|
-
|
1
|
+
/* Banner alert */
|
2
|
+
|
3
|
+
.Banner {
|
4
|
+
position: relative;
|
5
|
+
display: grid;
|
6
|
+
padding: var(--base-size-8);
|
7
|
+
color: var(--fgColor-default);
|
8
|
+
background-image: linear-gradient(var(--bgColor-accent-muted), var(--bgColor-accent-muted));
|
9
|
+
border: var(--borderWidth-thin) solid var(--borderColor-accent-muted);
|
10
|
+
border-radius: var(--borderRadius-medium);
|
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 variation */
|
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 0 var(--base-size-8);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
/* Elements */
|
35
|
+
|
36
|
+
.Banner .Banner-visual {
|
37
|
+
display: grid;
|
38
|
+
padding: var(--base-size-6) var(--base-size-8);
|
39
|
+
grid-area: visual;
|
40
|
+
align-self: start;
|
41
|
+
}
|
42
|
+
|
43
|
+
:is(.Banner .Banner-visual) > .octicon {
|
44
|
+
margin-block: calc(var(--base-size-4) / 2);
|
45
|
+
}
|
46
|
+
|
47
|
+
:is(.Banner .Banner-visual) > * {
|
48
|
+
align-self: center;
|
49
|
+
}
|
50
|
+
|
51
|
+
.Banner .Banner-message {
|
52
|
+
padding: var(--base-size-6) var(--base-size-8);
|
53
|
+
grid-area: message;
|
54
|
+
align-self: center;
|
55
|
+
|
56
|
+
/* stylelint-disable-next-line selector-max-type */
|
57
|
+
}
|
58
|
+
|
59
|
+
:is(.Banner .Banner-message) p:last-child {
|
60
|
+
margin-bottom: 0;
|
61
|
+
}
|
62
|
+
|
63
|
+
:is(.Banner .Banner-message) .Banner-title:not(:only-child) {
|
64
|
+
margin-bottom: 0;
|
65
|
+
font-weight: var(--base-text-weight-semibold);
|
66
|
+
}
|
67
|
+
|
68
|
+
.Banner .Banner-actions {
|
69
|
+
grid-area: actions;
|
70
|
+
}
|
71
|
+
|
72
|
+
:is(.Banner .Banner-actions):last-child {
|
73
|
+
align-self: center;
|
74
|
+
}
|
75
|
+
|
76
|
+
/* is this used anywhere? could not find any use, but unsure */
|
77
|
+
|
78
|
+
.Banner .Banner-close {
|
79
|
+
grid-area: close;
|
80
|
+
/* stylelint-disable-next-line primer/spacing */
|
81
|
+
margin-left: var(--controlStack-medium-gap-condensed);
|
82
|
+
}
|
83
|
+
|
84
|
+
.Banner .Banner-visual .octicon {
|
85
|
+
color: var(--fgColor-accent);
|
86
|
+
}
|
87
|
+
|
88
|
+
.Banner.Banner--warning {
|
89
|
+
color: var(--fgColor-default);
|
90
|
+
background-image: linear-gradient(var(--bgColor-attention-muted), var(--bgColor-attention-muted));
|
91
|
+
border-color: var(--borderColor-attention-muted);
|
92
|
+
}
|
93
|
+
|
94
|
+
.Banner.Banner--warning .Banner-visual .octicon {
|
95
|
+
color: var(--fgColor-attention);
|
96
|
+
}
|
97
|
+
|
98
|
+
.Banner.Banner--error {
|
99
|
+
color: var(--fgColor-default);
|
100
|
+
background-image: linear-gradient(var(--bgColor-danger-muted), var(--bgColor-danger-muted));
|
101
|
+
border-color: var(--borderColor-danger-muted);
|
102
|
+
}
|
103
|
+
|
104
|
+
.Banner.Banner--error .Banner-visual .octicon {
|
105
|
+
color: var(--fgColor-danger);
|
106
|
+
}
|
107
|
+
|
108
|
+
.Banner.Banner--success {
|
109
|
+
color: var(--fgColor-default);
|
110
|
+
background-image: linear-gradient(var(--bgColor-success-muted), var(--bgColor-success-muted));
|
111
|
+
border-color: var(--borderColor-success-muted);
|
112
|
+
}
|
113
|
+
|
114
|
+
.Banner.Banner--success .Banner-visual .octicon {
|
115
|
+
color: var(--fgColor-success);
|
116
|
+
}
|
117
|
+
|
118
|
+
.Banner.Banner--upsell {
|
119
|
+
color: var(--fgColor-default);
|
120
|
+
background-image: linear-gradient(var(--bgColor-done-muted), var(--bgColor-done-muted));
|
121
|
+
border-color: var(--borderColor-done-muted);
|
122
|
+
}
|
123
|
+
|
124
|
+
.Banner.Banner--upsell .Banner-visual .octicon {
|
125
|
+
color: var(--fgColor-done);
|
126
|
+
}
|
127
|
+
|
128
|
+
/* Full-width */
|
129
|
+
|
130
|
+
.Banner.Banner--full {
|
131
|
+
/* stylelint-disable-next-line primer/spacing */
|
132
|
+
margin-top: calc(var(--borderWidth-thin) * -1);
|
133
|
+
border-right: 0;
|
134
|
+
border-left: 0;
|
135
|
+
border-radius: 0;
|
136
|
+
}
|
137
|
+
|
138
|
+
@media (max-width: 767.98px) {
|
139
|
+
.Banner.Banner--full-whenNarrow {
|
140
|
+
/* stylelint-disable-next-line primer/spacing */
|
141
|
+
margin-top: calc(var(--borderWidth-thin) * -1);
|
142
|
+
border-right: 0;
|
143
|
+
border-left: 0;
|
144
|
+
border-radius: 0;
|
145
|
+
}
|
146
|
+
}
|
@@ -4,8 +4,8 @@
|
|
4
4
|
".Banner",
|
5
5
|
".Banner .Banner-actions",
|
6
6
|
".Banner .Banner-visual",
|
7
|
-
":is(.Banner .Banner-visual)
|
8
|
-
":is(.Banner .Banner-visual)
|
7
|
+
":is(.Banner .Banner-visual) > .octicon",
|
8
|
+
":is(.Banner .Banner-visual) > *",
|
9
9
|
".Banner .Banner-message",
|
10
10
|
":is(.Banner .Banner-message) p:last-child",
|
11
11
|
":is(.Banner .Banner-message) .Banner-title:not(:only-child)",
|
@@ -1 +1,183 @@
|
|
1
|
-
.btn-mktg
|
1
|
+
.btn-mktg {
|
2
|
+
position: relative;
|
3
|
+
z-index: 1;
|
4
|
+
display: inline-block;
|
5
|
+
|
6
|
+
/* stylelint-disable-next-line primer/spacing */
|
7
|
+
padding: 0.9rem 1.5rem 1.1rem;
|
8
|
+
|
9
|
+
/* stylelint-disable-next-line primer/typography */
|
10
|
+
font-size: 1rem;
|
11
|
+
font-weight: var(--base-text-weight-semibold);
|
12
|
+
/* stylelint-disable-next-line primer/typography */
|
13
|
+
line-height: 1;
|
14
|
+
/* stylelint-disable-next-line primer/colors */
|
15
|
+
color: var(--bgColor-default);
|
16
|
+
text-align: center;
|
17
|
+
white-space: nowrap;
|
18
|
+
vertical-align: middle;
|
19
|
+
-webkit-user-select: none;
|
20
|
+
user-select: none;
|
21
|
+
/* stylelint-disable-next-line primer/colors */
|
22
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%),
|
23
|
+
var(--color-mktg-btn-bg) !important;
|
24
|
+
border: 0;
|
25
|
+
|
26
|
+
/* stylelint-disable-next-line primer/borders */
|
27
|
+
border-radius: 0.375rem;
|
28
|
+
transition: box-shadow 0.2s, outline 0.2s ease;
|
29
|
+
appearance: none !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
.btn-mktg::before {
|
33
|
+
position: absolute;
|
34
|
+
top: 0;
|
35
|
+
right: 0;
|
36
|
+
bottom: 0;
|
37
|
+
left: 0;
|
38
|
+
z-index: -1;
|
39
|
+
content: '';
|
40
|
+
|
41
|
+
/* stylelint-disable-next-line primer/colors */
|
42
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%) !important;
|
43
|
+
border-radius: inherit;
|
44
|
+
opacity: 0;
|
45
|
+
transition: opacity 0.2s;
|
46
|
+
background-blend-mode: normal;
|
47
|
+
}
|
48
|
+
|
49
|
+
.btn-mktg:hover {
|
50
|
+
-webkit-text-decoration: none;
|
51
|
+
text-decoration: none;
|
52
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
53
|
+
box-shadow: var(--color-mktg-btn-shadow-hover) !important;
|
54
|
+
}
|
55
|
+
|
56
|
+
:is(.btn-mktg:hover,.btn-mktg:focus,.btn-mktg:focus-visible,.btn-mktg.focus)::before {
|
57
|
+
opacity: 1;
|
58
|
+
}
|
59
|
+
|
60
|
+
/* fallback :focus state */
|
61
|
+
|
62
|
+
.btn-mktg:focus {
|
63
|
+
outline: 2px solid var(--focus-outlineColor);
|
64
|
+
outline-offset: 2px;
|
65
|
+
box-shadow: none;
|
66
|
+
|
67
|
+
/* remove fallback :focus if :focus-visible is supported */
|
68
|
+
}
|
69
|
+
|
70
|
+
.btn-mktg:focus:not(:focus-visible) {
|
71
|
+
outline: solid 1px transparent;
|
72
|
+
box-shadow: none;
|
73
|
+
}
|
74
|
+
|
75
|
+
/* default focus state */
|
76
|
+
|
77
|
+
.btn-mktg:focus-visible {
|
78
|
+
outline: 2px solid var(--focus-outlineColor);
|
79
|
+
outline-offset: 2px;
|
80
|
+
box-shadow: none;
|
81
|
+
}
|
82
|
+
|
83
|
+
.btn-mktg:active::before {
|
84
|
+
opacity: 0.5 !important;
|
85
|
+
}
|
86
|
+
|
87
|
+
.btn-mktg.disabled,.btn-mktg[disabled] {
|
88
|
+
pointer-events: none;
|
89
|
+
cursor: default;
|
90
|
+
opacity: 0.5;
|
91
|
+
}
|
92
|
+
|
93
|
+
.btn-muted-mktg {
|
94
|
+
color: var(--fgColor-default) !important;
|
95
|
+
background: none !important;
|
96
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
97
|
+
box-shadow: var(--color-mktg-btn-shadow-outline);
|
98
|
+
}
|
99
|
+
|
100
|
+
.btn-muted-mktg::before {
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
|
104
|
+
.btn-muted-mktg:hover {
|
105
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
106
|
+
box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
|
107
|
+
}
|
108
|
+
|
109
|
+
.btn-muted-mktg:active {
|
110
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
111
|
+
box-shadow: var(--fgColor-default) 0 0 0 3px inset !important;
|
112
|
+
}
|
113
|
+
|
114
|
+
.btn-muted-mktg:disabled {
|
115
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
116
|
+
box-shadow: var(--fgColor-default) 0 0 0 1px inset !important;
|
117
|
+
}
|
118
|
+
|
119
|
+
.btn-subtle-mktg {
|
120
|
+
color: var(--fgColor-default) !important;
|
121
|
+
background: none !important;
|
122
|
+
box-shadow: none !important;
|
123
|
+
}
|
124
|
+
|
125
|
+
.btn-subtle-mktg::before {
|
126
|
+
background: none !important;
|
127
|
+
}
|
128
|
+
|
129
|
+
.btn-subtle-mktg:hover {
|
130
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
131
|
+
box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
|
132
|
+
}
|
133
|
+
|
134
|
+
.btn-signup-mktg {
|
135
|
+
/* stylelint-disable-next-line primer/colors */
|
136
|
+
color: #fff;
|
137
|
+
|
138
|
+
/* stylelint-disable-next-line primer/colors */
|
139
|
+
background: linear-gradient(180deg, rgba(52, 183, 89, 0.15) 0%, rgba(46, 164, 79, 0) 100%), rgb(46, 164, 79) !important;
|
140
|
+
}
|
141
|
+
|
142
|
+
.btn-signup-mktg::before {
|
143
|
+
/* stylelint-disable-next-line primer/colors */
|
144
|
+
background: linear-gradient(180deg, rgba(52, 183, 89, 0.15) 0%, rgba(46, 164, 79, 0) 100%) !important;
|
145
|
+
}
|
146
|
+
|
147
|
+
/* fallback :focus state */
|
148
|
+
|
149
|
+
.btn-signup-mktg:focus {
|
150
|
+
outline: 2px solid var(--focus-outlineColor);
|
151
|
+
outline-offset: 2px;
|
152
|
+
box-shadow: none;
|
153
|
+
|
154
|
+
/* remove fallback :focus if :focus-visible is supported */
|
155
|
+
}
|
156
|
+
|
157
|
+
.btn-signup-mktg:focus:not(:focus-visible) {
|
158
|
+
outline: solid 1px transparent;
|
159
|
+
box-shadow: none;
|
160
|
+
}
|
161
|
+
|
162
|
+
/* default focus state */
|
163
|
+
|
164
|
+
.btn-signup-mktg:focus-visible {
|
165
|
+
outline: 2px solid var(--focus-outlineColor);
|
166
|
+
outline-offset: 2px;
|
167
|
+
box-shadow: none;
|
168
|
+
}
|
169
|
+
|
170
|
+
/* Size modifiers */
|
171
|
+
|
172
|
+
.btn-small-mktg {
|
173
|
+
/* stylelint-disable-next-line primer/spacing */
|
174
|
+
padding: 0.625rem 1rem 0.8125rem;
|
175
|
+
}
|
176
|
+
|
177
|
+
.btn-large-mktg {
|
178
|
+
/* stylelint-disable-next-line primer/spacing */
|
179
|
+
padding: 16px 30px 20px !important;
|
180
|
+
|
181
|
+
/* stylelint-disable-next-line primer/typography */
|
182
|
+
font-size: 1.25rem;
|
183
|
+
}
|