@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4

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 (94) 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/_color.scss +9 -39
  5. package/framework/src/base/_generic.scss +4 -1
  6. package/framework/src/base/_helpers.scss +13 -38
  7. package/framework/src/base/_loading.scss +8 -1
  8. package/framework/src/base/_reset.scss +8 -3
  9. package/framework/src/components/_accordion.scss +53 -88
  10. package/framework/src/components/_all.scss +1 -7
  11. package/framework/src/components/_autolayout.scss +302 -0
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +8 -79
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +10 -15
  16. package/framework/src/components/_fab.scss +25 -38
  17. package/framework/src/components/_modal.scss +161 -158
  18. package/framework/src/components/_otp.scss +10 -29
  19. package/framework/src/components/_pagination.scss +59 -161
  20. package/framework/src/components/_plus-symbol.scss +1 -1
  21. package/framework/src/components/_popover.scss +260 -260
  22. package/framework/src/components/_price.scss +119 -170
  23. package/framework/src/components/_product-tour.scss +2 -4
  24. package/framework/src/components/_progress-radial.scss +24 -19
  25. package/framework/src/components/_range.scss +73 -72
  26. package/framework/src/components/_segmented-control.scss +51 -53
  27. package/framework/src/components/_stepper.scss +42 -222
  28. package/framework/src/components/_tabs.scss +46 -81
  29. package/framework/src/components/_timeline.scss +27 -112
  30. package/framework/src/elements/_alert.scss +13 -10
  31. package/framework/src/elements/_all.scss +1 -4
  32. package/framework/src/elements/_autocomplete.scss +32 -0
  33. package/framework/src/elements/_badge.scss +67 -61
  34. package/framework/src/elements/_box.scss +64 -161
  35. package/framework/src/elements/_button.scss +15 -141
  36. package/framework/src/elements/_checkbox.scss +29 -26
  37. package/framework/src/elements/_chips.scss +69 -85
  38. package/framework/src/elements/_container.scss +7 -39
  39. package/framework/src/elements/_entry.scss +76 -88
  40. package/framework/src/elements/_form.scss +26 -23
  41. package/framework/src/elements/_icon.scss +4 -4
  42. package/framework/src/elements/_image.scss +50 -40
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +45 -44
  47. package/framework/src/elements/_loader.scss +2 -2
  48. package/framework/src/elements/_other.scss +0 -37
  49. package/framework/src/elements/_paragraph.scss +35 -69
  50. package/framework/src/elements/_progress.scss +33 -22
  51. package/framework/src/elements/_radio.scss +45 -31
  52. package/framework/src/elements/_select.scss +85 -304
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +101 -99
  55. package/framework/src/elements/_table.scss +175 -228
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +113 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +4 -5
  60. package/framework/src/grid/_columns.scss +257 -764
  61. package/framework/src/grid/_rows.scss +45 -38
  62. package/framework/src/layout/_all.scss +0 -1
  63. package/framework/src/layout/_hero.scss +89 -215
  64. package/framework/src/layout/_section.scss +5 -29
  65. package/framework/src/theming/_all.scss +3 -0
  66. package/framework/src/theming/buttons_partial.scss +32 -0
  67. package/framework/src/theming/common_partials.scss +10 -0
  68. package/framework/src/theming/links_partial.scss +20 -0
  69. package/framework/src/utilities/_a11y.scss +13 -0
  70. package/framework/src/utilities/_all.scss +4 -0
  71. package/framework/src/utilities/_background.scss +19 -0
  72. package/framework/src/utilities/_colors.scss +40 -0
  73. package/framework/src/utilities/_controls.scss +38 -49
  74. package/framework/src/utilities/_derived-variables.scss +4 -15
  75. package/framework/src/utilities/_initial-variables.scss +4 -36
  76. package/framework/src/utilities/_mixins.scss +483 -592
  77. package/framework/src/utilities/_pre.scss +1 -0
  78. package/package.json +3 -3
  79. package/framework/src/components/_autolayout2.scss +0 -38
  80. package/framework/src/components/_disclaimer.scss +0 -84
  81. package/framework/src/components/_dropdown.scss +0 -128
  82. package/framework/src/components/_level.scss +0 -120
  83. package/framework/src/components/_media.scss +0 -64
  84. package/framework/src/components/_menu.scss +0 -213
  85. package/framework/src/components/_search-modal.scss +0 -197
  86. package/framework/src/components/_slices.scss +0 -316
  87. package/framework/src/components/_slider.scss +0 -92
  88. package/framework/src/components/_switch.scss +0 -209
  89. package/framework/src/elements/_checkradio.scss +0 -173
  90. package/framework/src/elements/_dot.scss +0 -6
  91. package/framework/src/elements/_notification.scss +0 -151
  92. package/framework/src/elements/_options.scss +0 -146
  93. package/framework/src/elements/_timeline.scss +0 -283
  94. package/framework/src/layout/_toolbar.scss +0 -100
