@trilogy-ds/styles 0.0.1-beta-139 → 0.0.1-beta-142

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.
@@ -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: inline-block;
6
- margin: 16px 0;
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;
@@ -43,6 +43,14 @@
43
43
  }
44
44
  }
45
45
 
46
+ &:has(.tab-list.is-aligned-start) {
47
+ text-align: left;
48
+ }
49
+
50
+ &:has(.tab-list.is-aligned-end) {
51
+ text-align: right;
52
+ }
53
+
46
54
  .tab-list {
47
55
  background-color: transparent;
48
56
  height: 48px;
@@ -2,17 +2,22 @@
2
2
 
3
3
  .radios {
4
4
  width: 100%;
5
- column-gap: 16px;
5
+ gap: 16px;
6
6
  display: flex;
7
7
  flex-wrap: wrap;
8
+ flex-direction: column;
8
9
 
9
- &.is-vertical {
10
- row-gap: 16px;
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
- &:not(.is-mobile){
15
- display: block;
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
- input:checked ~ label.radio-label {
29
- cursor: default;
30
- &:after {
31
- content: '';
32
- width: 12px;
33
- height: 12px;
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
- label.radio-label {
38
- &:before,
39
- &:after {
40
- border-radius: 9999px;
41
- }
43
+ label.radio-label {
44
+ &:before,
45
+ &:after {
46
+ border-radius: 9999px;
42
47
  }
48
+ }
43
49
  }
44
50
 
45
51
  .radio {
46
- input:checked ~ label.radio-label {
47
- &:after {
48
- left: 3px;
49
- }
52
+ input:checked ~ label.radio-label {
53
+ &:after {
54
+ left: 3px;
50
55
  }
56
+ }
51
57
 
52
- input:not(:disabled):not(:checked) ~ label.radio-label:hover {
53
- &:before {
54
- @include hoverRules()
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
- input:checked ~ label.radio-label {
62
- &:after {
63
- top: 18px;
64
- right: 18px;
65
- }
67
+ input:checked ~ label.radio-label {
68
+ &:after {
69
+ top: 18px;
70
+ right: 18px;
66
71
  }
72
+ }
67
73
 
68
- input:checked:disabled ~ label.radio-label {
69
- &:after {
70
- background-color: getColor('neutral');
71
- top: 19px;
72
- right: 19px;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta-139",
3
+ "version": "0.0.1-beta-142",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [