@trilogy-ds/styles 0.0.1-beta.27 → 0.0.1-beta.28

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.
Files changed (51) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/base/_helpers.scss +5 -9
  5. package/framework/src/base/_loading.scss +1 -1
  6. package/framework/src/components/_accordion.scss +11 -15
  7. package/framework/src/components/_card.scss +6 -74
  8. package/framework/src/components/_countdown.scss +2 -2
  9. package/framework/src/components/_dropdown.scss +1 -1
  10. package/framework/src/components/_level.scss +1 -1
  11. package/framework/src/components/_modal.scss +1 -1
  12. package/framework/src/components/_otp.scss +1 -1
  13. package/framework/src/components/_pagination.scss +18 -25
  14. package/framework/src/components/_popover.scss +1 -1
  15. package/framework/src/components/_product-tour.scss +1 -1
  16. package/framework/src/components/_range.scss +2 -2
  17. package/framework/src/components/_segmented-control.scss +1 -1
  18. package/framework/src/components/_stepper.scss +2 -2
  19. package/framework/src/components/_timeline.scss +3 -3
  20. package/framework/src/elements/_alert.scss +1 -1
  21. package/framework/src/elements/_badge.scss +2 -2
  22. package/framework/src/elements/_box.scss +5 -68
  23. package/framework/src/elements/_button.scss +1 -1
  24. package/framework/src/elements/_checkbox.scss +1 -1
  25. package/framework/src/elements/_chips.scss +3 -5
  26. package/framework/src/elements/_dot.scss +1 -1
  27. package/framework/src/elements/_entry.scss +0 -1
  28. package/framework/src/elements/_icon.scss +3 -3
  29. package/framework/src/elements/_input-gauge.scss +2 -2
  30. package/framework/src/elements/_loader.scss +1 -1
  31. package/framework/src/elements/_notification.scss +1 -1
  32. package/framework/src/elements/_other.scss +1 -1
  33. package/framework/src/elements/_progress.scss +3 -3
  34. package/framework/src/elements/_radio.scss +1 -1
  35. package/framework/src/elements/_select.scss +5 -5
  36. package/framework/src/elements/_sticker.scss +5 -8
  37. package/framework/src/elements/_switch.scss +2 -2
  38. package/framework/src/elements/_table.scss +1 -1
  39. package/framework/src/elements/_tag.scss +1 -2
  40. package/framework/src/elements/_textarea.scss +1 -1
  41. package/framework/src/elements/_toaster.scss +1 -1
  42. package/framework/src/grid/_columns.scss +2 -2
  43. package/framework/src/layout/_hero.scss +2 -4
  44. package/framework/src/layout/_section.scss +4 -11
  45. package/framework/src/theming/_all.scss +1 -0
  46. package/framework/src/theming/buttons_partial.scss +1 -1
  47. package/framework/src/theming/common_partials.scss +9 -0
  48. package/framework/src/utilities/_controls.scss +2 -5
  49. package/framework/src/utilities/_initial-variables.scss +0 -2
  50. package/framework/src/utilities/_mixins.scss +4 -4
  51. package/package.json +1 -1
@@ -423,11 +423,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
423
423
  }
424
424
 
425
425
  .is-rounded {
426
- border-radius: 50% !important;
426
+ border-radius: 9999px !important;
427
427
  }
428
428
 
429
429
  .is-bordered {
430
- border: 1px solid getBGColor('neutral-dark');
430
+ border: var(--border);
431
431
  }
432
432
 
433
433
  .is-vertical-paddingless {
@@ -436,15 +436,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
436
436
  }
437
437
 
438
438
  // Radius
439
- $radius-list: (
440
- 'radius-small': $radius-small,
441
- 'radius': $radius,
442
- 'radius-large': $radius-large,
443
- );
439
+ $radius-list: ['radius-small', 'radius'];
444
440
 
