@trilogy-ds/styles 0.0.1-beta-1
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/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +58 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +68 -0
- package/framework/src/base/_helpers.scss +880 -0
- package/framework/src/base/_loading.scss +102 -0
- package/framework/src/base/_reset.scss +138 -0
- package/framework/src/components/_accordion.scss +178 -0
- package/framework/src/components/_all.scss +30 -0
- package/framework/src/components/_autolayout2.scss +38 -0
- package/framework/src/components/_breadcrumb.scss +45 -0
- package/framework/src/components/_card.scss +298 -0
- package/framework/src/components/_countdown.scss +55 -0
- package/framework/src/components/_disclaimer.scss +84 -0
- package/framework/src/components/_divider.scss +18 -0
- package/framework/src/components/_dropdown.scss +128 -0
- package/framework/src/components/_fab.scss +60 -0
- package/framework/src/components/_level.scss +120 -0
- package/framework/src/components/_media.scss +64 -0
- package/framework/src/components/_menu.scss +213 -0
- package/framework/src/components/_modal.scss +201 -0
- package/framework/src/components/_otp.scss +92 -0
- package/framework/src/components/_pagination.scss +182 -0
- package/framework/src/components/_plus-symbol.scss +32 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +209 -0
- package/framework/src/components/_product-tour.scss +131 -0
- package/framework/src/components/_progress-radial.scss +23 -0
- package/framework/src/components/_range.scss +84 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_search-modal.scss +197 -0
- package/framework/src/components/_segmented-control.scss +60 -0
- package/framework/src/components/_slices.scss +316 -0
- package/framework/src/components/_slider.scss +92 -0
- package/framework/src/components/_stepper.scss +397 -0
- package/framework/src/components/_switch.scss +209 -0
- package/framework/src/components/_tabs.scss +212 -0
- package/framework/src/components/_timeline.scss +367 -0
- package/framework/src/elements/_alert.scss +91 -0
- package/framework/src/elements/_all.scss +35 -0
- package/framework/src/elements/_badge.scss +81 -0
- package/framework/src/elements/_box.scss +267 -0
- package/framework/src/elements/_button.scss +192 -0
- package/framework/src/elements/_checkbox.scss +39 -0
- package/framework/src/elements/_checkradio.scss +173 -0
- package/framework/src/elements/_chips.scss +100 -0
- package/framework/src/elements/_container.scss +108 -0
- package/framework/src/elements/_dot.scss +6 -0
- package/framework/src/elements/_entry.scss +109 -0
- package/framework/src/elements/_form.scss +593 -0
- package/framework/src/elements/_icon.scss +384 -0
- package/framework/src/elements/_image.scss +59 -0
- package/framework/src/elements/_input-gauge.scss +37 -0
- package/framework/src/elements/_input-icons.scss +41 -0
- package/framework/src/elements/_link.scss +79 -0
- package/framework/src/elements/_list.scss +61 -0
- package/framework/src/elements/_loader.scss +126 -0
- package/framework/src/elements/_notification.scss +151 -0
- package/framework/src/elements/_options.scss +146 -0
- package/framework/src/elements/_other.scss +44 -0
- package/framework/src/elements/_paragraph.scss +101 -0
- package/framework/src/elements/_progress.scss +212 -0
- package/framework/src/elements/_radio.scss +67 -0
- package/framework/src/elements/_select.scss +315 -0
- package/framework/src/elements/_sticker.scss +151 -0
- package/framework/src/elements/_switch.scss +108 -0
- package/framework/src/elements/_table.scss +298 -0
- package/framework/src/elements/_tag.scss +131 -0
- package/framework/src/elements/_textarea.scss +125 -0
- package/framework/src/elements/_timeline.scss +283 -0
- package/framework/src/elements/_title.scss +139 -0
- package/framework/src/elements/_toaster.scss +128 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +952 -0
- package/framework/src/grid/_rows.scss +47 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +6 -0
- package/framework/src/layout/_hero.scss +268 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +65 -0
- package/framework/src/layout/_toolbar.scss +100 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_all.scss +9 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_controls.scss +67 -0
- package/framework/src/utilities/_derived-variables.scss +104 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +150 -0
- package/framework/src/utilities/_mixins.scss +745 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +5 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/package.json +22 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.title .badge {
|
|
2
|
+
margin-left: 0.6em;
|
|
3
|
+
margin-right: 0.6em;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin badge {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
border-radius: 99em;
|
|
9
|
+
color: getColor('background');
|
|
10
|
+
background: getColor('alternate');;
|
|
11
|
+
font-size: $text-10;
|
|
12
|
+
min-height: $text-20;
|
|
13
|
+
min-width: $text-20;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
&:empty {
|
|
18
|
+
min-width: $text-10;
|
|
19
|
+
min-height: $text-10;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.is-up {
|
|
23
|
+
position: absolute;
|
|
24
|
+
left: 50%;
|
|
25
|
+
top: $text-10;
|
|
26
|
+
right: $text-24;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.is-inverted {
|
|
30
|
+
color: getColor('main');
|
|
31
|
+
background: getColor('background');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
ul.menu-list li a & {
|
|
35
|
+
margin: 0 $text-15;
|
|
36
|
+
max-height: 17px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.badge {
|
|
41
|
+
@include badge;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.badge-and-text {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
|
|
48
|
+
p {
|
|
49
|
+
margin-bottom: 0 !important;
|
|
50
|
+
|
|
51
|
+
+ .badge {
|
|
52
|
+
@include badge;
|
|
53
|
+
|
|
54
|
+
&.is-level {
|
|
55
|
+
position: relative;
|
|
56
|
+
margin-left: 60px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[data-badge-number] {
|
|
63
|
+
position: relative;
|
|
64
|
+
|
|
65
|
+
&::after {
|
|
66
|
+
content: attr(data-badge-number);
|
|
67
|
+
position: absolute;
|
|
68
|
+
margin-left: -15px;
|
|
69
|
+
top: -7px;
|
|
70
|
+
color: getColor('background');
|
|
71
|
+
left: 100%;
|
|
72
|
+
background: getColor('main');
|
|
73
|
+
font-size: $text-10;
|
|
74
|
+
min-height: $text-20;
|
|
75
|
+
min-width: $text-20;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
border-radius: 100%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|