@trilogy-ds/styles 0.0.1-beta-1

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 (104) hide show
  1. package/framework/src/_all.scss +8 -0
  2. package/framework/src/base/_all.scss +9 -0
  3. package/framework/src/base/_color.scss +58 -0
  4. package/framework/src/base/_elements.scss +34 -0
  5. package/framework/src/base/_fonts.scss +2 -0
  6. package/framework/src/base/_generic.scss +68 -0
  7. package/framework/src/base/_helpers.scss +880 -0
  8. package/framework/src/base/_loading.scss +102 -0
  9. package/framework/src/base/_reset.scss +138 -0
  10. package/framework/src/components/_accordion.scss +178 -0
  11. package/framework/src/components/_all.scss +30 -0
  12. package/framework/src/components/_autolayout2.scss +38 -0
  13. package/framework/src/components/_breadcrumb.scss +45 -0
  14. package/framework/src/components/_card.scss +298 -0
  15. package/framework/src/components/_countdown.scss +55 -0
  16. package/framework/src/components/_disclaimer.scss +84 -0
  17. package/framework/src/components/_divider.scss +18 -0
  18. package/framework/src/components/_dropdown.scss +128 -0
  19. package/framework/src/components/_fab.scss +60 -0
  20. package/framework/src/components/_level.scss +120 -0
  21. package/framework/src/components/_media.scss +64 -0
  22. package/framework/src/components/_menu.scss +213 -0
  23. package/framework/src/components/_modal.scss +201 -0
  24. package/framework/src/components/_otp.scss +92 -0
  25. package/framework/src/components/_pagination.scss +182 -0
  26. package/framework/src/components/_plus-symbol.scss +32 -0
  27. package/framework/src/components/_popover.scss +340 -0
  28. package/framework/src/components/_price.scss +209 -0
  29. package/framework/src/components/_product-tour.scss +131 -0
  30. package/framework/src/components/_progress-radial.scss +23 -0
  31. package/framework/src/components/_range.scss +84 -0
  32. package/framework/src/components/_scroll-view.scss +19 -0
  33. package/framework/src/components/_search-modal.scss +197 -0
  34. package/framework/src/components/_segmented-control.scss +60 -0
  35. package/framework/src/components/_slices.scss +316 -0
  36. package/framework/src/components/_slider.scss +92 -0
  37. package/framework/src/components/_stepper.scss +397 -0
  38. package/framework/src/components/_switch.scss +209 -0
  39. package/framework/src/components/_tabs.scss +212 -0
  40. package/framework/src/components/_timeline.scss +367 -0
  41. package/framework/src/elements/_alert.scss +91 -0
  42. package/framework/src/elements/_all.scss +35 -0
  43. package/framework/src/elements/_badge.scss +81 -0
  44. package/framework/src/elements/_box.scss +267 -0
  45. package/framework/src/elements/_button.scss +192 -0
  46. package/framework/src/elements/_checkbox.scss +39 -0
  47. package/framework/src/elements/_checkradio.scss +173 -0
  48. package/framework/src/elements/_chips.scss +100 -0
  49. package/framework/src/elements/_container.scss +108 -0
  50. package/framework/src/elements/_dot.scss +6 -0
  51. package/framework/src/elements/_entry.scss +109 -0
  52. package/framework/src/elements/_form.scss +593 -0
  53. package/framework/src/elements/_icon.scss +384 -0
  54. package/framework/src/elements/_image.scss +59 -0
  55. package/framework/src/elements/_input-gauge.scss +37 -0
  56. package/framework/src/elements/_input-icons.scss +41 -0
  57. package/framework/src/elements/_link.scss +79 -0
  58. package/framework/src/elements/_list.scss +61 -0
  59. package/framework/src/elements/_loader.scss +126 -0
  60. package/framework/src/elements/_notification.scss +151 -0
  61. package/framework/src/elements/_options.scss +146 -0
  62. package/framework/src/elements/_other.scss +44 -0
  63. package/framework/src/elements/_paragraph.scss +101 -0
  64. package/framework/src/elements/_progress.scss +212 -0
  65. package/framework/src/elements/_radio.scss +67 -0
  66. package/framework/src/elements/_select.scss +315 -0
  67. package/framework/src/elements/_sticker.scss +151 -0
  68. package/framework/src/elements/_switch.scss +108 -0
  69. package/framework/src/elements/_table.scss +298 -0
  70. package/framework/src/elements/_tag.scss +131 -0
  71. package/framework/src/elements/_textarea.scss +125 -0
  72. package/framework/src/elements/_timeline.scss +283 -0
  73. package/framework/src/elements/_title.scss +139 -0
  74. package/framework/src/elements/_toaster.scss +128 -0
  75. package/framework/src/grid/_all.scss +3 -0
  76. package/framework/src/grid/_columns.scss +952 -0
  77. package/framework/src/grid/_rows.scss +47 -0
  78. package/framework/src/grid/_tiles.scss +78 -0
  79. package/framework/src/layout/_all.scss +6 -0
  80. package/framework/src/layout/_hero.scss +268 -0
  81. package/framework/src/layout/_main.scss +36 -0
  82. package/framework/src/layout/_section.scss +65 -0
  83. package/framework/src/layout/_toolbar.scss +100 -0
  84. package/framework/src/trilogy-core.scss +16 -0
  85. package/framework/src/trilogy-mangled.scss +14 -0
  86. package/framework/src/trilogy-namespaced.scss +14 -0
  87. package/framework/src/trilogy.scss +8 -0
  88. package/framework/src/utilities/_all.scss +9 -0
  89. package/framework/src/utilities/_animations.scss +71 -0
  90. package/framework/src/utilities/_controls.scss +67 -0
  91. package/framework/src/utilities/_derived-variables.scss +104 -0
  92. package/framework/src/utilities/_functions.scss +94 -0
  93. package/framework/src/utilities/_initial-variables.scss +150 -0
  94. package/framework/src/utilities/_mixins.scss +745 -0
  95. package/framework/src/utilities/_post.scss +6 -0
  96. package/framework/src/utilities/_pre.scss +5 -0
  97. package/framework/src/utilities/_spacing.scss +10 -0
  98. package/framework/src/utilities/_tools.scss +3 -0
  99. package/package.json +22 -0
  100. package/themes/default/src/_all.scss +1 -0
  101. package/themes/default/src/assets.scss +11 -0
  102. package/themes/default/src/utilities/_all.scss +0 -0
  103. package/themes/default/src/utilities/_post.scss +0 -0
  104. package/themes/default/src/utilities/_pre.scss +3 -0
