@trilogy-ds/styles 0.0.1-beta-117 → 0.0.1-beta-121
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/_autolayout.scss +12 -0
- package/framework/src/components/_price.scss +59 -80
- package/framework/src/elements/_alert.scss +8 -0
- package/framework/src/elements/_badge.scss +3 -17
- package/framework/src/elements/_button.scss +0 -8
- package/framework/src/elements/_chips.scss +9 -1
- package/framework/src/elements/_container.scss +10 -39
- package/framework/src/elements/_paragraph.scss +3 -1
- package/framework/src/elements/_select.scss +45 -47
- package/framework/src/elements/_switch.scss +0 -1
- package/framework/src/grid/_columns.scss +0 -4
- package/framework/src/utilities/_controls.scss +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
-
|
|
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
|
|
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:
|
|
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
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
margin-right: 0.6em;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.chips-list {
|
|
4
4
|
align-items: center;
|
|
5
|
-
display:
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
71
|
+
@include desktop {
|
|
72
|
+
margin: 0 auto;
|
|
73
|
+
}
|
|
102
74
|
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
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);
|
|
@@ -3,10 +3,22 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
input { cursor: pointer;}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
select {
|
|
7
|
+
width: 100%;
|
|
8
|
+
@include input;
|
|
9
|
+
&:focus {
|
|
10
|
+
padding-left: 15px !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.has-icons-left {
|
|
15
|
+
select {
|
|
16
|
+
padding-left: 45px;
|
|
17
|
+
&:focus {
|
|
18
|
+
padding-left: 44px !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
10
22
|
|
|
11
23
|
&-options {
|
|
12
24
|
box-shadow: 0 0 8px #0000001a;
|
|
@@ -19,6 +31,35 @@
|
|
|
19
31
|
right: 0;
|
|
20
32
|
}
|
|
21
33
|
|
|
34
|
+
.field {
|
|
35
|
+
&.focus {
|
|
36
|
+
&:after{
|
|
37
|
+
@include arrow('up');
|
|
38
|
+
right: 12px;
|
|
39
|
+
top:50%;
|
|
40
|
+
transform: translate(-50%,-50%);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
&:not(.focus) {
|
|
44
|
+
&:after{
|
|
45
|
+
@include arrow();
|
|
46
|
+
right: 12px;
|
|
47
|
+
top:50%;
|
|
48
|
+
transform: translate(-50%,-50%);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
&-trilogy_modal_open {
|
|
55
|
+
position: fixed;
|
|
56
|
+
top:0;
|
|
57
|
+
left:0;
|
|
58
|
+
right:0;
|
|
59
|
+
bottom:0;
|
|
60
|
+
z-index: 1000;
|
|
61
|
+
}
|
|
62
|
+
|
|
22
63
|
.radio-tile {
|
|
23
64
|
input:checked {
|
|
24
65
|
&~label.radio-label {
|
|
@@ -50,49 +91,6 @@
|
|
|
50
91
|
font-size: $text-20 !important;
|
|
51
92
|
}
|
|
52
93
|
}
|
|
53
|
-
|
|
54
|
-
.control:not(.has-icons-left.has-icons-right) {
|
|
55
|
-
.select-native.multiple.input {
|
|
56
|
-
padding-left:0 !important;
|
|
57
|
-
select option {padding-left: 16px;}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-native {
|
|
62
|
-
position: relative;
|
|
63
|
-
select {
|
|
64
|
-
width: 100%;
|
|
65
|
-
border:none;
|
|
66
|
-
height: 100%;
|
|
67
|
-
background-color: transparent;
|
|
68
|
-
-webkit-appearance: none;
|
|
69
|
-
-moz-appearance: none;
|
|
70
|
-
text-indent: 1px;
|
|
71
|
-
outline: none;
|
|
72
|
-
color: getColor('main');
|
|
73
|
-
font-size: $text-16 !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&.input {
|
|
77
|
-
padding-top: 0px !important;
|
|
78
|
-
padding-bottom: 0px !important;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&.multiple.input{
|
|
82
|
-
height: auto !important;
|
|
83
|
-
padding-right: 0 !important;
|
|
84
|
-
select { padding-top: 0 !important; }
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&-trilogy_modal_open {
|
|
89
|
-
position: fixed;
|
|
90
|
-
top:0;
|
|
91
|
-
left:0;
|
|
92
|
-
right:0;
|
|
93
|
-
bottom:0;
|
|
94
|
-
z-index: 1000;
|
|
95
|
-
}
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
|
|
@@ -4,7 +4,6 @@ $columnWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction))
|
|
|
4
4
|
$offsetWidth: calc((100% / (var(--offset))) - ((((var(--offset)) - 1) / (var(--offset))) * var(--ColumnGap)) + var(--ColumnGap));
|
|
5
5
|
|
|
6
6
|
$columnSize : (
|
|
7
|
-
"gapless" : 0,
|
|
8
7
|
"1" : math.div(12, 1),
|
|
9
8
|
"2" : math.div(12, 2),
|
|
10
9
|
"3" : math.div(12, 3),
|
|
@@ -93,9 +92,6 @@ $gap :
|
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
95
|
@for $i from 1 through length($gap) {
|
|
100
96
|
$item: nth($gap, $i);
|
|
101
97
|
&.is-mobile.has-gap-#{$i} {
|