@trilogy-ds/styles 0.0.1-beta-148 → 0.0.1-beta-sc-2
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/base/_helpers.scss +1 -1
- package/framework/src/components/_accordion.scss +4 -4
- package/framework/src/components/_divider.scss +1 -0
- package/framework/src/components/_modal.scss +16 -14
- package/framework/src/components/_otp.scss +1 -1
- package/framework/src/components/_price.scss +71 -6
- package/framework/src/components/_progress-radial.scss +24 -24
- package/framework/src/components/_segmented-control.scss +2 -14
- package/framework/src/components/_tabs.scss +24 -16
- package/framework/src/elements/_badge.scss +18 -40
- package/framework/src/elements/_box.scss +37 -39
- package/framework/src/elements/_image.scss +40 -50
- package/framework/src/elements/_list.scss +24 -33
- package/framework/src/elements/_paragraph.scss +44 -32
- package/framework/src/elements/_progress.scss +0 -20
- package/framework/src/elements/_radio.scss +37 -43
- package/framework/src/elements/_switch.scss +0 -6
- package/framework/src/elements/_table.scss +15 -15
- package/framework/src/elements/_tag.scss +2 -2
- package/framework/src/grid/_columns.scss +81 -85
- package/framework/src/grid/_rows.scss +14 -19
- package/framework/src/layout/_hero.scss +28 -0
- package/framework/src/theming/common_partials.scss +0 -1
- package/framework/src/utilities/_mixins.scss +6 -8
- package/package.json +1 -1
|
@@ -1,69 +1,59 @@
|
|
|
1
1
|
.image {
|
|
2
|
-
display: block;
|
|
3
|
-
position: relative;
|
|
4
|
-
|
|
5
|
-
&.is-justified-start,
|
|
6
|
-
&.is-justified-center,
|
|
7
|
-
&.is-justified-end {
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
img {
|
|
12
2
|
display: block;
|
|
13
|
-
|
|
3
|
+
position: relative;
|
|
14
4
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
img {
|
|
6
|
+
display: block;
|
|
7
|
+
max-width: 100%;
|
|
18
8
|
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
&.b-loaded {
|
|
10
|
+
height: auto;
|
|
11
|
+
}
|
|
21
12
|
}
|
|
22
|
-
}
|
|
23
13
|
}
|
|
24
14
|
|
|
25
15
|
.b-lazy {
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
transition: opacity 250ms ease-in-out;
|
|
17
|
+
opacity: 0;
|
|
28
18
|
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
&.b-loaded {
|
|
20
|
+
opacity: 1;
|
|
31
21
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
&.has-bg-image {
|
|
23
|
+
&.has-bg-gradient {
|
|
24
|
+
&::before {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
36
28
|
}
|
|
37
|
-
}
|
|
38
29
|
}
|
|
39
|
-
}
|
|
40
30
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 0;
|
|
47
|
-
bottom: 0;
|
|
48
|
-
left: 0;
|
|
49
|
-
right: 0;
|
|
50
|
-
height: 100%;
|
|
51
|
-
|
|
52
|
-
&.has-bg-gradient {
|
|
53
|
-
z-index: zindex('void');
|
|
54
|
-
opacity: 1;
|
|
55
|
-
|
|
56
|
-
&::before {
|
|
57
|
-
content: '';
|
|
58
|
-
opacity: 1;
|
|
31
|
+
&.has-bg-image {
|
|
32
|
+
background-repeat: no-repeat;
|
|
33
|
+
background-position: center center;
|
|
34
|
+
background-size: cover;
|
|
59
35
|
position: absolute;
|
|
60
36
|
top: 0;
|
|
37
|
+
bottom: 0;
|
|
61
38
|
left: 0;
|
|
62
39
|
right: 0;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
40
|
+
height: 100%;
|
|
41
|
+
|
|
42
|
+
&.has-bg-gradient {
|
|
43
|
+
z-index: zindex('void');
|
|
44
|
+
opacity: 1;
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
content: '';
|
|
48
|
+
opacity: 1;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
z-index: zindex('tiny');
|
|
55
|
+
transition: opacity 750ms ease-in-out;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
67
58
|
}
|
|
68
|
-
}
|
|
69
59
|
}
|
|
@@ -1,62 +1,53 @@
|
|
|
1
1
|
// Bullet list classiques
|
|
2
2
|
ul.list,
|
|
3
3
|
ol.list {
|
|
4
|
-
list-style:
|
|
5
|
-
display: grid;
|
|
6
|
-
row-gap: $spacing-3;
|
|
4
|
+
list-style-type: none;
|
|
7
5
|
|
|
8
|
-
li
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
display: flex;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.icon {
|
|
15
|
-
margin-right: $spacing-2;
|
|
16
|
-
justify-content: flex-start;
|
|
17
|
-
align-items: flex-start;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.list-item-content {
|
|
21
|
-
display: inline-grid;
|
|
6
|
+
li {
|
|
7
|
+
padding: $spacing-4;
|
|
8
|
+
position: relative;
|
|
22
9
|
|
|
10
|
+
.list-item_content {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
23
13
|
&_puce {
|
|
24
14
|
margin-right: $spacing-4;
|
|
25
15
|
}
|
|
26
16
|
}
|
|
27
17
|
|
|
18
|
+
|
|
28
19
|
&.has-action {
|
|
29
20
|
display: flex;
|
|
30
21
|
justify-content: space-between;
|
|
31
22
|
align-items: center;
|
|
23
|
+
@include hover();
|
|
32
24
|
|
|
33
25
|
.list-item_action {
|
|
34
|
-
&
|
|
35
|
-
margin:
|
|
26
|
+
& >:first-child {
|
|
27
|
+
margin: 0px !important;
|
|
36
28
|
cursor: pointer;
|
|
37
29
|
}
|
|
38
30
|
|
|
39
|
-
.radio label.radio-label:empty,
|
|
31
|
+
.radio label.radio-label:empty,
|
|
40
32
|
.checkbox label.checkbox-label:empty {
|
|
41
|
-
padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
|
|
33
|
+
padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
|
|
42
34
|
}
|
|
43
|
-
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
div b {
|
|
47
|
-
margin-bottom: $spacing-2;
|
|
41
|
+
margin-bottom: $spacing-2 ;
|
|
48
42
|
}
|
|
49
|
-
}
|
|
50
43
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
&:last-child {
|
|
57
|
-
border-bottom: none;
|
|
58
|
-
padding-bottom: 0;
|
|
59
|
-
}
|
|
44
|
+
.divider {
|
|
45
|
+
position: absolute;
|
|
46
|
+
bottom: calc(-1 * $spacing-4);
|
|
47
|
+
width: 100%;
|
|
60
48
|
}
|
|
49
|
+
|
|
61
50
|
}
|
|
51
|
+
|
|
62
52
|
}
|
|
53
|
+
|
|
@@ -14,54 +14,66 @@ $text-levels-mobile: (
|
|
|
14
14
|
|
|
15
15
|
.text {
|
|
16
16
|
@each $text-level in $text-levels {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
$i: index($text-levels, $text-level);
|
|
18
|
+
$font-size: nth($text-level, 1);
|
|
19
|
+
$line-height: nth($text-level, 2);
|
|
20
|
+
$margin-bottom: nth($text-level, 3);
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
&.is-level-#{$i} {
|
|
23
|
+
font-size: $font-size;
|
|
24
|
+
line-height: $line-height;
|
|
25
|
+
font-family: $family-primary;
|
|
26
|
+
margin-bottom: $margin-bottom;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.is-inverted {
|
|
31
|
+
color: getColor('background');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include mobile {
|
|
35
|
+
@each $text-level-mobile in $text-levels-mobile {
|
|
36
|
+
$i: index($text-levels-mobile, $text-level-mobile);
|
|
37
|
+
$margin-bottom: nth($text-level-mobile, 3);
|
|
27
38
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
&.is-level-#{$i} {
|
|
40
|
+
margin-bottom: $margin-bottom;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
31
44
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
&.is-wrapped {
|
|
46
|
+
word-break: break-word;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.bold {
|
|
50
|
+
font-weight: $weight-bold;
|
|
51
|
+
}
|
|
35
52
|
}
|
|
36
|
-
}
|
|
37
53
|
|
|
38
|
-
&.is-wrapped {
|
|
39
|
-
word-break: break-word;
|
|
40
|
-
}
|
|
41
54
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
55
|
+
.paragraph:not(:last-child) {
|
|
56
|
+
margin-bottom: 10px;
|
|
45
57
|
}
|
|
46
58
|
|
|
47
59
|
.span {
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
font-style: inherit;
|
|
61
|
+
font-weight: inherit;
|
|
50
62
|
}
|
|
51
63
|
|
|
52
64
|
.strong {
|
|
53
|
-
|
|
54
|
-
|
|
65
|
+
color: inherit;
|
|
66
|
+
font-weight: $weight-bold;
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
.sup {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
line-height: 0;
|
|
71
|
+
position: relative;
|
|
72
|
+
vertical-align: baseline;
|
|
73
|
+
top: -0.4em;
|
|
74
|
+
font-size: 0.7em;
|
|
63
75
|
}
|
|
64
76
|
|
|
65
77
|
.small {
|
|
66
|
-
|
|
78
|
+
font-size: 0.875em;
|
|
67
79
|
}
|
|
@@ -201,23 +201,3 @@ $slides-concat: '';
|
|
|
201
201
|
$slides-concat: $slides-concat + ' + ' + var(--#{$name});
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
.progress-legends {
|
|
206
|
-
display: grid;
|
|
207
|
-
grid-template-columns: repeat(3, 1fr);
|
|
208
|
-
|
|
209
|
-
.progress-legend-start {
|
|
210
|
-
grid-column: 1;
|
|
211
|
-
text-align: left;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.progress-legend-center {
|
|
215
|
-
grid-column: 2;
|
|
216
|
-
text-align: center;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.progress-legend-end {
|
|
220
|
-
grid-column: 3;
|
|
221
|
-
text-align: right;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
@@ -2,22 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
.radios {
|
|
4
4
|
width: 100%;
|
|
5
|
-
gap: 16px;
|
|
5
|
+
column-gap: 16px;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-wrap: wrap;
|
|
8
|
-
flex-direction: column;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
&.is-vertical-desktop {
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
}
|
|
9
|
+
&.is-vertical {
|
|
10
|
+
row-gap: 16px;
|
|
16
11
|
}
|
|
17
12
|
|
|
18
13
|
@include mobile {
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
&:not(.is-mobile){
|
|
15
|
+
display: block;
|
|
21
16
|
}
|
|
22
17
|
}
|
|
23
18
|
|
|
@@ -30,52 +25,51 @@
|
|
|
30
25
|
|
|
31
26
|
.radio,
|
|
32
27
|
.radio-tile {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
input:checked ~ label.radio-label {
|
|
29
|
+
cursor: default;
|
|
30
|
+
&:after {
|
|
31
|
+
content: '';
|
|
32
|
+
width: 12px;
|
|
33
|
+
height: 12px;
|
|
34
|
+
}
|
|
40
35
|
}
|
|
41
|
-
}
|
|
42
36
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
label.radio-label {
|
|
38
|
+
&:before,
|
|
39
|
+
&:after {
|
|
40
|
+
border-radius: 9999px;
|
|
41
|
+
}
|
|
47
42
|
}
|
|
48
|
-
}
|
|
49
43
|
}
|
|
50
44
|
|
|
51
45
|
.radio {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
input:checked ~ label.radio-label {
|
|
47
|
+
&:after {
|
|
48
|
+
left: 3px;
|
|
49
|
+
}
|
|
55
50
|
}
|
|
56
|
-
}
|
|
57
51
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
input:not(:disabled):not(:checked) ~ label.radio-label:hover {
|
|
53
|
+
&:before {
|
|
54
|
+
@include hoverRules()
|
|
55
|
+
}
|
|
61
56
|
}
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
.radio-tile {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
61
|
+
input:checked ~ label.radio-label {
|
|
62
|
+
&:after {
|
|
63
|
+
top: 18px;
|
|
64
|
+
right: 18px;
|
|
65
|
+
}
|
|
71
66
|
}
|
|
72
|
-
}
|
|
73
67
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
input:checked:disabled ~ label.radio-label {
|
|
69
|
+
&:after {
|
|
70
|
+
background-color: getColor('neutral');
|
|
71
|
+
top: 19px;
|
|
72
|
+
right: 19px;
|
|
73
|
+
}
|
|
79
74
|
}
|
|
80
|
-
}
|
|
81
75
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
.switch {
|
|
2
2
|
position: relative;
|
|
3
3
|
margin: 8px;
|
|
4
|
-
width: fit-content;
|
|
5
|
-
|
|
6
|
-
&.is-fullwidth {
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
4
|
|
|
10
5
|
input {
|
|
11
6
|
display: none;
|
|
@@ -13,7 +8,6 @@
|
|
|
13
8
|
&:disabled ~ label,
|
|
14
9
|
&:disabled:checked ~ label {
|
|
15
10
|
cursor: not-allowed;
|
|
16
|
-
|
|
17
11
|
&:before {
|
|
18
12
|
background-color: getColor('disabled');
|
|
19
13
|
}
|
|
@@ -153,9 +153,7 @@
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
border: 1px solid getColor('neutral-fade');
|
|
158
|
-
|
|
156
|
+
&:not(.is-bordered).is-comparative {
|
|
159
157
|
th {
|
|
160
158
|
border-right: 1px solid getColor('neutral-fade');
|
|
161
159
|
}
|
|
@@ -167,24 +165,26 @@
|
|
|
167
165
|
}
|
|
168
166
|
}
|
|
169
167
|
|
|
170
|
-
&.
|
|
168
|
+
&.is-compact {
|
|
169
|
+
td,
|
|
171
170
|
th {
|
|
172
|
-
|
|
173
|
-
border-right: 1px solid getColor('neutral-fade');
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
td {
|
|
178
|
-
&:not(:last-child) {
|
|
179
|
-
border-right: 1px solid getColor('neutral-fade');
|
|
180
|
-
}
|
|
171
|
+
padding: math.div(20px, 3) math.div(20px, 3);
|
|
181
172
|
}
|
|
182
173
|
}
|
|
183
174
|
|
|
184
|
-
&.is-
|
|
175
|
+
&.is-bordered {
|
|
185
176
|
td,
|
|
186
177
|
th {
|
|
187
|
-
|
|
178
|
+
border-width: 1px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
tr {
|
|
182
|
+
&:last-child {
|
|
183
|
+
td,
|
|
184
|
+
th {
|
|
185
|
+
border-bottom-width: 1px;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -2,10 +2,10 @@ $tag-delete-margin: 1px !default;
|
|
|
2
2
|
|
|
3
3
|
// container pour multi-tags ou tags avec actions
|
|
4
4
|
.tags {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: flex-start;
|
|
7
5
|
align-items: center;
|
|
6
|
+
display: inline-flex;
|
|
8
7
|
flex-wrap: wrap;
|
|
8
|
+
justify-content: flex-start;
|
|
9
9
|
margin-bottom: 16px;
|
|
10
10
|
|
|
11
11
|
// multi-tags : ajout d'une marge bottom, supprimable par facette
|