@primer/view-components 0.3.0-rc.d9da539f → 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,204 @@
|
|
|
1
|
-
.btn-mktg
|
|
1
|
+
.btn-mktg {
|
|
2
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 15%) 0%, rgba(255, 255, 255, 0%) 100%),
|
|
3
|
+
var(--color-mktg-btn-bg) !important;
|
|
4
|
+
-webkit-appearance: none !important;
|
|
5
|
+
appearance: none !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.btn-mktg {
|
|
9
|
+
position: relative;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
|
|
13
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
14
|
+
padding: 0.9rem 1.5rem 1.1rem;
|
|
15
|
+
|
|
16
|
+
/* stylelint-disable-next-line primer/typography */
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
font-weight: var(--base-text-weight-semibold,600);
|
|
19
|
+
line-height: 1;
|
|
20
|
+
color: var(--bgColor-default,var(--color-canvas-default));
|
|
21
|
+
text-align: center;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
-webkit-user-select: none;
|
|
25
|
+
user-select: none;
|
|
26
|
+
border: 0;
|
|
27
|
+
|
|
28
|
+
/* stylelint-disable-next-line primer/borders */
|
|
29
|
+
border-radius: 0.375rem;
|
|
30
|
+
transition: box-shadow 0.2s, outline 0.2s ease;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.btn-mktg::before {
|
|
34
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 15%) 0%, rgba(255, 255, 255, 0%) 100%) !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.btn-mktg::before {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
z-index: -1;
|
|
44
|
+
content: '';
|
|
45
|
+
|
|
46
|
+
/* stylelint-disable-next-line primer/colors */
|
|
47
|
+
border-radius: inherit;
|
|
48
|
+
opacity: 0;
|
|
49
|
+
transition: opacity 0.2s;
|
|
50
|
+
background-blend-mode: normal;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.btn-mktg:hover {
|
|
54
|
+
box-shadow: var(--color-mktg-btn-shadow-hover) !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.btn-mktg:hover {
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.btn-mktg:hover::before, .btn-mktg:focus::before, .btn-mktg:focus-visible::before, .btn-mktg.focus::before {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* fallback :focus state */
|
|
66
|
+
|
|
67
|
+
.btn-mktg:focus {
|
|
68
|
+
outline: 2px solid var(--focus-outlineColor,var(--color-accent-fg));
|
|
69
|
+
outline-offset: 2px;
|
|
70
|
+
box-shadow: none;
|
|
71
|
+
|
|
72
|
+
/* remove fallback :focus if :focus-visible is supported */
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.btn-mktg:focus:not(:focus-visible) {
|
|
76
|
+
outline: solid 1px transparent;
|
|
77
|
+
box-shadow: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* default focus state */
|
|
81
|
+
|
|
82
|
+
.btn-mktg:focus-visible {
|
|
83
|
+
outline: 2px solid var(--focus-outlineColor,var(--color-accent-fg));
|
|
84
|
+
outline-offset: 2px;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.btn-mktg:active::before {
|
|
89
|
+
opacity: 0.5 !important;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.btn-mktg.disabled,
|
|
93
|
+
.btn-mktg[disabled] {
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
cursor: default;
|
|
96
|
+
opacity: 0.5;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.btn-muted-mktg {
|
|
100
|
+
color: var(--fgColor-default,var(--color-fg-default)) !important;
|
|
101
|
+
background: none !important;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.btn-muted-mktg {
|
|
105
|
+
box-shadow: var(--color-mktg-btn-shadow-outline);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.btn-muted-mktg::before {
|
|
109
|
+
display: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.btn-muted-mktg:hover {
|
|
113
|
+
box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.btn-muted-mktg:active {
|
|
117
|
+
box-shadow: var(--fgColor-default,var(--color-fg-default)) 0 0 0 3px inset !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.btn-muted-mktg:active {
|
|
121
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.btn-muted-mktg:disabled {
|
|
125
|
+
box-shadow: var(--fgColor-default,var(--color-fg-default)) 0 0 0 1px inset !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.btn-muted-mktg:disabled {
|
|
129
|
+
/* stylelint-disable-next-line primer/box-shadow */
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.btn-subtle-mktg {
|
|
133
|
+
color: var(--fgColor-default,var(--color-fg-default)) !important;
|
|
134
|
+
background: none !important;
|
|
135
|
+
box-shadow: none !important;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.btn-subtle-mktg::before {
|
|
139
|
+
background: none !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.btn-subtle-mktg:hover {
|
|
143
|
+
box-shadow: var(--color-mktg-btn-shadow-hover-muted) !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.btn-signup-mktg {
|
|
147
|
+
background: linear-gradient(180deg, rgba(52, 183, 89, 15%) 0%, rgba(46, 164, 79, 0%) 100%), rgb(46, 164, 79) !important;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.btn-signup-mktg {
|
|
151
|
+
/* stylelint-disable-next-line primer/colors */
|
|
152
|
+
color: #fff;
|
|
153
|
+
|
|
154
|
+
/* stylelint-disable-next-line primer/colors */
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.btn-signup-mktg::before {
|
|
158
|
+
background: linear-gradient(180deg, rgba(52, 183, 89, 15%) 0%, rgba(46, 164, 79, 0%) 100%) !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.btn-signup-mktg::before {
|
|
162
|
+
/* stylelint-disable-next-line primer/colors */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* fallback :focus state */
|
|
166
|
+
|
|
167
|
+
.btn-signup-mktg:focus {
|
|
168
|
+
outline: 2px solid var(--focus-outlineColor,var(--color-accent-fg));
|
|
169
|
+
outline-offset: 2px;
|
|
170
|
+
box-shadow: none;
|
|
171
|
+
|
|
172
|
+
/* remove fallback :focus if :focus-visible is supported */
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.btn-signup-mktg:focus:not(:focus-visible) {
|
|
176
|
+
outline: solid 1px transparent;
|
|
177
|
+
box-shadow: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* default focus state */
|
|
181
|
+
|
|
182
|
+
.btn-signup-mktg:focus-visible {
|
|
183
|
+
outline: 2px solid var(--focus-outlineColor,var(--color-accent-fg));
|
|
184
|
+
outline-offset: 2px;
|
|
185
|
+
box-shadow: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Size modifiers */
|
|
189
|
+
|
|
190
|
+
.btn-small-mktg {
|
|
191
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
192
|
+
padding: 0.625rem 1rem 0.8125rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.btn-large-mktg {
|
|
196
|
+
padding: 16px 30px 20px !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.btn-large-mktg {
|
|
200
|
+
/* stylelint-disable-next-line primer/spacing */
|
|
201
|
+
|
|
202
|
+
/* stylelint-disable-next-line primer/typography */
|
|
203
|
+
font-size: 1.25rem;
|
|
204
|
+
}
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
"name": "alpha/button_marketing",
|
|
3
3
|
"selectors": [
|
|
4
4
|
".btn-mktg",
|
|
5
|
-
".btn-mktg
|
|
5
|
+
".btn-mktg::before",
|
|
6
6
|
".btn-mktg:hover",
|
|
7
|
-
".btn-mktg
|
|
8
|
-
".btn-mktg:focus
|
|
9
|
-
".btn-mktg:focus
|
|
10
|
-
".btn-mktg
|
|
7
|
+
".btn-mktg:hover::before",
|
|
8
|
+
".btn-mktg:focus::before",
|
|
9
|
+
".btn-mktg:focus-visible::before",
|
|
10
|
+
".btn-mktg.focus::before",
|
|
11
11
|
".btn-mktg:focus",
|
|
12
12
|
".btn-mktg:focus:not(:focus-visible)",
|
|
13
13
|
".btn-mktg:focus-visible",
|
|
14
|
-
".btn-mktg:active
|
|
14
|
+
".btn-mktg:active::before",
|
|
15
15
|
".btn-mktg.disabled",
|
|
16
16
|
".btn-mktg[disabled]",
|
|
17
17
|
".btn-muted-mktg",
|
|
18
|
-
".btn-muted-mktg
|
|
18
|
+
".btn-muted-mktg::before",
|
|
19
19
|
".btn-muted-mktg:hover",
|
|
20
20
|
".btn-muted-mktg:active",
|
|
21
21
|
".btn-muted-mktg:disabled",
|
|
22
22
|
".btn-subtle-mktg",
|
|
23
|
-
".btn-subtle-mktg
|
|
23
|
+
".btn-subtle-mktg::before",
|
|
24
24
|
".btn-subtle-mktg:hover",
|
|
25
25
|
".btn-signup-mktg",
|
|
26
|
-
".btn-signup-mktg
|
|
26
|
+
".btn-signup-mktg::before",
|
|
27
27
|
".btn-signup-mktg:focus",
|
|
28
28
|
".btn-signup-mktg:focus:not(:focus-visible)",
|
|
29
29
|
".btn-signup-mktg:focus-visible",
|