@apolitical/component-library 8.11.2 → 8.11.3-lrn-102
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/index.js +1 -1
- package/index.mjs +13 -3
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_accessibility.scss +34 -32
- package/styles/base/_blockquotes.scss +50 -48
- package/styles/base/_fonts.scss +9 -7
- package/styles/base/_hr.scss +9 -7
- package/styles/base/_layout.scss +24 -22
- package/styles/base/_links.scss +18 -14
- package/styles/base/_lists.scss +40 -38
- package/styles/base/_mentions.scss +11 -9
- package/styles/base/_overlays.scss +51 -49
- package/styles/base/_svg.scss +4 -2
- package/styles/base/_table.scss +58 -56
- package/styles/base/_text.scss +110 -108
- package/styles/base/_titles.scss +44 -42
- package/styles/base/buttons/_button-wrapper.scss +27 -25
- package/styles/base/buttons/_buttons.scss +316 -314
- package/styles/base/form/_checkbox.scss +33 -31
- package/styles/base/form/_fields.scss +57 -55
- package/styles/base/form/_form.scss +18 -16
- package/styles/base/form/_labels.scss +8 -6
- package/styles/base/form/_radio.scss +20 -18
- package/styles/base/form/_search-button.scss +21 -19
- package/styles/reset/_reset.scss +117 -121
- package/styles/uclasses/uclasses.scss +1452 -1450
|
@@ -3,432 +3,434 @@
|
|
|
3
3
|
@import './icons', './mixins';
|
|
4
4
|
|
|
5
5
|
@layer base {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
px-to-rem(get-map($button-medium, 'padding-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&,
|
|
26
|
-
&:hover,
|
|
27
|
-
&:active,
|
|
28
|
-
&:focus,
|
|
29
|
-
&:focus-visible {
|
|
30
|
-
color: get-map($theme, 'button_primary');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:hover {
|
|
34
|
-
background: get-map($theme, 'button_primary_bg_hover');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:active,
|
|
38
|
-
&.active {
|
|
39
|
-
background: get-map($theme, 'button_primary_bg_active');
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:focus,
|
|
43
|
-
&:focus-visible {
|
|
44
|
-
background: get-map($theme, 'button_primary_bg_focus');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// TODO: remove when we have new styling
|
|
48
|
-
&.new {
|
|
49
|
-
background: get-map($theme, 'button_new_primary_bg');
|
|
50
|
-
padding: px-to-rem(get-map($button-medium, 'padding-top_new'))
|
|
51
|
-
px-to-rem(get-map($button-medium, 'padding-horizontal_new'))
|
|
52
|
-
px-to-rem(get-map($button-medium, 'padding-bottom_new'));
|
|
53
|
-
color: get-map($theme, 'button_primary');
|
|
54
|
-
|
|
55
|
-
&:hover,
|
|
56
|
-
&:focus,
|
|
57
|
-
&:focus-visible,
|
|
58
|
-
&:active {
|
|
59
|
-
background: get-map($theme, 'button_new_primary_bg_hover');
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@each $size, $styles in $sizes {
|
|
64
|
-
&.#{$size} {
|
|
65
|
-
padding: px-to-rem(get-map($styles, 'padding-top'))
|
|
66
|
-
px-to-rem(get-map($styles, 'padding-horizontal'))
|
|
67
|
-
px-to-rem(get-map($styles, 'padding-bottom'));
|
|
68
|
-
font-size: px-to-rem(get-map($styles, 'font-size'));
|
|
69
|
-
|
|
70
|
-
// TODO: remove `new` styling when we switch to new styling everywhere
|
|
71
|
-
&.new {
|
|
72
|
-
padding: px-to-rem(get-map($styles, 'padding-top_new'))
|
|
73
|
-
px-to-rem(get-map($styles, 'padding-horizontal_new'))
|
|
74
|
-
px-to-rem(get-map($styles, 'padding-bottom_new'));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&.icon {
|
|
78
|
-
margin-top: px-to-rem(get-map($styles, 'icon-offset'));
|
|
79
|
-
|
|
80
|
-
&.left::before {
|
|
81
|
-
margin-right: px-to-rem(get-map($styles, 'icon-gutter'));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.right::before {
|
|
85
|
-
margin-left: px-to-rem(get-map($styles, 'icon-gutter'));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&.full-width {
|
|
92
|
-
width: 100%;
|
|
93
|
-
}
|
|
6
|
+
.v1styles {
|
|
7
|
+
button,
|
|
8
|
+
.button {
|
|
9
|
+
@include transition(background color border-color text-decoration-color);
|
|
10
|
+
|
|
11
|
+
background: get-map($theme, 'button_primary_bg');
|
|
12
|
+
padding: px-to-rem(get-map($button-medium, 'padding-top'))
|
|
13
|
+
px-to-rem(get-map($button-medium, 'padding-horizontal'))
|
|
14
|
+
px-to-rem(get-map($button-medium, 'padding-bottom'));
|
|
15
|
+
position: relative;
|
|
16
|
+
text-align: center;
|
|
17
|
+
font-size: px-to-rem(get-map($button-medium, 'font-size'));
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
border-radius: 360rem; // Completely round corners. This could be any large number but 360 evokes a circle well!
|
|
21
|
+
border: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
display: inline-block;
|
|
94
25
|
|
|
95
|
-
&.destructive {
|
|
96
26
|
&,
|
|
97
27
|
&:hover,
|
|
98
28
|
&:active,
|
|
99
29
|
&:focus,
|
|
100
30
|
&:focus-visible {
|
|
101
|
-
|
|
102
|
-
color: get-map($theme, 'button_primary_destructive');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&:hover,
|
|
106
|
-
&:active {
|
|
107
|
-
background: get-map($theme, 'button_primary_destructive_bg_hover');
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:focus,
|
|
111
|
-
&:focus-visible {
|
|
112
|
-
box-shadow: $outline get-map($theme, 'button_primary_destructive_box-shadow');
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.secondary {
|
|
117
|
-
background: get-map($theme, 'button_secondary_bg');
|
|
118
|
-
border: px-to-rem(get-map($secondary, 'border')) solid
|
|
119
|
-
get-map($theme, 'button_secondary_border');
|
|
120
|
-
|
|
121
|
-
&,
|
|
122
|
-
&:hover {
|
|
123
|
-
color: get-map($theme, 'button_secondary');
|
|
31
|
+
color: get-map($theme, 'button_primary');
|
|
124
32
|
}
|
|
125
33
|
|
|
126
34
|
&:hover {
|
|
127
|
-
background: get-map($theme, '
|
|
35
|
+
background: get-map($theme, 'button_primary_bg_hover');
|
|
128
36
|
}
|
|
129
37
|
|
|
130
38
|
&:active,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
color: get-map($theme, 'button_secondary_focus');
|
|
134
|
-
border-color: get-map($theme, 'button_secondary_border_focus');
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&:active {
|
|
138
|
-
background: get-map($theme, 'button_secondary_bg_active');
|
|
39
|
+
&.active {
|
|
40
|
+
background: get-map($theme, 'button_primary_bg_active');
|
|
139
41
|
}
|
|
140
42
|
|
|
141
43
|
&:focus,
|
|
142
44
|
&:focus-visible {
|
|
143
|
-
background: get-map($theme, '
|
|
45
|
+
background: get-map($theme, 'button_primary_bg_focus');
|
|
144
46
|
}
|
|
145
47
|
|
|
146
|
-
|
|
147
|
-
|
|
48
|
+
// TODO: remove when we have new styling
|
|
49
|
+
&.new {
|
|
50
|
+
background: get-map($theme, 'button_new_primary_bg');
|
|
51
|
+
padding: px-to-rem(get-map($button-medium, 'padding-top_new'))
|
|
52
|
+
px-to-rem(get-map($button-medium, 'padding-horizontal_new'))
|
|
53
|
+
px-to-rem(get-map($button-medium, 'padding-bottom_new'));
|
|
54
|
+
color: get-map($theme, 'button_primary');
|
|
148
55
|
|
|
149
|
-
|
|
56
|
+
&:hover,
|
|
57
|
+
&:focus,
|
|
58
|
+
&:focus-visible,
|
|
150
59
|
&:active {
|
|
151
|
-
background: get-map($theme, '
|
|
152
|
-
color: get-map($theme, 'button_secondary_muted');
|
|
60
|
+
background: get-map($theme, 'button_new_primary_bg_hover');
|
|
153
61
|
}
|
|
62
|
+
}
|
|
154
63
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
64
|
+
@each $size, $styles in $sizes {
|
|
65
|
+
&.#{$size} {
|
|
66
|
+
padding: px-to-rem(get-map($styles, 'padding-top'))
|
|
67
|
+
px-to-rem(get-map($styles, 'padding-horizontal'))
|
|
68
|
+
px-to-rem(get-map($styles, 'padding-bottom'));
|
|
69
|
+
font-size: px-to-rem(get-map($styles, 'font-size'));
|
|
70
|
+
|
|
71
|
+
// TODO: remove `new` styling when we switch to new styling everywhere
|
|
72
|
+
&.new {
|
|
73
|
+
padding: px-to-rem(get-map($styles, 'padding-top_new'))
|
|
74
|
+
px-to-rem(get-map($styles, 'padding-horizontal_new'))
|
|
75
|
+
px-to-rem(get-map($styles, 'padding-bottom_new'));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.icon {
|
|
79
|
+
margin-top: px-to-rem(get-map($styles, 'icon-offset'));
|
|
80
|
+
|
|
81
|
+
&.left::before {
|
|
82
|
+
margin-right: px-to-rem(get-map($styles, 'icon-gutter'));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.right::before {
|
|
86
|
+
margin-left: px-to-rem(get-map($styles, 'icon-gutter'));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
161
89
|
}
|
|
162
90
|
}
|
|
163
91
|
|
|
92
|
+
&.full-width {
|
|
93
|
+
width: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
164
96
|
&.destructive {
|
|
165
97
|
&,
|
|
166
98
|
&:hover,
|
|
167
99
|
&:active,
|
|
168
100
|
&:focus,
|
|
169
101
|
&:focus-visible {
|
|
170
|
-
background: get-map($theme, '
|
|
171
|
-
color: get-map($theme, '
|
|
172
|
-
border-color: get-map($theme, 'button_secondary_border_destructive');
|
|
102
|
+
background: get-map($theme, 'button_primary_destructive_bg');
|
|
103
|
+
color: get-map($theme, 'button_primary_destructive');
|
|
173
104
|
}
|
|
174
|
-
}
|
|
175
105
|
|
|
176
|
-
&.disabled {
|
|
177
|
-
&,
|
|
178
106
|
&:hover,
|
|
179
|
-
&:active
|
|
107
|
+
&:active {
|
|
108
|
+
background: get-map($theme, 'button_primary_destructive_bg_hover');
|
|
109
|
+
}
|
|
110
|
+
|
|
180
111
|
&:focus,
|
|
181
112
|
&:focus-visible {
|
|
182
|
-
|
|
183
|
-
color: get-map($theme, 'button_secondary_disabled');
|
|
184
|
-
border-color: get-map($theme, 'button_secondary_border_disabled');
|
|
113
|
+
box-shadow: $outline get-map($theme, 'button_primary_destructive_box-shadow');
|
|
185
114
|
}
|
|
186
115
|
}
|
|
187
116
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
border:
|
|
117
|
+
&.secondary {
|
|
118
|
+
background: get-map($theme, 'button_secondary_bg');
|
|
119
|
+
border: px-to-rem(get-map($secondary, 'border')) solid
|
|
120
|
+
get-map($theme, 'button_secondary_border');
|
|
191
121
|
|
|
192
122
|
&,
|
|
193
|
-
&:hover
|
|
123
|
+
&:hover {
|
|
124
|
+
color: get-map($theme, 'button_secondary');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:hover {
|
|
128
|
+
background: get-map($theme, 'button_secondary_bg_hover');
|
|
129
|
+
}
|
|
130
|
+
|
|
194
131
|
&:active,
|
|
195
132
|
&:focus,
|
|
196
133
|
&:focus-visible {
|
|
197
|
-
color: get-map($theme, '
|
|
134
|
+
color: get-map($theme, 'button_secondary_focus');
|
|
135
|
+
border-color: get-map($theme, 'button_secondary_border_focus');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:active {
|
|
139
|
+
background: get-map($theme, 'button_secondary_bg_active');
|
|
198
140
|
}
|
|
199
141
|
|
|
200
|
-
&:hover,
|
|
201
|
-
&:active,
|
|
202
142
|
&:focus,
|
|
203
143
|
&:focus-visible {
|
|
204
|
-
background: get-map($theme, '
|
|
144
|
+
background: get-map($theme, 'button_secondary_bg_focus');
|
|
205
145
|
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
146
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
padding: px-to-rem(get-map($tertiary, 'padding-top'))
|
|
212
|
-
px-to-rem(get-map($tertiary, 'padding-horizontal'))
|
|
213
|
-
px-to-rem(get-map($tertiary, 'padding-bottom'));
|
|
214
|
-
bottom: px-to-rem(get-map($tertiary, 'padding-top'));
|
|
215
|
-
right: px-to-rem(get-map($tertiary, 'padding-horizontal'));
|
|
216
|
-
}
|
|
147
|
+
&.muted {
|
|
148
|
+
border-color: get-map($theme, 'button_secondary_border_muted');
|
|
217
149
|
|
|
218
|
-
|
|
219
|
-
|
|
150
|
+
&,
|
|
151
|
+
&:active {
|
|
152
|
+
background: get-map($theme, 'button_secondary_bg_muted');
|
|
153
|
+
color: get-map($theme, 'button_secondary_muted');
|
|
154
|
+
}
|
|
220
155
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
156
|
+
&:hover,
|
|
157
|
+
&:focus,
|
|
158
|
+
&:focus-visible {
|
|
159
|
+
background: get-map($theme, 'button_secondary_bg_muted_hover');
|
|
160
|
+
color: get-map($theme, 'button_secondary_muted_hover');
|
|
161
|
+
border-color: get-map($theme, 'button_secondary_border_muted_hover');
|
|
162
|
+
}
|
|
163
|
+
}
|
|
228
164
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
165
|
+
&.destructive {
|
|
166
|
+
&,
|
|
167
|
+
&:hover,
|
|
168
|
+
&:active,
|
|
169
|
+
&:focus,
|
|
170
|
+
&:focus-visible {
|
|
171
|
+
background: get-map($theme, 'button_secondary_bg_destructive');
|
|
172
|
+
color: get-map($theme, 'button_secondary_destructive');
|
|
173
|
+
border-color: get-map($theme, 'button_secondary_border_destructive');
|
|
174
|
+
}
|
|
175
|
+
}
|
|
233
176
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
177
|
+
&.disabled {
|
|
178
|
+
&,
|
|
179
|
+
&:hover,
|
|
180
|
+
&:active,
|
|
181
|
+
&:focus,
|
|
182
|
+
&:focus-visible {
|
|
183
|
+
background: get-map($theme, 'button_secondary_bg_disabled');
|
|
184
|
+
color: get-map($theme, 'button_secondary_disabled');
|
|
185
|
+
border-color: get-map($theme, 'button_secondary_border_disabled');
|
|
186
|
+
}
|
|
187
|
+
}
|
|
237
188
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
189
|
+
// TODO: remove when we have new styling
|
|
190
|
+
&.new {
|
|
191
|
+
border: none;
|
|
241
192
|
|
|
242
|
-
|
|
243
|
-
|
|
193
|
+
&,
|
|
194
|
+
&:hover,
|
|
195
|
+
&:active,
|
|
196
|
+
&:focus,
|
|
197
|
+
&:focus-visible {
|
|
198
|
+
color: get-map($theme, 'button_new_secondary');
|
|
199
|
+
}
|
|
244
200
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
201
|
+
&:hover,
|
|
202
|
+
&:active,
|
|
203
|
+
&:focus,
|
|
204
|
+
&:focus-visible {
|
|
205
|
+
background: get-map($theme, 'button_new_secondary_bg_hover');
|
|
206
|
+
}
|
|
249
207
|
}
|
|
250
208
|
}
|
|
251
209
|
|
|
252
|
-
&.
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
color: get-map($theme, 'button_tertiary_disabled');
|
|
260
|
-
text-decoration-color: get-map(
|
|
261
|
-
$theme,
|
|
262
|
-
'button_tertiary_disabled_text-decoration'
|
|
263
|
-
);
|
|
210
|
+
&.tertiary {
|
|
211
|
+
&:not(.new) {
|
|
212
|
+
padding: px-to-rem(get-map($tertiary, 'padding-top'))
|
|
213
|
+
px-to-rem(get-map($tertiary, 'padding-horizontal'))
|
|
214
|
+
px-to-rem(get-map($tertiary, 'padding-bottom'));
|
|
215
|
+
bottom: px-to-rem(get-map($tertiary, 'padding-top'));
|
|
216
|
+
right: px-to-rem(get-map($tertiary, 'padding-horizontal'));
|
|
264
217
|
}
|
|
265
|
-
}
|
|
266
218
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
219
|
+
text-decoration: underline;
|
|
220
|
+
text-decoration-color: transparent;
|
|
270
221
|
|
|
271
|
-
|
|
272
|
-
&.new {
|
|
273
|
-
color: get-map($theme, 'button_new_tertiary');
|
|
274
|
-
text-decoration-color: currentcolor;
|
|
275
|
-
|
|
276
|
-
&:hover,
|
|
277
|
-
&:active,
|
|
222
|
+
&,
|
|
278
223
|
&:focus,
|
|
279
224
|
&:focus-visible {
|
|
280
|
-
background: get-map($theme, '
|
|
281
|
-
color: get-map($theme, '
|
|
225
|
+
background: get-map($theme, 'button_tertiary_bg');
|
|
226
|
+
color: get-map($theme, 'button_tertiary');
|
|
227
|
+
text-decoration-color: get-map($theme, 'button_tertiary_text-decoration');
|
|
282
228
|
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
&.icon {
|
|
287
|
-
display: inline-flex;
|
|
288
|
-
align-items: center;
|
|
289
|
-
flex-flow: row;
|
|
290
|
-
place-content: center;
|
|
291
|
-
|
|
292
|
-
&::before {
|
|
293
|
-
content: '';
|
|
294
|
-
background: currentcolor;
|
|
295
|
-
width: px-to-rem(get-map($button-medium, 'icon-width'));
|
|
296
|
-
height: px-to-rem(get-map($button-medium, 'icon-width'));
|
|
297
|
-
display: inline-block;
|
|
298
|
-
vertical-align: middle;
|
|
299
|
-
}
|
|
300
229
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
230
|
+
&:hover,
|
|
231
|
+
&:active {
|
|
232
|
+
text-decoration-color: currentcolor;
|
|
304
233
|
}
|
|
305
234
|
|
|
306
|
-
|
|
307
|
-
|
|
235
|
+
&:hover {
|
|
236
|
+
color: get-map($theme, 'button_tertiary_hover');
|
|
308
237
|
}
|
|
309
|
-
}
|
|
310
238
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
margin-left: px-to-rem(get-map($button-medium, 'icon-gutter'));
|
|
314
|
-
order: 2;
|
|
239
|
+
&:active {
|
|
240
|
+
color: get-map($theme, 'button_tertiary_active');
|
|
315
241
|
}
|
|
316
242
|
|
|
317
|
-
&.
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
}
|
|
243
|
+
&.muted {
|
|
244
|
+
color: get-map($theme, 'button_tertiary_muted');
|
|
321
245
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
246
|
+
&:hover,
|
|
247
|
+
&:focus,
|
|
248
|
+
&:focus-visible {
|
|
249
|
+
color: get-map($theme, 'button_tertiary_muted_hover');
|
|
250
|
+
}
|
|
251
|
+
}
|
|
325
252
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
253
|
+
&.disabled {
|
|
254
|
+
&,
|
|
255
|
+
&:hover,
|
|
256
|
+
&:active,
|
|
257
|
+
&:focus,
|
|
258
|
+
&:focus-visible {
|
|
259
|
+
background: get-map($theme, 'button_tertiary_disabled_bg');
|
|
260
|
+
color: get-map($theme, 'button_tertiary_disabled');
|
|
261
|
+
text-decoration-color: get-map(
|
|
262
|
+
$theme,
|
|
263
|
+
'button_tertiary_disabled_text-decoration'
|
|
264
|
+
);
|
|
329
265
|
}
|
|
330
266
|
}
|
|
331
267
|
|
|
332
|
-
|
|
333
|
-
|
|
268
|
+
&.full-width {
|
|
269
|
+
right: 0;
|
|
334
270
|
}
|
|
335
271
|
|
|
336
|
-
|
|
272
|
+
// TODO: remove when we have new styling
|
|
273
|
+
&.new {
|
|
274
|
+
color: get-map($theme, 'button_new_tertiary');
|
|
275
|
+
text-decoration-color: currentcolor;
|
|
276
|
+
|
|
337
277
|
&:hover,
|
|
278
|
+
&:active,
|
|
338
279
|
&:focus,
|
|
339
280
|
&:focus-visible {
|
|
340
|
-
|
|
281
|
+
background: get-map($theme, 'button_new_secondary_bg_hover');
|
|
282
|
+
color: get-map($theme, 'button_new_secondary');
|
|
341
283
|
}
|
|
342
284
|
}
|
|
343
285
|
}
|
|
344
286
|
|
|
345
|
-
&.
|
|
287
|
+
&.icon {
|
|
288
|
+
display: inline-flex;
|
|
289
|
+
align-items: center;
|
|
290
|
+
flex-flow: row;
|
|
291
|
+
place-content: center;
|
|
292
|
+
|
|
346
293
|
&::before {
|
|
347
|
-
|
|
294
|
+
content: '';
|
|
295
|
+
background: currentcolor;
|
|
296
|
+
width: px-to-rem(get-map($button-medium, 'icon-width'));
|
|
297
|
+
height: px-to-rem(get-map($button-medium, 'icon-width'));
|
|
298
|
+
display: inline-block;
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
}
|
|
348
301
|
|
|
349
|
-
|
|
302
|
+
&.left {
|
|
303
|
+
&::before {
|
|
304
|
+
margin-right: px-to-rem(get-map($button-medium, 'icon-gutter'));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&.no-text::before {
|
|
308
|
+
margin-right: 0;
|
|
309
|
+
}
|
|
350
310
|
}
|
|
351
311
|
|
|
352
|
-
&.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
transform: scale(1);
|
|
358
|
-
}
|
|
312
|
+
&.right {
|
|
313
|
+
&::before {
|
|
314
|
+
margin-left: px-to-rem(get-map($button-medium, 'icon-gutter'));
|
|
315
|
+
order: 2;
|
|
316
|
+
}
|
|
359
317
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
318
|
+
&.no-text::before {
|
|
319
|
+
margin-left: 0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@each $icon, $large-icon, $medium-icon, $small-icon in $icons {
|
|
324
|
+
$icon-sizes: ('large', $large-icon), ('medium', $medium-icon),
|
|
325
|
+
('small', $small-icon);
|
|
326
|
+
|
|
327
|
+
@at-root {
|
|
328
|
+
%icon-#{$icon} {
|
|
329
|
+
@include icon-styling($icon, $icon-sizes);
|
|
363
330
|
}
|
|
331
|
+
}
|
|
364
332
|
|
|
333
|
+
&.#{$icon} {
|
|
334
|
+
@extend %icon-#{$icon};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
&.hover_#{$icon} {
|
|
338
|
+
&:hover,
|
|
365
339
|
&:focus,
|
|
366
|
-
&:
|
|
367
|
-
|
|
368
|
-
&::before {
|
|
369
|
-
animation: bounce #{get-map($animation-bounce, 'duration')}s #{get-map(
|
|
370
|
-
$animation-bounce,
|
|
371
|
-
'iteration'
|
|
372
|
-
)};
|
|
373
|
-
}
|
|
340
|
+
&:focus-visible {
|
|
341
|
+
@extend %icon-#{$icon};
|
|
374
342
|
}
|
|
375
343
|
}
|
|
376
344
|
}
|
|
377
345
|
|
|
378
|
-
&.
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
}
|
|
346
|
+
&.animate {
|
|
347
|
+
&::before {
|
|
348
|
+
@include transition(transform, #{get-map($animation, 'duration')}s, ease);
|
|
383
349
|
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
opacity: 0.3;
|
|
387
|
-
}
|
|
350
|
+
transform: none;
|
|
351
|
+
}
|
|
388
352
|
|
|
389
|
-
|
|
390
|
-
|
|
353
|
+
&.bounce {
|
|
354
|
+
@include animate {
|
|
355
|
+
@keyframes bounce {
|
|
356
|
+
0%,
|
|
357
|
+
100% {
|
|
358
|
+
transform: scale(1);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
70% {
|
|
362
|
+
transform: scale(#{get-map($animation-bounce, 'scale')});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
391
365
|
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
366
|
+
&:focus,
|
|
367
|
+
&:active,
|
|
368
|
+
&.do-animation {
|
|
369
|
+
&::before {
|
|
370
|
+
animation: bounce #{get-map($animation-bounce, 'duration')}s #{get-map(
|
|
371
|
+
$animation-bounce,
|
|
372
|
+
'iteration'
|
|
373
|
+
)};
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
395
378
|
|
|
396
|
-
|
|
379
|
+
&.rotate-180::before {
|
|
380
|
+
transform: rotate(180deg);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
397
383
|
}
|
|
398
384
|
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
0s 0s 0.2s 0.2s,
|
|
403
|
-
ease-in-out,
|
|
404
|
-
0s 0s 0.1s 0.1s
|
|
405
|
-
);
|
|
406
|
-
|
|
407
|
-
content: '';
|
|
408
|
-
width: 0;
|
|
409
|
-
height: 0;
|
|
410
|
-
position: absolute;
|
|
411
|
-
top: px-to-rem(get-map($secondary-destruction, 'offset'));
|
|
412
|
-
right: get-map($secondary-destruction, 'right');
|
|
413
|
-
display: flex;
|
|
414
|
-
align-items: center;
|
|
415
|
-
justify-content: center;
|
|
416
|
-
opacity: 0;
|
|
385
|
+
&.disabled {
|
|
386
|
+
cursor: not-allowed;
|
|
387
|
+
opacity: 0.3;
|
|
417
388
|
}
|
|
418
389
|
|
|
419
|
-
|
|
420
|
-
|
|
390
|
+
&[data-hover-text] {
|
|
391
|
+
position: relative;
|
|
392
|
+
|
|
421
393
|
&::before,
|
|
422
394
|
.text {
|
|
423
|
-
opacity
|
|
395
|
+
@include transition(opacity);
|
|
396
|
+
|
|
397
|
+
opacity: 1;
|
|
424
398
|
}
|
|
425
399
|
|
|
426
400
|
&::after {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
401
|
+
@include transition(
|
|
402
|
+
width height opacity right,
|
|
403
|
+
0s 0s 0.2s 0.2s,
|
|
404
|
+
ease-in-out,
|
|
405
|
+
0s 0s 0.1s 0.1s
|
|
406
|
+
);
|
|
407
|
+
|
|
408
|
+
content: '';
|
|
409
|
+
width: 0;
|
|
410
|
+
height: 0;
|
|
411
|
+
position: absolute;
|
|
412
|
+
top: px-to-rem(get-map($secondary-destruction, 'offset'));
|
|
413
|
+
right: get-map($secondary-destruction, 'right');
|
|
414
|
+
display: flex;
|
|
415
|
+
align-items: center;
|
|
416
|
+
justify-content: center;
|
|
417
|
+
opacity: 0;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
&:hover,
|
|
421
|
+
&:focus {
|
|
422
|
+
&::before,
|
|
423
|
+
.text {
|
|
424
|
+
opacity: 0;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&::after {
|
|
428
|
+
content: attr(data-hover-text);
|
|
429
|
+
width: 100%;
|
|
430
|
+
height: 100%;
|
|
431
|
+
right: 0;
|
|
432
|
+
opacity: 1;
|
|
433
|
+
}
|
|
432
434
|
}
|
|
433
435
|
}
|
|
434
436
|
}
|