@trilogy-ds/styles 0.0.1-beta-117 → 0.0.1-beta-119

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.
@@ -8,6 +8,12 @@ body:not(.is-tight) {
8
8
  .box:not(:last-child) {
9
9
  margin-bottom: 24px;
10
10
  }
11
+ *:has(+.divider):not(:last-child) {
12
+ margin-bottom: 24px;
13
+ }
14
+ .divider:not(:last-child) {
15
+ margin-bottom: 24px;
16
+ }
11
17
  .table:not(:last-child) {
12
18
  margin-bottom: 24px;
13
19
  }
@@ -153,6 +159,12 @@ body:not(.is-tight) {
153
159
  .box:not(:last-child) {
154
160
  margin-bottom: 16px;
155
161
  }
162
+ *:has(+.divider):not(:last-child) {
163
+ margin-bottom: 16px;
164
+ }
165
+ .divider:not(:last-child) {
166
+ margin-bottom: 16px;
167
+ }
156
168
  .table:not(:last-child) {
157
169
  margin-bottom: 16px;
158
170
  }
@@ -1,11 +1,11 @@
1
1
  $price-levels: (
2
- ($text-64),
3
- ($text-56),
4
- ($text-44),
5
- ($text-32),
6
- ($text-28),
7
- ($text-24),
8
- ($text-20),
2
+ [$text-64, $text-44, $text-28, $text-16],
3
+ [$text-56, $text-32, $text-22, $text-16],
4
+ [$text-48, $text-28, $text-16, $text-16],
5
+ [$text-40, $text-24, $text-10, $text-10],
6
+ [$text-36, $text-20, $text-10, $text-10],
7
+ [$text-24, $text-20, $text-10, $text-10],
8
+ [$text-20, $text-20, $text-10, $text-10],
9
9
  );
10
10
 
11
11
  .price-container {
@@ -13,80 +13,25 @@ $price-levels: (
13
13
  align-items: baseline;
14
14
  column-gap: 12px;
15
15
  flex-wrap: wrap;
16
-
17
- .overline {
18
- width: 100%;
19
- flex: none;
20
- margin: 0;
21
- --font-size: #{$text-64};
22
- font-size: calc(var(--font-size) * 0.4);
23
-
24
- @each $price-level in $price-levels {
25
- $i: index($price-levels, $price-level);
26
- $font-size: nth($price-level, 1);
27
-
28
- &:has(~ .price.is-level-#{$i}:not(.is-striked)) {
29
- --font-size: #{$font-size};
30
- }
31
- }
32
- }
33
- }
34
-
35
- .price {
36
- display: inline-flex;
37
- font-weight: $weight-semibold;
38
- line-height: 0.8;
39
- margin-bottom: 0;
40
-
41
- &:not(.is-inlined) {
42
- font-size: $text-44;
43
- }
16
+ --font-size: #{$text-64};
17
+ --tag-period-size:#{$text-16};
44
18
 
45
19
  @each $price-level in $price-levels {
46
20
  $i: index($price-levels, $price-level);
47
21
  $font-size: nth($price-level, 1);
22
+ $striked-font-size: nth($price-level, 2);
23
+ $tag-size: nth($price-level, 3);
24
+ $tag-period-size: nth($price-level, 4);
48
25
 
49
26
  &.is-level-#{$i} {
50
- font-size: $font-size;
51
-
52
- @if $i == 1 {
53
- + .price-tag {
54
- span:nth-child(2) {
55
- font-size: $text-16;
56
- }
57
- }
58
- }
59
-
60
- @if $i == 2 {
61
- + .price-tag {
62
- font-size: 22px;
63
- span:nth-child(2) {
64
- font-size: $text-16;
65
- }
66
- }
67
- }
68
-
69
- @if $i == 3 {
70
- + .price-tag {
71
- font-size: 16px;
72
- span:nth-child(2) {
73
- font-size: $text-16;
74
- }
75
- }
76
- }
77
-
78
- @if $i < 4 {
79
- + .price-tag {
80
- span:nth-child(2) {
81
- place-self: flex-end;
82
- margin-bottom: 3px;
83
- }
84
- }
85
- }
27
+ --font-size: #{$font-size};
28
+ --striked-font-size: #{$striked-font-size};
29
+ --tag-amount-size: #{$tag-size};
30
+ --tag-period-size: #{$tag-period-size};
86
31
 
87
32
  @if $i > 4 {
88
33
  .price-details {
89
- padding-left: 2px !important;
34
+ padding-left: 2px;
90
35
  }
91
36
  }
92
37
  @if $i > 3 {
@@ -96,11 +41,47 @@ $price-levels: (
96
41
  margin-left: -6px;
97
42
  border-radius: 1px;
98
43
  }
99
- font-size: $text-10;
100
44
  padding: 4px !important;
101
45
  }
102
46
  }
103
47
  }
48
+ }
49
+
50
+ .overline {
51
+ width: 100%;
52
+ flex: none;
53
+ margin: 0;
54
+ font-size: calc(var(--font-size) * 0.4);
55
+ }
56
+
57
+ .price {
58
+ font-size: var(--font-size);
59
+ &.is-striked {
60
+ font-size: var(--striked-font-size);
61
+ }
62
+ }
63
+
64
+ .price-tag {
65
+ padding: calc(var(--tag-period-size)/2);
66
+ font-size: var(--tag-amount-size);
67
+
68
+ &:before {
69
+ margin-left:calc(4px - var(--tag-period-size));
70
+ }
71
+
72
+ .tag-period {
73
+ font-size: var(--tag-period-size);
74
+ margin-bottom: calc( calc( var(--tag-period-size) - 10px) / 2);
75
+ }
76
+ }
77
+
78
+ }
79
+
80
+ .price {
81
+ display: inline-flex;
82
+ font-weight: $weight-semibold;
83
+ line-height: 0.8;
84
+ margin-bottom: 0;
104
85
 
105
86
  // the details : cents + period
106
87
 
@@ -138,9 +119,6 @@ $price-levels: (
138
119
  }
139
120
  }
140
121
 
141
-
142
- }
143
-
144
122
  &.is-inverted {
145
123
  color: getColor('background');
146
124
  }