445
- @each $label, $radius-size in $radius-list {
441
+ @each $label in $radius-list {
446
442
  .has-border-#{$label} {
447
- border-radius: $radius-size;
443
+ border-radius: var(--#{$label});
448
444
  }
449
445
  }
450
446
 
@@ -65,7 +65,7 @@ p.is-loading,
65
65
  // make the text elements like subtle animated lines
66
66
  @include text-tags {
67
67
  display: inline;
68
- border-radius: 99em;
68
+ border-radius: 9999px;
69
69
  background: currentColor !important;
70
70
  box-decoration-break: clone;
71
71
  font-size: 70%;
@@ -15,8 +15,8 @@
15
15
  flex-direction: column;
16
16
  background-color: getColor('background');
17
17
  font-size: $size-normal;
18
- border: 1px solid getBGColor('font');
19
- border-radius: $radius;
18
+ border: var(--border);
19
+ border-radius: var(--radius);
20
20
  margin: 8px 0;
21
21
  min-height: 56px;
22
22
  max-height: max-content;
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  &:focus-visible {
38
- outline: 2px solid getColor('main');
38
+ outline: var(--border-active);
39
39
  outline-offset: 2px;
40
40
  }
41
41
 
@@ -47,27 +47,23 @@
47
47
  right: 20px;
48
48
  }
49
49
 
50
- &[open] .accordion-header:after {
50
+ &[open]:not([aria-disabled="true"]) .accordion-header:after {
51
51
  @include arrow('up');
52
52
  }
53
- &:not([open]) .accordion-header:after{
53
+ &:not([open]) .accordion-header:after, &[aria-disabled="true"] .accordion-header:after {
54
54
  @include arrow();
55
55
  }
56
56
 
57
- &[open] > .accordion-header:first-child {
57
+ &[open]:not([aria-disabled="true"]) > .accordion-header:first-child {
58
58
  font-weight: bold;
59
59
  }
60
60
 
61
- &:not(:first-child) {
62
- .accordion-header {
63
- border-radius: $radius;
64
- }
61
+ &[aria-disabled="true"] .accordion-body {
62
+ display: none !important;
65
63
  }
66
64
 
67
- &:not(:last-child) {
68
- .accordion-content {
69
- border-radius: 0;
70
- }
65
+ .accordion-header {
66
+ border-radius: var(--radius);
71
67
  }
72
68
 
73
69
  &:first-child {
@@ -114,7 +110,7 @@
114
110
  overflow-y: hidden;
115
111
 
116
112
  .accordion-content {
117
- border-radius: $radius;
113
+ border-radius: var(--radius);
118
114
  margin-bottom: 10px;
119
115
 
120
116
  @include mobile() {
@@ -1,7 +1,8 @@
1
1
  .card {
2
2
  max-width: 100%;
3
3
  display: flex;
4
- border-radius: $radius;
4
+ border-radius: var(--radius);
5
+ overflow: hidden;
5
6
  flex-direction: column;
6
7
  position: relative;
7
8
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
@@ -16,15 +17,11 @@
16
17
  position: relative;
17
18
  flex-shrink: 0;
18
19
  overflow: hidden;
19
- border-radius: $radius $radius 0px 0px;
20
20
  }
21
21
 
22
22
  .card-content {
23
- border-bottom-left-radius: $radius;
24
- border-bottom-right-radius: $radius;
25
23
  padding: $spacing-5;
26
24
  flex-grow: 1;
27
- border-radius: $radius;
28
25
 
29
26
  @include mobile {
30
27
  padding: $spacing-4;
@@ -57,7 +54,7 @@
57
54
 
58
55
  &.is-flat {
59
56
  box-shadow: none;
60
- border: 1px solid getBGColor('font');
57
+ border: var(--border);
61
58
 
62
59
  .card-content {
63
60
  padding-left: 20px;
@@ -71,26 +68,15 @@
71
68
  }
72
69
 
73
70
  &.is-active {
74
- border: 2px solid getColor('main');
75
-
76
- .card-image {
77
- border-radius: 6px 6px 0px 0px;
78
- }
71
+ outline: var(--border-active);
79
72
 
80
73
  .card-content {
81
- border-bottom-left-radius: ($radius - 2px);
82
- border-bottom-right-radius: ($radius - 2px);
74
+
83
75
  padding: 22px;
84
76
  @include mobile {
85
77
  padding: 14px;
86
78
  }
87
79
  }
88
-
89
- &.is-horizontal {
90
- .card-image {
91
- border-radius: ($radius - 2px) 0px 0px ($radius - 2px);
92
- }
93
- }
94
80
  }
95
81
 
96
82
  &.is-horizontal {
@@ -110,7 +96,6 @@
110
96
 
111
97
  .card-image {
112
98
  max-width: 100%;
113
- border-radius: $radius 0px 0px $radius;
114
99
 
115
100
  @include tablet {
116
101
  img {
@@ -176,31 +161,11 @@
176
161
  top: 50%;
177
162
  transform: translateY(-50%);
178
163
  }
179
- &.is-polyfilled {
180
- border-top-left-radius: $radius;
181
- border-top-right-radius: 0;
182
- border-bottom-left-radius: $radius;
183
- position: absolute;
184
- top: 0;
185
- left: 0;
186
- bottom: 0;
187
- right: 0;
188
- background-size: cover;
189
- background-repeat: no-repeat;
190
- background-position: 50% 50%;
191
-
192
- img {
193
- visibility: hidden;
194
- }
195
- }
196
164
  }
197
165
  }
198
166
  }
199
167
 
200
168
  .card-content {
201
- border-top-right-radius: $radius;
202
- border-bottom-right-radius: $radius;
203
- border-bottom-left-radius: 0;
204
169
  padding-left: 20px;
205
170
  padding-right: 20px;
206
171
 
@@ -220,10 +185,8 @@
220
185
  box-shadow: none;
221
186
  background: transparent;
222
187
 
223
- &.is-inverted .card-image .image img,
224
- &.is-reversed .card-image .image img,
225
188
  .card-image .image img {
226
- border-radius: $radius;
189
+ border-radius: var(--radius);
227
190
  }
228
191
 
229
192
  .card-content {
@@ -253,42 +216,11 @@
253
216
  &.is-reversed {
254
217
  .card-image {
255
218
  order: 1;
256
- border-radius: 0;
257
-
258
- .image {
259
- img {
260
- border-bottom-left-radius: $radius;
261
- border-bottom-right-radius: $radius;
262
- }
263
- }
264
- }
265
-
266
- .card-content {
267
- border-top-left-radius: $radius;
268
- border-top-right-radius: $radius;
269
- border-bottom-left-radius: 0;
270
- border-bottom-right-radius: 0;
271
219
  }
272
220
 
273
221
  &.is-horizontal {
274
222
  .card-image {
275
223
  order: 1;
276
-
277
- .image {
278
- img {
279
- border-top-left-radius: 0;
280
- border-top-right-radius: $radius;
281
- border-bottom-left-radius: 0;
282
- border-bottom-right-radius: $radius;
283
- }
284
- }
285
- }
286
-
287
- .card-content {
288
- border-top-left-radius: $radius;
289
- border-top-right-radius: 0;
290
- border-bottom-left-radius: $radius;
291
- border-bottom-right-radius: 0;
292
224
  }
293
225
  }
294
226
  }
@@ -1,6 +1,6 @@
1
1
  .countdown {
2
2
  border: 1px solid currentcolor;
3
- border-radius: $radius;
3
+ border-radius: var(--radius);
4
4
  display: inline-flex;
5
5
  padding: $spacing-2;
6
6
  color: getColor('font');
@@ -32,7 +32,7 @@
32
32
 
33
33
  &.is-small {
34
34
  padding: $spacing-2 0;
35
- border-radius: $radius-small;
35
+ border-radius: var(--radius-small);
36
36
 
37
37
  .count {
38
38
  font-size: $text-12;
@@ -78,7 +78,7 @@
78
78
  z-index: 20;
79
79
 
80
80
  .dropdown-content {
81
- border-radius: $radius;
81
+ border-radius: var(--radius);
82
82
  box-shadow: 0 2px 3px rgba(#000, 0.1),
83
83
  0 0 0 1px rgba(#000, 0.1);
84
84
  font-size: inherit;
@@ -5,7 +5,7 @@
5
5
  justify-content: space-between;
6
6
 
7
7
  code {
8
- border-radius: $radius;
8
+ border-radius: var(--radius);
9
9
  }
10
10
 
11
11
  img {
@@ -67,7 +67,7 @@ body:has(.modal.is-active) {
67
67
 
68
68
  .modal-content {
69
69
  background-color: getColor('background');
70
- border-radius: $radius $radius 0 0;
70
+ border-radius: var(--radius) var(--radius) 0 0;
71
71
  color: getColor('font');
72
72
  overflow: auto;
73
73
  position: relative;
@@ -6,7 +6,7 @@
6
6
  @include hover();
7
7
  outline: none;
8
8
  border: 1px solid currentColor;
9
- border-radius: $radius-small;
9
+ border-radius: var(--radius-small);
10
10
  background: transparent;
11
11
  width: 33px;
12
12
  height: 40px;
@@ -2,25 +2,24 @@
2
2
  font-size: $size-normal;
3
3
  margin: -2.5px;
4
4
 
5
- &.is-rounded {
6
- .pagination-previous,
7
- .pagination-next {
8
- padding-left: 1em;
9
- padding-right: 1em;
10
- height: 35px;
11
- width: 35px;
12
- border-radius: $radius-rounded;
13
- }
5
+ .pagination-previous,
6
+ .pagination-next {
7
+ padding-left: 1em;
8
+ padding-right: 1em;
9
+ height: 35px;
10
+ width: 35px;
11
+ border-radius: 9999px;
12
+ }
14
13
 
15
- .pagination-link {
16
- height: 35px;
17
- border-radius: $radius-rounded;
18
- }
14
+ .pagination-link {
15
+ height: 35px;
16
+ border-radius: 9999px;
17
+ }
19
18
 
20
- .pagination-list {
21
- flex: 0 0 auto;
22
- }
19
+ .pagination-list {
20
+ flex: 0 0 auto;
23
21
  }
22
+
24
23
  }
25
24
 
26
25
  .pagination,
@@ -53,7 +52,7 @@
53
52
  min-width: 2.25em;
54
53
 
55
54
  @include hover();
56
-
55
+
57
56
  }
58
57
 
59
58
  .pagination-previous,
@@ -64,7 +63,7 @@
64
63
  }
65
64
 
66
65
  .pagination-link {
67
- &.is-current {
66
+ &[aria-current] {
68
67
  background-color: getColor('font');
69
68
  color: getColor('background');
70
69
 
@@ -75,7 +74,7 @@
75
74
  }
76
75
 
77
76
  .pagination-ellipsis {
78
- color: getBGColor('neutral-dark');
77
+ color: getColor('background');
79
78
  pointer-events: none;
80
79
  }
81
80
 
@@ -152,9 +151,3 @@
152
151
  }
153
152
  }
154
153
  }
155
-
156
- @include desktop {
157
- .pagination {
158
- justify-content: center;
159
- }
160
- }
@@ -74,7 +74,7 @@
74
74
  @include position-top();
75
75
 
76
76
  background-color: getColor('font');
77
- border-radius: $radius-small;
77
+ border-radius: var(--radius-small);
78
78
  box-shadow: $shadow;
79
79
  color: getColor('background');
80
80
  display: inline-block;
@@ -92,7 +92,7 @@
92
92
  top: 0;
93
93
  left: 0;
94
94
  background: white;
95
- border-radius: 100%;
95
+ border-radius: 9999px;
96
96
  box-shadow: $shadow;
97
97
  transform: translate(-50%, -50%);
98
98
 
@@ -25,14 +25,14 @@
25
25
  .range-track {
26
26
  width: 100%;
27
27
  height: 8px;
28
- border-radius: 8px;
28
+ border-radius: var(--radius);
29
29
  position: absolute;
30
30
  margin: auto;
31
31
  top: 0;
32
32
  bottom: 0;
33
33
  @include mobile {
34
34
  height: 4px;
35
- border-radius: 4px;
35
+ border-radius: var(--radius-small);
36
36
  }
37
37
  }
38
38
 
@@ -13,7 +13,7 @@
13
13
 
14
14
  .segmented-control-item {
15
15
  padding: 0 $spacing-5;
16
- border-radius: $radius-small;
16
+ border-radius: var(--radius-small);
17
17
  font-size: 16px;
18
18
  text-align: center;
19
19
  border: 2px solid transparent;
@@ -25,7 +25,7 @@
25
25
  display: block;
26
26
  height: 4px;
27
27
  background: getBGColor('font');
28
- border-radius: 4px;
28
+ border-radius: var(--radius-small);
29
29
  }
30
30
 
31
31
  &.is-error {
@@ -147,7 +147,7 @@
147
147
  .step-bars {
148
148
  height: 4px;
149
149
  background: getColor('disabled');
150
- border-radius: 4px;
150
+ border-radius: var(--radius-small);
151
151
  display: none;
152
152
  }
153
153
 
@@ -137,7 +137,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
137
137
  .timeline-marker {
138
138
  position: absolute;
139
139
  background: $timeline-marker-color;
140
- border-radius: 100%;
140
+ border-radius: 9999px;
141
141
  content: '';
142
142
  display: block;
143
143
  height: $timeline-marker-size;
@@ -157,7 +157,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
157
157
  }
158
158
 
159
159
  background: $timeline-marker-color;
160
- border-radius: 100%;
160
+ border-radius: 9999px;
161
161
  display: block;
162
162
  overflow: hidden;
163
163
  }
@@ -173,7 +173,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
173
173
  line-height: size(0.75rem);
174
174
  padding: math.div($timeline-icon-size, 3);
175
175
  background: $timeline-marker-color;
176
- border-radius: 100%;
176
+ border-radius: 9999px;
177
177
 
178
178
  > i {
179
179
  color: getColor('background');
@@ -12,7 +12,7 @@ a.alert {
12
12
 
13
13
  .alert {
14
14
 
15
- border-radius: $radius;
15
+ border-radius: var(--radius);
16
16
  margin-bottom: 16px;
17
17
  position: relative;
18
18
  display: flex;
@@ -5,7 +5,7 @@
5
5
 
6
6
  @mixin badge {
7
7
  display: inline-flex;
8
- border-radius: 99em;
8
+ border-radius: 9999px;
9
9
  color: getColor('background');
10
10
  background: getColor('main');
11
11
  font-size: $text-10;
@@ -71,6 +71,6 @@
71
71
  display: flex;
72
72
  align-items: center;
73
73
  justify-content: center;
74
- border-radius: 100%;
74
+ border-radius: 9999px;
75
75
  }
76
76
  }
@@ -20,7 +20,8 @@ a.box {
20
20
  .box {
21
21
  background-color: getColor('background');
22
22
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
23
- border-radius: $radius;
23
+ border-radius: var(--radius);
24
+ overflow: hidden;
24
25
  display: flex;
25
26
  flex-direction: column;
26
27
  justify-content: flex-start;
@@ -36,57 +37,7 @@ a.box {
36
37
  }
37
38
 
38
39
  &.is-active {
39
- border: 2px solid getColor('main');
40
-
41
- > .box-header {
42
- border-radius: ($radius - 2px) ($radius - 2px) 0 0;
43
- padding-top: 6px;
44
- padding-left: 22px;
45
- padding-right: 6px;
46
- }
47
-
48
- ~ .box-content {
49
- border-radius: 0 0 ($radius - 2px) ($radius - 2px);
50
-
51
- }
52
-
53
- > .box-content {
54
- padding-left: 22px;
55
- padding-right: 22px;
56
- @include mobile {
57
- padding-left: 14px;
58
- padding-right: 14px;
59
- }
60
-
61
- &:first-child {
62
- border-radius: ($radius - 2px) ($radius - 2px) 0 0;
63
- padding-top: 22px;
64
- @include mobile {
65
- padding-top: 14px;
66
- }
67
-
68
- }
69
-
70
- &:last-child {
71
- border-radius: 0 0 ($radius - 2px) ($radius - 2px);
72
- padding-bottom: 22px;
73
- @include mobile {
74
- padding-bottom: 14px;
75
- }
76
- }
77
-
78
- &:only-child {
79
- border-radius: ($radius - 2px);
80
- padding: 22px;
81
- @include mobile {
82
- padding: 14px;
83
- }
84
- }
85
- }
86
-
87
- > .box-footer {
88
- margin: 12.5px 5.5px 5.5px;
89
- }
40
+ outline: var(--border-active);
90
41
  }
91
42
 
92
43
  &.is-fullheight {
@@ -114,7 +65,7 @@ a.box {
114
65
 
115
66
  &.is-flat {
116
67
  box-shadow: none;
117
- border: 1px solid getBGColor('font');
68
+ border: var(--border);
118
69
 
119
70
  &.has-hat > .is-hat {
120
71
  left: -1px;
@@ -138,7 +89,6 @@ a.box {
138
89
  padding: 8px;
139
90
  padding-left: 24px;
140
91
  box-shadow: none;
141
- border-radius: $radius $radius 0 0;
142
92
  font-size: 15px;
143
93
  display: flex;
144
94
  justify-content: center;
@@ -170,7 +120,6 @@ a.box {
170
120
 
171
121
  ~ .box-content {
172
122
  margin-top: 0;
173
- border-radius: 0 0 $radius $radius;
174
123
  }
175
124
  }
176
125
 
@@ -187,18 +136,6 @@ a.box {
187
136
  text-align: left;
188
137
  }
189
138
 
190
- &:first-child {
191
- border-radius: $radius $radius 0 0;
192
- }
193
-
194
- &:last-child {
195
- border-radius: 0 0 $radius $radius;
196
- }
197
-
198
- &:only-child {
199
- border-radius: $radius;
200
- }
201
-
202
139
  > .is-unboxed {
203
140
  margin-left: -$padding-box;
204
141
  margin-right: -$padding-box;
@@ -217,7 +154,7 @@ a.box {
217
154
 
218
155
  .box-footer {
219
156
  padding-top: $padding-box;
220
- border-top: 1px solid getBGColor('font');
157
+ border-top: var(--border);
221
158
  margin: 12.5px 7.5px 7.5px;
222
159
  }
223
160
  }
@@ -36,7 +36,7 @@ $button-border-width: 2px !default;
36
36
 
37
37
  background-color: white;
38
38
  border-width: $button-border-width;
39
- border-radius: $radius-small;
39
+ border-radius: var(--radius-small);
40
40
  cursor: pointer;
41
41
  justify-content: center;
42
42
  text-align: center;
@@ -18,7 +18,7 @@
18
18
  label.checkbox-label {
19
19
  &:before,
20
20
  &:after {
21
- border-radius: $radius-small;
21
+ border-radius: var(--radius-small);
22
22
  }
23
23
  }
24
24
  }
@@ -1,5 +1,3 @@
1
- $chip-radius: 30px !default;
2
-
3
1
  .chips-list {
4
2
  align-items: center;
5
3
  display: inline-flex;
@@ -44,7 +42,7 @@ $chip-radius: 30px !default;
44
42
  .chips {
45
43
  align-items: center;
46
44
  background-color: white;
47
- border-radius: $chip-radius;
45
+ border-radius: 9999px;
48
46
  color: getColor('font');
49
47
  display: inline-flex;
50
48
  font-weight: 400;
@@ -55,7 +53,7 @@ $chip-radius: 30px !default;
55
53
  padding: 6px $spacing-4;
56
54
  white-space: nowrap;
57
55
  cursor: pointer;
58
- border: 1px solid getBGColor('font');
56
+ border: var(--border);
59
57
 
60
58
  &:not(.is-disabled) {
61
59
 
@@ -63,7 +61,7 @@ $chip-radius: 30px !default;
63
61
  background-color: getColor('main');
64
62
  color: white;
65
63
  font-weight: 600;
66
- border: 2px solid getColor('main');
64
+ border: var(--border-active);
67
65
  padding: 5px 15px;
68
66
 
69
67
  #{$hoverSelector} {