@@ -0,0 +1,298 @@
1
+ .card {
2
+ max-width: 100%;
3
+ display: flex;
4
+ border-radius: $radius;
5
+ flex-direction: column;
6
+ position: relative;
7
+ box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
8
+ background-color: getColor("background");
9
+
10
+ &:not(:last-child) {
11
+ margin-bottom: 15px;
12
+ }
13
+
14
+ .card-image {
15
+ display: block;
16
+ position: relative;
17
+ flex-shrink: 0;
18
+ overflow: hidden;
19
+ border-radius: 8px 8px 0px 0px;
20
+ }
21
+
22
+ .card-content {
23
+ border-bottom-left-radius: $radius;
24
+ border-bottom-right-radius: $radius;
25
+ padding: $spacing-5;
26
+ flex-grow: 1;
27
+
28
+ @include mobile {
29
+ padding: $spacing-4;
30
+ }
31
+ }
32
+
33
+ .card-footer {
34
+ border-top: 1px solid getColor('grey');
35
+ }
36
+
37
+ .mention {
38
+ position: absolute;
39
+ bottom: 5px;
40
+ font-size: 9px;
41
+ left: 0;
42
+ right: 0;
43
+ text-align: center;
44
+ }
45
+
46
+ .media:not(:last-child) {
47
+ margin-bottom: 7.5px;
48
+ }
49
+
50
+ &.is-strong {
51
+ .title {
52
+ font-family: $family-serif;
53
+ font-size: 24px !important;
54
+ }
55
+ }
56
+
57
+ &.is-flat {
58
+ box-shadow: none;
59
+
60
+ .card-image {
61
+ margin-bottom: -1px;
62
+ }
63
+
64
+ .card-content {
65
+ border: 1px solid getColor('grey');
66
+ padding-left: 20px;
67
+ padding-right: 20px;
68
+
69
+ @include desktop {
70
+ padding-left: $spacing-5;
71
+ padding-right: $spacing-5;
72
+ }
73
+ }
74
+ }
75
+
76
+ &.is-active {
77
+ border: 2px solid getColor('alternate');
78
+
79
+ .card-image {
80
+ border-radius: 6px 6px 0px 0px;
81
+ }
82
+
83
+ .card-content {
84
+ border-bottom-left-radius: ($radius - 2px);
85
+ border-bottom-right-radius: ($radius - 2px);
86
+ padding: 22px;
87
+ @include mobile {
88
+ padding: 14px;
89
+ }
90
+ }
91
+
92
+ &.is-horizontal {
93
+ .card-image {
94
+ border-radius: ($radius - 2px) 0px 0px ($radius - 2px);
95
+ }
96
+ }
97
+ }
98
+
99
+ &.is-horizontal {
100
+ display: flex;
101
+ flex-direction: column;
102
+ align-items: stretch;
103
+ text-align: left;
104
+
105
+ @include tablet {
106
+ flex-direction: row;
107
+ flex-wrap: wrap;
108
+
109
+ &.is-vcentered {
110
+ align-items: stretch;
111
+ }
112
+ }
113
+
114
+ .card-image {
115
+ max-width: 100%;
116
+ border-radius: 8px 0px 0px 8px;
117
+
118
+ @include tablet {
119
+ img {
120
+ object-fit: cover;
121
+ height: 100%;
122
+ }
123
+
124
+ width: 20%;
125
+ max-width: 20%;
126
+
127
+ + .card-content {
128
+ flex-basis: 80%;
129
+ }
130
+
131
+ &.is-medium,
132
+ &.is-1 {
133
+ width: 30%;
134
+ max-width: 30%;
135
+
136
+ + .card-content {
137
+ flex-basis: 70%;
138
+ }
139
+ }
140
+
141
+ &.is-large,
142
+ &.is-2 {
143
+ width: 40%;
144
+ max-width: 40%;
145
+
146
+ + .card-content {
147
+ flex-basis: 60%;
148
+ }
149
+ }
150
+
151
+ &.is-3 {
152
+ width: 50%;
153
+ max-width: 50%;
154
+
155
+ + .card-content {
156
+ flex-basis: 50%;
157
+ }
158
+ }
159
+
160
+ &.is-4 {
161
+ width: 60%;
162
+ max-width: 60%;
163
+
164
+ + .card-content {
165
+ flex-basis: 40%;
166
+ }
167
+ }
168
+ }
169
+
170
+ .image {
171
+ height: 100%;
172
+
173
+ @include desktop {
174
+ img {
175
+ height: auto;
176
+ min-height: 100%;
177
+ object-fit: cover;
178
+ position: absolute;
179
+ top: 50%;
180
+ transform: translateY(-50%);
181
+ }
182
+ &.is-polyfilled {
183
+ border-top-left-radius: $radius;
184
+ border-top-right-radius: 0;
185
+ border-bottom-left-radius: $radius;
186
+ position: absolute;
187
+ top: 0;
188
+ left: 0;
189
+ bottom: 0;
190
+ right: 0;
191
+ background-size: cover;
192
+ background-repeat: no-repeat;
193
+ background-position: 50% 50%;
194
+
195
+ img {
196
+ visibility: hidden;
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ .card-content {
204
+ border-top-right-radius: $radius;
205
+ border-bottom-right-radius: $radius;
206
+ border-bottom-left-radius: 0;
207
+ padding-left: 20px;
208
+ padding-right: 20px;
209
+
210
+ @include desktop {
211
+ padding-left: $spacing-5;
212
+ padding-right: $spacing-5;
213
+ }
214
+ }
215
+
216
+ .card-footer {
217
+ flex-basis: 100%;
218
+ padding: 15px 20px;
219
+ }
220
+ }
221
+
222
+ &.is-floating {
223
+ box-shadow: none;
224
+ background: transparent;
225
+
226
+ &.is-inverted .card-image .image img,
227
+ &.is-reversed .card-image .image img,
228
+ .card-image .image img {
229
+ border-radius: $radius;
230
+ }
231
+
232
+ .card-content {
233
+ padding-left: 0;
234
+ padding-right: 0;
235
+ }
236
+
237
+ &.is-horizontal {
238
+ .card-content {
239
+ padding-left: 0;
240
+ padding-right: 0;
241
+
242
+ @include tablet {
243
+ padding-left: 20px;
244
+ padding-right: 20px;
245
+ }
246
+
247
+ @include desktop {
248
+ padding-left: $spacing-5;
249
+ padding-right: $spacing-5;
250
+ }
251
+ }
252
+ }
253
+ }
254
+
255
+ &.is-inverted,
256
+ &.is-reversed {
257
+ .card-image {
258
+ order: 1;
259
+ border-radius: 0;
260
+
261
+ .image {
262
+ img {
263
+ border-bottom-left-radius: $radius;
264
+ border-bottom-right-radius: $radius;
265
+ }
266
+ }
267
+ }
268
+
269
+ .card-content {
270
+ border-top-left-radius: $radius;
271
+ border-top-right-radius: $radius;
272
+ border-bottom-left-radius: 0;
273
+ border-bottom-right-radius: 0;
274
+ }
275
+
276
+ &.is-horizontal {
277
+ .card-image {
278
+ order: 1;
279
+
280
+ .image {
281
+ img {
282
+ border-top-left-radius: 0;
283
+ border-top-right-radius: $radius;
284
+ border-bottom-left-radius: 0;
285
+ border-bottom-right-radius: $radius;
286
+ }
287
+ }
288
+ }
289
+
290
+ .card-content {
291
+ border-top-left-radius: $radius;
292
+ border-top-right-radius: 0;
293
+ border-bottom-left-radius: $radius;
294
+ border-bottom-right-radius: 0;
295
+ }
296
+ }
297
+ }
298
+ }
@@ -0,0 +1,55 @@
1
+ .countdown {
2
+ border: 1px solid currentcolor;
3
+ border-radius: 8px;
4
+ display: inline-flex;
5
+ padding: $spacing-2;
6
+ color: getColor('font');
7
+
8
+ .count {
9
+ font-family: $family-sans-serif;
10
+ font-size: $text-14;
11
+ font-weight: 400;
12
+ list-style-type: none;
13
+ text-align: center;
14
+ padding: 0 $spacing-2;
15
+ position: relative;
16
+
17
+ &:not(:last-child)::before {
18
+ content: ' ';
19
+ border-left: 1px solid currentcolor;
20
+ height: 100%;
21
+ position: absolute;
22
+ top: 0;
23
+ bottom: 0;
24
+ right: 0;
25
+ }
26
+
27
+ .value {
28
+ font-size: $text-24;
29
+ font-weight: 600;
30
+ }
31
+ }
32
+
33
+ &.is-small {
34
+ padding: $spacing-2 0;
35
+ border-radius: 4px;
36
+ .count {
37
+ font-size: $text-12;
38
+ padding: 0 $spacing-2;
39
+ font-weight: 500;
40
+
41
+ .value {
42
+ font-size: $text-16;
43
+ font-weight: 600;
44
+ }
45
+ }
46
+ }
47
+
48
+ &.is-inverted {
49
+ color: invertColor('font');
50
+ .count {
51
+ &:not(:last-child)::before {
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,84 @@
1
+ .disclaimer.accordions {
2
+ .accordion {
3
+ .disclaimer-header {
4
+ margin-left: 0;
5
+ justify-content: flex-start;
6
+
7
+ .toggle.button {
8
+ max-height: 20px;
9
+ max-width: 20px;
10
+ min-height: 20px;
11
+ min-width: 20px;
12
+ height: 20px;
13
+ width: 20px;
14
+ margin: 0 10px 0 0;
15
+ top: -1px;
16
+
17
+ &.is-bordered {
18
+ min-height: 32px;
19
+ min-width: 32px;
20
+ }
21
+ }
22
+
23
+ .title {
24
+ margin: 0 0 0 15px;
25
+ }
26
+ }
27
+
28
+ .disclaimer-content {
29
+ padding-left: 20px;
30
+ margin-left: $spacing-6;
31
+ position: relative;
32
+ color: getColor('font');
33
+
34
+ .disclaimer-marker {
35
+ margin-left: 30px;
36
+ }
37
+
38
+ .disclaimer-item {
39
+ margin-left: 20px;
40
+
41
+ .heading {
42
+ font-weight: $weight-normal;
43
+ }
44
+
45
+ a {
46
+ font-weight: $weight-semibold;
47
+ text-decoration: underline;
48
+ }
49
+
50
+ p {
51
+ &:not(.heading) {
52
+ margin-bottom: 0;
53
+ }
54
+ }
55
+ }
56
+
57
+ &::before {
58
+ content: "";
59
+ position: absolute;
60
+ top: 0;
61
+ left: 0;
62
+ background-color: getColor('font');
63
+ display: block;
64
+ width: 0.1em;
65
+ height: 100%;
66
+ }
67
+ }
68
+
69
+ &:hover:not(.is-disabled) {
70
+ border-color: getColor('alternate');
71
+ }
72
+
73
+ &.is-active {
74
+ color: getColor('alternate');
75
+ }
76
+ /* @todo : deprecated ? remove ? add doc ? */
77
+ .heading {
78
+ font-size: $text-13;
79
+ color: getColor('grey');
80
+ margin-bottom: 0.75em;
81
+ text-transform: inherit;
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,18 @@
1
+ .divider {
2
+ position: relative;
3
+ text-align: center;
4
+ background-color: getColor('grey');
5
+ height: 1px;
6
+ width: 100%;
7
+ margin: 16px 0;
8
+
9
+ p.divider-content {
10
+ position: absolute;
11
+ left: 50%;
12
+ top: 50%;
13
+ transform: translate(-50%, -50%);
14
+ white-space: nowrap;
15
+ padding: 0 $spacing-4;
16
+ background-color: invertColor('grey');
17
+ }
18
+ }
@@ -0,0 +1,128 @@
1
+ .dropdown {
2
+ display: inline-flex;
3
+ position: relative;
4
+ vertical-align: top;
5
+ width: 100%;
6
+ &.is-active,
7
+ &.is-hoverable:hover {
8
+ .dropdown-menu {
9
+ display: block;
10
+ }
11
+ }
12
+
13
+ select {
14
+ width: 95% !important;
15
+ border:none;
16
+ height: 97% !important;
17
+ margin-left: 16px;
18
+ -moz-appearance:none; /* Firefox */
19
+ -webkit-appearance:none; /* Safari and Chrome */
20
+ appearance:none;
21
+ }
22
+
23
+ &.is-active {
24
+ .dropdown-menu {
25
+ z-index: zindex('dropdown');
26
+
27
+ .dropdown-content {
28
+ border: 1px solid getColor('alternate');;
29
+ }
30
+ }
31
+ }
32
+
33
+ &.is-right {
34
+ .dropdown-menu {
35
+ left: auto;
36
+ right: 0;
37
+ }
38
+ }
39
+
40
+ &.is-up {
41
+ .dropdown-menu {
42
+ bottom: 100%;
43
+ padding-bottom: $spacing-1;
44
+ padding-top: initial;
45
+ top: auto;
46
+ }
47
+ }
48
+
49
+ .react-autosuggest__container {
50
+ width: 100%;
51
+
52
+ .dropdown-menu .dropdown-content {
53
+ overflow-y: auto;
54
+ max-height: 25vh;
55
+
56
+ .dropdown-item {
57
+ cursor: pointer;
58
+ }
59
+ }
60
+ }
61
+
62
+ .dropdown-trigger {
63
+ width: 100%;
64
+
65
+ .select {
66
+ cursor: pointer;
67
+
68
+ select {
69
+ pointer-events: none;
70
+ }
71
+ }
72
+ }
73
+
74
+ .dropdown-menu {
75
+ display: none;
76
+ left: 0;
77
+ min-width: 120px;
78
+ padding-top: $spacing-1;
79
+ position: absolute;
80
+ top: 100%;
81
+ width: 100%;
82
+ z-index: 20;
83
+
84
+ .dropdown-content {
85
+ border-radius: 8px;
86
+ box-shadow: 0 2px 3px rgba(#000, 0.1),
87
+ 0 0 0 1px rgba(#000, 0.1);
88
+ font-size: inherit;
89
+ padding: 5px 10px;
90
+
91
+ .dropdown-item {
92
+ display: block;
93
+ font-size: inherit;
94
+ line-height: 1.5;
95
+ padding: 3.75px 10px;
96
+ position: relative;
97
+ }
98
+ }
99
+ }
100
+
101
+ .control.has-dynamic-placeholder .select > select:active ~ label,
102
+ .control.has-dynamic-placeholder .select > select:focus ~ label {
103
+ display: flex;
104
+ }
105
+ }
106
+
107
+ a.dropdown-item {
108
+ padding-right: 30px;
109
+ white-space: nowrap;
110
+
111
+ &:hover {
112
+ background-color: getColor('background');
113
+ color: invertColor('background');;
114
+ }
115
+
116
+ &.is-active {
117
+ background-color: getColor('alternate');
118
+ color: invertColor('alternate');
119
+ }
120
+ }
121
+
122
+ .dropdown-divider {
123
+ background-color: rgba(getColor('grey'), 0.5);
124
+ border: none;
125
+ display: block;
126
+ height: 1px;
127
+ margin: 5px 0;
128
+ }
@@ -0,0 +1,60 @@
1
+ .fab {
2
+ background-color: getColor('alternate');
3
+ border: 1px getColor('alternate');
4
+ border-radius: 16px;
5
+ cursor: pointer;
6
+ height: 56px;
7
+ color: white;
8
+ padding: $spacing-4;
9
+ display: inline-flex;
10
+ align-items: center;
11
+ box-sizing: border-box;
12
+ transition: 0.4s;
13
+
14
+ box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
15
+
16
+ font-style: normal;
17
+ font-weight: 600;
18
+ font-size: 0;
19
+ line-height: 20px;
20
+
21
+ z-index: 9;
22
+
23
+ &:hover, &.is-extended {
24
+ background-color: getVariantColor('alternate',1);
25
+ border-color:getVariantColor('alternate',2);
26
+ transition: 0.5s;
27
+ font-size: initial;
28
+
29
+ .icon,
30
+ .icon .is-small,
31
+ .icon .is-medium,
32
+ .icon .is-large {
33
+ margin-right: 16px;
34
+ }
35
+ }
36
+
37
+ &:focus, &:focus-visible, &:focus-within {
38
+ background-color:getVariantColor('alternate', 4);
39
+ border-color: getVariantColor('alternate', 4);
40
+ outline: 1px auto getVariantColor('alternate', 4);
41
+ }
42
+
43
+ &:active {
44
+ background-color: getVariantColor('alternate', 5);
45
+ border-color: getVariantColor('alternate', 5);
46
+ }
47
+
48
+ .disabled {
49
+ background-color: getColor('bg-disabled');
50
+ color: getColor('grey-disabled');
51
+ }
52
+
53
+ .icon {
54
+ font-size: 24px !important;
55
+ margin-left: -6px;
56
+ margin-right: -6px;
57
+ color: white;
58
+ }
59
+
60
+ }