@trilogy-ds/styles 0.0.1-beta-sc-1 → 0.0.1-beta-145

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,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,14 @@ body:has(.modal.is-active) {
71
71
  color: getColor('font');
72
72
  overflow: auto;
73
73
  position: relative;
74
- padding: 0 30px 30px;
74
+ padding: $spacing-5;
75
75
  margin: 0 $modal-content-margin-mobile;
76
76
  max-height: calc(100vh - 40px);
77
- text-align: center;
78
77
  width: 100%;
79
78
  z-index: zindex('tiny');
80
79
  transition: transform ease-in-out 250ms;
81
80
  transform: translateY(100%);
82
81
 
83
- &:has(.modal-footer) {
84
- padding-bottom: 0;
85
- }
86
-
87
82
  @include tablet {
88
83
  max-height: calc(100vh - 120px);
89
84
  width: $modal-content-width;
@@ -113,7 +108,11 @@ body:has(.modal.is-active) {
113
108
  width: 100%;
114
109
  background: getColor('background');
115
110
  bottom: 0;
116
- padding: 16px;
111
+
112
+ @include tablet {
113
+ display: flex;
114
+ justify-content: flex-end;
115
+ }
117
116
  }
118
117
 
119
118
  // If Close Icon Modal & Title Modal are sibling elements, override margin
@@ -126,9 +125,9 @@ body:has(.modal.is-active) {
126
125
  @include delete;
127
126
 
128
127
  background-color: getColor('background');
129
- position: sticky;
130
- top: 20px;
131
- left: 100%;
128
+ position: absolute;
129
+ top: $spacing-5;
130
+ right: $spacing-5;
132
131
  display: block;
133
132
  height: $modal-close-dimensions;
134
133
  width: $modal-close-dimensions;
@@ -144,11 +143,6 @@ body:has(.modal.is-active) {
144
143
  }
145
144
  }
146
145
 
147
- .modal-title {
148
- padding: 20px 0;
149
- }
150
-
151
- .modal-title,
152
146
  .modal-header {
153
147
  color: getColor('font');
154
148
  font-family: $family-sans-serif;
@@ -162,6 +156,10 @@ body:has(.modal.is-active) {
162
156
  width: 100%;
163
157
  word-wrap: break-word;
164
158
 
159
+ &:has(.icon) {
160
+ text-align: center;
161
+ }
162
+
165
163
  @include desktop {
166
164
  font-size: $size-3-desktop;
167
165
  }
@@ -203,4 +201,4 @@ body:has(.modal.is-active) {
203
201
  }
204
202
  }
205
203
  }
206
- }
204
+ }
@@ -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,31 +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;
48
+ }
49
+
50
+ &:has(.tab-list.is-aligned-end) {
51
+ text-align: right;
50
52
  }
51
53
 
