@trilogy-ds/styles 4.16.2 → 4.17.0

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.
@@ -65,8 +65,9 @@ a.box {
65
65
 
66
66
  &.is-highlighted {
67
67
  border-left: $highlighted-border-width solid transparent;
68
- border-top-left-radius: calc(var(--radius) + $highlighted-border-width);
69
- border-bottom-left-radius: calc(var(--radius) + $highlighted-border-width);
68
+ border-top-left-radius: $highlighted-border-width;
69
+ border-bottom-left-radius: $highlighted-border-width;
70
+ border-left-color: getColor('main');
70
71
  @each $name, $pair in $colors-brand-functionnal {
71
72
  $color: getColor($name);
72
73
  $brandName: getColorBrandName($name);
@@ -76,9 +77,23 @@ a.box {
76
77
  border-left-width: $highlighted-border-width;
77
78
  }
78
79
  }
80
+ > .box-content {
81
+ &:first-child {
82
+ border-top-left-radius: 0;
83
+ }
79
84
 
80
- .box-header {
85
+ &:last-child {
86
+ border-bottom-left-radius: 0;
87
+ }
88
+ }
89
+ > .box-footer {
90
+ border-bottom-left-radius: 0;
91
+ }
92
+
93
+ > .box-header {
81
94
  margin-left: calc(var(--padding-box) * -1 - $highlighted-border-width);
95
+ border-radius: $highlighted-border-width var(--radius) 0 0;
96
+
82
97
  }
83
98
  }
84
99
 
@@ -1,15 +1,12 @@
1
1
  $button-border-width: 2px !default;
2
2
 
3
3
  .buttons {
4
+ display: flex;
4
5
  width: 100%;
5
- column-gap: 16px;
6
-
7
- &.is-vertical {
8
- row-gap: 16px;
9
- }
10
-
6
+ gap: 16px;
7
+ flex-direction: column;
11
8
  @include tablet {
12
- display: flex;
9
+ flex-direction: row;
13
10
  align-items: center;
14
11
  width: auto;
15
12
  }
@@ -39,7 +36,6 @@ $button-border-width: 2px !default;
39
36
 
40
37
  @include mobile {
41
38
  width: 100%;
42
- margin: 8px 0 !important;
43
39
  }
44
40
 
45
41
  @each $name, $pair in $button-colors {
@@ -72,7 +68,7 @@ $button-border-width: 2px !default;
72
68
  gap: $spacing-2;
73
69
  }
74
70
 
75
- .icon {
71
+ .icon:not([class*='has-background-']) {
76
72
  width: auto;
77
73
  }
78
74
 
@@ -84,3 +80,4 @@ $button-border-width: 2px !default;
84
80
  }
85
81
 
86
82
  }
83
+
@@ -1,5 +1,5 @@
1
1
  .countdown {
2
- border: 1px solid currentcolor;
2
+ background-color: var(--color-accent-fade);
3
3
  border-radius: var(--radius);
4
4
  display: inline-flex;
5
5
  padding: $spacing-2;
@@ -7,50 +7,49 @@
7
7
 
8
8
  .count {
9
9
  font-family: $family-primary;
10
- font-size: $text-14;
10
+ font-size: $text-12;
11
11
  font-weight: 400;
12
12
  list-style-type: none;
13
13
  text-align: center;
14
- padding: 0 $spacing-2;
14
+ padding: 0 $spacing-1;
15
15
  position: relative;
16
+ min-width: 46px;
16
17
 
17
- &:not(:last-child)::before {
18
- content: ' ';
19
- border-left: 1px solid currentcolor;
20
- height: 100%;
18
+ &:not(:last-child)::after {
19
+ content: ':';
21
20
  position: absolute;
22
- top: 0;
23
- bottom: 0;
24
- right: 0;
21
+ right: -3px;
22
+ top: 50%;
23
+ transform: translateY(-50%);
24
+ font-size: $text-12;
25
+ font-weight: 600;
26
+ width: 6px;
25
27
  }
26
28
 
27
29
  .value {
28
- font-size: $text-24;
30
+ font-size: $text-20;
31
+ list-style: 28px;
29
32
  font-weight: 600;
30
33
  }
31
34
  }
32
35
 
33
36
  &.is-small {
34
- padding: $spacing-2 0;
35
- border-radius: var(--radius-small);
37
+ padding: $spacing-2 $spacing-1;
38
+ border-radius: var(--radius);
36
39
 
37
40
  .count {
38
41
  font-size: $text-12;
39
- padding: 0 $spacing-2;
40
42
  font-weight: 500;
43
+ min-width: 42px;
41
44
 
42
- .value {
45
+ &:not(:last-child)::after {
43
46
  font-size: $text-16;
44
- font-weight: 600;
45
47
  }
46
- }
47
- }
48
48
 
49
- &.is-inverted {
50
- color: invertColor('font');
51
-
52
- .count {
53
- &:not(:last-child)::before {
49
+ .value {
50
+ font-size: $text-16;
51
+ line-height: 21px;
52
+ font-weight: 600;
54
53
  }
55
54
  }
56
55
  }
@@ -1,11 +1,11 @@
1
1
  $price-levels: (
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],
2
+ [$text-64, $text-44, $text-28, $text-16, $text-16],
3
+ [$text-56, $text-32, $text-22, $text-16, $text-16],
4
+ [$text-48, $text-28, $text-16, $text-16, $text-16],
5
+ [$text-40, $text-24, $text-10, $text-10, $text-14],
6
+ [$text-36, $text-20, $text-10, $text-10, $text-14],
7
+ [$text-24, $text-20, $text-10, $text-10, $text-10],
8
+ [$text-20, $text-20, $text-10, $text-10, $text-10],
9
9
  );
10
10
 
11
11
  .price-container {
@@ -14,15 +14,18 @@ $price-levels: (
14
14
  column-gap: 12px;
15
15
  flex-wrap: wrap;
16
16
  --font-size: #{$text-64};
17
+ --overline-size: #{$text-16};
17
18
 
18
19
  @each $price-level in $price-levels {
19
20
  $i: index($price-levels, $price-level);
20
21
  $font-size: nth($price-level, 1);
21
22
  $strike-font-size: nth($price-level, 2);
23
+ $overline-size: nth($price-level, 5);
22
24
 
23
25
  &.is-level-#{$i} {
24
26
  --font-size: #{$font-size};
25
27
  --strike-font-size: #{$strike-font-size};
28
+ --overline-size: #{$overline-size};
26
29
 
27
30
  @if $i > 4 {
28
31
  .price-details {
@@ -36,7 +39,7 @@ $price-levels: (
36
39
  width: 100%;
37
40
  flex: none;
38
41
  margin: 0;
39
- font-size: calc(var(--font-size) * 0.4);
42
+ font-size: var(--overline-size);
40
43
  font-weight: 400;
41
44
  }
42
45
 
@@ -1,5 +1,5 @@
1
- $CIRCLE_SIZE: 172px;
2
- $CURSOR_SIZE: 30px;
1
+ $CIRCLE_SIZE: 204px;
2
+ $CURSOR_SIZE: 32px;
3
3
 
4
4
  .timepicker-circular {
5
5
 
@@ -60,8 +60,8 @@ $CURSOR_SIZE: 30px;
60
60
 
61
61
  &-wrapper-input {
62
62
  @include input;
63
- width: 36px;
64
- height: 36px;
63
+ width: 40px;
64
+ height: 40px;
65
65
  text-align: center;
66
66
  display: flex;
67
67
  align-items: center;
@@ -71,7 +71,7 @@ $CURSOR_SIZE: 30px;
71
71
  }
72
72
 
73
73
  &-separator {
74
- height: 36px;
74
+ height: 40px;
75
75
  margin-bottom: 10px
76
76
  }
77
77
  }
@@ -28,8 +28,8 @@ $title-levels: (
28
28
  ($text-16, $text-20, $family-primary)
29
29
  );
30
30
  $title-levels-mobile: (
31
- ($text-32, $text-38),
32
31
  ($text-28, $text-34),
32
+ ($text-24, $text-28),
33
33
  ($text-22, $text-26),
34
34
  ($text-20, $text-24),
35
35
  ($text-18, $text-22),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.16.2",
3
+ "version": "4.17.0",
4
4
  "author": "Bouygues Telecom",
5
5
  "repository": {
6
6
  "type": "git",