@primer/css 0.0.0-202110127549 → 0.0.0-2021101303439
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/CHANGELOG.md +14 -4
- package/deprecations.json +4 -0
- package/dist/actionlist.css.map +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/deprecations.json +4 -0
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +82 -82
- package/dist/navigation.css.map +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +3 -3
- package/dist/primer.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/color-modes.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/layout.json +1 -1
- package/dist/stats/marketing-buttons.json +1 -1
- package/dist/stats/marketing.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css.map +1 -1
- package/layout/index.scss +0 -1
- package/marketing/buttons/button.scss +86 -50
- package/marketing/support/index.scss +0 -1
- package/package.json +5 -5
- package/support/variables/layout.scss +3 -2
- package/layout/layout-beta.scss +0 -389
- package/marketing/support/mixins.scss +0 -66
package/layout/layout-beta.scss
DELETED
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
// Component className
|
|
2
|
-
|
|
3
|
-
$Layout: "LayoutBeta";
|
|
4
|
-
$Layout-divider-color: red; // var(--color-border-default)
|
|
5
|
-
|
|
6
|
-
// Property modifier names
|
|
7
|
-
|
|
8
|
-
$Layout-prop-wrapper-sizing: "wrapper-sizing"; // size?
|
|
9
|
-
|
|
10
|
-
$Layout-prop-outer-spacing: "outer-spacing"; // outer-m?
|
|
11
|
-
$Layout-prop-inner-spacing: "inner-spacing"; // inner-p?
|
|
12
|
-
$Layout-prop-column-gap: "column-gap";
|
|
13
|
-
$Layout-prop-row-gap: "row-gap";
|
|
14
|
-
|
|
15
|
-
$Layout-prop-pane-divider: "pane-divider";
|
|
16
|
-
$Layout-prop-header-divider: "header-divider";
|
|
17
|
-
$Layout-prop-footer-divider: "footer-divider";
|
|
18
|
-
|
|
19
|
-
$Layout-prop-pane-position: "pane-position"; // pane-pos?
|
|
20
|
-
$Layout-prop-pane-width: "pane-width"; // pane-w?
|
|
21
|
-
$Layout-prop-pane-is-sticky: "pane-is-sticky"; // pane-sticky?
|
|
22
|
-
$Layout-prop-content-width: "content-width"; // content-w?
|
|
23
|
-
|
|
24
|
-
$Layout-prop-flow-horizontal: "flow-horizontal"; // flow-h?
|
|
25
|
-
$Layout-prop-responsive-behavior: "responsive-behavior"; // r?
|
|
26
|
-
$Layout-prop-responsive-at: "responsive-at"; // r-at?
|
|
27
|
-
|
|
28
|
-
$Layout-prop-has-header: "has-header";
|
|
29
|
-
$Layout-prop-has-footer: "has-footer";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.#{$Layout} {
|
|
33
|
-
--Layout-pane-width: #{map-get($sidebar-width, 'sm')};
|
|
34
|
-
--Layout-content-width: 100%;
|
|
35
|
-
|
|
36
|
-
--Layout-template-columns: 1fr var(--Layout-pane-width);
|
|
37
|
-
--Layout-template-rows: 1fr;
|
|
38
|
-
--Layout-template-areas: "content pane";
|
|
39
|
-
|
|
40
|
-
--Layout-column-gap: #{$spacer-3};
|
|
41
|
-
--Layout-row-gap: #{$spacer-3};
|
|
42
|
-
|
|
43
|
-
--Layout-outer-spacing-x: 0; // wrapper margin x
|
|
44
|
-
--Layout-outer-spacing-y: 0; // wrapper margin y
|
|
45
|
-
|
|
46
|
-
--Layout-inner-spacing-min: 0; // default region padding
|
|
47
|
-
--Layout-inner-spacing-max: 0; // relaxed content horizontal padding
|
|
48
|
-
|
|
49
|
-
// `flow-horizontal` determines whether `Layout` can render desktop-friendly
|
|
50
|
-
// two-column layouts. It should appear by default for compatibility
|
|
51
|
-
// with desktop browsers that have JavaScript disabled.
|
|
52
|
-
|
|
53
|
-
// Use `responsive-behaviorAt` to determine in which breakpoint `Layout` will
|
|
54
|
-
// stop flowing horizontally. In these cases `flow-horizontal` class will be
|
|
55
|
-
// removed.
|
|
56
|
-
|
|
57
|
-
// The reason this is not a media query is because it's still not possible to
|
|
58
|
-
// use CSS variables to determine the breakpoint dinamically. (And the other
|
|
59
|
-
// option would be to duplicate too much code.)
|
|
60
|
-
|
|
61
|
-
&.#{$Layout}--#{$Layout-prop-flow-horizontal} {
|
|
62
|
-
|
|
63
|
-
margin: var(--Layout-outer-spacing-x);
|
|
64
|
-
|
|
65
|
-
> .#{$Layout}-regions {
|
|
66
|
-
display: grid;
|
|
67
|
-
column-gap: var(--Layout-column-gap);
|
|
68
|
-
row-gap: var(--Layout-row-gap);
|
|
69
|
-
grid-template-columns: var(--Layout-template-columns);
|
|
70
|
-
grid-template-rows: var(--Layout-template-rows);
|
|
71
|
-
grid-template-areas: var(--Layout-template-areas);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// pane-position
|
|
75
|
-
|
|
76
|
-
&.#{$Layout}--#{$Layout-prop-pane-position}-start {
|
|
77
|
-
--Layout-template-columns: var(--Layout-pane-width) 1fr;
|
|
78
|
-
--Layout-template-areas: "pane content";
|
|
79
|
-
|
|
80
|
-
&.#{$Layout}--#{$Layout-prop-has-header} {
|
|
81
|
-
--Layout-template-areas: "header header"
|
|
82
|
-
"pane content";
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.#{$Layout}--#{$Layout-prop-has-footer} {
|
|
86
|
-
--Layout-template-areas: "pane content"
|
|
87
|
-
"footer footer";
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.#{$Layout}--#{$Layout-prop-has-header}.#{$Layout}--#{$Layout-prop-has-footer} {
|
|
91
|
-
--Layout-template-areas: "header header"
|
|
92
|
-
"pane content"
|
|
93
|
-
"footer footer";
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.#{$Layout}--#{$Layout-prop-pane-position}-end {
|
|
98
|
-
--Layout-template-columns: 1fr var(--Layout-pane-width);
|
|
99
|
-
--Layout-template-areas: "content pane";
|
|
100
|
-
|
|
101
|
-
&.#{$Layout}--#{$Layout-prop-has-header} {
|
|
102
|
-
--Layout-template-areas: "header header"
|
|
103
|
-
"content pane";
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&.#{$Layout}--#{$Layout-prop-has-footer} {
|
|
107
|
-
--Layout-template-areas: "content pane"
|
|
108
|
-
"footer footer";
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.#{$Layout}--#{$Layout-prop-has-header}.#{$Layout}--#{$Layout-prop-has-footer} {
|
|
112
|
-
--Layout-template-areas: "header header"
|
|
113
|
-
"content pane"
|
|
114
|
-
"footer footer";
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Template rows heights
|
|
119
|
-
|
|
120
|
-
&.#{$Layout}--#{$Layout-prop-has-header} {
|
|
121
|
-
--Layout-template-rows: min-content 1fr;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.#{$Layout}--#{$Layout-prop-has-footer} {
|
|
125
|
-
--Layout-template-rows: 1fr min-content;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&.#{$Layout}--#{$Layout-prop-has-header}.#{$Layout}--#{$Layout-prop-has-footer} {
|
|
129
|
-
--Layout-template-rows: min-content 1fr min-content;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Outer spacing
|
|
133
|
-
|
|
134
|
-
&.#{$Layout}--#{$Layout-prop-outer-spacing}-normal {
|
|
135
|
-
--Layout-outer-spacing-x: #{$spacer-3}; // 16px
|
|
136
|
-
--Layout-outer-spacing-y: #{$spacer-3}; // 16px
|
|
137
|
-
|
|
138
|
-
@include breakpoint(lg) {
|
|
139
|
-
--Layout-outer-spacing-x: #{$spacer-4}; // 24px
|
|
140
|
-
--Layout-outer-spacing-y: #{$spacer-4}; // 24px
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&.#{$Layout}--#{$Layout-prop-outer-spacing}-condensed {
|
|
145
|
-
--Layout-outer-spacing-x: #{$spacer-3}; // 16px
|
|
146
|
-
--Layout-outer-spacing-y: #{$spacer-3}; // 16px
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// Inner spacing
|
|
150
|
-
|
|
151
|
-
&.#{$Layout}--#{$Layout-prop-inner-spacing}-normal {
|
|
152
|
-
--Layout-inner-spacing-min: #{$spacer-3}; // 16px
|
|
153
|
-
--Layout-inner-spacing-max: #{$spacer-3}; // 16px
|
|
154
|
-
|
|
155
|
-
@include breakpoint(lg) {
|
|
156
|
-
--Layout-inner-spacing-max: #{$spacer-4}; // 24px
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&.#{$Layout}--#{$Layout-prop-inner-spacing}-condensed {
|
|
161
|
-
--Layout-inner-spacing-min: #{$spacer-3}; // 16px
|
|
162
|
-
--Layout-inner-spacing-max: #{$spacer-3}; // 16px
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// Pane divider
|
|
166
|
-
|
|
167
|
-
&.#{$Layout}--#{$Layout-prop-pane-divider} {
|
|
168
|
-
&.#{$Layout}--#{$Layout-prop-pane-position}-start {
|
|
169
|
-
.#{$Layout}-pane {
|
|
170
|
-
border-right: 1px solid $Layout-divider-color;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&:not(.#{$Layout}--#{$Layout-prop-column-gap}-none) {
|
|
174
|
-
.#{$Layout}-pane {
|
|
175
|
-
margin-right: calc(var(--Layout-column-gap) * -1);
|
|
176
|
-
padding-right: calc(var(--Layout-column-gap) - 1px);
|
|
177
|
-
}
|
|
178
|
-
.#{$Layout}-content {
|
|
179
|
-
margin-left: var(--Layout-column-gap);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&.#{$Layout}--#{$Layout-prop-pane-position}-end {
|
|
185
|
-
.#{$Layout}-pane {
|
|
186
|
-
border-left: 1px solid $Layout-divider-color;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&:not(.#{$Layout}--#{$Layout-prop-column-gap}-none) {
|
|
190
|
-
.#{$Layout}-pane {
|
|
191
|
-
margin-left: calc(var(--Layout-column-gap) * -1);
|
|
192
|
-
padding-left: calc(var(--Layout-column-gap) - 1px);
|
|
193
|
-
}
|
|
194
|
-
.#{$Layout}-content {
|
|
195
|
-
margin-right: var(--Layout-column-gap);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Header divider
|
|
202
|
-
|
|
203
|
-
&.#{$Layout}--#{$Layout-prop-header-divider} {
|
|
204
|
-
.#{$Layout}-header {
|
|
205
|
-
border-bottom: 1px solid $Layout-divider-color;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// Footer divider
|
|
210
|
-
|
|
211
|
-
&.#{$Layout}--#{$Layout-prop-footer-divider} {
|
|
212
|
-
.#{$Layout}-footer {
|
|
213
|
-
border-top: 1px solid $Layout-divider-color;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// Column gap
|
|
218
|
-
|
|
219
|
-
&.#{$Layout}--#{$Layout-prop-column-gap}-normal {
|
|
220
|
-
--Layout-column-gap: #{$spacer-3}; // 16px
|
|
221
|
-
|
|
222
|
-
@include breakpoint(lg) {
|
|
223
|
-
--Layout-column-gap: #{$spacer-4}; // 24px
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&.#{$Layout}--#{$Layout-prop-column-gap}-condensed {
|
|
228
|
-
--Layout-column-gap: #{$spacer-3}; // 16px
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
&.#{$Layout}--#{$Layout-prop-column-gap}-none {
|
|
232
|
-
// A `px` unit is needed in here to define it as a length type
|
|
233
|
-
// See https://stackoverflow.com/a/32518348
|
|
234
|
-
--Layout-column-gap: 0px;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// Row gap
|
|
238
|
-
|
|
239
|
-
&.#{$Layout}--#{$Layout-prop-row-gap}-normal {
|
|
240
|
-
--Layout-row-gap: #{$spacer-3}; // 16px
|
|
241
|
-
|
|
242
|
-
@include breakpoint(lg) {
|
|
243
|
-
--Layout-row-gap: #{$spacer-4}; // 24px
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
&.#{$Layout}--#{$Layout-prop-row-gap}-none {
|
|
248
|
-
// A `px` unit is needed in here to define it as a length type
|
|
249
|
-
// See https://stackoverflow.com/a/32518348
|
|
250
|
-
--Layout-row-gap: 0px;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&.#{$Layout}--#{$Layout-prop-row-gap}-condensed {
|
|
254
|
-
--Layout-row-gap: #{$spacer-3}; // 16px
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
// Content width
|
|
258
|
-
|
|
259
|
-
[class^="#{$Layout}-content-centered-"] {
|
|
260
|
-
margin-left: auto;
|
|
261
|
-
margin-right: auto;
|
|
262
|
-
max-width: calc(var(--Layout-content-width) + var(--Layout-pane-width) + var(--Layout-column-gap));
|
|
263
|
-
|
|
264
|
-
> [class^="container-"] {
|
|
265
|
-
margin-left: 0;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
&.#{$Layout}--#{$Layout-prop-pane-divider} {
|
|
270
|
-
[class^="#{$Layout}-content-centered-"] {
|
|
271
|
-
max-width: calc(var(--Layout-content-width) + var(--Layout-pane-width) + (var(--Layout-column-gap) * 2));
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.#{$Layout}-content-centered-sm {
|
|
276
|
-
--Layout-content-width: #{$container-sm};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.#{$Layout}-content-centered-md {
|
|
280
|
-
--Layout-content-width: #{$container-md};
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.#{$Layout}-content-centered-lg {
|
|
284
|
-
--Layout-content-width: #{$container-lg};
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.#{$Layout}-content-centered-xl {
|
|
288
|
-
--Layout-content-width: #{$container-xl};
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// Sticky pane
|
|
292
|
-
// FIXME - this is currently broken if footer is present
|
|
293
|
-
|
|
294
|
-
&.#{$Layout}--#{$Layout-prop-pane-is-sticky} {
|
|
295
|
-
.#{$Layout}-pane {
|
|
296
|
-
position: sticky;
|
|
297
|
-
max-height: 100vh;
|
|
298
|
-
overflow: auto;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// pane-width
|
|
305
|
-
|
|
306
|
-
@each $breakpoint in map-keys($sidebar-width) {
|
|
307
|
-
@include breakpoint($breakpoint) {
|
|
308
|
-
--Layout-pane-width: #{map-get($sidebar-width, $breakpoint)};
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
&.#{$Layout}--#{$Layout-prop-pane-width}-narrow {
|
|
313
|
-
@each $breakpoint in map-keys($sidebar-narrow-width) {
|
|
314
|
-
@include breakpoint($breakpoint) {
|
|
315
|
-
--Layout-pane-width: #{map-get($sidebar-narrow-width, $breakpoint)};
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
&.#{$Layout}--#{$Layout-prop-pane-width}-wide {
|
|
321
|
-
@each $breakpoint in map-keys($sidebar-wide-width) {
|
|
322
|
-
@include breakpoint($breakpoint) {
|
|
323
|
-
--Layout-pane-width: #{map-get($sidebar-wide-width, $breakpoint)};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// responsive-behavior
|
|
329
|
-
|
|
330
|
-
&.#{$Layout}--#{$Layout-prop-responsive-behavior}-flowVertical:not(.#{$Layout}--#{$Layout-prop-flow-horizontal}) {
|
|
331
|
-
> .#{$Layout}-regions {
|
|
332
|
-
display: grid;
|
|
333
|
-
grid-template-columns: 1fr;
|
|
334
|
-
grid-template-areas: var(--Layout-template-areas);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/*
|
|
339
|
-
&.#{$Layout}--#{$Layout-prop-responsive-behavior}-flowVertical:not(.#{$Layout}--#{$Layout-prop-flow-horizontal}) {
|
|
340
|
-
// flow vertically on mobile
|
|
341
|
-
|
|
342
|
-
> .#{$Layout}-regions {
|
|
343
|
-
row-gap: var(--Layout-row-gap);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.#{$Layout}-header, .#{$Layout}-content, .#{$Layout}-pane, .#{$Layout}-footer {
|
|
347
|
-
margin-bottom: var(--Layout-row-gap);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
&.#{$Layout}--#{$Layout-prop-responsive-behavior}-splitAsPages:not(.#{$Layout}--#{$Layout-prop-flow-horizontal}) {
|
|
352
|
-
// split as pages on mobile
|
|
353
|
-
//background: yellow;
|
|
354
|
-
}
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
|
-
// Regions
|
|
358
|
-
|
|
359
|
-
.#{$Layout}-header, .#{$Layout}-content, .#{$Layout}-pane, .#{$Layout}-footer {
|
|
360
|
-
padding: var(--Layout-inner-spacing-min);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.#{$Layout}-header {
|
|
364
|
-
grid-area: header;
|
|
365
|
-
background: lightpink;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.#{$Layout}-content {
|
|
369
|
-
padding-left: var(--Layout-inner-spacing-max);
|
|
370
|
-
padding-right: var(--Layout-inner-spacing-max);
|
|
371
|
-
grid-area: content;
|
|
372
|
-
background: rgb(255, 197, 253);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.#{$Layout}-pane {
|
|
376
|
-
grid-area: pane;
|
|
377
|
-
background: rgb(215, 255, 233);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
.#{$Layout}-footer {
|
|
381
|
-
grid-area: footer;
|
|
382
|
-
background: lightyellow;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
// content-width
|
|
388
|
-
// FIXME
|
|
389
|
-
// content-centered
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
@mixin btn-solid-mktg($color, $bg, $bg2, $bg3, $bg4) {
|
|
2
|
-
color: $color;
|
|
3
|
-
background-color: $bg2;
|
|
4
|
-
background-image: linear-gradient(-180deg, $bg 0%, $bg2 100%);
|
|
5
|
-
|
|
6
|
-
&::before {
|
|
7
|
-
background-image: linear-gradient(-180deg, $bg3 0%, $bg4 100%);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&:hover,
|
|
11
|
-
&.hover,
|
|
12
|
-
&:active,
|
|
13
|
-
&.selected,
|
|
14
|
-
&[aria-selected=true],
|
|
15
|
-
[open] > & {
|
|
16
|
-
background-color: $bg2;
|
|
17
|
-
background-image: linear-gradient(-180deg, $bg 0%, $bg2 100%);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:focus,
|
|
21
|
-
&.focus {
|
|
22
|
-
outline: 0;
|
|
23
|
-
box-shadow: 0 0 0 0.2em rgba($bg2, 0.4);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:disabled,
|
|
27
|
-
&.disabled,
|
|
28
|
-
&[aria-disabled=true] {
|
|
29
|
-
pointer-events: none;
|
|
30
|
-
cursor: default;
|
|
31
|
-
opacity: 0.5;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin btn-outline-mktg($color, $color2, $border, $borderHover, $borderFocus, $borderFocusInset) {
|
|
36
|
-
color: $color;
|
|
37
|
-
background: none;
|
|
38
|
-
box-shadow: 0 0 0 1px $border inset;
|
|
39
|
-
|
|
40
|
-
&::before {
|
|
41
|
-
display: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:hover,
|
|
45
|
-
&.hover,
|
|
46
|
-
&:active,
|
|
47
|
-
&.selected,
|
|
48
|
-
&[aria-selected=true],
|
|
49
|
-
[open] > & {
|
|
50
|
-
color: $color2;
|
|
51
|
-
background: none;
|
|
52
|
-
box-shadow: 0 0 0 2px $borderHover inset;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&:focus,
|
|
56
|
-
&.focus {
|
|
57
|
-
outline: 0;
|
|
58
|
-
box-shadow: 0 0 0 2px $borderFocus inset, 0 0 0 4px $borderFocusInset;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:disabled,
|
|
62
|
-
&.disabled,
|
|
63
|
-
&[aria-disabled=true] {
|
|
64
|
-
opacity: 0.5;
|
|
65
|
-
}
|
|
66
|
-
}
|