@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
@@ -1,47 +1,54 @@
1
- .rows {
2
- display: flex;
3
- flex-direction: column;
4
- margin: -$row-gap-tablet-desktop;
5
- flex: 1 1 auto;
6
- justify-self: stretch;
7
- height: calc(100% + #{$row-gap-tablet-desktop * 2});
8
-
9
- @include mobile {
10
- margin: -$row-gap-mobile;
11
- height: calc(100% + #{$row-gap-mobile * 2});
12
- }
13
-
14
- &.is-aligned-end {
15
- justify-content: flex-end;
16
- }
1
+ $gap: 4px,
2
+ 8px,
3
+ 12px,
4
+ 16px,
5
+ 24px,
6
+ 32px,
7
+ 40px,
8
+ 48px,
9
+ 54px,
10
+ 62px;
17
11
 
18
- &.is-gapless {
19
- .row:not(:first-child) {
20
- padding-top: 0;
21
- }
22
12
 
23
- .row:not(:last-child) {
24
- padding-bottom: 0;
25
- }
13
+ .rows {
14
+ display: flex;
15
+ flex-direction: column;
16
+ flex: 1 1 auto;
17
+ justify-self: stretch;
18
+ height: 100%;
19
+ gap: 24px;
20
+
21
+ @include mobile {
22
+ gap: 16px;
23
+ }
24
+
25
+ @for $i from 1 through length($gap) {
26
+ $item: nth($gap, $i);
27
+ &.has-gap-#{$i} {
28
+ gap: $item;
26
29
  }
30
+ }
27
31
 
28
- .is-divider {
29
- margin-top: 0;
30
- margin-bottom: 0;
31
- }
32
+ &.is-aligned-end {
33
+ justify-content: flex-end;
34
+ }
35
+
36
+ &.is-gapless {
37
+ gap: 0;
38
+ }
32
39
 
33
- .row {
34
- display: block;
35
- flex-grow: 1;
36
- flex-shrink: 1;
37
- padding: $row-gap-tablet-desktop;
40
+ .is-divider {
41
+ margin-top: 0;
42
+ margin-bottom: 0;
43
+ }
38
44
 
39
- @include mobile {
40
- padding: $row-gap-mobile;
41
- }
45
+ .row {
46
+ display: block;
47
+ flex-grow: 1;
48
+ flex-shrink: 1;
42
49
 
43
- &.is-narrow {
44
- flex-grow: 0;
45
- }
50
+ &.is-narrow {
51
+ flex-grow: 0;
46
52
  }
53
+ }
47
54
  }
@@ -3,4 +3,3 @@
3
3
  @import "main";
4
4
  @import "section";
5
5
  @import "hero";
6
- @import "toolbar";
@@ -20,249 +20,123 @@ $overlap: 30px;
20
20
  $overlap-desktop: 30px;
21
21
 
22
22
  .hero {
23
- align-items: stretch;
24
- background-color: getColor('background');
25
- display: flex;
26
- flex-direction: column;
27
- justify-content: space-between;
23
+ align-items: stretch;
24
+ background-color: getColor('background');
25
+ display: flex;
26
+ flex-direction: column;
27
+ justify-content: space-between;
28
+ position: relative;
29
+
30
+ .hero-body {
31
+ flex-grow: 1;
32
+ flex-shrink: 0;
28
33
  position: relative;
34
+ display: flex;
35
+ flex-wrap: wrap;
36
+ align-items: center;
37
+ padding: 20px;
29
38
 
30
- .hero-body {
31
- flex-grow: 1;
32
- flex-shrink: 0;
33
- position: relative;
34
- display: flex;
35
- flex-wrap: wrap;
36
- align-items: center;
37
- padding: 20px;
38
-
39
- @include desktop {
40
- padding: 30px 20px;
41
- }
42
-
43
- .hero-back {
44
- position: relative;
45
- flex-basis: 100%;
46
- opacity: .7;
47
- margin-bottom: 20px;
48
- min-width: 100%;
49
- padding-left: 26px;
50
- transition: opacity 300ms linear;
51
-
52
- &::before {
53
- @include arrow(inherit);
54
-
55
- transform: rotate(90deg);
56
- top: 0;
57
- bottom: 0;
58
- left: 5px;
59
- width: 11px;
60
- height: 6px;
61
- font-size: 12px;
62
- margin: auto;
63
- }
39
+ @include desktop {
40
+ padding: 30px 20px;
41
+ }
64
42
 
65
- &:hover {
66
- opacity: 1;
67
- }
68
- }
43
+ > .container {
44
+ flex: 1;
45
+ flex-basis: 100%;
46
+ }
69
47
 
70
- > .container {
71
- flex: 1;
72
- flex-basis: 100%;
73
- }
48
+ .title {
49
+ font-size: 24px;
74
50
 
75
- .title {
76
- font-size: 24px;
51
+ @include desktop {
52
+ font-size: 36px;
53
+ }
54
+ }
55
+ }
77
56
 
78
- @include desktop {
79
- font-size: 36px;
80
- }
81
- }
57
+ &.is-overlapped {
58
+ .hero-body {
59
+ padding-bottom: 50px;
82
60
  }
83
61
 
84
- &.has-pattern-dark,
85
- &.is-instit {
86
- @include pattern-dark(105%, 50%, 35%);
62
+ + .section {
63
+ @include mobile {
64
+ margin-left: -$hero-padding-y;
65
+ margin-right: -$hero-padding-y;
87
66
 
88
- p,
89
- strong,
90
- .paragraph,
91
- .suptitle,
92
- .title,
93
- .subtitle,
94
- a:not(.button):not(.tag) {
95
- color: getColor('background');
67
+ .box {
68
+ box-shadow: none;
69
+ //@todo need confirmation
70
+ border-radius: 24px 24px 0 0;
71
+ overflow: hidden;
96
72
  }
73
+ }
97
74
 
98
- .subtitle {
99
- strong,
100
- a:not(.button) {
101
- color: getColor('background');
102
- }
103
- }
104
- }
75
+ > .container {
76
+ margin-top: -$hero-padding-y - $overlap;
105
77
 
106
- &.is-overlapped {
107
- .hero-body {
108
- padding-bottom: 50px;
78
+ @include desktop {
79
+ margin-top: -$hero-padding-desktop-y - $overlap-desktop;
109
80
  }
81
+ }
110
82
 
111
- + .section {
112
- @include mobile {
113
- margin-left: -$hero-padding-y;
114
- margin-right: -$hero-padding-y;
115
-
116
- .box {
117
- box-shadow: none;
118
- border-radius: 24px 24px 0 0;
119
-
120
- .box-content:only-child {
121
- border-radius: 24px 24px 0 0;
122
- }
123
- }
124
- }
125
-
126
- > .container {
127
- margin-top: -$hero-padding-y - $overlap;
128
-
129
- @include desktop {
130
- margin-top: -$hero-padding-desktop-y - $overlap-desktop;
131
- }
132
- }
133
-
134
- &.is-small {
135
- > .container {
136
- margin-top: -$hero-padding-small-y - $overlap;
137
-
138
- @include desktop {
139
- margin-top: -$hero-padding-desktop-small-y - $overlap-desktop;
140
- }
141
- }
142
- }
143
-
144
- &.is-medium {
145
- > .container {
146
- margin-top: -$hero-padding-medium-y - $overlap;
147
-
148
- @include desktop {
149
- margin-top: -$hero-padding-desktop-medium-y - $overlap-desktop;
150
- }
151
- }
152
- }
153
-
154
- &.is-large {
155
- > .container {
156
- margin-top: -$hero-padding-large-y - $overlap;
83
+ &.is-small {
84
+ > .container {
85
+ margin-top: -$hero-padding-small-y - $overlap;
157
86
 
158
- @include desktop {
159
- margin-top: -$hero-padding-desktop-large-y - $overlap-desktop;
160
- }
161
- }
162
- }
87
+ @include desktop {
88
+ margin-top: -$hero-padding-desktop-small-y - $overlap-desktop;
89
+ }
163
90
  }
164
- }
165
-
166
- &.has-background {
167
- background-repeat: no-repeat;
168
- background-size: cover;
169
- }
91
+ }
170
92
 
171
- &.has-pattern-dark,
172
- &.has-background {
173
- .hero-body {
174
- text-align: center;
175
- padding: 100px 20px;
176
-
177
- @include desktop {
178
- text-align: left;
179
- padding-top: 80px;
180
- padding-bottom: 80px;
181
- }
182
-
183
- .suptitle {
184
- display: none;
185
-
186
- @include desktop {
187
- display: block;
188
- margin-bottom: 30px;
189
- font-size: 19px;
190
- text-transform: uppercase;
191
- }
192
- }
193
-
194
- .title {
195
- font-size: 32px;
196
- margin-bottom: 25px;
197
-
198
- @include desktop {
199
- font-size: 52px;
200
- }
201
- }
93
+ &.is-medium {
94
+ > .container {
95
+ margin-top: -$hero-padding-medium-y - $overlap;
202
96
 
203
- .button {
204
- width: auto;
205
- }
97
+ @include desktop {
98
+ margin-top: -$hero-padding-desktop-medium-y - $overlap-desktop;
99
+ }
206
100
  }
101
+ }
207
102
 
208
- &.is-overlapped {
209
- .hero-body {
210
- padding: 30px 20px 60px;
103
+ &.is-large {
104
+ > .container {
105
+ margin-top: -$hero-padding-large-y - $overlap;
211
106
 
212
- @include desktop {
213
- padding: 60px 20px;
214
- }
215
- }
107
+ @include desktop {
108
+ margin-top: -$hero-padding-desktop-large-y - $overlap-desktop;
109
+ }
216
110
  }
111
+ }
217
112
  }
113
+ }
218
114
 
219
- &.is-centered {
220
- text-align: center;
221
- }
222
-
223
- &.is-primary {
224
- color: getColor('background');
115
+ &.has-background {
116
+ background-repeat: no-repeat;
117
+ background-size: cover;
118
+ }
225
119
 
226
- p,
227
- strong,
228
- .paragraph,
229
- .suptitle,
230
- .title,
231
- .subtitle,
232
- a:not(.button):not(.tag) {
233
- color: getColor('background');
234
- }
235
-
236
- .subtitle {
237
- strong,
238
- a:not(.button) {
239
- color: getColor('background');
240
- }
241
- }
120
+ &.has-background {
121
+ .hero-body {
122
+ text-align: center;
123
+ padding: 100px 20px;
124
+
125
+ @include desktop {
126
+ text-align: left;
127
+ padding-top: 80px;
128
+ padding-bottom: 80px;
129
+ }
242
130
  }
243
131
 
244
- &.is-info {
245
- background: getVariantColor('alternate',2);
246
-
247
- p,
248
- strong,
249
- .paragraph,
250
- .suptitle,
251
- .title,
252
- .subtitle,
253
- a:not(.button):not(.tag) {
254
- color: getColor('background');
255
- }
132
+ &.is-overlapped {
133
+ .hero-body {
134
+ padding: 30px 20px 60px;
256
135
 
257
- .subtitle {
258
- strong,
259
- a:not(.button) {
260
- color: getColor('background');
261
- }
136
+ @include desktop {
137
+ padding: 60px 20px;
262
138
  }
139
+ }
263
140
  }
264
-
265
- .subtitle {
266
- padding-left: 0.2em;
267
- }
141
+ }
268
142
  }
@@ -1,35 +1,20 @@
1
- $section-padding-y: $spacing-6;
2
- $section-padding-x: $spacing-5;
3
- $section-padding-desktop-y: $spacing-8;
4
- $section-padding-desktop-x: $spacing-5;
5
- $overlap-section: $spacing-4 !default;
6
- $overlap-section-desktop: $spacing-4 !default;
7
-
8
1
  .section {
9
- padding: $section-padding-y $section-padding-x;
2
+ padding: $spacing-6 $spacing-4;
10
3
 
11
4
  @include desktop {
12
- padding: $section-padding-desktop-y $section-padding-desktop-x;
5
+ padding: $spacing-8 $spacing-5;
13
6
  }
14
7
 
15
8
  &.has-overlap > .container {
16
- margin-top: -$section-padding-y - $overlap-section;
9
+ margin-top: -$spacing-6 - $spacing-4;
17
10
 
18
11
  @include desktop {
19
- margin-top: -$section-padding-desktop-y - $overlap-section-desktop;
12
+ margin-top: -$spacing-8 - $spacing-4;
20
13
  }
21
14
  }
22
15
 
23
- &:nth-child(even) {
24
- background-color: getColor('grey-lighter');
25
- }
26
-
27
- &:nth-child(odd) {
28
- background-color: getColor('background');
29
- }
30
-
31
16
  &.is-info {
32
- background-color: getVariantColor('alternate',2);
17
+ background-color: getColor('info');
33
18
  color: getColor('background');
34
19
  }
35
20
 
@@ -53,13 +38,4 @@ $overlap-section-desktop: $spacing-4 !default;
53
38
  &.has-pattern-dark {
54
39
  @include pattern-dark(120%, 260px, -30%);
55
40
  }
56
-
57
- }
58
-
59
- .section:nth-child(2n).is-inverted {
60
- background-color: getColor('background');
61
- }
62
-
63
- .section:nth-child(2n-1).is-inverted {
64
- background-color: getColor('grey-lighter');
65
41
  }
@@ -0,0 +1,3 @@
1
+ @import "common_partials";
2
+ @import "links_partial";
3
+ @import "buttons_partial";
@@ -0,0 +1,32 @@
1
+ $noDisabled: ":not(:disabled):not([aria-disabled=true]):not(.is-loading)";
2
+
3
+ /*
4
+ Colors for buttons
5
+ @string slug name used in classname (You can use your brand name)
6
+ @color-background The name of the color in the color map for the background
7
+ @color-text The name of the color in the color map for the text
8
+ */
9
+ $button-colors: (
10
+ 'accent':['conversion', 'accent', 'background'],
11
+ 'primary': ['primary', 'main', 'background'],
12
+ 'secondary': ['secondary', 'main-fade', 'main'],
13
+ 'ghost': ['ghost', 'background', 'main'],
14
+ ) !default;
15
+
16
+ %buttons-states {
17
+ #{$hoverSelector} {
18
+ filter: brightness(0.8);
19
+ &.is-primary {
20
+ filter: brightness(1.2);
21
+ }
22
+ }
23
+ &:active:not(:disabled) {
24
+ filter: brightness(0.7);
25
+ }
26
+
27
+ &:focus-visible,
28
+ &:focus:focus-visible {
29
+ outline: 2px solid getColor('font') !important;
30
+ outline-offset: 2px;
31
+ }
32
+ }
@@ -0,0 +1,10 @@
1
+ @import "../base/_color.scss";
2
+
3
+ :root {
4
+ --radius: 8px;
5
+ --radius-medium: 8px;
6
+ --radius-small: 4px;
7
+ --radius-large: 16px;
8
+ --border: 1px solid #{getColor('neutral')};
9
+ --border-active: 2px solid #{getColor('main')};
10
+ }
@@ -0,0 +1,20 @@
1
+ $link-colors: 'info' !default;
2
+
3
+ %link-over {
4
+ &:hover {
5
+ filter: brightness(0.8);
6
+ }
7
+ }
8
+
9
+ %link-states {
10
+ @extend %link-over;
11
+ &:active {
12
+ filter: brightness(0.9);
13
+ }
14
+ &:focus-visible,
15
+ &:focus:focus-visible {
16
+ outline: 2px solid currentColor;
17
+ border-radius: $radius-small;
18
+ padding: 0 4px;
19
+ }
20
+ }
@@ -0,0 +1,13 @@
1
+ .sr-only {
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ margin: -1px;
6
+ padding: 0;
7
+ border: 0;
8
+ overflow: hidden;
9
+ clip: rect(0, 0, 0, 0);
10
+ white-space: nowrap;
11
+ top: 0;
12
+ left: 0;
13
+ }
@@ -3,7 +3,11 @@
3
3
  @import "initial-variables";
4
4
  @import "functions";
5
5
  @import "derived-variables";
6
+ @import '../theming/links_partial';
7
+ @import '../theming/buttons_partial';
6
8
  @import "mixins";
7
9
  @import "controls";
10
+ @import "background";
8
11
  @import "animations";
9
12
  @import "spacing";
13
+ @import "a11y";
@@ -0,0 +1,19 @@
1
+ .is-inverted {
2
+ color: getColor('background');
3
+ }
4
+
5
+ .is-inverted {
6
+ .box, .section, .container, .view, .hero {
7
+ &:not(.is-inverted) {
8
+ color: getColor('font');
9
+ }
10
+ }
11
+ }
12
+
13
+ .has-background {
14
+ background-repeat: no-repeat;
15
+
16
+ .box-content {
17
+ background-color: transparent;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
1
+ $suffix: '';
2
+
3
+ /*
4
+ All color variables are defined here
5
+ @string slug name used in classname (You can use your brand name)
6
+ @color A valid css color value
7
+ @invert The slug name of the best inverted color
8
+ @hover A valid css color value (a variant color for the hover case)
9
+ @visited A valid css color value (a variant color for the pressed case) -- optional
10
+ @background A valid css color value (a variant color for background) -- optional
11
+ */
12
+ $colors: (
13
+ 'background': [#fff, 'white', 'main'],
14
+ 'main':[ #3d5d7e, 'main', 'white'],
15
+ 'main-fade':[ #eff2f8, 'main-fade', 'white'],
16
+ 'accent':[ #da641b,'accent', 'white'],
17
+ 'font':[ #3d5d7e, 'font', 'white'],
18
+ 'success':[ #007B52, 'success', 'white'],
19
+ 'success-fade':[ #cae8ca,'success-fade', 'white'],
20
+ 'info':[ #1A688A, 'info', 'white'],
21
+ 'info-fade':[ #c8dbec, 'info-fade', 'white'],
22
+ 'warning':[ #FFBB33, 'warning', 'white'],
23
+ 'warning-fade':[ #ecdbc6, 'warning-fade', 'white'],
24
+ 'error':[ #D42D02,'error', 'white'],
25
+ 'error-fade':[ #eecccc, 'error-fade', 'white'],
26
+ 'disabled':[ #646464, 'disabled', 'white'],
27
+ 'disabled-fade':[ #D1D1D1,'disabled-fade', 'white'],
28
+ 'neutral':[ #707070, 'grey', 'white' ],
29
+ 'neutral-fade':[#F4F4F4, 'grey-fade', 'white' ],
30
+ ) !default;
31
+
32
+ $fade-colors: (
33
+ 'main': 'main-fade',
34
+ 'success': 'success-fade',
35
+ 'info':'info-fade',
36
+ 'warning':'warning-fade',
37
+ 'error':'error-fade',
38
+ 'disabled': 'disabled-fade',
39
+ 'neutral': 'neutral-fade',
40
+ ) !default;