@trilogy-ds/styles 0.0.1-beta-4 → 0.0.1-beta.11
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/README.md +47 -0
- 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/base/_color.scss +14 -36
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +10 -29
- package/framework/src/base/_loading.scss +7 -0
- package/framework/src/components/_accordion.scss +15 -36
- package/framework/src/components/_all.scss +0 -3
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +6 -5
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_disclaimer.scss +6 -5
- package/framework/src/components/_divider.scss +2 -2
- package/framework/src/components/_dropdown.scss +95 -101
- package/framework/src/components/_fab.scss +6 -21
- package/framework/src/components/_media.scss +2 -2
- package/framework/src/components/_modal.scss +172 -166
- package/framework/src/components/_otp.scss +9 -28
- package/framework/src/components/_pagination.scss +109 -131
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +1 -4
- package/framework/src/components/_price.scss +118 -169
- package/framework/src/components/_product-tour.scss +1 -3
- package/framework/src/components/_segmented-control.scss +39 -51
- package/framework/src/components/_slider.scss +70 -70
- package/framework/src/components/_stepper.scss +16 -140
- package/framework/src/components/_tabs.scss +32 -55
- package/framework/src/components/_timeline.scss +49 -42
- package/framework/src/elements/_alert.scss +4 -5
- package/framework/src/elements/_all.scss +0 -2
- package/framework/src/elements/_badge.scss +54 -59
- package/framework/src/elements/_box.scss +5 -23
- package/framework/src/elements/_button.scss +29 -129
- package/framework/src/elements/_checkbox.scss +21 -27
- package/framework/src/elements/_chips.scss +76 -81
- package/framework/src/elements/_entry.scss +73 -89
- package/framework/src/elements/_form.scss +15 -15
- package/framework/src/elements/_input-gauge.scss +36 -32
- package/framework/src/elements/_link.scss +47 -62
- package/framework/src/elements/_list.scss +0 -36
- package/framework/src/elements/_notification.scss +2 -3
- package/framework/src/elements/_other.scss +1 -1
- package/framework/src/elements/_paragraph.scss +4 -26
- package/framework/src/elements/_progress.scss +9 -18
- package/framework/src/elements/_radio.scss +1 -1
- package/framework/src/elements/_select.scss +209 -245
- package/framework/src/elements/_sticker.scss +8 -9
- package/framework/src/elements/_switch.scss +85 -88
- package/framework/src/elements/_table.scss +11 -72
- package/framework/src/elements/_tag.scss +104 -104
- package/framework/src/elements/_textarea.scss +92 -106
- package/framework/src/elements/_title.scss +86 -84
- package/framework/src/elements/_toaster.scss +2 -3
- package/framework/src/grid/_columns.scss +5 -5
- package/framework/src/layout/_hero.scss +129 -211
- package/framework/src/layout/_section.scss +3 -3
- package/framework/src/layout/_toolbar.scss +6 -6
- package/framework/src/utilities/_controls.scss +37 -39
- package/framework/src/utilities/_derived-variables.scss +3 -14
- package/framework/src/utilities/_initial-variables.scss +38 -23
- package/framework/src/utilities/_mixins.scss +523 -582
- package/package.json +4 -3
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- /package/dist/default/assets/icons/all/{all/alert.svg → alert.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-down.svg → arrow-down.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-left.svg → arrow-left.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-right.svg → arrow-right.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/arrow-up.svg → arrow-up.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/bell.svg → bell.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/check-circle.svg → check-circle.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/check.svg → check.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/exclamation-circle.svg → exclamation-circle.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/eye-slash.svg → eye-slash.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/eye.svg → eye.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/infos-circle.svg → infos-circle.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/search.svg → search.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/times.svg → times.svg} +0 -0
- /package/dist/default/assets/icons/all/{all/trash.svg → trash.svg} +0 -0
|
@@ -20,249 +20,167 @@ $overlap: 30px;
|
|
|
20
20
|
$overlap-desktop: 30px;
|
|
21
21
|
|
|
22
22
|
.hero {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
align-items: stretch;
|
|
24
|
+
background-color: getColor('background');
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
position: relative;
|
|
29
|
+
|
|
30
|
+
.hero-body {
|
|
31
|
+
flex-grow: 1;
|
|
32
|
+
flex-shrink: 0;
|
|
28
33
|
position: relative;
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: 20px;
|
|
38
|
+
|
|
39
|
+
@include desktop {
|
|
40
|
+
padding: 30px 20px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
> .container {
|
|
44
|
+
flex: 1;
|
|
45
|
+
flex-basis: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.title {
|
|
49
|
+
font-size: 24px;
|
|
29
50
|
|
|
51
|
+
@include desktop {
|
|
52
|
+
font-size: 36px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.is-overlapped {
|
|
30
58
|
.hero-body {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
position: relative;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-wrap: wrap;
|
|
36
|
-
align-items: center;
|
|
37
|
-
padding: 20px;
|
|
59
|
+
padding-bottom: 50px;
|
|
60
|
+
}
|
|
38
61
|
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
+ .section {
|
|
63
|
+
@include mobile {
|
|
64
|
+
margin-left: -$hero-padding-y;
|
|
65
|
+
margin-right: -$hero-padding-y;
|
|
66
|
+
|
|
67
|
+
.box {
|
|
68
|
+
box-shadow: none;
|
|
69
|
+
border-radius: 24px 24px 0 0;
|
|
70
|
+
|
|
71
|
+
.box-content:only-child {
|
|
72
|
+
border-radius: 24px 24px 0 0;
|
|
73
|
+
}
|
|
41
74
|
}
|
|
75
|
+
}
|
|
42
76
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
min-width: 100%;
|
|
49
|
-
padding-left: 26px;
|
|
50
|
-
transition: opacity 300ms linear;
|
|
51
|
-
|
|
52
|
-
&::before {
|
|
53
|
-
@include arrow(inherit);
|
|
54
|
-
|
|
55
|
-
transform: rotate(90deg);
|
|
56
|
-
top: 0;
|
|
57
|
-
bottom: 0;
|
|
58
|
-
left: 5px;
|
|
59
|
-
width: 11px;
|
|
60
|
-
height: 6px;
|
|
61
|
-
font-size: 12px;
|
|
62
|
-
margin: auto;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
77
|
+
> .container {
|
|
78
|
+
margin-top: -$hero-padding-y - $overlap;
|
|
79
|
+
|
|
80
|
+
@include desktop {
|
|
81
|
+
margin-top: -$hero-padding-desktop-y - $overlap-desktop;
|
|
68
82
|
}
|
|
83
|
+
}
|
|
69
84
|
|
|
85
|
+
&.is-small {
|
|
70
86
|
> .container {
|
|
71
|
-
|
|
72
|
-
|
|
87
|
+
margin-top: -$hero-padding-small-y - $overlap;
|
|
88
|
+
|
|
89
|
+
@include desktop {
|
|
90
|
+
margin-top: -$hero-padding-desktop-small-y - $overlap-desktop;
|
|
91
|
+
}
|
|
73
92
|
}
|
|
93
|
+
}
|
|
74
94
|
|
|
75
|
-
|
|
76
|
-
|
|
95
|
+
&.is-medium {
|
|
96
|
+
> .container {
|
|
97
|
+
margin-top: -$hero-padding-medium-y - $overlap;
|
|
77
98
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
99
|
+
@include desktop {
|
|
100
|
+
margin-top: -$hero-padding-desktop-medium-y - $overlap-desktop;
|
|
101
|
+
}
|
|
81
102
|
}
|
|
82
|
-
|
|
103
|
+
}
|
|
83
104
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
p,
|
|
89
|
-
strong,
|
|
90
|
-
.paragraph,
|
|
91
|
-
.suptitle,
|
|
92
|
-
.title,
|
|
93
|
-
.subtitle,
|
|
94
|
-
a:not(.button):not(.tag) {
|
|
95
|
-
color: getColor('background');
|
|
96
|
-
}
|
|
105
|
+
&.is-large {
|
|
106
|
+
> .container {
|
|
107
|
+
margin-top: -$hero-padding-large-y - $overlap;
|
|
97
108
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
color: getColor('background');
|
|
102
|
-
}
|
|
109
|
+
@include desktop {
|
|
110
|
+
margin-top: -$hero-padding-desktop-large-y - $overlap-desktop;
|
|
111
|
+
}
|
|
103
112
|
}
|
|
113
|
+
}
|
|
104
114
|
}
|
|
115
|
+
}
|
|
105
116
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
&.has-background {
|
|
118
|
+
background-repeat: no-repeat;
|
|
119
|
+
background-size: cover;
|
|
120
|
+
}
|
|
110
121
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
.box {
|
|
117
|
-
box-shadow: none;
|
|
118
|
-
border-radius: 24px 24px 0 0;
|
|
119
|
-
|
|
120
|
-
.box-content:only-child {
|
|
121
|
-
border-radius: 24px 24px 0 0;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
> .container {
|
|
127
|
-
margin-top: -$hero-padding-y - $overlap;
|
|
128
|
-
|
|
129
|
-
@include desktop {
|
|
130
|
-
margin-top: -$hero-padding-desktop-y - $overlap-desktop;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.is-small {
|
|
135
|
-
> .container {
|
|
136
|
-
margin-top: -$hero-padding-small-y - $overlap;
|
|
137
|
-
|
|
138
|
-
@include desktop {
|
|
139
|
-
margin-top: -$hero-padding-desktop-small-y - $overlap-desktop;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
&.is-medium {
|
|
145
|
-
> .container {
|
|
146
|
-
margin-top: -$hero-padding-medium-y - $overlap;
|
|
147
|
-
|
|
148
|
-
@include desktop {
|
|
149
|
-
margin-top: -$hero-padding-desktop-medium-y - $overlap-desktop;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
&.is-large {
|
|
155
|
-
> .container {
|
|
156
|
-
margin-top: -$hero-padding-large-y - $overlap;
|
|
157
|
-
|
|
158
|
-
@include desktop {
|
|
159
|
-
margin-top: -$hero-padding-desktop-large-y - $overlap-desktop;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
122
|
+
&.has-background {
|
|
123
|
+
.hero-body {
|
|
124
|
+
text-align: center;
|
|
125
|
+
padding: 100px 20px;
|
|
165
126
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
127
|
+
@include desktop {
|
|
128
|
+
text-align: left;
|
|
129
|
+
padding-top: 80px;
|
|
130
|
+
padding-bottom: 80px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.suptitle {
|
|
134
|
+
display: none;
|
|
170
135
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
@include desktop {
|
|
178
|
-
text-align: left;
|
|
179
|
-
padding-top: 80px;
|
|
180
|
-
padding-bottom: 80px;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.suptitle {
|
|
184
|
-
display: none;
|
|
185
|
-
|
|
186
|
-
@include desktop {
|
|
187
|
-
display: block;
|
|
188
|
-
margin-bottom: 30px;
|
|
189
|
-
font-size: 19px;
|
|
190
|
-
text-transform: uppercase;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.title {
|
|
195
|
-
font-size: 32px;
|
|
196
|
-
margin-bottom: 25px;
|
|
197
|
-
|
|
198
|
-
@include desktop {
|
|
199
|
-
font-size: 52px;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.button {
|
|
204
|
-
width: auto;
|
|
205
|
-
}
|
|
136
|
+
@include desktop {
|
|
137
|
+
display: block;
|
|
138
|
+
margin-bottom: 30px;
|
|
139
|
+
font-size: 19px;
|
|
140
|
+
text-transform: uppercase;
|
|
206
141
|
}
|
|
142
|
+
}
|
|
207
143
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
144
|
+
.title {
|
|
145
|
+
font-size: 32px;
|
|
146
|
+
margin-bottom: 25px;
|
|
211
147
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
}
|
|
148
|
+
@include desktop {
|
|
149
|
+
font-size: 52px;
|
|
216
150
|
}
|
|
217
|
-
|
|
151
|
+
}
|
|
218
152
|
|
|
219
|
-
|
|
220
|
-
|
|
153
|
+
.button {
|
|
154
|
+
width: auto;
|
|
155
|
+
}
|
|
221
156
|
}
|
|
222
157
|
|
|
223
|
-
&.is-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
p,
|
|
227
|
-
strong,
|
|
228
|
-
.paragraph,
|
|
229
|
-
.suptitle,
|
|
230
|
-
.title,
|
|
231
|
-
.subtitle,
|
|
232
|
-
a:not(.button):not(.tag) {
|
|
233
|
-
color: getColor('background');
|
|
234
|
-
}
|
|
158
|
+
&.is-overlapped {
|
|
159
|
+
.hero-body {
|
|
160
|
+
padding: 30px 20px 60px;
|
|
235
161
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
a:not(.button) {
|
|
239
|
-
color: getColor('background');
|
|
240
|
-
}
|
|
162
|
+
@include desktop {
|
|
163
|
+
padding: 60px 20px;
|
|
241
164
|
}
|
|
165
|
+
}
|
|
242
166
|
}
|
|
167
|
+
}
|
|
243
168
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
p,
|
|
248
|
-
strong,
|
|
249
|
-
.paragraph,
|
|
250
|
-
.suptitle,
|
|
251
|
-
.title,
|
|
252
|
-
.subtitle,
|
|
253
|
-
a:not(.button):not(.tag) {
|
|
254
|
-
color: getColor('background');
|
|
255
|
-
}
|
|
169
|
+
&.is-centered {
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
256
172
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
173
|
+
&.is-main {
|
|
174
|
+
color: invertColor('main');
|
|
175
|
+
background-color: getColor('main');
|
|
176
|
+
}
|
|
264
177
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
178
|
+
&.is-info {
|
|
179
|
+
background: getColor('info');
|
|
180
|
+
color: invertColor('info');
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.subtitle {
|
|
184
|
+
padding-left: 0.2em;
|
|
185
|
+
}
|
|
268
186
|
}
|
|
@@ -21,7 +21,7 @@ $overlap-section-desktop: $spacing-4 !default;
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:nth-child(even) {
|
|
24
|
-
background-color:
|
|
24
|
+
background-color: getBGColor('neutral');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&:nth-child(odd) {
|
|
@@ -29,7 +29,7 @@ $overlap-section-desktop: $spacing-4 !default;
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&.is-info {
|
|
32
|
-
background-color:
|
|
32
|
+
background-color: getColor('info');
|
|
33
33
|
color: getColor('background');
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -61,5 +61,5 @@ $overlap-section-desktop: $spacing-4 !default;
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.section:nth-child(2n-1).is-inverted {
|
|
64
|
-
background-color:
|
|
64
|
+
background-color: getBGColor('neutral');
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@ $toolbar-height: 60px !default;
|
|
|
2
2
|
|
|
3
3
|
.toolbar {
|
|
4
4
|
height: $toolbar-height;
|
|
5
|
-
border-bottom: 1px solid
|
|
5
|
+
border-bottom: 1px solid getBGColor('neutral-dark');
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
|
|
@@ -19,7 +19,7 @@ $toolbar-height: 60px !default;
|
|
|
19
19
|
flex-direction: row;
|
|
20
20
|
align-items: center;
|
|
21
21
|
height: 100%;
|
|
22
|
-
border-right: 1px solid
|
|
22
|
+
border-right: 1px solid getBGColor('neutral-dark');
|
|
23
23
|
|
|
24
24
|
&:empty {
|
|
25
25
|
border-right: none;
|
|
@@ -38,7 +38,7 @@ $toolbar-height: 60px !default;
|
|
|
38
38
|
align-items: center;
|
|
39
39
|
|
|
40
40
|
&:not(:first-of-type) {
|
|
41
|
-
border-left: 1px solid
|
|
41
|
+
border-left: 1px solid getBGColor('neutral-dark');
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
> .toolbar-item {
|
|
@@ -73,7 +73,7 @@ $toolbar-height: 60px !default;
|
|
|
73
73
|
|
|
74
74
|
&:not(:last-of-type) {
|
|
75
75
|
border-right: 0;
|
|
76
|
-
border-bottom: 1px solid
|
|
76
|
+
border-bottom: 1px solid getBGColor('neutral-dark');
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -83,11 +83,11 @@ $toolbar-height: 60px !default;
|
|
|
83
83
|
border-right: 0;
|
|
84
84
|
|
|
85
85
|
> .toolbar-group {
|
|
86
|
-
border-bottom: 1px solid
|
|
86
|
+
border-bottom: 1px solid getBGColor('neutral-dark');
|
|
87
87
|
flex-grow: 1;
|
|
88
88
|
|
|
89
89
|
&:not(:last-of-type) {
|
|
90
|
-
border-right: 1px solid
|
|
90
|
+
border-right: 1px solid getBGColor('neutral-dark');
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -7,61 +7,59 @@ $control-padding-vertical: calc(0.375em - #{$control-border-width}) !default;
|
|
|
7
7
|
$control-padding-horizontal: 20px;
|
|
8
8
|
|
|
9
9
|
%control {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
10
|
+
-moz-appearance: none;
|
|
11
|
+
-webkit-appearance: none;
|
|
12
|
+
align-items: center;
|
|
13
|
+
border: $control-border-width solid transparent;
|
|
14
|
+
border-radius: $control-radius-small;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
font-size: $size-normal;
|
|
17
|
+
height: 2.25em;
|
|
18
|
+
justify-content: flex-start;
|
|
19
|
+
line-height: 1.5;
|
|
20
|
+
padding-bottom: $control-padding-vertical;
|
|
21
|
+
padding-left: $control-padding-horizontal;
|
|
22
|
+
padding-right: $control-padding-horizontal;
|
|
23
|
+
padding-top: $control-padding-vertical;
|
|
24
|
+
position: relative;
|
|
25
|
+
vertical-align: top;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
// bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
|
|
28
|
+
@supports (-webkit-overflow-scrolling: touch) {
|
|
29
|
+
font-size: $text-16;
|
|
30
|
+
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
&.is-active {
|
|
36
|
-
outline: none;
|
|
32
|
+
&:focus,
|
|
33
|
+
&:active {
|
|
34
|
+
outline: none;
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
36
|
+
// répétition nécessaire : bug fix pour iOS qui zoom sur le champ si la police ne fait pas 16px
|
|
37
|
+
@supports (-webkit-overflow-scrolling: touch) {
|
|
38
|
+
font-size: $text-16;
|
|
42
39
|
}
|
|
40
|
+
}
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
&[disabled] {
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
}
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
@mixin control {
|
|
50
|
-
|
|
48
|
+
@extend %control;
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
height: 46px;
|
|
51
|
+
line-height: 1.4;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
@mixin control-small {
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
border-radius: $control-radius-small;
|
|
56
|
+
font-size: $size-small;
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
@mixin control-medium {
|
|
62
|
-
|
|
60
|
+
font-size: $size-medium;
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
@mixin control-large {
|
|
66
|
-
|
|
64
|
+
font-size: $size-large;
|
|
67
65
|
}
|
|
@@ -14,27 +14,16 @@ $size-large: $text-24 !default;
|
|
|
14
14
|
|
|
15
15
|
// Brand Color
|
|
16
16
|
$colors-brand: (
|
|
17
|
-
'background', 'main', '
|
|
17
|
+
'background', 'main', 'alternate'
|
|
18
18
|
);
|
|
19
19
|
|
|
20
20
|
// Brand Color Functionnal
|
|
21
21
|
$colors-brand-funcionnal: (
|
|
22
|
-
'background', 'main', 'alternate', '
|
|
22
|
+
'background', 'main', 'alternate', 'info', 'success', 'error', 'warning'
|
|
23
23
|
);
|
|
24
24
|
|
|
25
25
|
$colors-feedback: (
|
|
26
|
-
'success'
|
|
27
|
-
'bg-success',
|
|
28
|
-
),
|
|
29
|
-
'error': (
|
|
30
|
-
'bg-error',
|
|
31
|
-
),
|
|
32
|
-
'warning': (
|
|
33
|
-
'bg-warning',
|
|
34
|
-
),
|
|
35
|
-
'info': (
|
|
36
|
-
'bg-info',
|
|
37
|
-
),
|
|
26
|
+
'success', 'error', 'warning', 'info'
|
|
38
27
|
);
|
|
39
28
|
|
|
40
29
|
// Gestion des z-index
|
|
@@ -1,37 +1,52 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
2
|
+
|
|
2
3
|
$suffix: '';
|
|
3
4
|
|
|
4
5
|
/*
|
|
5
|
-
All color
|
|
6
|
+
All color variables are defined here
|
|
6
7
|
@string slug name used in classname (You can use your brand name)
|
|
7
8
|
@color A valid css color value
|
|
8
9
|
@invert The slug name of the best inverted color
|
|
9
|
-
@hover A valid css color value (a variant color for the hover case)
|
|
10
|
+
@hover A valid css color value (a variant color for the hover case)
|
|
10
11
|
@visited A valid css color value (a variant color for the pressed case) -- optional
|
|
11
12
|
@background A valid css color value (a variant color for background) -- optional
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
14
|
$colors: (
|
|
15
|
-
'background': ['white', #fff, '
|
|
16
|
-
'main':['
|
|
17
|
-
'alternate':['
|
|
18
|
-
'font':['
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
|
|
27
|
-
'
|
|
28
|
-
|
|
29
|
-
'
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
'background': ['white', #fff, 'main', #E9E9E9],
|
|
16
|
+
'main':['main', #3d5d7e, 'white', #eff2f8],
|
|
17
|
+
'alternate':['accent', #da641b, 'white', #bb5118],
|
|
18
|
+
'font':['main', #3d5d7e, 'white', #BBC6CD],
|
|
19
|
+
'success':['success', #007B52, 'white', #cae8ca],
|
|
20
|
+
'info':['info', #1A688A, 'white', #c8dbec],
|
|
21
|
+
'warning':['warning', #FFBB33, 'white', #ecdbc6],
|
|
22
|
+
'error':['error', #D42D02, 'white',#eecccc],
|
|
23
|
+
/* Grey disabled // BG : bg-disabled */
|
|
24
|
+
'disabled':['disabled', #646464, 'white', #D1D1D1],
|
|
25
|
+
'hovered': ['hovered', #24374a, 'font',#e4eaed],
|
|
26
|
+
/* grey , BG : grey-lighter */
|
|
27
|
+
'neutral':['grey', #707070, 'white', #F4F4F4 ],
|
|
28
|
+
/* grey dark , BG : grey-light */
|
|
29
|
+
'neutral-dark':['grey-dark', #646464, 'white', #E9E9E9 ]
|
|
30
|
+
) !default;
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
Colors for buttons
|
|
34
|
+
@string slug name used in classname (You can use your brand name)
|
|
35
|
+
@color-background The name of the color in the color map for the background
|
|
36
|
+
@color-text The name of the color in the color map for the text
|
|
37
|
+
@effect-hover A valid css filter value or null (brightness(0.8) by default)
|
|
38
|
+
@effect-active A valid css filter value or null (brightness(0.7) by default)
|
|
39
|
+
*/
|
|
40
|
+
$btn-colors: (
|
|
41
|
+
'accent':['accent', 'alternate', 'background', null, null],
|
|
42
|
+
'primary': ['primary', 'main', 'background', brightness(0.8), brightness(0.7)],
|
|
43
|
+
'secondary': ['secondary', 'bg-main', 'main', brightness(0.8), brightness(0.7)],
|
|
44
|
+
'ghost': ['ghost', 'background', 'main', brightness(0.8), brightness(0.7)],
|
|
45
|
+
) !default;
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
$hoverSelector: "&:hover:not([disabled]),&:hover:not([aria-disabled=true])";
|
|
49
|
+
|
|
35
50
|
|
|
36
51
|
// Typography OS-regular
|
|
37
52
|
$family-sans-serif: 'Poppins Read', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
|