@@ -208,16 +186,14 @@ $price-levels: (
208
186
  }
209
187
 
210
188
  .price-tag {
189
+ line-height: 1em;
211
190
  align-self: center;
212
191
  background-color: getColor('accent');
213
- margin-left: 10px;
214
192
  border-radius: 6px;
215
193
  display: inline-flex;
216
194
  color: getColor('background');
217
195
  height: fit-content;
218
- padding: 8px;
219
196
  font-size: 28px;
220
- line-height: 1em;
221
197
  align-items: baseline;
222
198
  position: relative;
223
199
  margin-left: -4px;
@@ -228,7 +204,7 @@ $price-levels: (
228
204
  border-left-color: getColor('accent');
229
205
  transform: rotate(45deg);
230
206
  border-style: solid;
231
- border-width: 5px;
207
+ border-width: 6px;
232
208
  border-radius: 2px;
233
209
  pointer-events: none;
234
210
  position: absolute;
@@ -241,4 +217,7 @@ $price-levels: (
241
217
  height: 0;
242
218
  width: 0;
243
219
  }
220
+ .tag-period {
221
+ place-self: flex-end;
222
+ }
244
223
  }
@@ -18,6 +18,14 @@ a.alert {
18
18
  box-shadow: none;
19
19
  padding: $spacing-4;
20
20
 
21
+ &.is-banner {
22
+
23
+ text-align: center;
24
+ border-radius: 0;
25
+ border: none !important;
26
+
27
+ }
28
+
21
29
  .text:first-child,
22
30
  .title:first-child {
23
31
  line-height: normal;
@@ -3,7 +3,7 @@
3
3
  margin-right: 0.6em;
4
4
  }
5
5
 
6
- @mixin badge {
6
+ .badge {
7
7
  display: inline-flex;
8
8
  border-radius: 9999px;
9
9
  color: getColor('background');
@@ -27,32 +27,18 @@
27
27
  }
28
28
 
29
29
  &.is-inverted {
30
- color: getColor('main');
30
+ color: getColor('main') !important;
31
31
  background: getColor('background');
32
32
  }
33
33
  }
34
34
 
35
- .badge {
36
- @include badge;
37
- }
38
-
39
35
  .badge-and-text {
40
36
  display: flex;
41
37
  align-items: center;
42
-
43
- .badge {
44
- position: relative;
45
- margin-right: 60px;
46
- }
38
+ gap: $text-40;
47
39
 
48
40
  p {
49
41
  margin-bottom: 0 !important;
50
-
51
- & + .badge {
52
- margin-left: 60px;
53
- margin-right: 0;
54
- }
55
-
56
42
  }
57
43
 
58
44
  }
@@ -19,14 +19,6 @@ $button-border-width: 2px !default;
19
19
  .has-text-centered & {
20
20
  justify-content: center;
21
21
  }
22
-
23
- &.is-mobile {
24
- flex-wrap: wrap;
25
-
26
- .button {
27
- margin-bottom: 16px;
28
- }
29
- }
30
22
  }
31
23
 
32
24
  .button {
@@ -2,7 +2,7 @@
2
2
 
3
3
  .chips-list {
4
4
  align-items: center;
5
- display: inline-flex;
5
+ display: flex;
6
6
  justify-content: flex-start;
7
7
  flex-wrap: wrap;
8
8
  gap: $spacing-2;
@@ -12,6 +12,14 @@
12
12
  justify-content: center;
13
13
  }
14
14
 
15
+ &.is-scrollable {
16
+ flex-wrap: nowrap;
17
+ overflow: auto;
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ }
21
+ }
22
+
15
23
  &.is-multiple {
16
24
  .chips:before {
17
25
  content: "";
@@ -21,14 +21,10 @@
21
21
 
22
22
  @include desktop {
23
23
  max-width: $desktop - 2 * $gap;
24
- width: $desktop - 2 * $gap;
25
-
26
- &.is-fluid {
27
- margin-left: $gap;
28
- margin-right: $gap;
29
- max-width: none;
30
- width: auto;
31
- }
24
+ margin-left: $gap;
25
+ margin-right: $gap;
26
+ max-width: none;
27
+ width: auto;
32
28
  }
33
29
 
34
30
  @include until-widescreen {
@@ -51,34 +47,11 @@
51
47
  }
52
48
 
53
49
  @include fullhd {
50
+ margin: 0 auto;
54
51
  max-width: $fullhd - 2 * $gap;
55
52
  width: $fullhd - 2 * $gap;
56
53
  }
57
54
 
58
- &:not(.is-fluid) {
59
- @include desktop {
60
- width: 904px;
61
- max-width: 904px;
62
- }
63
-
64
- @include widescreen {
65
- width: 1160px;
66
- max-width: 1160px;
67
- }
68
-
69
- @include fullhd {
70
- width: 1308px;
71
- max-width: 1308px;
72
- }
73
- }
74
-
75
- &.is-fluid {
76
- @include fullhd {
77
- margin: 0 auto;
78
- max-width: $fullhd - 2 * $gap;
79
- }
80
- }
81
-
82
55
  &.is-medium {
83
56
  max-width: 960px;
84
57
  margin: auto;
@@ -95,14 +68,12 @@ header .navbar,
95
68
  header,
96
69
  footer {
97
70
  > .container {
98
- &.is-fluid {
99
- @include desktop {
100
- margin: 0 auto;
101
- }
71
+ @include desktop {
72
+ margin: 0 auto;
73
+ }
102
74
 
103
- @include fullhd {
104
- max-width: 100%;
105
- }
75
+ @include fullhd {
76
+ max-width: 100%;
106
77
  }
107
78
  }
108
79
  }
@@ -13,7 +13,9 @@ $text-levels-mobile: (
13
13
 
14
14
 
15
15
  .text {
16
- @each $text-level in $text-levels {
16
+ line-height: $text-20;
17
+
18
+ @each $text-level in $text-levels {
17
19
  $i: index($text-levels, $text-level);
18
20
  $font-size: nth($text-level, 1);
19
21
  $line-height: nth($text-level, 2);
@@ -46,7 +46,6 @@
46
46
  width: 44px;
47
47
  height: 22px;
48
48
  background-color: getColor('neutral');
49
- margin-left: 16px;
50
49
  }
51
50
 
52
51
  &:after {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta-117",
3
+ "version": "0.0.1-beta-119",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [