@trilogy-ds/styles 0.0.1-beta.26 → 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 +27 -60
  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%;
@@ -3,6 +3,11 @@
3
3
  padding-right: 0;
4
4
  margin: $spacing-4 0;
5
5
 
6
+ details.accordion ::-webkit-details-marker {
7
+ display: none;
8
+ content: "";
9
+ }
10
+
6
11
  .accordion {
7
12
 
8
13
  box-sizing: border-box;
@@ -10,14 +15,13 @@
10
15
  flex-direction: column;
11
16
  background-color: getColor('background');
12
17
  font-size: $size-normal;
13
- border: 1px solid getBGColor('font');
14
- border-radius: $radius;
18
+ border: var(--border);
19
+ border-radius: var(--radius);
15
20
  margin: 8px 0;
16
21
  min-height: 56px;
17
22
  max-height: max-content;
18
23
 
19
24
  .accordion-body {
20
- display: none;
21
25
  padding: $spacing-4;
22
26
  padding-top: 0 !important;
23
27
  }
@@ -31,34 +35,35 @@
31
35
  }
32
36
 
33
37
  &:focus-visible {
34
- outline: 2px solid getColor('main');
38
+ outline: var(--border-active);
35
39
  outline-offset: 2px;
36
40
  }
37
41
 
38
- &.is-active > .accordion-header:first-child, [data-accordion-toggle]:checked ~ .accordion-header {
39
- font-weight: bold;
42
+ .accordion-header:after {
43
+ max-width: 15px;
44
+ max-height: 15px;
45
+ position: absolute;
46
+ margin-top: 0;
47
+ right: 20px;
48
+ }
40
49
 
41
- & .toggle {
42
- &::before {
43
- @include arrow('up');
44
- }
45
- }
50
+ &[open]:not([aria-disabled="true"]) .accordion-header:after {
51
+ @include arrow('up');
52
+ }
53
+ &:not([open]) .accordion-header:after, &[aria-disabled="true"] .accordion-header:after {
54
+ @include arrow();
46
55
  }
47
56
 
48
- &.is-active > .accordion-header:first-child ~ .accordion-body, [data-accordion-toggle]:checked ~ .accordion-body {
49
- display: block;
57
+ &[open]:not([aria-disabled="true"]) > .accordion-header:first-child {
58
+ font-weight: bold;
50
59
  }
51
60
 
52
- &:not(:first-child) {
53
- .accordion-header {
54
- border-radius: $radius;
55
- }
61
+ &[aria-disabled="true"] .accordion-body {
62
+ display: none !important;
56
63
  }
57
64
 
58
- &:not(:last-child) {
59
- .accordion-content {
60
- border-radius: 0;
61
- }
65
+ .accordion-header {
66
+ border-radius: var(--radius);
62
67
  }
63
68
 
64
69
  &:first-child {
@@ -97,44 +102,6 @@
97
102
  }
98
103
  }
99
104
 
100
- .toggle {
101
- -moz-appearance: none;
102
- -webkit-appearance: none;
103
- user-select: none;
104
- border: none;
105
- background-color: transparent;
106
- cursor: pointer;
107
- display: inline-block;
108
- flex-grow: 0;
109
- flex-shrink: 0;
110
- height: 20px;
111
- width: 20px;
112
- max-height: 20px;
113
- max-width: 20px;
114
- min-height: 20px;
115
- min-width: 20px;
116
- outline-offset: 8px;
117
- position: relative;
118
- vertical-align: top;
119
- margin-left: auto;
120
- padding: 0 0 0 10px;
121
-
122
- &::after {
123
- display: none;
124
- }
125
-
126
- &::before {
127
- @include arrow();
128
- top: -0.25em;
129
- left: 0;
130
- right: 0;
131
- bottom: 0;
132
- width: 15px;
133
- height: 5px;
134
- margin: auto;
135
- }
136
- }
137
-
138
105
  p {
139
106
  margin-bottom: 0;
140
107
  }
@@ -143,7 +110,7 @@
143
110
  overflow-y: hidden;
144
111
 
145
112
  .accordion-content {
146
- border-radius: $radius;
113
+ border-radius: var(--radius);
147
114
  margin-bottom: 10px;
148
115
 
149
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
  }