@trilogy-ds/styles 0.0.1-beta-149 → 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.
@@ -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
- .accordions#{$suffix} {
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;
@@ -1,7 +1,6 @@
1
1
  .divider {
2
2
  background-color: getColor('neutral');
3
3
  height: 1px;
4
- width: 100%;
5
4
  display: flex;
6
5
  justify-content: center;
7
6
  align-items: center;
@@ -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
- .modal-close {
126
- @include delete;
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
- background-color: getColor('background');
129
- position: sticky;
130
- top: 20px;
131
- left: 100%;
132
- display: block;
133
- height: $modal-close-dimensions;
134
- width: $modal-close-dimensions;
135
- z-index: zindex('medium');
136
-
137
- #{$hoverSelector} {
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
- &::after,
142
- &::before {
143
- background-color: getColor('font');
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
- .modal-title {
148
- padding: 20px 0;
149
- }
155
+ .modal-body {
156
+ padding: $spacing-5;
157
+ padding-top: 0;
158
+ padding-bottom: 0;
159
+ }
150
160
 
151
- .modal-title,
152
- .modal-header {
153
- color: getColor('font');
154
- font-family: $family-sans-serif;
155
- font-size: $size-3;
156
- font-weight: $weight-semibold;
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
- @include desktop {
166
- font-size: $size-3-desktop;
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
+ }
@@ -67,7 +67,7 @@
67
67
  }
68
68
  }
69
69
 
70
- .otp-error-message {
70
+ .help {
71
71
  font-size: $text-12;
72
72
  margin-top: 4px;
73
73
  }
@@ -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
- $striked-font-size: nth($price-level, 2);
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
- --striked-font-size: #{$striked-font-size};
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
- .tag-period {
73
- font-size: var(--tag-period-size);
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
- &.is-striked {
127
+ &.strike {
156
128
  &::before {
157
129
  transform: rotate(-12deg);
158
130
  }
159
131
  }
160
132
  }
161
133
 
162
- &.is-striked {
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
- 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;
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
- .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
- }
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
- &.is-small {
25
- width: 75px;
26
- height: 75px;
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: inline-block;
6
- margin: 16px 0;
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
- .tab-context {
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
- .tabs > .tab {
27
+ .tab-list > .tab {
28
28
  color: getColor('background') !important;
29
29
 
30
30
  &.is-active {
@@ -43,32 +43,21 @@
43
43
  }
44
44
  }
45
45
 
46
- &.has-text-left {
47
- .tabs > .tab:first-child {
48
- margin-left: 24px;
49
- }
46
+ &:has(.tab-list.is-aligned-start) {
47
+ text-align: left;
50
48
  }
51
49
 
52
- .tabs {
50
+ &:has(.tab-list.is-aligned-end) {
51
+ text-align: right;
52
+ }
53
+
54
+ .tab-list {
53
55
  background-color: transparent;
54
56
  height: 48px;
55
57
  overflow-x: auto;
56
58
  white-space: nowrap;
57
59
  display: inline-flex;
58
60
 
59
- &.is-centered {
60
- justify-content: center;
61
- }
62
-
63
- &.is-right {
64
- justify-content: flex-end;
65
- }
66
-
67
- &.is-left {
68
- justify-content: flex-start;
69
- }
70
-
71
-
72
61
  &.is-fullwidth {
73
62
  @include desktop {
74
63
  > * {
@@ -82,10 +71,6 @@
82
71
  box-shadow: none;
83
72
  }
84
73
 
85
- &.is-icons {
86
- height: 64px;
87
- }
88
-
89
74
  @include mobile {
90
75
  justify-content: flex-start;
91
76
  > .tab:first-child {
@@ -93,10 +78,13 @@
93
78
  }
94
79
  }
95
80
 
81
+ &:has(.tab .icon) {
82
+ height: 64px;
83
+ }
84
+
96
85
  > .tab {
97
86
  height: calc(100% - 4px);
98
87
  background-color: transparent;
99
- border: none;
100
88
  color: getColor('font');
101
89
  text-decoration: none;
102
90
  outline: none;
@@ -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