@trilogy-ds/styles 0.0.1-beta-139 → 0.0.1-beta-141
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/components/_price.scss +0 -69
- package/framework/src/components/_segmented-control.scss +14 -2
- package/framework/src/elements/_radio.scss +43 -37
- package/framework/src/elements/_tag.scss +2 -2
- package/package.json +1 -1
|
@@ -14,37 +14,21 @@ $price-levels: (
|
|
|
14
14
|
column-gap: 12px;
|
|
15
15
|
flex-wrap: wrap;
|
|
16
16
|
--font-size: #{$text-64};
|
|
17
|
-
--tag-period-size: #{$text-16};
|
|
18
17
|
|
|
19
18
|
@each $price-level in $price-levels {
|
|
20
19
|
$i: index($price-levels, $price-level);
|
|
21
20
|
$font-size: nth($price-level, 1);
|
|
22
21
|
$strike-font-size: nth($price-level, 2);
|
|
23
|
-
$tag-size: nth($price-level, 3);
|
|
24
|
-
$tag-period-size: nth($price-level, 4);
|
|
25
22
|
|
|
26
23
|
&.is-level-#{$i} {
|
|
27
24
|
--font-size: #{$font-size};
|
|
28
25
|
--strike-font-size: #{$strike-font-size};
|
|
29
|
-
--tag-amount-size: #{$tag-size};
|
|
30
|
-
--tag-period-size: #{$tag-period-size};
|
|
31
26
|
|
|
32
27
|
@if $i > 4 {
|
|
33
28
|
.price-details {
|
|
34
29
|
padding-left: 2px;
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
|
-
@if $i > 3 {
|
|
38
|
-
+ .price-tag {
|
|
39
|
-
&::before {
|
|
40
|
-
border-width: 3px;
|
|
41
|
-
margin-left: -6px;
|
|
42
|
-
border-radius: 1px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
padding: 4px !important;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
32
|
}
|
|
49
33
|
}
|
|
50
34
|
|
|
@@ -63,20 +47,6 @@ $price-levels: (
|
|
|
63
47
|
}
|
|
64
48
|
}
|
|
65
49
|
|
|
66
|
-
.price-tag {
|
|
67
|
-
padding: calc(var(--tag-period-size) / 2);
|
|
68
|
-
font-size: var(--tag-amount-size);
|
|
69
|
-
|
|
70
|
-
&:before {
|
|
71
|
-
margin-left: calc(4px - var(--tag-period-size));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.tag-period {
|
|
75
|
-
font-size: var(--tag-period-size);
|
|
76
|
-
margin-bottom: calc(calc(var(--tag-period-size) - 10px) / 2);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
50
|
}
|
|
81
51
|
|
|
82
52
|
.price {
|
|
@@ -186,42 +156,3 @@ $price-levels: (
|
|
|
186
156
|
}
|
|
187
157
|
}
|
|
188
158
|
}
|
|
189
|
-
|
|
190
|
-
.price-tag {
|
|
191
|
-
line-height: 1em;
|
|
192
|
-
align-self: center;
|
|
193
|
-
background-color: getColor('accent');
|
|
194
|
-
border-radius: 6px;
|
|
195
|
-
display: inline-flex;
|
|
196
|
-
color: getColor('background');
|
|
197
|
-
height: fit-content;
|
|
198
|
-
font-size: 28px;
|
|
199
|
-
align-items: baseline;
|
|
200
|
-
position: relative;
|
|
201
|
-
margin-left: -4px;
|
|
202
|
-
|
|
203
|
-
&::before {
|
|
204
|
-
content: '';
|
|
205
|
-
border-color: transparent;
|
|
206
|
-
border-bottom-color: getColor('accent');
|
|
207
|
-
border-left-color: getColor('accent');
|
|
208
|
-
transform: rotate(45deg);
|
|
209
|
-
border-style: solid;
|
|
210
|
-
border-width: 6px;
|
|
211
|
-
border-radius: 2px;
|
|
212
|
-
pointer-events: none;
|
|
213
|
-
position: absolute;
|
|
214
|
-
margin-left: -12px;
|
|
215
|
-
top: 0;
|
|
216
|
-
bottom: 0;
|
|
217
|
-
margin-top: auto;
|
|
218
|
-
margin-bottom: auto;
|
|
219
|
-
transform-origin: center;
|
|
220
|
-
height: 0;
|
|
221
|
-
width: 0;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.tag-period {
|
|
225
|
-
place-self: flex-end;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
@@ -2,8 +2,20 @@
|
|
|
2
2
|
border-radius: 6px;
|
|
3
3
|
padding: $spacing-1;
|
|
4
4
|
background-color: getColor('neutral-fade');
|
|
5
|
-
display:
|
|
6
|
-
margin:
|
|
5
|
+
display: flex;
|
|
6
|
+
margin-left: auto;
|
|
7
|
+
margin-right: auto;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
|
|
10
|
+
&.justified-start {
|
|
11
|
+
margin-left: 0;
|
|
12
|
+
margin-right: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.justified-end {
|
|
16
|
+
margin-right: 0;
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
}
|
|
7
19
|
|
|
8
20
|
@include mobile {
|
|
9
21
|
display: flex;
|
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
.radios {
|
|
4
4
|
width: 100%;
|
|
5
|
-
|
|
5
|
+
gap: 16px;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-wrap: wrap;
|
|
8
|
+
flex-direction: column;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
@include tablet {
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
|
|
13
|
+
&.is-vertical-desktop {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
}
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
@include mobile {
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
&.is-horizontal-mobile {
|
|
20
|
+
flex-direction: row;
|
|
16
21
|
}
|
|
17
22
|
}
|
|
18
23
|
|
|
@@ -25,51 +30,52 @@
|
|
|
25
30
|
|
|
26
31
|
.radio,
|
|
27
32
|
.radio-tile {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
input:checked ~ label.radio-label {
|
|
34
|
+
cursor: default;
|
|
35
|
+
|
|
36
|
+
&:after {
|
|
37
|
+
content: '';
|
|
38
|
+
width: 12px;
|
|
39
|
+
height: 12px;
|
|
35
40
|
}
|
|
41
|
+
}
|
|
36
42
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
43
|
+
label.radio-label {
|
|
44
|
+
&:before,
|
|
45
|
+
&:after {
|
|
46
|
+
border-radius: 9999px;
|
|
42
47
|
}
|
|
48
|
+
}
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
.radio {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
52
|
+
input:checked ~ label.radio-label {
|
|
53
|
+
&:after {
|
|
54
|
+
left: 3px;
|
|
50
55
|
}
|
|
56
|
+
}
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
58
|
+
input:not(:disabled):not(:checked) ~ label.radio-label:hover {
|
|
59
|
+
&:before {
|
|
60
|
+
@include hoverRules()
|
|
56
61
|
}
|
|
57
|
-
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
.radio-tile {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
67
|
+
input:checked ~ label.radio-label {
|
|
68
|
+
&:after {
|
|
69
|
+
top: 18px;
|
|
70
|
+
right: 18px;
|
|
66
71
|
}
|
|
72
|
+
}
|
|
67
73
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
+
input:checked:disabled ~ label.radio-label {
|
|
75
|
+
&:after {
|
|
76
|
+
background-color: getColor('neutral');
|
|
77
|
+
top: 19px;
|
|
78
|
+
right: 19px;
|
|
74
79
|
}
|
|
80
|
+
}
|
|
75
81
|
}
|
|
@@ -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;
|
|
5
7
|
align-items: center;
|
|
6
|
-
display: inline-flex;
|
|
7
8
|
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
|