@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
|
@@ -1 +1,150 @@
|
|
|
1
|
-
|
|
1
|
+
/* flash */
|
|
2
|
+
|
|
3
|
+
/* Default flash */
|
|
4
|
+
|
|
5
|
+
.flash:not(.Banner) {
|
|
6
|
+
position: relative;
|
|
7
|
+
padding: var(--base-size-20,1.25rem) var(--control-medium-paddingInline-spacious,1rem);
|
|
8
|
+
border-style: solid;
|
|
9
|
+
border-width: var(--borderWidth-thin,max(1px, 0.0625rem));
|
|
10
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
11
|
+
|
|
12
|
+
/* Default color */
|
|
13
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
14
|
+
background-image: linear-gradient(var(--bgColor-accent-muted,var(--color-accent-muted)), var(--bgColor-accent-muted,var(--color-accent-muted)));
|
|
15
|
+
border-color: var(--borderColor-accent-muted,var(--color-accent-muted));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.flash:not(.Banner) .octicon {
|
|
19
|
+
color: var(--fgColor-accent,var(--color-accent-fg));
|
|
20
|
+
margin-right: var(--base-size-12,0.75rem);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.flash:not(.Banner) p:last-child {
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Contain the flash messages */
|
|
28
|
+
|
|
29
|
+
.flash-messages {
|
|
30
|
+
margin-bottom: var(--stack-gap-spacious,1.5rem);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Close button */
|
|
34
|
+
|
|
35
|
+
.flash-close:not(.Banner-close) {
|
|
36
|
+
float: right;
|
|
37
|
+
padding: var(--control-medium-paddingInline-spacious,1rem);
|
|
38
|
+
margin: calc(var(--control-medium-paddingInline-spacious,1rem) * -1);
|
|
39
|
+
text-align: center;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
|
|
42
|
+
/* Undo `<button>` styles */
|
|
43
|
+
background: none;
|
|
44
|
+
border: 0;
|
|
45
|
+
-webkit-appearance: none;
|
|
46
|
+
appearance: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.flash-close:not(.Banner-close):hover {
|
|
50
|
+
opacity: 0.7;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.flash-close:not(.Banner-close):active {
|
|
54
|
+
opacity: 0.5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.flash-close:not(.Banner-close) .octicon {
|
|
58
|
+
margin-right: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Action button */
|
|
62
|
+
|
|
63
|
+
.flash-action:not(.Banner-actions) {
|
|
64
|
+
float: right;
|
|
65
|
+
margin-top: -3px;
|
|
66
|
+
margin-left: var(--stack-gap-spacious,1.5rem);
|
|
67
|
+
background-clip: padding-box;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flash-action.btn:not(.Banner-actions) .octicon {
|
|
71
|
+
margin-right: var(--control-small-gap,0.25rem);
|
|
72
|
+
color: var(--fgColor-muted,var(--color-fg-muted));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.flash-action.btn-primary:not(.Banner-actions) {
|
|
76
|
+
background-clip: border-box;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.flash-action.btn-primary:not(.Banner-actions) .octicon {
|
|
80
|
+
color: inherit;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Color variations */
|
|
84
|
+
|
|
85
|
+
.flash-warn:not(.Banner) {
|
|
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
|
+
.flash-warn:not(.Banner) .octicon {
|
|
92
|
+
color: var(--fgColor-attention,var(--color-attention-fg));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.flash-error:not(.Banner) {
|
|
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
|
+
.flash-error:not(.Banner) .octicon {
|
|
102
|
+
color: var(--fgColor-danger,var(--color-danger-fg));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.flash-success:not(.Banner) {
|
|
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
|
+
.flash-success:not(.Banner) .octicon {
|
|
112
|
+
color: var(--fgColor-success,var(--color-success-fg));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Layout variations */
|
|
116
|
+
|
|
117
|
+
.flash-full:not(.Banner) {
|
|
118
|
+
margin-top: calc(var(--borderWidth-thin,max(1px, 0.0625rem)) * -1);
|
|
119
|
+
border-width: var(--borderWidth-thin,max(1px, 0.0625rem)) 0;
|
|
120
|
+
border-radius: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* A banner rendered at the top of the page. */
|
|
124
|
+
|
|
125
|
+
.flash-banner {
|
|
126
|
+
position: fixed;
|
|
127
|
+
top: 0;
|
|
128
|
+
z-index: 90;
|
|
129
|
+
width: 100%;
|
|
130
|
+
border-top: 0;
|
|
131
|
+
border-right: 0;
|
|
132
|
+
border-left: 0;
|
|
133
|
+
border-radius: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Makes sure the background is opaque to cover any content underneath */
|
|
137
|
+
|
|
138
|
+
.flash-full,
|
|
139
|
+
.flash-banner {
|
|
140
|
+
background-color: var(--bgColor-default,var(--color-canvas-default));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* FIXME deprecate this */
|
|
144
|
+
|
|
145
|
+
.warning {
|
|
146
|
+
padding: 0.5em;
|
|
147
|
+
margin-bottom: 0.8em;
|
|
148
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
149
|
+
background-color: var(--bgColor-attention-muted,var(--color-attention-subtle));
|
|
150
|
+
}
|
|
@@ -1 +1,105 @@
|
|
|
1
|
-
|
|
1
|
+
/* Labels */
|
|
2
|
+
|
|
3
|
+
/* Provide a wrapper to ensure labels stick together */
|
|
4
|
+
|
|
5
|
+
.labels {
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Default 20px */
|
|
10
|
+
|
|
11
|
+
.label, /* TODO: Deprecate */
|
|
12
|
+
.Label {
|
|
13
|
+
display: inline-block;
|
|
14
|
+
padding: 0 7px;
|
|
15
|
+
font-size: var(--text-body-size-small,0.75rem);
|
|
16
|
+
font-weight: var(--base-text-weight-medium,500);
|
|
17
|
+
line-height: 18px;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-default,var(--color-border-default));
|
|
20
|
+
border-radius: 2em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.label:hover, .Label:hover {
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Large 24px */
|
|
28
|
+
|
|
29
|
+
.Label--large {
|
|
30
|
+
padding-right: 10px;
|
|
31
|
+
padding-left: 10px;
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Inline */
|
|
36
|
+
|
|
37
|
+
/* Doesn't increase height of parent element
|
|
38
|
+
** Can be used with different font-sizes */
|
|
39
|
+
|
|
40
|
+
.Label--inline {
|
|
41
|
+
display: inline;
|
|
42
|
+
padding: 0.12em 0.5em;
|
|
43
|
+
font-size: 85%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Contrast */
|
|
47
|
+
|
|
48
|
+
.Label--primary {
|
|
49
|
+
color: var(--fgColor-default,var(--color-fg-default));
|
|
50
|
+
border-color: var(--borderColor-neutral-emphasis,var(--color-fg-subtle));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.Label--secondary {
|
|
54
|
+
color: var(--fgColor-muted,var(--color-fg-muted));
|
|
55
|
+
border-color: var(--borderColor-default,var(--color-border-default));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Colors */
|
|
59
|
+
|
|
60
|
+
.Label--info, /* TODO: deprecate */
|
|
61
|
+
.Label--accent {
|
|
62
|
+
color: var(--fgColor-accent,var(--color-accent-fg));
|
|
63
|
+
border-color: var(--borderColor-accent-emphasis,var(--color-accent-fg));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.Label--success {
|
|
67
|
+
color: var(--fgColor-success,var(--color-success-fg));
|
|
68
|
+
border-color: var(--borderColor-success-emphasis,var(--color-success-emphasis));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.Label--warning, /* TODO: deprecate */
|
|
72
|
+
.Label--attention {
|
|
73
|
+
color: var(--fgColor-attention,var(--color-attention-fg));
|
|
74
|
+
border-color: var(--borderColor-attention-emphasis,var(--color-attention-emphasis));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.Label--severe {
|
|
78
|
+
color: var(--fgColor-severe,var(--color-severe-fg));
|
|
79
|
+
border-color: var(--borderColor-severe-emphasis,var(--color-severe-emphasis));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.Label--danger {
|
|
83
|
+
color: var(--fgColor-danger,var(--color-danger-fg));
|
|
84
|
+
border-color: var(--borderColor-danger-emphasis,var(--color-danger-emphasis));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.Label--open {
|
|
88
|
+
color: var(--fgColor-open,var(--color-open-fg));
|
|
89
|
+
border-color: var(--borderColor-open-emphasis,var(--color-open-emphasis));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.Label--closed {
|
|
93
|
+
color: var(--fgColor-closed,var(--color-closed-fg));
|
|
94
|
+
border-color: var(--borderColor-closed-emphasis,var(--color-closed-emphasis));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.Label--done {
|
|
98
|
+
color: var(--fgColor-done,var(--color-done-fg));
|
|
99
|
+
border-color: var(--borderColor-done-emphasis,var(--color-done-emphasis));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.Label--sponsors {
|
|
103
|
+
color: var(--fgColor-sponsors,var(--color-sponsors-fg));
|
|
104
|
+
border-color: var(--borderColor-sponsors-emphasis,var(--color-sponsors-emphasis));
|
|
105
|
+
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"name": "beta/label",
|
|
3
3
|
"selectors": [
|
|
4
4
|
".labels",
|
|
5
|
-
".Label",
|
|
6
5
|
".label",
|
|
7
|
-
".Label
|
|
6
|
+
".Label",
|
|
8
7
|
".label:hover",
|
|
8
|
+
".Label:hover",
|
|
9
9
|
".Label--large",
|
|
10
10
|
".Label--inline",
|
|
11
11
|
".Label--primary",
|
|
12
12
|
".Label--secondary",
|
|
13
|
-
".Label--accent",
|
|
14
13
|
".Label--info",
|
|
14
|
+
".Label--accent",
|
|
15
15
|
".Label--success",
|
|
16
|
-
".Label--attention",
|
|
17
16
|
".Label--warning",
|
|
17
|
+
".Label--attention",
|
|
18
18
|
".Label--severe",
|
|
19
19
|
".Label--danger",
|
|
20
20
|
".Label--open",
|
|
@@ -1 +1,62 @@
|
|
|
1
|
-
|
|
1
|
+
/* Links */
|
|
2
|
+
|
|
3
|
+
.Link {
|
|
4
|
+
color: var(--fgColor-link-rest,var(--color-accent-fg));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.Link:hover {
|
|
8
|
+
text-decoration: underline;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.Link:focus,
|
|
13
|
+
.Link:focus-visible {
|
|
14
|
+
outline-offset: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.Link--primary {
|
|
18
|
+
color: var(--fgColor-default,var(--color-fg-default)) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.Link--primary:hover {
|
|
22
|
+
color: var(--fgColor-link-rest,var(--color-accent-fg)) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.Link--secondary {
|
|
26
|
+
color: var(--fgColor-muted,var(--color-fg-muted)) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.Link--secondary:hover {
|
|
30
|
+
color: var(--fgColor-link-rest,var(--color-accent-fg)) !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.Link--muted {
|
|
34
|
+
color: var(--fgColor-muted,var(--color-fg-muted)) !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.Link--muted:hover {
|
|
38
|
+
color: var(--fgColor-link-rest,var(--color-accent-fg)) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.Link--muted:hover {
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Set the link color only on hover
|
|
46
|
+
Useful when you want only part of a link to turn blue on hover */
|
|
47
|
+
|
|
48
|
+
.Link--onHover:hover {
|
|
49
|
+
color: var(--fgColor-link-rest,var(--color-accent-fg)) !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Link--onHover:hover {
|
|
53
|
+
text-decoration: underline;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* When using a color utility class inside of a link class
|
|
58
|
+
color should change with link on hover. */
|
|
59
|
+
|
|
60
|
+
.Link--secondary:hover [class*='color-fg'], .Link--primary:hover [class*='color-fg'], .Link--muted:hover [class*='color-fg'] {
|
|
61
|
+
color: inherit !important;
|
|
62
|
+
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
".Link--muted",
|
|
13
13
|
".Link--muted:hover",
|
|
14
14
|
".Link--onHover:hover",
|
|
15
|
-
".Link--
|
|
16
|
-
".Link--primary:hover [class*=color-fg]",
|
|
17
|
-
".Link--
|
|
15
|
+
".Link--secondary:hover [class*='color-fg']",
|
|
16
|
+
".Link--primary:hover [class*='color-fg']",
|
|
17
|
+
".Link--muted:hover [class*='color-fg']"
|
|
18
18
|
]
|
|
19
19
|
}
|
|
@@ -1 +1,235 @@
|
|
|
1
|
-
|
|
1
|
+
/* Popover */
|
|
2
|
+
|
|
3
|
+
.Popover {
|
|
4
|
+
position: absolute;
|
|
5
|
+
z-index: 100;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.Popover-message {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 232px;
|
|
11
|
+
margin-right: auto;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
background-color: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
14
|
+
border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-default,var(--color-border-default));
|
|
15
|
+
border-radius: var(--borderRadius-medium,6px);
|
|
16
|
+
|
|
17
|
+
/* Carets */
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.Popover-message::before,
|
|
21
|
+
.Popover-message::after {
|
|
22
|
+
position: absolute;
|
|
23
|
+
left: 50%;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
content: '';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.Popover-message::before {
|
|
29
|
+
top: -16px;
|
|
30
|
+
margin-left: -9px;
|
|
31
|
+
border: 8px solid transparent;
|
|
32
|
+
border-bottom-color: var(--borderColor-default,var(--color-border-default));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.Popover-message::after {
|
|
36
|
+
top: -14px;
|
|
37
|
+
margin-left: -8px;
|
|
38
|
+
border: 7px solid transparent;
|
|
39
|
+
border-bottom-color: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* No caret */
|
|
43
|
+
|
|
44
|
+
.Popover-message--no-caret::before,
|
|
45
|
+
.Popover-message--no-caret::after {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Bottom-oriented carets */
|
|
50
|
+
|
|
51
|
+
.Popover-message--bottom::before,
|
|
52
|
+
.Popover-message--bottom-right::before,
|
|
53
|
+
.Popover-message--bottom-left::before,
|
|
54
|
+
.Popover-message--bottom::after,
|
|
55
|
+
.Popover-message--bottom-right::after,
|
|
56
|
+
.Popover-message--bottom-left::after {
|
|
57
|
+
top: auto;
|
|
58
|
+
border-bottom-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.Popover-message--bottom::before, .Popover-message--bottom-right::before, .Popover-message--bottom-left::before {
|
|
62
|
+
bottom: -16px;
|
|
63
|
+
border-top-color: var(--borderColor-default,var(--color-border-default));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.Popover-message--bottom::after, .Popover-message--bottom-right::after, .Popover-message--bottom-left::after {
|
|
67
|
+
bottom: -14px;
|
|
68
|
+
border-top-color: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Top and Bottom: Right-oriented carets */
|
|
72
|
+
|
|
73
|
+
.Popover-message--top-right,
|
|
74
|
+
.Popover-message--bottom-right {
|
|
75
|
+
right: -9px;
|
|
76
|
+
margin-right: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Popover-message--top-right::before,
|
|
80
|
+
.Popover-message--bottom-right::before,
|
|
81
|
+
.Popover-message--top-right::after,
|
|
82
|
+
.Popover-message--bottom-right::after {
|
|
83
|
+
left: auto;
|
|
84
|
+
margin-left: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.Popover-message--top-right::before, .Popover-message--bottom-right::before {
|
|
88
|
+
right: 20px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.Popover-message--top-right::after, .Popover-message--bottom-right::after {
|
|
92
|
+
right: 21px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Top and Bottom: Left-oriented carets */
|
|
96
|
+
|
|
97
|
+
.Popover-message--top-left,
|
|
98
|
+
.Popover-message--bottom-left {
|
|
99
|
+
left: -9px;
|
|
100
|
+
margin-left: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.Popover-message--top-left::before,
|
|
104
|
+
.Popover-message--bottom-left::before,
|
|
105
|
+
.Popover-message--top-left::after,
|
|
106
|
+
.Popover-message--bottom-left::after {
|
|
107
|
+
left: 24px;
|
|
108
|
+
margin-left: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.Popover-message--top-left::after, .Popover-message--bottom-left::after {
|
|
112
|
+
left: 25px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Right- and Left-oriented carets */
|
|
116
|
+
|
|
117
|
+
.Popover-message--right::before,
|
|
118
|
+
.Popover-message--right-top::before,
|
|
119
|
+
.Popover-message--right-bottom::before,
|
|
120
|
+
.Popover-message--left::before,
|
|
121
|
+
.Popover-message--left-top::before,
|
|
122
|
+
.Popover-message--left-bottom::before,
|
|
123
|
+
.Popover-message--right::after,
|
|
124
|
+
.Popover-message--right-top::after,
|
|
125
|
+
.Popover-message--right-bottom::after,
|
|
126
|
+
.Popover-message--left::after,
|
|
127
|
+
.Popover-message--left-top::after,
|
|
128
|
+
.Popover-message--left-bottom::after {
|
|
129
|
+
top: 50%;
|
|
130
|
+
left: auto;
|
|
131
|
+
margin-left: 0;
|
|
132
|
+
border-bottom-color: transparent;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.Popover-message--right::before, .Popover-message--right-top::before, .Popover-message--right-bottom::before, .Popover-message--left::before, .Popover-message--left-top::before, .Popover-message--left-bottom::before {
|
|
136
|
+
margin-top: -9px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.Popover-message--right::after, .Popover-message--right-top::after, .Popover-message--right-bottom::after, .Popover-message--left::after, .Popover-message--left-top::after, .Popover-message--left-bottom::after {
|
|
140
|
+
margin-top: -8px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Right-oriented carets */
|
|
144
|
+
|
|
145
|
+
.Popover-message--right::before, .Popover-message--right-top::before, .Popover-message--right-bottom::before {
|
|
146
|
+
right: -16px;
|
|
147
|
+
border-left-color: var(--borderColor-default,var(--color-border-default));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.Popover-message--right::after, .Popover-message--right-top::after, .Popover-message--right-bottom::after {
|
|
151
|
+
right: -14px;
|
|
152
|
+
border-left-color: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Left-oriented carets */
|
|
156
|
+
|
|
157
|
+
.Popover-message--left::before, .Popover-message--left-top::before, .Popover-message--left-bottom::before {
|
|
158
|
+
left: -16px;
|
|
159
|
+
border-right-color: var(--borderColor-default,var(--color-border-default));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.Popover-message--left::after, .Popover-message--left-top::after, .Popover-message--left-bottom::after {
|
|
163
|
+
left: -14px;
|
|
164
|
+
border-right-color: var(--overlay-bgColor,var(--color-canvas-overlay));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Right and Left: Top-oriented carets */
|
|
168
|
+
|
|
169
|
+
.Popover-message--right-top::before,
|
|
170
|
+
.Popover-message--left-top::before,
|
|
171
|
+
.Popover-message--right-top::after,
|
|
172
|
+
.Popover-message--left-top::after {
|
|
173
|
+
top: 24px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Right and Left: Bottom-oriented carets */
|
|
177
|
+
|
|
178
|
+
.Popover-message--right-bottom::before,
|
|
179
|
+
.Popover-message--left-bottom::before,
|
|
180
|
+
.Popover-message--right-bottom::after,
|
|
181
|
+
.Popover-message--left-bottom::after {
|
|
182
|
+
top: auto;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.Popover-message--right-bottom::before, .Popover-message--left-bottom::before {
|
|
186
|
+
bottom: 16px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.Popover-message--right-bottom::after, .Popover-message--left-bottom::after {
|
|
190
|
+
bottom: 17px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media (min-width: 544px) {
|
|
194
|
+
.Popover-message--large {
|
|
195
|
+
min-width: 320px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Responsive Popover
|
|
200
|
+
** For < md it will show full-width anchored to the bottom */
|
|
201
|
+
|
|
202
|
+
@media (max-width: 767.98px) {
|
|
203
|
+
.Popover {
|
|
204
|
+
top: auto !important;
|
|
205
|
+
right: 0 !important;
|
|
206
|
+
bottom: 0 !important;
|
|
207
|
+
left: 0 !important;
|
|
208
|
+
}
|
|
209
|
+
.Popover {
|
|
210
|
+
position: fixed;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.Popover-message {
|
|
214
|
+
width: auto !important;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.Popover-message {
|
|
218
|
+
top: auto;
|
|
219
|
+
right: auto;
|
|
220
|
+
bottom: auto;
|
|
221
|
+
left: auto;
|
|
222
|
+
margin: var(--stack-gap-condensed,0.5rem);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Increase tap area for touch input */
|
|
226
|
+
.Popover-message > .btn-octicon {
|
|
227
|
+
padding: var(--control-medium-paddingInline-normal,0.75rem) !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* Remove caret */
|
|
231
|
+
.Popover-message::after,
|
|
232
|
+
.Popover-message::before {
|
|
233
|
+
display: none;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
"selectors": [
|
|
4
4
|
".Popover",
|
|
5
5
|
".Popover-message",
|
|
6
|
-
".Popover-message
|
|
7
|
-
".Popover-message
|
|
8
|
-
".Popover-message--no-caret
|
|
9
|
-
".Popover-message--no-caret
|
|
10
|
-
".Popover-message--bottom
|
|
11
|
-
".Popover-message--bottom-
|
|
12
|
-
".Popover-message--bottom-
|
|
13
|
-
".Popover-message--bottom
|
|
14
|
-
".Popover-message--bottom
|
|
15
|
-
".Popover-message--bottom
|
|
16
|
-
".Popover-message--bottom-right",
|
|
6
|
+
".Popover-message::before",
|
|
7
|
+
".Popover-message::after",
|
|
8
|
+
".Popover-message--no-caret::before",
|
|
9
|
+
".Popover-message--no-caret::after",
|
|
10
|
+
".Popover-message--bottom::before",
|
|
11
|
+
".Popover-message--bottom-right::before",
|
|
12
|
+
".Popover-message--bottom-left::before",
|
|
13
|
+
".Popover-message--bottom::after",
|
|
14
|
+
".Popover-message--bottom-right::after",
|
|
15
|
+
".Popover-message--bottom-left::after",
|
|
17
16
|
".Popover-message--top-right",
|
|
18
|
-
".Popover-message--
|
|
19
|
-
".Popover-message--top-right
|
|
20
|
-
".Popover-message--
|
|
17
|
+
".Popover-message--bottom-right",
|
|
18
|
+
".Popover-message--top-right::before",
|
|
19
|
+
".Popover-message--top-right::after",
|
|
21
20
|
".Popover-message--top-left",
|
|
22
|
-
".Popover-message--
|
|
23
|
-
".Popover-message--top-left
|
|
24
|
-
".Popover-message--left
|
|
25
|
-
".Popover-message--
|
|
26
|
-
".Popover-message--
|
|
27
|
-
".Popover-message--
|
|
28
|
-
".Popover-message--left
|
|
29
|
-
".Popover-message--left
|
|
30
|
-
".Popover-message--
|
|
31
|
-
".Popover-message--right
|
|
32
|
-
".Popover-message--right-top
|
|
33
|
-
".Popover-message--right-
|
|
34
|
-
".Popover-message--
|
|
35
|
-
".Popover-message--
|
|
21
|
+
".Popover-message--bottom-left",
|
|
22
|
+
".Popover-message--top-left::before",
|
|
23
|
+
".Popover-message--top-left::after",
|
|
24
|
+
".Popover-message--right::before",
|
|
25
|
+
".Popover-message--right-top::before",
|
|
26
|
+
".Popover-message--right-bottom::before",
|
|
27
|
+
".Popover-message--left::before",
|
|
28
|
+
".Popover-message--left-top::before",
|
|
29
|
+
".Popover-message--left-bottom::before",
|
|
30
|
+
".Popover-message--right::after",
|
|
31
|
+
".Popover-message--right-top::after",
|
|
32
|
+
".Popover-message--right-bottom::after",
|
|
33
|
+
".Popover-message--left::after",
|
|
34
|
+
".Popover-message--left-top::after",
|
|
35
|
+
".Popover-message--left-bottom::after",
|
|
36
36
|
".Popover-message--large",
|
|
37
|
-
".Popover-message
|
|
37
|
+
".Popover-message > .btn-octicon"
|
|
38
38
|
]
|
|
39
39
|
}
|