@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,316 @@
|
|
|
1
|
+
.slices {
|
|
2
|
+
display: flex;
|
|
3
|
+
background-color: getColor('background');
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
> .slice:not(:last-child),
|
|
7
|
+
> .slice-group:not(:last-child) {
|
|
8
|
+
border-bottom: 1px solid getColor('grey-light');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.is-transparent {
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
|
|
14
|
+
.slice {
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.slice {
|
|
21
|
+
padding: 20px 0;
|
|
22
|
+
display: flex;
|
|
23
|
+
background-color: getColor('background');
|
|
24
|
+
|
|
25
|
+
&:not(.is-disabled):hover {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
|
|
28
|
+
.title {
|
|
29
|
+
color: getColor('alternate');
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.slice-icon,
|
|
33
|
+
.slice-image {
|
|
34
|
+
@include tablet {
|
|
35
|
+
padding-left: 5px;
|
|
36
|
+
transition: padding-left 150ms ease-in-out;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.slice-call-to-action,
|
|
41
|
+
.slice-cta {
|
|
42
|
+
color: getColor('alternate');
|
|
43
|
+
|
|
44
|
+
@include tablet {
|
|
45
|
+
padding-right: 5px;
|
|
46
|
+
transition: padding-right 150ms ease-in-out;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
> * {
|
|
52
|
+
align-self: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.slice-icon,
|
|
56
|
+
.slice-image {
|
|
57
|
+
flex-grow: 0;
|
|
58
|
+
margin-right: 30px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.slice-image {
|
|
62
|
+
.image {
|
|
63
|
+
align-items: center;
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
height: 100px;
|
|
67
|
+
width: 100px;
|
|
68
|
+
|
|
69
|
+
img {
|
|
70
|
+
max-height: 100%;
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.is-rounded {
|
|
75
|
+
max-height: 65%;
|
|
76
|
+
max-width: 65%;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:not(.is-illustrated-mobile) {
|
|
82
|
+
.slice-icon,
|
|
83
|
+
.slice-image {
|
|
84
|
+
@include mobile {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.has-long-cta {
|
|
91
|
+
@include mobile {
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
|
|
94
|
+
> * {
|
|
95
|
+
align-self: flex-start;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.slice-call-to-action,
|
|
100
|
+
.slice-cta {
|
|
101
|
+
@include mobile {
|
|
102
|
+
flex: 0 1 100%;
|
|
103
|
+
margin-top: 20px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.slice-icon ~ .slice-call-to-action,
|
|
108
|
+
.slice-image ~ .slice-call-to-action,
|
|
109
|
+
.slice-icon ~ .slice-cta,
|
|
110
|
+
.slice-image ~ .slice-cta {
|
|
111
|
+
text-align: center;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.slice-content {
|
|
116
|
+
flex: 1;
|
|
117
|
+
padding: 1px; /* Fix flex behavior on safari mobile */
|
|
118
|
+
margin-right: 20px;
|
|
119
|
+
text-align: left;
|
|
120
|
+
|
|
121
|
+
p {
|
|
122
|
+
margin: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
p:not(.title) {
|
|
126
|
+
font-size: 13px;
|
|
127
|
+
color: getColor('font');
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.slice-call-to-action,
|
|
132
|
+
.slice-cta {
|
|
133
|
+
flex-grow: 0;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
|
|
136
|
+
@include mobile {
|
|
137
|
+
.button.is-text {
|
|
138
|
+
display: inline;
|
|
139
|
+
white-space: pre-wrap;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.tri-ui-arrow-right-r {
|
|
144
|
+
font-size: 20px;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
> .field {
|
|
149
|
+
width: 100%;
|
|
150
|
+
|
|
151
|
+
> .control {
|
|
152
|
+
position: relative;
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
min-height: 45px;
|
|
156
|
+
|
|
157
|
+
.is-checkradio[type="checkbox"] {
|
|
158
|
+
&:checked {
|
|
159
|
+
+ label {
|
|
160
|
+
&::after {
|
|
161
|
+
top: inherit;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.is-checkradio[type="radio"] {
|
|
168
|
+
+ label {
|
|
169
|
+
&::before,
|
|
170
|
+
&::after {
|
|
171
|
+
width: 22px;
|
|
172
|
+
height: 22px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&::before {
|
|
176
|
+
transform: translateY(0) translateY(0);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&::after {
|
|
180
|
+
transform: scale(0.5) translateY(0) translateY(0);
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&:checked {
|
|
186
|
+
+ label {
|
|
187
|
+
&::after {
|
|
188
|
+
content: '';
|
|
189
|
+
display: inline-block;
|
|
190
|
+
top: 50%;
|
|
191
|
+
margin-top: -11px;
|
|
192
|
+
margin-left: 4px;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.slice-select {
|
|
202
|
+
.slice {
|
|
203
|
+
.slice-body {
|
|
204
|
+
align-items: center;
|
|
205
|
+
display: flex;
|
|
206
|
+
width: 100%;
|
|
207
|
+
|
|
208
|
+
@include mobile {
|
|
209
|
+
flex-wrap: wrap;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.slice-call-to-action,
|
|
213
|
+
.slice-cta {
|
|
214
|
+
display: none;
|
|
215
|
+
|
|
216
|
+
@include mobile {
|
|
217
|
+
width: 100%;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
& > .field > .control > {
|
|
223
|
+
.is-checkradio[type="checkbox"],
|
|
224
|
+
.is-checkradio[type="radio"] {
|
|
225
|
+
&:checked {
|
|
226
|
+
~ .slice-body {
|
|
227
|
+
.slice-icon,
|
|
228
|
+
.slice-image {
|
|
229
|
+
@include tablet {
|
|
230
|
+
padding-left: 5px;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.title {
|
|
235
|
+
color: getColor('alternate');
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.slice-call-to-action,
|
|
239
|
+
.slice-cta {
|
|
240
|
+
display: block;
|
|
241
|
+
margin-top: 15px;
|
|
242
|
+
|
|
243
|
+
@include tablet {
|
|
244
|
+
padding-right: 5px;
|
|
245
|
+
margin-top: 0;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* TODO: code obsolète, à effacer quand select-line (sélecteur de ligne) ne sera plus */
|
|
256
|
+
.is-select-line.slices {
|
|
257
|
+
.slice {
|
|
258
|
+
padding: 0;
|
|
259
|
+
|
|
260
|
+
> .field > .control {
|
|
261
|
+
flex-direction: row;
|
|
262
|
+
|
|
263
|
+
@include mobile {
|
|
264
|
+
flex-wrap: wrap;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.slice-call-to-action,
|
|
268
|
+
.slice-cta {
|
|
269
|
+
display: none;
|
|
270
|
+
padding-right: 15px;
|
|
271
|
+
|
|
272
|
+
@include mobile {
|
|
273
|
+
justify-content: center;
|
|
274
|
+
padding-right: 0;
|
|
275
|
+
width: 100%;
|
|
276
|
+
margin-bottom: 20px;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.is-checkradio[type="checkbox"],
|
|
281
|
+
.is-checkradio[type="radio"] {
|
|
282
|
+
+ label {
|
|
283
|
+
padding: 20px 12.5px 20px 50px;
|
|
284
|
+
margin: 0;
|
|
285
|
+
flex-direction: row;
|
|
286
|
+
|
|
287
|
+
&::before {
|
|
288
|
+
left: -36px;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.is-checkradio[type="checkbox"]:checked + label::after {
|
|
294
|
+
margin-left: 13px;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.is-checkradio[type="radio"]:checked + label::after {
|
|
298
|
+
margin-left: 14px;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&.is-mutually-exclusive {
|
|
304
|
+
.slice > .field > .control {
|
|
305
|
+
.is-checkradio[type="checkbox"],
|
|
306
|
+
.is-checkradio[type="radio"] {
|
|
307
|
+
&:checked {
|
|
308
|
+
~ .slice-call-to-action,
|
|
309
|
+
~ .slice-cta {
|
|
310
|
+
display: block;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
[data-slider] {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
[data-slider-pages] {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-slider-page] {
|
|
9
|
+
&.column:not(.is-12-mobile) {
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-slides-container] {
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-slide] {
|
|
19
|
+
flex: 0 0 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[data-slider-dots] {
|
|
23
|
+
position: absolute;
|
|
24
|
+
left: 50%;
|
|
25
|
+
bottom: -20px;
|
|
26
|
+
transform: translateX(-50%);
|
|
27
|
+
|
|
28
|
+
&:not(.is-inverted) {
|
|
29
|
+
.slider-dot {
|
|
30
|
+
background-color: getColor('background');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.slider-dot {
|
|
35
|
+
width: 7px;
|
|
36
|
+
height: 7px;
|
|
37
|
+
background-color: getColor('grey');
|
|
38
|
+
border-radius: 100%;
|
|
39
|
+
margin: 4px;
|
|
40
|
+
padding: 0;
|
|
41
|
+
opacity: 1;
|
|
42
|
+
|
|
43
|
+
&.is-active {
|
|
44
|
+
background-color: getColor('alternate');
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-slider-prev],
|
|
50
|
+
[data-slider-next] {
|
|
51
|
+
display: none;
|
|
52
|
+
|
|
53
|
+
@include desktop {
|
|
54
|
+
box-shadow: 0 2px 4px 0 rgba(#000, 0.1);
|
|
55
|
+
display: flex;
|
|
56
|
+
position: absolute;
|
|
57
|
+
z-index: zindex("tiny");
|
|
58
|
+
top: 50%;
|
|
59
|
+
left: 30px;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-slider-next] {
|
|
66
|
+
left: auto;
|
|
67
|
+
right: 30px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.is-motionless-desktop {
|
|
71
|
+
@include desktop {
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
|
|
74
|
+
a,
|
|
75
|
+
.link,
|
|
76
|
+
.button {
|
|
77
|
+
pointer-events: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slider-page] {
|
|
81
|
+
min-width: auto;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
> .pricing-table {
|
|
87
|
+
@include mobile {
|
|
88
|
+
flex-direction: row;
|
|
89
|
+
flex-wrap: nowrap;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|