@trilogy-ds/styles 0.0.1-beta-126 → 0.0.1-beta-131

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.
@@ -433,7 +433,7 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
433
433
  }
434
434
 
435
435
  // Radius
436
- $radius-list: ['radius-small', 'radius'];
436
+ $radius-list: ['radius-large', 'radius-medium', 'radius-small', 'radius'];
437
437
 
438
438
  @each $label in $radius-list {
439
439
  .has-border-#{$label} {
@@ -1,7 +1,6 @@
1
1
  .divider {
2
2
  background-color: getColor('neutral');
3
3
  height: 1px;
4
- width: 100%;
5
4
  display: flex;
6
5
  justify-content: center;
7
6
  align-items: center;
@@ -71,19 +71,14 @@ body:has(.modal.is-active) {
71
71
  color: getColor('font');
72
72
  overflow: auto;
73
73
  position: relative;
74
- padding: 0 30px 30px;
74
+ padding: $spacing-5;
75
75
  margin: 0 $modal-content-margin-mobile;
76
76
  max-height: calc(100vh - 40px);
77
- text-align: center;
78
77
  width: 100%;
79
78
  z-index: zindex('tiny');
80
79
  transition: transform ease-in-out 250ms;
81
80
  transform: translateY(100%);
82
81
 
83
- &:has(.modal-footer) {
84
- padding-bottom: 0;
85
- }
86
-
87
82
  @include tablet {
88
83
  max-height: calc(100vh - 120px);
89
84
  width: $modal-content-width;
@@ -113,7 +108,11 @@ body:has(.modal.is-active) {
113
108
  width: 100%;
114
109
  background: getColor('background');
115
110
  bottom: 0;
116
- padding: 16px;
111
+
112
+ @include tablet {
113
+ display: flex;
114
+ justify-content: flex-end;
115
+ }
117
116
  }
118
117
 
119
118
  // If Close Icon Modal & Title Modal are sibling elements, override margin
@@ -126,9 +125,9 @@ body:has(.modal.is-active) {
126
125
  @include delete;
127
126
 
128
127
  background-color: getColor('background');
129
- position: sticky;
130
- top: 20px;
131
- left: 100%;
128
+ position: absolute;
129
+ top: $spacing-5;
130
+ right: $spacing-5;
132
131
  display: block;
133
132
  height: $modal-close-dimensions;
134
133
  width: $modal-close-dimensions;
@@ -144,11 +143,6 @@ body:has(.modal.is-active) {
144
143
  }
145
144
  }
146
145
 
147
- .modal-title {
148
- padding: 20px 0;
149
- }
150
-
151
- .modal-title,
152
146
  .modal-header {
153
147
  color: getColor('font');
154
148
  font-family: $family-sans-serif;
@@ -162,6 +156,10 @@ body:has(.modal.is-active) {
162
156
  width: 100%;
163
157
  word-wrap: break-word;
164
158
 
159
+ &:has(.icon) {
160
+ text-align: center;
161
+ }
162
+
165
163
  @include desktop {
166
164
  font-size: $size-3-desktop;
167
165
  }
@@ -203,4 +201,4 @@ body:has(.modal.is-active) {
203
201
  }
204
202
  }
205
203
  }
206
- }
204
+ }
@@ -67,7 +67,7 @@
67
67
  }
68
68
  }
69
69
 
