@trilogy-ds/styles 0.0.1-beta.8 → 0.0.1-calendar
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/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +1 -52
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +9 -1
- package/framework/src/base/_helpers.scss +34 -44
- package/framework/src/base/_loading.scss +9 -2
- package/framework/src/base/_reset.scss +11 -1
- package/framework/src/components/_accordion.scss +55 -89
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +29 -38
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +125 -0
- package/framework/src/components/_card.scss +33 -87
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/{elements → components}/_container.scss +7 -39
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +25 -14
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/{elements → components}/_icon.scss +4 -4
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/{elements → components}/_loader.scss +2 -2
- package/framework/src/components/_modal.scss +182 -158
- package/framework/src/components/_otp.scss +11 -30
- package/framework/src/components/_pagination.scss +60 -159
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +140 -165
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +55 -53
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/{elements → components}/_sticker.scss +25 -28
- package/framework/src/components/_switch.scss +97 -191
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +101 -98
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +28 -113
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/{elements → components/alert}/_alert.scss +13 -10
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/{elements → components/input}/_form.scss +42 -33
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/{elements → components/progress}/_progress.scss +34 -23
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -41
- package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
- package/framework/src/grid/_columns.scss +278 -763
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +92 -214
- package/framework/src/layout/_section.scss +10 -29
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +0 -103
- package/framework/src/utilities/_initial-variables.scss +4 -144
- package/framework/src/utilities/_pre.scss +4 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +293 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/variables/_color.scss +85 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +3 -3
- package/framework/src/components/_all.scss +0 -30
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_progress-radial.scss +0 -23
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/elements/_all.scss +0 -35
- package/framework/src/elements/_badge.scss +0 -81
- package/framework/src/elements/_box.scss +0 -267
- package/framework/src/elements/_button.scss +0 -192
- package/framework/src/elements/_checkbox.scss +0 -39
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_chips.scss +0 -100
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_entry.scss +0 -109
- package/framework/src/elements/_image.scss +0 -59
- package/framework/src/elements/_input-gauge.scss +0 -37
- package/framework/src/elements/_input-icons.scss +0 -41
- package/framework/src/elements/_link.scss +0 -79
- package/framework/src/elements/_list.scss +0 -61
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_paragraph.scss +0 -101
- package/framework/src/elements/_radio.scss +0 -67
- package/framework/src/elements/_select.scss +0 -315
- package/framework/src/elements/_switch.scss +0 -108
- package/framework/src/elements/_table.scss +0 -298
- package/framework/src/elements/_tag.scss +0 -131
- package/framework/src/elements/_textarea.scss +0 -125
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/elements/_title.scss +0 -139
- package/framework/src/layout/_toolbar.scss +0 -100
- package/framework/src/utilities/_mixins.scss +0 -744
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
@import "../utilities/spacing";
|
|
3
|
-
|
|
4
|
-
$space-between-tiles: 5px;
|
|
5
|
-
$padding-box: $spacing-5;
|
|
6
|
-
$padding-box-mobile: $spacing-4;
|
|
7
|
-
|
|
8
|
-
a.box {
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
transition: box-shadow $animation-duration;
|
|
11
|
-
|
|
12
|
-
&:hover,
|
|
13
|
-
&:active,
|
|
14
|
-
&:focus {
|
|
15
|
-
box-shadow: $focus-shadow;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.box {
|
|
20
|
-
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
21
|
-
background-color: getColor('background');
|
|
22
|
-
border-radius: $radius;
|
|
23
|
-
color: getColor('font');
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
justify-content: flex-start;
|
|
27
|
-
position: relative;
|
|
28
|
-
padding: 24px;
|
|
29
|
-
|
|
30
|
-
@include mobile {
|
|
31
|
-
padding: 16px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:not(:last-child) {
|
|
35
|
-
margin-bottom: 15px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.has-background {
|
|
39
|
-
background-repeat: no-repeat;
|
|
40
|
-
|
|
41
|
-
&.is-inverted {
|
|
42
|
-
.box-content {
|
|
43
|
-
color: getColor('background');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.title,
|
|
47
|
-
.subtitle,
|
|
48
|
-
.text,
|
|
49
|
-
.paragraph,
|
|
50
|
-
p {
|
|
51
|
-
color: getColor('background');
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.box-content {
|
|
56
|
-
background-color: transparent;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
&.is-active {
|
|
62
|
-
border: 2px solid getColor('alternate');
|
|
63
|
-
|
|
64
|
-
> .box-header {
|
|
65
|
-
border-radius: ($radius - 2px) ($radius - 2px) 0 0;
|
|
66
|
-
padding-top: 6px;
|
|
67
|
-
padding-left: 22px;
|
|
68
|
-
padding-right: 6px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
~ .box-content {
|
|
72
|
-
border-radius: 0 0 ($radius - 2px) ($radius - 2px);
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
> .box-content {
|
|
77
|
-
padding-left: 22px;
|
|
78
|
-
padding-right: 22px;
|
|
79
|
-
@include mobile {
|
|
80
|
-
padding-left: 14px;
|
|
81
|
-
padding-right: 14px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:first-child {
|
|
85
|
-
border-radius: ($radius - 2px) ($radius - 2px) 0 0;
|
|
86
|
-
padding-top: 22px;
|
|
87
|
-
@include mobile {
|
|
88
|
-
padding-top: 14px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:last-child {
|
|
94
|
-
border-radius: 0 0 ($radius - 2px) ($radius - 2px);
|
|
95
|
-
padding-bottom: 22px;
|
|
96
|
-
@include mobile {
|
|
97
|
-
padding-bottom: 14px;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&:only-child {
|
|
102
|
-
border-radius: ($radius - 2px);
|
|
103
|
-
padding: 22px;
|
|
104
|
-
@include mobile {
|
|
105
|
-
padding: 14px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
> .box-footer {
|
|
111
|
-
margin: 12.5px 5.5px 5.5px;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&.is-fullheight {
|
|
116
|
-
.box-content {
|
|
117
|
-
flex-grow: 1;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&.is-highlighted {
|
|
122
|
-
.box-content {
|
|
123
|
-
padding-left: 23px;
|
|
124
|
-
border-left: 8px solid transparent;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@each $name, $pair in $colors-brand-funcionnal {
|
|
128
|
-
$color: getColor($name);
|
|
129
|
-
$brandName: getColorBrandName($name);
|
|
130
|
-
|
|
131
|
-
&.is-#{$brandName} .box-content {
|
|
132
|
-
border-left-color: $color;
|
|
133
|
-
border-left-width: 4px;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&.is-flat {
|
|
139
|
-
box-shadow: none;
|
|
140
|
-
border: 1px solid getColor('grey-dark');
|
|
141
|
-
|
|
142
|
-
&.has-hat > .is-hat {
|
|
143
|
-
left: -1px;
|
|
144
|
-
right: -1px;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.box-header {
|
|
148
|
-
margin-top: calc(-#{$padding-box} - 1px);
|
|
149
|
-
margin-left: calc(-#{$padding-box} - 1px);
|
|
150
|
-
margin-right: calc(-#{$padding-box} - 1px);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.box-header {
|
|
155
|
-
z-index: inherit;
|
|
156
|
-
background-color: getColor('font');
|
|
157
|
-
color: getColor('background');
|
|
158
|
-
margin-top: -$padding-box;
|
|
159
|
-
margin-left: -$padding-box;
|
|
160
|
-
margin-right: -$padding-box;
|
|
161
|
-
padding: 8px;
|
|
162
|
-
padding-left: 24px;
|
|
163
|
-
box-shadow: none;
|
|
164
|
-
border-radius: $radius $radius 0 0;
|
|
165
|
-
font-size: 15px;
|
|
166
|
-
display: flex;
|
|
167
|
-
justify-content: center;
|
|
168
|
-
flex-direction: column;
|
|
169
|
-
align-items: center;
|
|
170
|
-
font-weight: $weight-semibold;
|
|
171
|
-
|
|
172
|
-
@include mobile {
|
|
173
|
-
margin-top: -16px;
|
|
174
|
-
margin-left: -16px;
|
|
175
|
-
margin-right: -16px;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@include tablet {
|
|
179
|
-
flex-direction: row;
|
|
180
|
-
align-items: center;
|
|
181
|
-
justify-content: space-between;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
> p:not(:last-child),
|
|
185
|
-
> .paragraph:not(:last-child) {
|
|
186
|
-
margin: 0 0 0.3em;
|
|
187
|
-
|
|
188
|
-
@include tablet {
|
|
189
|
-
align-self: center;
|
|
190
|
-
margin: 0 3em 0 0;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
~ .box-content {
|
|
195
|
-
margin-top: 0;
|
|
196
|
-
border-radius: 0 0 $radius $radius;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.box-content {
|
|
201
|
-
background-color: getColor('background');
|
|
202
|
-
color: getColor('font');
|
|
203
|
-
margin: -$padding-box;
|
|
204
|
-
padding: $padding-box;
|
|
205
|
-
|
|
206
|
-
@include mobile {
|
|
207
|
-
margin: -$padding-box-mobile;
|
|
208
|
-
padding: $padding-box-mobile;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
@include mobile {
|
|
212
|
-
text-align: left;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&:first-child {
|
|
216
|
-
border-radius: $radius $radius 0 0;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
&:last-child {
|
|
220
|
-
border-radius: 0 0 $radius $radius;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
&:only-child {
|
|
224
|
-
border-radius: $radius;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
> .is-unboxed {
|
|
228
|
-
margin-left: -$padding-box;
|
|
229
|
-
margin-right: -$padding-box;
|
|
230
|
-
width: auto;
|
|
231
|
-
|
|
232
|
-
@include desktop {
|
|
233
|
-
margin-left: -$padding-box;
|
|
234
|
-
margin-right: -$padding-box;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&.is-grey,
|
|
239
|
-
&.tiles-container {
|
|
240
|
-
padding: $padding-box;
|
|
241
|
-
|
|
242
|
-
.tile.is-parent,
|
|
243
|
-
.tile.is-child:not(.box) {
|
|
244
|
-
padding: $space-between-tiles;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.tile.is-vertical > .tile.is-child:not(:last-child) {
|
|
248
|
-
margin-bottom: ($space-between-tiles * 2) !important;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.box {
|
|
252
|
-
box-shadow: none;
|
|
253
|
-
padding: $padding-box;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
&.is-transparent {
|
|
258
|
-
background-color: transparent;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.box-footer {
|
|
263
|
-
padding-top: $padding-box;
|
|
264
|
-
border-top: 1px solid getColor('grey-disabled');
|
|
265
|
-
margin: 12.5px 7.5px 7.5px;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
$button-border-width: 2px !default;
|
|
2
|
-
$button-padding-vertical: calc(0.375em - #{$button-border-width}) !default;
|
|
3
|
-
|
|
4
|
-
$button-disabled-shadow: none !default;
|
|
5
|
-
$button-disabled-opacity: 1 !default;
|
|
6
|
-
|
|
7
|
-
$is-check-button-icon-pos-left: 5px;
|
|
8
|
-
|
|
9
|
-
.buttons {
|
|
10
|
-
width: 100%;
|
|
11
|
-
column-gap: 16px;
|
|
12
|
-
|
|
13
|
-
&.is-vertical {
|
|
14
|
-
row-gap: 16px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@include tablet {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
width: auto;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.is-centered,
|
|
24
|
-
&.has-text-centered,
|
|
25
|
-
.has-text-centered & {
|
|
26
|
-
justify-content: center;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.is-mobile {
|
|
30
|
-
flex-wrap: wrap;
|
|
31
|
-
|
|
32
|
-
.button {
|
|
33
|
-
margin-bottom: 16px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.button {
|
|
39
|
-
@include control;
|
|
40
|
-
@include unselectable;
|
|
41
|
-
|
|
42
|
-
background-color: white;
|
|
43
|
-
border-width: $button-border-width;
|
|
44
|
-
border-radius: 4px;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
text-align: center;
|
|
48
|
-
font-family: $body-family;
|
|
49
|
-
white-space: nowrap;
|
|
50
|
-
height: 44px;
|
|
51
|
-
padding: 0 $spacing-4;
|
|
52
|
-
font-size: $text-15;
|
|
53
|
-
text-decoration: inherit;
|
|
54
|
-
font-weight: $weight-semibold;
|
|
55
|
-
|
|
56
|
-
&:focus {
|
|
57
|
-
outline: 1px auto getVariantColor('font', 1);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@include mobile {
|
|
61
|
-
width: 100%;
|
|
62
|
-
margin: 8px 0 !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.is-loading {
|
|
66
|
-
color: transparent !important;
|
|
67
|
-
pointer-events: none;
|
|
68
|
-
|
|
69
|
-
&::after {
|
|
70
|
-
@include spinner;
|
|
71
|
-
@include center(1em);
|
|
72
|
-
|
|
73
|
-
position: absolute !important;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&[class*='is-'] {
|
|
78
|
-
&[disabled] {
|
|
79
|
-
@extend %disabled;
|
|
80
|
-
|
|
81
|
-
background-color: getColor('bg-disabled');
|
|
82
|
-
border-color: transparent;
|
|
83
|
-
box-shadow: none;
|
|
84
|
-
color: getColor('disabled');
|
|
85
|
-
|
|
86
|
-
&:hover {
|
|
87
|
-
color: getColor('disabled');
|
|
88
|
-
background-color: getColor('bg-disabled');
|
|
89
|
-
border-color: getColor('bg-disabled');
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@each $name, $pair in $colors {
|
|
95
|
-
$color: nth($pair, 1);
|
|
96
|
-
$invColor: nth($pair, 3);
|
|
97
|
-
|
|
98
|
-
&.is-#{$color} {
|
|
99
|
-
background-color: getColor($name);
|
|
100
|
-
color: invertColor($name);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
%disabled {
|
|
105
|
-
background-color: getColor('bg-disabled');
|
|
106
|
-
color: getColor('disabled');
|
|
107
|
-
box-shadow: $button-disabled-shadow;
|
|
108
|
-
opacity: $button-disabled-opacity;
|
|
109
|
-
|
|
110
|
-
&:hover {
|
|
111
|
-
color: getColor('disabled');
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
&.is-primary {
|
|
117
|
-
background-color: getColor('main');
|
|
118
|
-
border-color: getColor('main');
|
|
119
|
-
color: getColor('background');
|
|
120
|
-
|
|
121
|
-
&:hover,
|
|
122
|
-
&.is-hovered {
|
|
123
|
-
background-color: getVariantColor('main',2);
|
|
124
|
-
border-color: getVariantColor('main',2);
|
|
125
|
-
opacity: 1;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
&:focus,
|
|
129
|
-
&.is-focused,
|
|
130
|
-
&:active,
|
|
131
|
-
&.is-active {
|
|
132
|
-
background-color: getVariantColor('main',1);
|
|
133
|
-
border-color: getVariantColor('main',1);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
&.is-secondary {
|
|
138
|
-
background-color: getColor('alternate');
|
|
139
|
-
color: getColor('background');
|
|
140
|
-
border-color: getColor('alternate');
|
|
141
|
-
|
|
142
|
-
&:hover,
|
|
143
|
-
&.is-hovered {
|
|
144
|
-
color: getColor('background');
|
|
145
|
-
background-color: getVariantColor('alternate',1);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&:focus,
|
|
149
|
-
&.is-focused,
|
|
150
|
-
&:active,
|
|
151
|
-
&.is-active {
|
|
152
|
-
color: getColor('background');
|
|
153
|
-
background-color: getVariantColor('alternate',2);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&.is-tertiary {
|
|
158
|
-
background-color: getColor('background');
|
|
159
|
-
border: 2px solid getVariantColor('alternate',2);
|
|
160
|
-
color: getColor('alternate');
|
|
161
|
-
|
|
162
|
-
&:hover,
|
|
163
|
-
&.is-hovered{
|
|
164
|
-
color: getColor('alternate');
|
|
165
|
-
background-color: getVariantColor('alternate',3);
|
|
166
|
-
border-color: getVariantColor('alternate',2);
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&:focus,
|
|
171
|
-
&.is-focused{
|
|
172
|
-
color: getColor('alternate');
|
|
173
|
-
background-color: getVariantColor('alternate',3);
|
|
174
|
-
border-color: getColor('alternate');
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:active,
|
|
178
|
-
&.is-active {
|
|
179
|
-
color: getVariantColor('alternate',1);
|
|
180
|
-
background-color: getVariantColor('alternate',3);
|
|
181
|
-
border: 2px solid currentColor;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&:disabled,
|
|
185
|
-
&[disabled],
|
|
186
|
-
&[disabled]:hover{
|
|
187
|
-
background-color: getColor('background');
|
|
188
|
-
border: 2px solid getColor('grey-light');
|
|
189
|
-
color: getColor('disabled');
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@include checkbox-and-radio('checkbox');
|
|
2
|
-
|
|
3
|
-
.checkbox,
|
|
4
|
-
.checkbox-tile {
|
|
5
|
-
input:checked ~ label.checkbox-label {
|
|
6
|
-
&:before {
|
|
7
|
-
background-color: getColor('alternate');
|
|
8
|
-
}
|
|
9
|
-
&:after {
|
|
10
|
-
content: "";
|
|
11
|
-
mask-image: url('./assets/icons/all/check.svg');
|
|
12
|
-
background-color: getColor('background');
|
|
13
|
-
mask-size: 18px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
label.checkbox-label {
|
|
18
|
-
&:before,
|
|
19
|
-
&:after {
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.checkbox-tile {
|
|
26
|
-
input:checked ~ label.checkbox-label {
|
|
27
|
-
&:after {
|
|
28
|
-
top: 15px;
|
|
29
|
-
right: 15px;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
input:checked:disabled ~ label.checkbox-label {
|
|
33
|
-
&:after {
|
|
34
|
-
background-color: getColor('grey');
|
|
35
|
-
top: $spacing-4;
|
|
36
|
-
right: $spacing-4;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
.is-checkradio[type='radio'],
|
|
2
|
-
.is-checkradio[type='checkbox'] {
|
|
3
|
-
@include checkradio;
|
|
4
|
-
|
|
5
|
-
+ label {
|
|
6
|
-
&.is-descriptive {
|
|
7
|
-
flex-wrap: wrap;
|
|
8
|
-
|
|
9
|
-
span {
|
|
10
|
-
flex-basis: 100%;
|
|
11
|
-
display: inline-block;
|
|
12
|
-
padding-left: 25px;
|
|
13
|
-
margin-top: 5px;
|
|
14
|
-
font-size: $text-13;
|
|
15
|
-
color: getColor('grey');
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&:after {
|
|
19
|
-
top: 2px;
|
|
20
|
-
left: 1px;
|
|
21
|
-
line-height: 18px;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:focus-visible {
|
|
27
|
-
+ label {
|
|
28
|
-
&::before {
|
|
29
|
-
outline: 1px auto getColor('font');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:hover:not([disabled]) {
|
|
35
|
-
+ label {
|
|
36
|
-
&::before {
|
|
37
|
-
border-color: getColor('grey-dark');
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:checked {
|
|
43
|
-
+ label {
|
|
44
|
-
&::before {
|
|
45
|
-
animation-name: none;
|
|
46
|
-
border-color: getColor('grey');
|
|
47
|
-
color: getColor('alternate');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&::after {
|
|
51
|
-
display: block;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&[disabled] {
|
|
56
|
-
cursor: not-allowed;
|
|
57
|
-
|
|
58
|
-
+ label {
|
|
59
|
-
opacity: 0.5;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&[disabled] {
|
|
65
|
-
cursor: not-allowed;
|
|
66
|
-
|
|
67
|
-
+ label {
|
|
68
|
-
opacity: 0.5;
|
|
69
|
-
cursor: not-allowed;
|
|
70
|
-
|
|
71
|
-
&:hover,
|
|
72
|
-
&::before,
|
|
73
|
-
&::after {
|
|
74
|
-
cursor: not-allowed;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&:hover {
|
|
79
|
-
cursor: not-allowed;
|
|
80
|
-
|
|
81
|
-
&::before {
|
|
82
|
-
animation-name: none;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&::before,
|
|
87
|
-
&::after {
|
|
88
|
-
cursor: not-allowed;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&.is-inverted {
|
|
93
|
-
+ label::before,
|
|
94
|
-
&:hover:not([disabled]) + label::before,
|
|
95
|
-
&:checked + label::before {
|
|
96
|
-
border-color: getColor('background');
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
+ label,
|
|
100
|
-
&:checked + label::before {
|
|
101
|
-
color: getColor('background');
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.is-checkradio[type='checkbox'] {
|
|
107
|
-
+ label {
|
|
108
|
-
&::before {
|
|
109
|
-
margin-right: 16px;
|
|
110
|
-
border-radius: $radius-small;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&::after {
|
|
114
|
-
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
115
|
-
display: none;
|
|
116
|
-
line-height: 0;
|
|
117
|
-
margin: 0;
|
|
118
|
-
width: 14px;
|
|
119
|
-
height: 14px;
|
|
120
|
-
background-color: getColor('alternate');
|
|
121
|
-
overflow: hidden;
|
|
122
|
-
border-radius: 3px;
|
|
123
|
-
left: 1px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.is-inverted {
|
|
128
|
-
+ label::after {
|
|
129
|
-
color: getColor('background');
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.is-checkradio[type='radio'] {
|
|
135
|
-
+ label {
|
|
136
|
-
line-height: 1;
|
|
137
|
-
|
|
138
|
-
&::before,
|
|
139
|
-
&::after {
|
|
140
|
-
margin-right: 16px; // put size instead
|
|
141
|
-
border-radius: 100%;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&::after {
|
|
145
|
-
top: 50%;
|
|
146
|
-
transform: translateY(-50%);
|
|
147
|
-
left: 2px;
|
|
148
|
-
width: 12px;
|
|
149
|
-
height: 12px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&.is-descriptive {
|
|
153
|
-
&::after {
|
|
154
|
-
top: 8px;
|
|
155
|
-
left: 2px;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&:checked {
|
|
161
|
-
+ label {
|
|
162
|
-
&::after {
|
|
163
|
-
background-color: getColor('alternate');
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&.is-inverted {
|
|
169
|
-
&:checked + label::after {
|
|
170
|
-
background-color: getColor('background');
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|