@@ -4,295 +4,242 @@
4
4
  * @deprecated "Use box.is-paddingless instead"
5
5
  */
6
6
  .table-container.box {
7
- padding: 0;
7
+ padding: 0;
8
8
  }
9
9
 
10
10
  .table {
11
- @include block;
12
-
13
- background-color: transparent;
14
- color: getColor('grey-dark');
15
-
16
- &:not(:last-child) {
17
- margin-bottom: 30px;
11
+ @include block;
12
+
13
+ background-color: transparent;
14
+ color: getColor('neutral');
15
+
16
+ &:not(:last-child) {
17
+ margin-bottom: 30px;
18
+ }
19
+
20
+ /**
21
+ * @deprecated "Use multiples <tr><th> instead"
22
+ */
23
+ tbody .is-body-header {
24
+ background-color: getColor('neutral-fade');
25
+ }
26
+
27
+ td,
28
+ th {
29
+ border: 1px solid getColor('neutral-fade');
30
+ border-width: 0;
31
+ padding: 20px;
32
+ vertical-align: top;
33
+ text-align: left;
34
+
35
+ // Modifiers
36
+ &.is-narrow {
37
+ white-space: nowrap;
38
+ width: 1%;
18
39
  }
19
40
 
20
- /**
21
- * @deprecated "Use multiples <tr><th> instead"
22
- */
23
- tbody .is-body-header {
24
- background-color: getColor('grey-light');
41
+ &.is-selected {
42
+ background-color: getColor('main');
43
+ color: getColor('background');
44
+
45
+ a,
46
+ strong {
47
+ color: currentColor;
48
+ }
25
49
  }
50
+ }
26
51
 
27
- td,
28
- th {
29
- border: 1px solid getColor('grey-light');
30
- border-width: 0;
31
- padding: 20px;
32
- vertical-align: top;
33
- text-align: left;
34
-
35
- // Modifiers
36
- &.is-narrow {
37
- white-space: nowrap;
38
- width: 1%;
39
- }
52
+ th {
53
+ color: getColor('font');
54
+ }
40
55
 
41
- &.is-selected {
42
- background-color: getColor('main');
43
- color: getColor('background');
44
- a,
45
- strong {
46
- color: currentColor;
47
- }
48
- }
56
+ tr {
57
+ @each $name in $colors-feedback {
58
+ &.is-#{$name} {
59
+ background-color: fadeColor($name);
60
+ }
49
61
  }
50
62
 
51
63
  th {
52
- color: getColor('font');
64
+ background-color: getColor('background');
53
65
  }
54
66
 
55
- tr {
56
- @each $name, $pair in $colors-feedback {
57
- $bg-color: nth($pair, 1);
58
- &.is-#{$name} {
59
- background-color:getColor($bg-color);
60
- }
61
- }
67
+ th,
68
+ td {
69
+ color: getColor('font');
70
+ vertical-align: middle;
71
+ }
62
72
 
63
- th {
64
- background-color: getColor('background');
65
- }
73
+ td {
74
+ border-bottom: 1px solid getColor('neutral-fade');
66
75
 
67
- th,
68
- td {
69
- color: getColor('font');
70
- vertical-align: middle;
71
- }
72
-
73
- td {
74
- border-bottom: 1px solid getColor('grey-light');
76
+ > p {
77
+ margin: 0;
78
+ }
79
+ }
75
80
 
76
- > p {
77
- margin: 0;
78
- }
79
- }
81
+ &.is-selected {
82
+ background-color: getColor('main');
83
+ color: getColor('background');
80
84
 
81
- &.is-selected {
82
- background-color: getColor('main');
83
- color: getColor('background');
85
+ a,
86
+ strong {
87
+ color: currentColor;
88
+ }
84
89
 
85
- a,
86
- strong {
87
- color: currentColor;
88
- }
90
+ td,
91
+ th {
92
+ border-color: currentColor;
93
+ color: currentColor;
94
+ }
95
+ }
89
96
 
90
- td,
91
- th {
92
- border-color: currentColor;
93
- color: currentColor;
94
- }
95
- }
97
+ &.is-expanded,
98
+ &.is-expandable:hover {
99
+ td {
100
+ color: getColor('accent');
101
+ cursor: pointer;
102
+ }
103
+ }
96
104
 
97
- &.is-expanded,
98
- &.is-expandable:hover {
99
- td {
100
- color: getColor('alternate');
101
- cursor: pointer;
102
- }
103
- }
105
+ &.is-expandable + .is-expansion {
106
+ display: none;
107
+ }
104
108
 
105
- &.is-expandable + .is-expansion {
106
- display: none;
107
- }
109
+ &.is-expanded + .is-expansion {
110
+ display: table-row;
111
+ }
108
112
 
109
- &.is-expanded + .is-expansion {
110
- display: table-row;
111
- }
113
+ &.is-expanded {
114
+ > td {
115
+ border-bottom: 0;
116
+ }
112
117
 
113
- &.is-expanded {
114
- > td {
115
- border-bottom: 0;
116
- }
118
+ .toggle {
119
+ transform: rotate(180deg);
120
+ color: inherit;
121
+ }
117
122
 
118
- .toggle {
119
- transform: rotate(180deg);
120
- color: inherit;
121
- }
123
+ + tr > td {
124
+ border-top: 0;
125
+ }
126
+ }
127
+ }
122
128
 
123
- + tr > td {
124
- border-top: 0;
125
- }
126
- }
129
+ thead {
130
+ td,
131
+ th {
132
+ border-width: 0 0 1px;
133
+ color: getColor('font');
127
134
  }
135
+ }
128
136
 
129
- thead {
130
- td,
131
- th {
132
- border-width: 0 0 1px;
133
- color: getColor('font');
134
- }
137
+ tfoot {
138
+ td,
139
+ th {
140
+ border-width: 2px 0 0;
141
+ color: getColor('font');
135
142
  }
143
+ }
136
144
 
137
- tfoot {
145
+ tbody {
146
+ tr {
147
+ &:last-child {
138
148
  td,
139
149
  th {
140
- border-width: 2px 0 0;
141
- color: getColor('font');
150
+ border-bottom-width: 0;
142
151
  }
152
+ }
143
153
  }
154
+ }
144
155
 
145
- tbody {
146
- tr {
147
- &:last-child {
148
- td,
149
- th {
150
- border-bottom-width: 0;
151
- }
152
- }
153
- }
154
- }
155
-
156
- &:not(.is-bordered).is-comparative {
157
- th {
158
- border-right: 1px solid getColor('grey-lighter');
159
- }
156
+ &.has-border-all {
157
+ border: 1px solid getColor('neutral-fade');
160
158
 
161
- td {
162
- &:not(:last-child) {
163
- border-right: 1px solid getColor('grey-light');
164
- }
165
- }
159
+ th {
160
+ border-right: 1px solid getColor('neutral-fade');
166
161
  }
167
162
 
168
- &.is-compact {
169
- td,
170
- th {
171
- padding: math.div(20px, 3) math.div(20px, 3);
172
- }
163
+ td {
164
+ &:not(:last-child) {
165
+ border-right: 1px solid getColor('neutral-fade');
166
+ }
173
167
  }
168
+ }
174
169
 
175
- &.is-large {
176
- thead {
177
- height: 50px;
178
-
179
- th {
180
- color: getVariantColor('alternate',2);
181
- font-weight: 600;
182
- text-transform: uppercase;
183
- }
184
- }
185
-
186
- tbody {
187
- border-top: 1px solid #d8d8d8;
188
-
189
- tr {
190
- td {
191
- height: 40px;
192
- }
193
-
194
- &:not(.is-body-header) td {
195
- height: 96px;
196
- }
197
- }
198
- }
170
+ &.has-border-inner {
171
+ th {
172
+ &:not(:last-child) {
173
+ border-right: 1px solid getColor('neutral-fade');
174
+ }
199
175
  }
200
176
 
201
- &.is-bordered {
202
- td,
203
- th {
204
- border-width: 1px;
205
- }
206
-
207
- tr {
208
- &:last-child {
209
- td,
210
- th {
211
- border-bottom-width: 1px;
212
- }
213
- }
214
- }
177
+ td {
178
+ &:not(:last-child) {
179
+ border-right: 1px solid getColor('neutral-fade');
180
+ }
215
181
  }
182
+ }
216
183
 
217
- &.is-fullwidth {
218
- width: 100%;
184
+ &.is-compact {
185
+ td,
186
+ th {
187
+ padding: math.div(20px, 3) math.div(20px, 3);
219
188
  }
189
+ }
220
190
 
221
- &.is-hoverable {
222
- tbody {
223
- tr:not(.is-selected) {
224
- &:hover {
225
- background-color: getColor('grey-lighter');
226
- }
227
- }
228
- }
191
+ &.is-fullwidth {
192
+ width: 100%;
193
+ }
229
194
 
230
- &.is-striped {
231
- tbody {
232
- tr:not(.is-selected) {
233
- &:hover {
234
- background-color: getColor('grey-light');
235
- }
236
- }
237
- }
195
+ &.is-striped {
196
+ tbody {
197
+ tr:not(.is-selected) {
198
+ &:nth-child(even) {
199
+ background-color: getColor('neutral-fade');
238
200
  }
201
+ }
239
202
  }
203
+ }
240
204
 
241
- &.is-narrow {
242
- td,
243
- th {
244
- padding: 0.25em 0.5em;
245
- }
246
- }
205
+ .subtable {
206
+ background-color: getColor('neutral-fade');
207
+ border-radius: var(--radius);
208
+ padding: $box-padding * 2;
247
209
 
248
- &.is-striped {
249
- tbody {
250
- tr:not(.is-selected) {
251
- &:nth-child(even) {
252
- background-color: getColor('grey-lighter');
253
- }
254
- }
255
- }
210
+ @include mobile() {
211
+ padding: 15px;
256
212
  }
257
213
 
258
- .subtable {
259
- background-color: getColor('grey-lighter');
260
- border-radius: $radius;
261
- padding: $box-padding * 2;
214
+ .table {
215
+ background: transparent;
262
216
 
263
- @include mobile() {
264
- padding: 15px;
217
+ tr:not(:first-child) {
218
+ td {
219
+ border-top: 1px solid getColor('neutral');
265
220
  }
221
+ }
266
222
 
267
- .table {
268
- background: transparent;
269
-
270
- tr:not(:first-child) {
271
- td {
272
- border-top: 1px solid getColor('grey-dark');
273
- }
274
- }
223
+ td {
224
+ border: 0;
275
225
 
276
- td {
277
- border: 0;
278
-
279
- &:first-child {
280
- padding-left: 0;
281
- }
226
+ &:first-child {
227
+ padding-left: 0;
228
+ }
282
229
 
283
- &:last-child {
284
- padding-right: 0;
285
- }
286
- }
230
+ &:last-child {
231
+ padding-right: 0;
287
232
  }
233
+ }
288
234
  }
235
+ }
289
236
  }
290
237
 
291
238
  .table-container {
292
- @include block;
293
- @include overflow-touch;
239
+ @include block;
240
+ @include overflow-touch;
294
241
 
295
- overflow: auto;
296
- overflow-y: hidden;
297
- max-width: 100%;
242
+ overflow: auto;
243
+ overflow-y: hidden;
244
+ max-width: 100%;
298
245
  }