@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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 (87) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  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 +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,283 +0,0 @@
1
- @use 'sass:math';
2
-
3
- $timeline-marker-icon-size: 2.85em !default;
4
- $timeline-marker-size: 0.8em !default;
5
- $timeline-marker-border-size: 0.1em !default;
6
- $timeline-line-width: 0.1em !default;
7
- $timeline-line-style: solid !default;
8
- $timeline-content-padding: 1em 0 0 16px !default;
9
- $timeline-rtl-content-padding: 1em 2em 0 0 !default;
10
- $timeline-icon-size: $size-small !default;
11
- $timeline-header-width: 4em !default;
12
- $timeline-item-padding-bottom: 8px !default;
13
- $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
14
-
15
- .timeline {
16
- display: flex;
17
- flex-direction: column;
18
-
19
-
20
- .timeline-header {
21
- width: $timeline-header-width;
22
- min-width: $timeline-header-width;
23
- max-width: $timeline-header-width * 2;
24
- word-wrap: normal;
25
- text-align: center;
26
- display: flex;
27
- justify-content: center;
28
- margin-left: 0;
29
- }
30
-
31
- .timeline-item,
32
- .undone {
33
- display: flex;
34
- display: -ms-flexbox;
35
- display: -webkit-flex;
36
- position: relative;
37
- margin-left: 0;
38
- padding-bottom: $spacing-2;
39
-
40
- .icon {
41
- background-color: getColor('font');
42
- }
43
-
44
- &::before {
45
- content: '';
46
- background-color: getColor('grey-disabled');
47
- display: block;
48
- width: $timeline-line-width;
49
- position: absolute;
50
- top: 43.89px;
51
- left: 3rem;
52
- bottom: 8px;
53
- height: auto;
54
- }
55
-
56
- &.active{
57
- .timeline-marker.is-icon {
58
- background-color: getColor('alternate');
59
-
60
- .icon {
61
- color: getColor('background') !important;
62
- }
63
- }
64
-
65
- .timeline-content {
66
- p.main-content {
67
- font-weight: 800;
68
- }
69
- }
70
-
71
- &::before {
72
- content: '';
73
- background-color: getColor('alternate');
74
- display: block;
75
- width: $timeline-line-width;
76
- position: absolute;
77
- top: 43.89px;
78
- left: 3rem;
79
- bottom: 8px;
80
- height: auto;
81
- }
82
- }
83
-
84
- &.done {
85
- .timeline-marker.is-icon {
86
- background-color: getColor('font');
87
-
88
- .icon {
89
- color: getColor('background') !important;
90
- }
91
- }
92
-
93
- &::before {
94
- content: '';
95
- background-color: getColor('font');
96
- display: block;
97
- width: $timeline-line-width;
98
- position: absolute;
99
- top: 43.89px;
100
- left: 3rem;
101
- bottom: 8px;
102
- height: auto;
103
- }
104
- }
105
-
106
- .timeline-marker {
107
- position: absolute;
108
- background: getColor('grey-light');
109
- border-radius: 100%;
110
- content: '';
111
- display: block;
112
- height: $timeline-marker-size;
113
- left: -($timeline-marker-size * 0.5 - $timeline-marker-border-size *
114
- 0.5);
115
- top: 0;
116
- width: $timeline-marker-size;
117
- margin-left: 30px;
118
-
119
- &.is-image {
120
- @each $dimension in $timeline-image-dimensions {
121
- &.is-#{$dimension}x#{$dimension} {
122
- height: $dimension * 1px;
123
- width: $dimension * 1px;
124
- left: $dimension * 0.5 * -1px;
125
- }
126
- }
127
-
128
- background: getColor('grey-light');
129
- border-radius: 100%;
130
- display: block;
131
- overflow: hidden;
132
- }
133
-
134
- &.is-icon {
135
- display: flex;
136
- align-items: center;
137
- justify-content: center;
138
- height: $timeline-marker-icon-size;
139
- width: $timeline-marker-icon-size;
140
- left: -($timeline-marker-icon-size * 0.5 -
141
- $timeline-marker-border-size * 0.5);
142
- line-height: size(0.75rem);
143
- padding: math.div($timeline-icon-size, 3);
144
- background: getColor('grey-lighter');
145
- border-radius: 100%;
146
-
147
- > i {
148
- color: getColor('font');
149
- font-size: $timeline-icon-size !important;
150
- }
151
- }
152
-
153
- &.is-outlined {
154
- .image {
155
- background: getColor('background');
156
- }
157
-
158
- &.is-icon {
159
- background: getColor('background');
160
-
161
- > i {
162
- color: getColor('grey-light');
163
- }
164
- }
165
- }
166
-
167
-
168
- }
169
-
170
- .timeline-content {
171
- margin-left: 3.7em;
172
- padding: $spacing-3 0 $spacing-4 $spacing-4;
173
-
174
- .heading {
175
- font-size: $text-12;
176
- color: getColor('grey');
177
- font-family: $family-sans-serif;
178
- text-transform: none;
179
- letter-spacing: 0;
180
- line-height: 15px;
181
- font-weight: 500;
182
- color: #707070;
183
- }
184
-
185
- p {
186
- margin-bottom: 4px;
187
- }
188
- }
189
-
190
- @each $name, $pair in $colors-brand-funcionnal {
191
- $color: getColor($name);
192
- $brandName: getColorBrandName($name);
193
-
194
- &.is-#{$brandName} {
195
- &::before {
196
- background-color: $color;
197
- }
198
- }
199
- }
200
- }
201
-
202
- &.is-centered {
203
- .timeline-header {
204
- display: flex;
205
- width: 100%;
206
- align-self: center;
207
- }
208
-
209
- .timeline-item {
210
- width: 50%;
211
- align-self: flex-end;
212
-
213
- &:nth-of-type(2n) {
214
- align-self: flex-start;
215
- margin-left: 0;
216
- margin-right: $timeline-header-width * 0.5;
217
-
218
- &::before {
219
- right: -$timeline-line-width;
220
- left: auto;
221
- }
222
-
223
- .timeline-marker {
224
- left: auto;
225
- right: -(
226
- $timeline-marker-size * 0.5 -
227
- $timeline-marker-border-size * 0.5
228
- ) - $timeline-line-width;
229
-
230
- &.is-image {
231
- @each $dimension in $timeline-image-dimensions {
232
- &.is-#{$dimension}x#{$dimension} {
233
- left: auto;
234
- right: $dimension * 0.5 * -1px;
235
- }
236
- }
237
- }
238
-
239
- &.is-icon {
240
- left: auto;
241
- right: -(
242
- $timeline-marker-icon-size * 0.5 -
243
- $timeline-marker-border-size * 0.5
244
- ) - $timeline-line-width;
245
- }
246
- }
247
-
248
- .timeline-content {
249
- padding: $timeline-rtl-content-padding;
250
- text-align: right;
251
- display: flex;
252
- flex-direction: column;
253
- align-items: flex-end;
254
- flex-basis: 100%;
255
- }
256
- }
257
-
258
- &:nth-of-type(2n + 1) {
259
- &::before {
260
- content: '';
261
- background-color: getColor('grey-disabled');
262
- display: block;
263
- width: $timeline-line-width;
264
- height: 100%;
265
- position: absolute;
266
- top: 0;
267
- }
268
- }
269
-
270
- @each $name, $pair in $colors-brand-funcionnal {
271
- $color: getColor($name);
272
- $color-invert: invertColor($name);
273
- $brandName: getColorBrandName($name);
274
-
275
- &.is-#{$brandName} {
276
- &::before {
277
- background-color: $color;
278
- }
279
- }
280
- }
281
- }
282
- }
283
- }
@@ -1,100 +0,0 @@
1
- $toolbar-height: 60px !default;
2
-
3
- .toolbar {
4
- height: $toolbar-height;
5
- border-bottom: 1px solid getColor('grey-light');
6
- display: flex;
7
- align-items: center;
8
-
9
- > .container {
10
- display: flex;
11
- align-items: center;
12
- height: 100%;
13
- width: 100%;
14
- }
15
-
16
- > .container > .toolbar-row,
17
- > .toolbar-row {
18
- display: flex;
19
- flex-direction: row;
20
- align-items: center;
21
- height: 100%;
22
- border-right: 1px solid getColor('grey-light');
23
-
24
- &:empty {
25
- border-right: none;
26
- }
27
- }
28
-
29
- > .container > .toolbar-group,
30
- > .container > .toolbar-row > .toolbar-group,
31
- > .toolbar-group,
32
- > .toolbar-row > .toolbar-group {
33
- margin-top: 0;
34
- margin-bottom: 0;
35
- padding: 0 10px;
36
- height: 100%;
37
- display: flex;
38
- align-items: center;
39
-
40
- &:not(:first-of-type) {
41
- border-left: 1px solid getColor('grey-light');
42
- }
43
-
44
- > .toolbar-item {
45
- padding-left: 10px;
46
- padding-right: 10px;
47
- white-space: nowrap;
48
-
49
- &.is-clipped-to-bottom {
50
- align-self: flex-end;
51
- }
52
- }
53
- }
54
-
55
- @include mobile {
56
- flex-direction: column;
57
- align-items: stretch;
58
- height: auto;
59
- padding: 0;
60
-
61
- > .container {
62
- flex-direction: column;
63
- align-items: stretch;
64
- height: auto;
65
- padding: 0;
66
- }
67
-
68
- > .container > .toolbar-group,
69
- > .container > .toolbar-row > .toolbar-group,
70
- > .toolbar-group,
71
- > .toolbar-row > .toolbar-group {
72
- height: $toolbar-height;
73
-
74
- &:not(:last-of-type) {
75
- border-right: 0;
76
- border-bottom: 1px solid getColor('grey-light');
77
- }
78
- }
79
-
80
- > .container > .toolbar-row,
81
- > .toolbar-row {
82
- height: $toolbar-height;
83
- border-right: 0;
84
-
85
- > .toolbar-group {
86
- border-bottom: 1px solid getColor('grey-light');
87
- flex-grow: 1;
88
-
89
- &:not(:last-of-type) {
90
- border-right: 1px solid getColor('grey-light');
91
- }
92
- }
93
- }
94
- }
95
-
96
- .is-elastic,
97
- .toolbar-space {
98
- flex-grow: 1;
99
- }
100
- }