@trilogy-ds/styles 4.16.3 → 4.18.0-beta-1

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
  }
@@ -36,10 +33,10 @@ $button-border-width: 2px !default;
36
33
  padding: 0 $spacing-4;
37
34
  text-decoration: inherit;
38
35
  font-weight: $weight-semibold;
36
+ height: $size-inputs;
39
37
 
40
38
  @include mobile {
41
39
  width: 100%;
42
- margin: 8px 0 !important;
43
40
  }
44
41
 
45
42
  @each $name, $pair in $button-colors {
@@ -72,7 +69,7 @@ $button-border-width: 2px !default;
72
69
  gap: $spacing-2;
73
70
  }
74
71
 
75
- .icon {
72
+ .icon:not([class*='has-background-']) {
76
73
  width: auto;
77
74
  }
78
75
 
@@ -84,3 +81,4 @@ $button-border-width: 2px !default;
84
81
  }
85
82
 
86
83
  }
84
+
@@ -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
  }
@@ -9,7 +9,7 @@
9
9
  border-radius: var(--radius-small);
10
10
  background: transparent;
11
11
  width: 33px;
12
- height: 40px;
12
+ height: 48px;
13
13
  margin: 4px 4px 0 4px;
14
14
  text-align: center;
15
15
  color: getColor('main');
@@ -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
 
@@ -36,6 +36,7 @@ $height-prompt-item: 64px;
36
36
  margin:0 !important;
37
37
  &-img {
38
38
  border-radius: 8px;
39
+ overflow: hidden;
39
40
  }
40
41
  &-file {
41
42
  width: $height-prompt-item;
@@ -131,6 +131,20 @@
131
131
  border-width: 0 0 1px;
132
132
  color: getColor('font');
133
133
  }
134
+
135
+ &[class*="has-background"] {
136
+ th {
137
+ background-color: transparent;
138
+ }
139
+ }
140
+
141
+ @each $name in $colors-all {
142
+ &.is-#{$name} tr {
143
+ th {
144
+ color: getColor($name);
145
+ }
146
+ }
147
+ }
134
148
  }
135
149
 
136
150
  tfoot {
@@ -1,10 +1,5 @@
1
1
  .textarea-wrapper {
2
2
 
3
- .textarea-label {
4
- display: inline-block;
5
- margin-bottom: 6px;
6
- }
7
-
8
3
  .textarea-sample {
9
4
  margin-bottom: 10px !important;
10
5
  }
@@ -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),
@@ -11,7 +11,7 @@ $label-weight: $weight-bold;
11
11
  }
12
12
  }
13
13
 
14
- .input-label {
14
+ .input-label, .textarea-label {
15
15
  display: inline-block;
16
16
  margin-bottom: 8px;
17
17
  font-weight: 500;
@@ -24,5 +24,15 @@
24
24
  &.is-small {
25
25
  width: 75px;
26
26
  height: 75px;
27
+
28
+ .progress-radial-content {
29
+ &-label {
30
+ font-size: $text-16;
31
+ line-height: normal;
32
+ }
33
+ &-description {
34
+ font-size: $text-10;
35
+ }
36
+ }
27
37
  }
28
38
  }
@@ -24,7 +24,7 @@
24
24
  // import sass bulma
25
25
  @mixin input {
26
26
  @include control;
27
- height: 56px;
27
+ height: $size-inputs;
28
28
  background-color: getColor('background');
29
29
  border: var(--border);
30
30
  color: getColor('font');
@@ -11,6 +11,8 @@ $suffix: '';
11
11
  */
12
12
  $colors: (
13
13
  'background': [#fff, 'white', 'main'],
14
+ 'brand': [#ccd5f8, 'brand', 'white'],
15
+ 'brand-fade': [#e8eef8, 'brand-fade', 'white'],
14
16
  'stroke':[ #727272, 'stroke', 'white' ],
15
17
  'stroke-fade':[ #cadbe8, 'stroke-fade', 'white' ],
16
18
  'transparent': ['transparent', 'transparent', 'transparent'],
@@ -35,6 +37,7 @@ $colors: (
35
37
  ) !default;
36
38
 
37
39
  $fade-colors: (
40
+ 'brand': 'brand-fade',
38
41
  'main': 'main-fade',
39
42
  'success': 'success-fade',
40
43
  'info':'info-fade',
@@ -47,6 +50,8 @@ $fade-colors: (
47
50
  @function getColor( $name ) {
48
51
  @if global-variable-exists(suffix-theme) {
49
52
  @return var(--color-#{nth(map-get($colors, $name), 2)}-#{$suffix-theme});
53
+ } @else if $name == 'white' {
54
+ @return var(--color-white);
50
55
  } @else {
51
56
  @return var(--color-#{nth(map-get($colors,$name),2)});
52
57
  }
@@ -84,3 +89,8 @@ $colors-brand-functionnal: (
84
89
  $colors-feedback: (
85
90
  'success', 'error', 'warning', 'info'
86
91
  );
92
+
93
+
94
+ $colors-all: (
95
+ "white", "main", "main-fade" , "accent", "accent-fade", "font", "font-placeholder", "success", "success-fade", "info", "info-fade", "warning", "warning-fade", "error", "error-fade", "disabled", "disabled-fade", "neutral", "neutral-fade", "stroke", "stroke-fade"
96
+ );
@@ -4,3 +4,4 @@
4
4
  @import "responsiveness";
5
5
  @import "shadow";
6
6
  @import "zindex";
7
+ @import "sizes";
@@ -0,0 +1 @@
1
+ $size-inputs: 48px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.16.3",
3
+ "version": "4.18.0-beta-1",
4
4
  "author": "Bouygues Telecom",
5
5
  "repository": {
6
6
  "type": "git",