52
- .tabs {
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: 8px 14px;
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
 
@@ -1,20 +1,16 @@
1
1
  @use 'sass:math';
2
2
  @import "../utilities/spacing";
3
3
 
4
- $font-size-header: 15;
5
- $font-line-height-header: 1.5;
6
- $padding-top-bottom-header: 8;
7
-
8
-
9
4
  :root {
10
- --padding-box : #{$spacing-5};
5
+ --padding-box: #{$spacing-5};
11
6
  @include mobile {
12
- --padding-box : #{$spacing-4};
7
+ --padding-box: #{$spacing-4};
13
8
  }
14
9
  }
15
10
 
16
11
  $highlighted-border-width: 4px;
17
12
 
13
+
18
14
  a.box {
19
15
  cursor: pointer;
20
16
  transition: box-shadow $animation-duration;
@@ -44,6 +40,16 @@ a.box {
44
40
  outline: var(--border-active);
45
41
  }
46
42
 
43
+ &.is-offset-header {
44
+ @include tablet {
45
+ margin-top: 40px;
46
+
47
+ &.is-fullheight {
48
+ height: calc(100% - 40px);
49
+ }
50
+ }
51
+ }
52
+
47
53
  &.is-fullheight {
48
54
  .box-content {
49
55
  flex-grow: 1;
@@ -54,22 +60,13 @@ a.box {
54
60
  box-shadow: none;
55
61
  border: var(--border);
56
62
 
57
- &.has-hat > .is-hat {
58
- left: -1px;
59
- right: -1px;
60
- }
61
-
62
63
  .box-header {
63
- margin-top: calc(var(--padding-box)*-1 - 1px);
64
- margin-left: calc(var(--padding-box)*-1 - 1px);
65
- margin-right: calc(var(--padding-box)*-1 - 1px);
64
+ margin-top: calc(var(--padding-box) * -1 - 1px);
65
+ margin-left: calc(var(--padding-box) * -1 - 1px);
66
+ margin-right: calc(var(--padding-box) * -1 - 1px);
66
67
  }
67
68
  }
68
69
 
69
- &.is-header-offset {
70
- margin-top: #{$font-size-header * $font-line-height-header + 2 * $padding-top-bottom-header}px;
71
- }
72
-
73
70
  &.is-highlighted {
74
71
  border-left: $highlighted-border-width solid transparent;
75
72
  border-top-left-radius: calc(var(--radius) + $highlighted-border-width);
@@ -78,14 +75,14 @@ a.box {
78
75
  $color: getColor($name);
79
76
  $brandName: getColorBrandName($name);
80
77
 
81
- &.is-#{$brandName}{
78
+ &.is-#{$brandName} {
82
79
  border-left-color: $color;
83
80
  border-left-width: $highlighted-border-width;
84
81
  }
85
82
  }
86
83
 
87
- .box-header{
88
- margin-left: calc(var(--padding-box)*-1 - $highlighted-border-width);
84
+ .box-header {
85
+ margin-left: calc(var(--padding-box) * -1 - $highlighted-border-width);
89
86
  }
90
87
  }
91
88
 
@@ -93,9 +90,9 @@ a.box {
93
90
  z-index: inherit;
94
91
  background-color: getColor('font');
95
92
  color: getColor('background');
96
- margin-top: calc(var(--padding-box)*-1);
97
- margin-left: calc(var(--padding-box)*-1);
98
- margin-right: calc(var(--padding-box)*-1);
93
+ margin-top: calc(var(--padding-box) * -1);
94
+ margin-left: calc(var(--padding-box) * -1);
95
+ margin-right: calc(var(--padding-box) * -1);
99
96
  padding: 8px;
100
97
  padding-left: var(--padding-box);
101
98
  padding-right: var(--padding-box);
@@ -107,9 +104,12 @@ a.box {
107
104
  align-items: center;
108
105
  font-weight: $weight-semibold;
109
106
  border-radius: var(--radius) var(--radius) 0 0;
110
- text-align: center;
107
+ height: 40px;
108
+
111
109
  @include tablet {
110
+ flex-direction: row;
112
111
  align-items: center;
112
+ justify-content: space-between;
113
113
  }
114
114
 
115
115
  > p:not(:last-child),
@@ -128,16 +128,18 @@ a.box {
128
128
  }
129
129
 
130
130
  .box-content {
131
- margin-left: calc(var(--padding-box)*-1);
132
- margin-right: calc(var(--padding-box)*-1);
131
+ margin-left: calc(var(--padding-box) * -1);
132
+ margin-right: calc(var(--padding-box) * -1);
133
133
  padding: var(--padding-box);
134
- &:first-child{
135
- margin-top: calc(var(--padding-box)*-1);
134
+
135
+ &:first-child {
136
+ margin-top: calc(var(--padding-box) * -1);
136
137
  border-top-left-radius: var(--radius);
137
138
  border-top-right-radius: var(--radius);
138
139
  }
139
- &:last-child{
140
- margin-bottom: calc(var(--padding-box)*-1);
140
+
141
+ &:last-child {
142
+ margin-bottom: calc(var(--padding-box) * -1);
141
143
  border-bottom-left-radius: var(--radius);
142
144
  border-bottom-right-radius: var(--radius);
143
145
  }
@@ -147,8 +149,8 @@ a.box {
147
149
  }
148
150
 
149
151
  > .is-unboxed {
150
- margin-left: calc(var(--padding-box)*-1);
151
- margin-right: calc(var(--padding-box)*-1);
152
+ margin-left: calc(var(--padding-box) * -1);
153
+ margin-right: calc(var(--padding-box) * -1);
152
154
  }
153
155
 
154
156
  &.is-transparent {
@@ -157,9 +159,9 @@ a.box {
157
159
  }
158
160
 
159
161
  .box-footer {
160
- margin-left: calc(var(--padding-box)*-1);
161
- margin-right: calc(var(--padding-box)*-1);
162
- margin-bottom: calc(var(--padding-box)*-1);
162
+ margin-left: calc(var(--padding-box) * -1);
163
+ margin-right: calc(var(--padding-box) * -1);
164
+ margin-bottom: calc(var(--padding-box) * -1);
163
165
  padding: var(--padding-box);
164
166
  border-top: 1px solid getColor('neutral-fade');
165
167
  border-bottom-left-radius: var(--radius);