@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.
- package/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/components/_box.scss +18 -3
- package/framework/src/components/_button.scss +7 -9
- package/framework/src/components/_countdown.scss +22 -23
- package/framework/src/components/_otp.scss +1 -1
- package/framework/src/components/_price.scss +11 -8
- package/framework/src/components/_prompt.scss +1 -0
- package/framework/src/components/_table.scss +14 -0
- package/framework/src/components/_textarea.scss +0 -5
- package/framework/src/components/_timepicker-circular.scss +5 -5
- package/framework/src/components/_title.scss +1 -1
- package/framework/src/components/input/_form.scss +1 -1
- package/framework/src/components/progress/_progress-radial.scss +10 -0
- package/framework/src/utilities/mixins/_mixins.scss +1 -1
- package/framework/src/utilities/variables/_color.scss +10 -0
- package/framework/src/utilities/variables/_index.scss +1 -0
- package/framework/src/utilities/variables/_sizes.scss +1 -0
- package/package.json +1 -1
|
@@ -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:
|
|
69
|
-
border-bottom-left-radius:
|
|
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
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
&.is-vertical {
|
|
8
|
-
row-gap: 16px;
|
|
9
|
-
}
|
|
10
|
-
|
|
6
|
+
gap: 16px;
|
|
7
|
+
flex-direction: column;
|
|
11
8
|
@include tablet {
|
|
12
|
-
|
|
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
|
-
|
|
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-
|
|
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-
|
|
14
|
+
padding: 0 $spacing-1;
|
|
15
15
|
position: relative;
|
|
16
|
+
min-width: 46px;
|
|
16
17
|
|
|
17
|
-
&:not(:last-child)::
|
|
18
|
-
content: '
|
|
19
|
-
border-left: 1px solid currentcolor;
|
|
20
|
-
height: 100%;
|
|
18
|
+
&:not(:last-child)::after {
|
|
19
|
+
content: ':';
|
|
21
20
|
position: absolute;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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-
|
|
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
|
|
35
|
-
border-radius: var(--radius
|
|
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
|
-
|
|
45
|
+
&:not(:last-child)::after {
|
|
43
46
|
font-size: $text-16;
|
|
44
|
-
font-weight: 600;
|
|
45
47
|
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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:
|
|
42
|
+
font-size: var(--overline-size);
|
|
40
43
|
font-weight: 400;
|
|
41
44
|
}
|
|
42
45
|
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
$CIRCLE_SIZE:
|
|
2
|
-
$CURSOR_SIZE:
|
|
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:
|
|
64
|
-
height:
|
|
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:
|
|
74
|
+
height: 40px;
|
|
75
75
|
margin-bottom: 10px
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -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
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$size-inputs: 48px;
|