@trilogy-ds/styles 0.0.1-beta-sc-2 → 0.0.1-beta-151
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/base/_helpers.scss +1 -1
- package/framework/src/components/_accordion.scss +4 -4
- package/framework/src/components/_divider.scss +0 -1
- package/framework/src/components/_modal.scss +57 -52
- package/framework/src/components/_otp.scss +1 -1
- package/framework/src/components/_price.scss +6 -71
- package/framework/src/components/_progress-radial.scss +24 -24
- package/framework/src/components/_segmented-control.scss +14 -2
- package/framework/src/components/_tabs.scss +16 -24
- package/framework/src/elements/_badge.scss +40 -18
- package/framework/src/elements/_box.scss +39 -37
- package/framework/src/elements/_image.scss +50 -40
- package/framework/src/elements/_list.scss +33 -24
- package/framework/src/elements/_paragraph.scss +32 -44
- package/framework/src/elements/_progress.scss +20 -0
- package/framework/src/elements/_radio.scss +43 -37
- package/framework/src/elements/_switch.scss +6 -0
- package/framework/src/elements/_table.scss +15 -15
- package/framework/src/elements/_tag.scss +2 -2
- package/framework/src/grid/_columns.scss +109 -89
- package/framework/src/grid/_rows.scss +19 -14
- package/framework/src/layout/_hero.scss +0 -28
- package/framework/src/theming/common_partials.scss +1 -0
- package/framework/src/utilities/_mixins.scss +8 -6
- package/package.json +1 -1
|
@@ -433,7 +433,7 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
// Radius
|
|
436
|
-
$radius-list: ['radius-small', 'radius'];
|
|
436
|
+
$radius-list: ['radius-large', 'radius-medium', 'radius-small', 'radius'];
|
|
437
437
|
|
|
438
438
|
@each $label in $radius-list {
|
|
439
439
|
.has-border-#{$label} {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.
|
|
1
|
+
.accordion#{$suffix} {
|
|
2
2
|
padding-left: 0;
|
|
3
3
|
padding-right: 0;
|
|
4
4
|
|
|
5
5
|
/* Chrome + Webkit */
|
|
6
|
-
details.accordion ::-webkit-details-marker {
|
|
6
|
+
details.accordion-item ::-webkit-details-marker {
|
|
7
7
|
display: none;
|
|
8
8
|
content: "";
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
details.accordion summary {
|
|
11
|
+
details.accordion-item summary {
|
|
12
12
|
list-style-image: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.accordion {
|
|
15
|
+
.accordion-item {
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
@@ -71,19 +71,13 @@ body:has(.modal.is-active) {
|
|
|
71
71
|
color: getColor('font');
|
|
72
72
|
overflow: auto;
|
|
73
73
|
position: relative;
|
|
74
|
-
padding: 0 30px 30px;
|
|
75
74
|
margin: 0 $modal-content-margin-mobile;
|
|
76
75
|
max-height: calc(100vh - 40px);
|
|
77
|
-
text-align: center;
|
|
78
76
|
width: 100%;
|
|
79
77
|
z-index: zindex('tiny');
|
|
80
78
|
transition: transform ease-in-out 250ms;
|
|
81
79
|
transform: translateY(100%);
|
|
82
80
|
|
|
83
|
-
&:has(.modal-footer) {
|
|
84
|
-
padding-bottom: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
81
|
@include tablet {
|
|
88
82
|
max-height: calc(100vh - 120px);
|
|
89
83
|
width: $modal-content-width;
|
|
@@ -108,62 +102,73 @@ body:has(.modal.is-active) {
|
|
|
108
102
|
}
|
|
109
103
|
}
|
|
110
104
|
|
|
111
|
-
.modal-footer {
|
|
112
|
-
position: sticky;
|
|
113
|
-
width: 100%;
|
|
114
|
-
background: getColor('background');
|
|
115
|
-
bottom: 0;
|
|
116
|
-
padding: 16px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
105
|
// If Close Icon Modal & Title Modal are sibling elements, override margin
|
|
120
106
|
.modal-close ~ .modal-title {
|
|
121
107
|
margin-top: -32px;
|
|
122
108
|
}
|
|
123
|
-
}
|
|
124
109
|
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
.modal-header {
|
|
111
|
+
padding: $spacing-5;
|
|
112
|
+
color: getColor('font');
|
|
113
|
+
font-family: $family-sans-serif;
|
|
114
|
+
font-size: $size-3;
|
|
115
|
+
font-weight: $weight-semibold;
|
|
116
|
+
line-height: 1.1;
|
|
117
|
+
background-color: getColor('background');
|
|
118
|
+
z-index: zindex('small');
|
|
119
|
+
position: sticky;
|
|
120
|
+
top: 0;
|
|
121
|
+
width: 100%;
|
|
122
|
+
word-wrap: break-word;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: row-reverse;
|
|
125
|
+
justify-content: space-between;
|
|
127
126
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
background-color: getColor('neutral-fade');
|
|
139
|
-
}
|
|
127
|
+
&:has(.icon) {
|
|
128
|
+
text-align: center;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@include desktop {
|
|
132
|
+
font-size: $size-3-desktop;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.modal-close {
|
|
136
|
+
@include delete;
|
|
140
137
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
background-color: getColor('background');
|
|
139
|
+
display: block;
|
|
140
|
+
height: $modal-close-dimensions;
|
|
141
|
+
width: $modal-close-dimensions;
|
|
142
|
+
z-index: zindex('medium');
|
|
143
|
+
|
|
144
|
+
#{$hoverSelector} {
|
|
145
|
+
background-color: getColor('neutral-fade');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&::after,
|
|
149
|
+
&::before {
|
|
150
|
+
background-color: getColor('font');
|
|
151
|
+
}
|
|
152
|
+
}
|
|
144
153
|
}
|
|
145
|
-
}
|
|
146
154
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
155
|
+
.modal-body {
|
|
156
|
+
padding: $spacing-5;
|
|
157
|
+
padding-top: 0;
|
|
158
|
+
padding-bottom: 0;
|
|
159
|
+
}
|
|
150
160
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
line-height: 1.1;
|
|
158
|
-
background-color: getColor('background');
|
|
159
|
-
z-index: zindex('small');
|
|
160
|
-
position: sticky;
|
|
161
|
-
top: 0;
|
|
162
|
-
width: 100%;
|
|
163
|
-
word-wrap: break-word;
|
|
161
|
+
.modal-footer {
|
|
162
|
+
padding: $spacing-5;
|
|
163
|
+
position: sticky;
|
|
164
|
+
width: 100%;
|
|
165
|
+
background: getColor('background');
|
|
166
|
+
bottom: 0;
|
|
164
167
|
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
@include tablet {
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: flex-end;
|
|
171
|
+
}
|
|
167
172
|
}
|
|
168
173
|
}
|
|
169
174
|
|
|
@@ -203,4 +208,4 @@ body:has(.modal.is-active) {
|
|
|
203
208
|
}
|
|
204
209
|
}
|
|
205
210
|
}
|
|
206
|
-
}
|
|
211
|
+
}
|
|
@@ -14,36 +14,21 @@ $price-levels: (
|
|
|
14
14
|
column-gap: 12px;
|
|
15
15
|
flex-wrap: wrap;
|
|
16
16
|
--font-size: #{$text-64};
|
|
17
|
-
--tag-period-size:#{$text-16};
|
|
18
17
|
|
|
19
18
|
@each $price-level in $price-levels {
|
|
20
19
|
$i: index($price-levels, $price-level);
|
|
21
20
|
$font-size: nth($price-level, 1);
|
|
22
|
-
$
|
|
23
|
-
$tag-size: nth($price-level, 3);
|
|
24
|
-
$tag-period-size: nth($price-level, 4);
|
|
21
|
+
$strike-font-size: nth($price-level, 2);
|
|
25
22
|
|
|
26
23
|
&.is-level-#{$i} {
|
|
27
24
|
--font-size: #{$font-size};
|
|
28
|
-
--
|
|
29
|
-
--tag-amount-size: #{$tag-size};
|
|
30
|
-
--tag-period-size: #{$tag-period-size};
|
|
25
|
+
--strike-font-size: #{$strike-font-size};
|
|
31
26
|
|
|
32
27
|
@if $i > 4 {
|
|
33
28
|
.price-details {
|
|
34
29
|
padding-left: 2px;
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
|
-
@if $i > 3 {
|
|
38
|
-
+ .price-tag {
|
|
39
|
-
&::before {
|
|
40
|
-
border-width: 3px;
|
|
41
|
-
margin-left: -6px;
|
|
42
|
-
border-radius: 1px;
|
|
43
|
-
}
|
|
44
|
-
padding: 4px !important;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
32
|
}
|
|
48
33
|
}
|
|
49
34
|
|
|
@@ -56,22 +41,9 @@ $price-levels: (
|
|
|
56
41
|
|
|
57
42
|
.price {
|
|
58
43
|
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
44
|
|
|
72
|
-
|
|
73
|
-
font-size: var(--
|
|
74
|
-
margin-bottom: calc( calc( var(--tag-period-size) - 10px) / 2);
|
|
45
|
+
&.strike {
|
|
46
|
+
font-size: var(--strike-font-size);
|
|
75
47
|
}
|
|
76
48
|
}
|
|
77
49
|
|
|
@@ -152,14 +124,14 @@ $price-levels: (
|
|
|
152
124
|
}
|
|
153
125
|
}
|
|
154
126
|
|
|
155
|
-
&.
|
|
127
|
+
&.strike {
|
|
156
128
|
&::before {
|
|
157
129
|
transform: rotate(-12deg);
|
|
158
130
|
}
|
|
159
131
|
}
|
|
160
132
|
}
|
|
161
133
|
|
|
162
|
-
&.
|
|
134
|
+
&.strike {
|
|
163
135
|
position: relative;
|
|
164
136
|
color: getColor('neutral');
|
|
165
137
|
|
|
@@ -184,40 +156,3 @@ $price-levels: (
|
|
|
184
156
|
}
|
|
185
157
|
}
|
|
186
158
|
}
|
|
187
|
-
|
|
188
|
-
.price-tag {
|
|
189
|
-
line-height: 1em;
|
|
190
|
-
align-self: center;
|
|
191
|
-
background-color: getColor('accent');
|
|
192
|
-
border-radius: 6px;
|
|
193
|
-
display: inline-flex;
|
|
194
|
-
color: getColor('background');
|
|
195
|
-
height: fit-content;
|
|
196
|
-
font-size: 28px;
|
|
197
|
-
align-items: baseline;
|
|
198
|
-
position: relative;
|
|
199
|
-
margin-left: -4px;
|
|
200
|
-
&::before {
|
|
201
|
-
content: '';
|
|
202
|
-
border-color: transparent;
|
|
203
|
-
border-bottom-color: getColor('accent');
|
|
204
|
-
border-left-color: getColor('accent');
|
|
205
|
-
transform: rotate(45deg);
|
|
206
|
-
border-style: solid;
|
|
207
|
-
border-width: 6px;
|
|
208
|
-
border-radius: 2px;
|
|
209
|
-
pointer-events: none;
|
|
210
|
-
position: absolute;
|
|
211
|
-
margin-left: -12px;
|
|
212
|
-
top: 0;
|
|
213
|
-
bottom: 0;
|
|
214
|
-
margin-top: auto;
|
|
215
|
-
margin-bottom: auto;
|
|
216
|
-
transform-origin: center;
|
|
217
|
-
height: 0;
|
|
218
|
-
width: 0;
|
|
219
|
-
}
|
|
220
|
-
.tag-period {
|
|
221
|
-
place-self: flex-end;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
.progress-radial {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
background: radial-gradient(white 58%, transparent 51%),
|
|
3
|
+
conic-gradient(gainsboro 0deg 360deg, gainsboro 0deg 360deg);
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
width: 124px;
|
|
6
|
+
height: 124px;
|
|
7
|
+
position: relative;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
.progress-radial-content {
|
|
10
|
+
border: 1px solid white;
|
|
11
|
+
border-radius: 50%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
&.is-small {
|
|
25
|
+
width: 75px;
|
|
26
|
+
height: 75px;
|
|
27
|
+
}
|
|
28
28
|
}
|
|
@@ -2,8 +2,20 @@
|
|
|
2
2
|
border-radius: 6px;
|
|
3
3
|
padding: $spacing-1;
|
|
4
4
|
background-color: getColor('neutral-fade');
|
|
5
|
-
display:
|
|
6
|
-
margin:
|
|
5
|
+
display: flex;
|
|
6
|
+
margin-left: auto;
|
|
7
|
+
margin-right: auto;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
|
|
10
|
+
&.justified-start {
|
|
11
|
+
margin-left: 0;
|
|
12
|
+
margin-right: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.justified-end {
|
|
16
|
+
margin-right: 0;
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
}
|
|
7
19
|
|
|
8
20
|
@include mobile {
|
|
9
21
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.tabs {
|
|
2
2
|
@include overflow-touch;
|
|
3
3
|
@include unselectable;
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
&.is-inverted {
|
|
25
25
|
background-color: getColor('font');
|
|
26
26
|
|
|
27
|
-
.
|
|
27
|
+
.tab-list > .tab {
|
|
28
28
|
color: getColor('background') !important;
|
|
29
29
|
|
|
30
30
|
&.is-active {
|
|
@@ -43,31 +43,21 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
&:has(.tab-list.is-aligned-start) {
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:has(.tab-list.is-aligned-end) {
|
|
51
|
+
text-align: right;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
.
|
|
54
|
+
.tab-list {
|
|
53
55
|
background-color: transparent;
|
|
56
|
+
height: 48px;
|
|
54
57
|
overflow-x: auto;
|
|
55
58
|
white-space: nowrap;
|
|
56
59
|
display: inline-flex;
|
|
57
60
|
|
|
58
|
-
&.is-centered {
|
|
59
|
-
justify-content: center;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.is-right {
|
|
63
|
-
justify-content: flex-end;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&.is-left {
|
|
67
|
-
justify-content: flex-start;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
61
|
&.is-fullwidth {
|
|
72
62
|
@include desktop {
|
|
73
63
|
> * {
|
|
@@ -81,7 +71,6 @@
|
|
|
81
71
|
box-shadow: none;
|
|
82
72
|
}
|
|
83
73
|
|
|
84
|
-
|
|
85
74
|
@include mobile {
|
|
86
75
|
justify-content: flex-start;
|
|
87
76
|
> .tab:first-child {
|
|
@@ -89,13 +78,17 @@
|
|
|
89
78
|
}
|
|
90
79
|
}
|
|
91
80
|
|
|
81
|
+
&:has(.tab .icon) {
|
|
82
|
+
height: 64px;
|
|
83
|
+
}
|
|
84
|
+
|
|
92
85
|
> .tab {
|
|
86
|
+
height: calc(100% - 4px);
|
|
93
87
|
background-color: transparent;
|
|
94
|
-
border: none;
|
|
95
88
|
color: getColor('font');
|
|
96
89
|
text-decoration: none;
|
|
97
90
|
outline: none;
|
|
98
|
-
padding:
|
|
91
|
+
padding: 6px 14px;
|
|
99
92
|
font-size: $text-14;
|
|
100
93
|
@include desktop {
|
|
101
94
|
font-size: $text-16;
|
|
@@ -182,4 +175,3 @@
|
|
|
182
175
|
}
|
|
183
176
|
}
|
|
184
177
|
}
|
|
185
|
-
|
|
@@ -3,6 +3,46 @@
|
|
|
3
3
|
margin-right: 0.6em;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.badge-container {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-width: 40px;
|
|
12
|
+
min-height: 40px;
|
|
13
|
+
|
|
14
|
+
.badge,
|
|
15
|
+
.badge-icon {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
|
|
20
|
+
&.is-bottom-left {
|
|
21
|
+
bottom: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: auto;
|
|
24
|
+
top: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.is-bottom-right {
|
|
28
|
+
bottom: 0;
|
|
29
|
+
right: 0;
|
|
30
|
+
top: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.is-top-left {
|
|
34
|
+
top: 0;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.badge-icon {
|
|
41
|
+
width: $text-20;
|
|
42
|
+
height: $text-20;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
6
46
|
.badge {
|
|
7
47
|
display: inline-flex;
|
|
8
48
|
border-radius: 9999px;
|
|
@@ -19,30 +59,12 @@
|
|
|
19
59
|
min-height: $text-10;
|
|
20
60
|
}
|
|
21
61
|
|
|
22
|
-
&.is-up {
|
|
23
|
-
position: absolute;
|
|
24
|
-
left: 50%;
|
|
25
|
-
top: $text-10;
|
|
26
|
-
right: $text-24;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
62
|
&.is-inverted {
|
|
30
63
|
color: getColor('main') !important;
|
|
31
64
|
background: getColor('background');
|
|
32
65
|
}
|
|
33
66
|
}
|
|
34
67
|
|
|
35
|
-
.badge-and-text {
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
gap: $text-40;
|
|
39
|
-
|
|
40
|
-
p {
|
|
41
|
-
margin-bottom: 0 !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
68
|
[data-badge-number] {
|
|
47
69
|
position: relative;
|
|
48
70
|
|