70
- .otp-error-message {
70
+ .help {
71
71
  font-size: $text-12;
72
72
  margin-top: 4px;
73
73
  }
@@ -14,18 +14,18 @@ $price-levels: (
14
14
  column-gap: 12px;
15
15
  flex-wrap: wrap;
16
16
  --font-size: #{$text-64};
17
- --tag-period-size:#{$text-16};
17
+ --tag-period-size: #{$text-16};
18
18
 
19
19
  @each $price-level in $price-levels {
20
20
  $i: index($price-levels, $price-level);
21
21
  $font-size: nth($price-level, 1);
22
- $striked-font-size: nth($price-level, 2);
22
+ $strike-font-size: nth($price-level, 2);
23
23
  $tag-size: nth($price-level, 3);
24
24
  $tag-period-size: nth($price-level, 4);
25
25
 
26
26
  &.is-level-#{$i} {
27
27
  --font-size: #{$font-size};
28
- --striked-font-size: #{$striked-font-size};
28
+ --strike-font-size: #{$strike-font-size};
29
29
  --tag-amount-size: #{$tag-size};
30
30
  --tag-period-size: #{$tag-period-size};
31
31
 
@@ -41,6 +41,7 @@ $price-levels: (
41
41
  margin-left: -6px;
42
42
  border-radius: 1px;
43
43
  }
44
+
44
45
  padding: 4px !important;
45
46
  }
46
47
  }
@@ -56,22 +57,23 @@ $price-levels: (
56
57
 
57
58
  .price {
58
59
  font-size: var(--font-size);
59
- &.is-striked {
60
- font-size: var(--striked-font-size);
60
+
61
+ &.strike {
62
+ font-size: var(--strike-font-size);
61
63
  }
62
64
  }
63
65
 
64
66
  .price-tag {
65
- padding: calc(var(--tag-period-size)/2);
67
+ padding: calc(var(--tag-period-size) / 2);
66
68
  font-size: var(--tag-amount-size);
67
69
 
68
70
  &:before {
69
- margin-left:calc(4px - var(--tag-period-size));
71
+ margin-left: calc(4px - var(--tag-period-size));
70
72
  }
71
73
 
72
74
  .tag-period {
73
75
  font-size: var(--tag-period-size);
74
- margin-bottom: calc( calc( var(--tag-period-size) - 10px) / 2);
76
+ margin-bottom: calc(calc(var(--tag-period-size) - 10px) / 2);
75
77
  }
76
78
  }
77
79
 
@@ -152,14 +154,14 @@ $price-levels: (
152
154
  }
153
155
  }
154
156
 
155
- &.is-striked {
157
+ &.strike {
156
158
  &::before {
157
159
  transform: rotate(-12deg);
158
160
  }
159
161
  }
160
162
  }
161
163
 
162
- &.is-striked {
164
+ &.strike {
163
165
  position: relative;
164
166
  color: getColor('neutral');
165
167
 
@@ -197,6 +199,7 @@ $price-levels: (
197
199
  align-items: baseline;
198
200
  position: relative;
199
201
  margin-left: -4px;
202
+
200
203
  &::before {
201
204
  content: '';
202
205
  border-color: transparent;
@@ -217,6 +220,7 @@ $price-levels: (
217
220
  height: 0;
218
221
  width: 0;
219
222
  }
223
+
220
224
  .tag-period {
221
225
  place-self: flex-end;
222
226
  }
@@ -1,28 +1,28 @@
1
1
  .progress-radial {
2
- background: radial-gradient(white 58%, transparent 51%),
3
- conic-gradient(gainsboro 0deg 360deg, gainsboro 0deg 360deg);
4
- border-radius: 50%;
5
- width: 124px;
6
- height: 124px;
7
- position: relative;
2
+ background: radial-gradient(white 58%, transparent 51%),
3
+ conic-gradient(gainsboro 0deg 360deg, gainsboro 0deg 360deg);
4
+ border-radius: 50%;
5
+ width: 124px;
6
+ height: 124px;
7
+ position: relative;
8
8
 
9
- .progress-radial-content {
10
- border: 1px solid white;
11
- border-radius: 50%;
12
- width: 100%;
13
- height: 100%;
14
- position: absolute;
15
- top: 50%;
16
- left: 50%;
17
- transform: translate(-50%, -50%);
18
- display: flex;
19
- flex-direction: column;
20
- justify-content: center;
21
- align-items: center;
22
- }
9
+ .progress-radial-content {
10
+ border: 1px solid white;
11
+ border-radius: 50%;
12
+ width: 100%;
13
+ height: 100%;
14
+ position: absolute;
15
+ top: 50%;
16
+ left: 50%;
17
+ transform: translate(-50%, -50%);
18
+ display: flex;
19
+ flex-direction: column;
20
+ justify-content: center;
21
+ align-items: center;
22
+ }
23
23
 
24
- &.is-small {
25
- width: 75px;
26
- height: 75px;
27
- }
24
+ &.is-small {
25
+ width: 75px;
26
+ height: 75px;
27
+ }
28
28
  }
@@ -1,20 +1,16 @@
1
1
  @use 'sass:math';
2
2
  @import "../utilities/spacing";
3
3
 
4
- $font-size-header: 15;
5
- $font-line-height-header: 1.5;
6
- $padding-top-bottom-header: 8;
7
-
8
-
9
4
  :root {
10
- --padding-box : #{$spacing-5};
5
+ --padding-box: #{$spacing-5};
11
6
  @include mobile {
12
- --padding-box : #{$spacing-4};
7
+ --padding-box: #{$spacing-4};
13
8
  }
14
9
  }
15
10
 
16
11
  $highlighted-border-width: 4px;
17
12
 
13
+
18
14
  a.box {
19
15
  cursor: pointer;
20
16
  transition: box-shadow $animation-duration;
@@ -44,6 +40,16 @@ a.box {
44
40
  outline: var(--border-active);
45
41
  }
46
42
 
43
+ &.is-offset-header {
44
+ @include tablet {
45
+ margin-top: 40px;
46
+
47
+ &.is-fullheight {
48
+ height: calc(100% - 40px);
49
+ }
50
+ }
51
+ }
52
+
47
53
  &.is-fullheight {
48
54
  .box-content {
49
55
  flex-grow: 1;
@@ -54,22 +60,13 @@ a.box {
54
60
  box-shadow: none;
55
61
  border: var(--border);
56
62
 
57
- &.has-hat > .is-hat {
58
- left: -1px;
59
- right: -1px;
60
- }
61
-
62
63
  .box-header {
63
- margin-top: calc(var(--padding-box)*-1 - 1px);
64
- margin-left: calc(var(--padding-box)*-1 - 1px);
65
- margin-right: calc(var(--padding-box)*-1 - 1px);
64
+ margin-top: calc(var(--padding-box) * -1 - 1px);
65
+ margin-left: calc(var(--padding-box) * -1 - 1px);
66
+ margin-right: calc(var(--padding-box) * -1 - 1px);
66
67
  }
67
68
  }
68
69
 
69
- &.is-header-offset {
70
- margin-top: #{$font-size-header * $font-line-height-header + 2 * $padding-top-bottom-header}px;
71
- }
72
-
73
70
  &.is-highlighted {
74
71
  border-left: $highlighted-border-width solid transparent;
75
72
  border-top-left-radius: calc(var(--radius) + $highlighted-border-width);
@@ -78,14 +75,14 @@ a.box {
78
75
  $color: getColor($name);
79
76
  $brandName: getColorBrandName($name);
80
77
 
81
- &.is-#{$brandName}{
78
+ &.is-#{$brandName} {
82
79
  border-left-color: $color;
83
80
  border-left-width: $highlighted-border-width;
84
81
  }
85
82
  }
86
83
 
87
- .box-header{
88
- margin-left: calc(var(--padding-box)*-1 - $highlighted-border-width);
84
+ .box-header {
85
+ margin-left: calc(var(--padding-box) * -1 - $highlighted-border-width);
89
86
  }
90
87
  }
91
88
 
@@ -93,9 +90,9 @@ a.box {
93
90
  z-index: inherit;
94
91
  background-color: getColor('font');
95
92
  color: getColor('background');
96
- margin-top: calc(var(--padding-box)*-1);
97
- margin-left: calc(var(--padding-box)*-1);
98
- margin-right: calc(var(--padding-box)*-1);
93
+ margin-top: calc(var(--padding-box) * -1);
94
+ margin-left: calc(var(--padding-box) * -1);
95
+ margin-right: calc(var(--padding-box) * -1);
99
96
  padding: 8px;
100
97
  padding-left: var(--padding-box);
101
98
  padding-right: var(--padding-box);
@@ -107,9 +104,12 @@ a.box {
107
104
  align-items: center;
108
105
  font-weight: $weight-semibold;
109
106
  border-radius: var(--radius) var(--radius) 0 0;
110
- text-align: center;
107
+ height: 40px;
108
+
111
109
  @include tablet {
110
+ flex-direction: row;
112
111
  align-items: center;
112
+ justify-content: space-between;
113
113
  }
114
114
 
115
115
  > p:not(:last-child),
@@ -128,16 +128,18 @@ a.box {
128
128
  }
129
129
 
130
130
  .box-content {
131
- margin-left: calc(var(--padding-box)*-1);
132
- margin-right: calc(var(--padding-box)*-1);
131
+ margin-left: calc(var(--padding-box) * -1);
132
+ margin-right: calc(var(--padding-box) * -1);
133
133
  padding: var(--padding-box);
134
- &:first-child{
135
- margin-top: calc(var(--padding-box)*-1);
134
+
135
+ &:first-child {
136
+ margin-top: calc(var(--padding-box) * -1);
136
137
  border-top-left-radius: var(--radius);
137
138
  border-top-right-radius: var(--radius);
138
139
  }
139
- &:last-child{
140
- margin-bottom: calc(var(--padding-box)*-1);
140
+
141
+ &:last-child {
142
+ margin-bottom: calc(var(--padding-box) * -1);
141
143
  border-bottom-left-radius: var(--radius);
142
144
  border-bottom-right-radius: var(--radius);
143
145
  }
@@ -147,8 +149,8 @@ a.box {
147
149
  }
148
150
 
149
151
  > .is-unboxed {
150
- margin-left: calc(var(--padding-box)*-1);
151
- margin-right: calc(var(--padding-box)*-1);
152
+ margin-left: calc(var(--padding-box) * -1);
153
+ margin-right: calc(var(--padding-box) * -1);
152
154
  }
153
155
 
154
156
  &.is-transparent {
@@ -157,9 +159,9 @@ a.box {
157
159
  }
158
160
 
159
161
  .box-footer {
160
- margin-left: calc(var(--padding-box)*-1);
161
- margin-right: calc(var(--padding-box)*-1);
162
- margin-bottom: calc(var(--padding-box)*-1);
162
+ margin-left: calc(var(--padding-box) * -1);
163
+ margin-right: calc(var(--padding-box) * -1);
164
+ margin-bottom: calc(var(--padding-box) * -1);
163
165
  padding: var(--padding-box);
164
166
  border-top: 1px solid getColor('neutral-fade');
165
167
  border-bottom-left-radius: var(--radius);
@@ -1,59 +1,69 @@
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 {
2
12
  display: block;
3
- position: relative;
13
+ max-width: 100%;
4
14
 
5
- img {
6
- display: block;
7
- max-width: 100%;
15
+ &.b-loaded {
16
+ height: auto;
17
+ }
8
18
 
9
- &.b-loaded {
10
- height: auto;
11
- }
19
+ &.is-circled {
20
+ border-radius: 50%;
12
21
  }
22
+ }
13
23
  }
14
24
 
15
25
  .b-lazy {
16
- transition: opacity 250ms ease-in-out;
17
- opacity: 0;
26
+ transition: opacity 250ms ease-in-out;
27
+ opacity: 0;
18
28
 
19
- &.b-loaded {
20
- opacity: 1;
29
+ &.b-loaded {
30
+ opacity: 1;
21
31
 
22
- &.has-bg-image {
23
- &.has-bg-gradient {
24
- &::before {
25
- opacity: 0;
26
- }
27
- }
32
+ &.has-bg-image {
33
+ &.has-bg-gradient {
34
+ &::before {
35
+ opacity: 0;
28
36
  }
37
+ }
29
38
  }
39
+ }
30
40
 
31
- &.has-bg-image {
32
- background-repeat: no-repeat;
33
- background-position: center center;
34
- background-size: cover;
41
+ &.has-bg-image {
42
+ background-repeat: no-repeat;
43
+ background-position: center center;
44
+ background-size: cover;
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;
35
59
  position: absolute;
36
60
  top: 0;
37
- bottom: 0;
38
61
  left: 0;
39
62
  right: 0;
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
- }
63
+ bottom: 0;
64
+ z-index: zindex('tiny');
65
+ transition: opacity 750ms ease-in-out;
66
+ }
58
67
  }
68
+ }
59
69
  }
@@ -1,53 +1,62 @@
1
1
  // Bullet list classiques
2
2
  ul.list,
3
3
  ol.list {
4
- list-style-type: none;
4
+ list-style: disc inside;
5
+ display: grid;
6
+ row-gap: $spacing-3;
5
7
 
6
- li {
7
- padding: $spacing-4;
8
- position: relative;
9
-
10
- .list-item_content {
8
+ li.list-item {
9
+ &:has(.icon) {
10
+ list-style: none;
11
11
  display: flex;
12
- align-items: center;
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;
22
+
13
23
  &_puce {
14
24
  margin-right: $spacing-4;
15
25
  }
16
26
  }
17
27
 
18
-
19
28
  &.has-action {
20
29
  display: flex;
21
30
  justify-content: space-between;
22
31
  align-items: center;
23
- @include hover();
24
32
 
25
33
  .list-item_action {
26
- & >:first-child {
27
- margin: 0px !important;
34
+ & > :first-child {
35
+ margin: 0 !important;
28
36
  cursor: pointer;
29
37
  }
30
38
 
31
- .radio label.radio-label:empty,
39
+ .radio label.radio-label:empty,
32
40
  .checkbox label.checkbox-label:empty {
33
- padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
41
+ padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
34
42
  }
35
-
36
- }
37
-
43
+ }
38
44
  }
39
45
 
40
46
  div b {
41
- margin-bottom: $spacing-2 ;
47
+ margin-bottom: $spacing-2;
42
48
  }
49
+ }
43
50
 
44
- .divider {
45
- position: absolute;
46
- bottom: calc(-1 * $spacing-4);
47
- width: 100%;
48
- }
51
+ &.has-divider {
52
+ li {
53
+ border-bottom: var(--border);
54
+ padding-bottom: $spacing-3;
49
55
 
56
+ &:last-child {
57
+ border-bottom: none;
58
+ padding-bottom: 0;
59
+ }
60
+ }
50
61
  }
51
-
52
62
  }
53
-