@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,212 @@
1
+ @use "sass:math";
2
+
3
+ @import "../base/color";
4
+
5
+ $progressbar-height: 10px;
6
+ $progressbar-small: 5px;
7
+
8
+ .progress {
9
+ @include block;
10
+
11
+ border: none;
12
+ border-radius: $radius-rounded;
13
+ display: block;
14
+ height: $progressbar-height;
15
+ overflow: hidden;
16
+ padding: 0;
17
+ width: 100%;
18
+ -moz-appearance: none;
19
+ -webkit-appearance: none;
20
+
21
+ &::-webkit-progress-bar {
22
+ background-color: getColor('grey-light');
23
+ border-radius: $progressbar-height;
24
+ }
25
+
26
+ &::-webkit-progress-value {
27
+ background-color: getColor('font');
28
+ border-radius: $progressbar-height;
29
+ }
30
+
31
+ &::-moz-progress-bar {
32
+ background-color: getColor('font');
33
+ border-radius: $progressbar-height;
34
+ }
35
+
36
+ &::-ms-fill {
37
+ background-color: getColor('font');
38
+ border: none;
39
+ border-radius: $progressbar-height;
40
+ }
41
+
42
+ &:not(:last-child) {
43
+ margin-bottom: 7.5px;
44
+ }
45
+
46
+ // Colors
47
+ @each $name in $colors-brand-funcionnal {
48
+ $brandName: getColorBrandName($name);
49
+ $color: getColor($name);
50
+
51
+ &.is-#{$brandName} {
52
+ &::-webkit-progress-value {
53
+ background-color: $color;
54
+ }
55
+
56
+ &::-moz-progress-bar {
57
+ background-color: $color;
58
+ }
59
+
60
+ &::-ms-fill {
61
+ background-color: $color;
62
+ }
63
+ }
64
+ }
65
+
66
+ // Sizes
67
+ &.is-small {
68
+ height: $progressbar-small;
69
+ }
70
+ }
71
+
72
+ .progress.is-stacked {
73
+ display: flex;
74
+ background-color: getColor('grey-light');
75
+ border-radius: $progressbar-height;
76
+
77
+ .progress-bar {
78
+ height: $progressbar-height;
79
+ background-color: getVariantColor('alternate',2);
80
+
81
+ &:first-child {
82
+ border-radius: $progressbar-height 0 0 $progressbar-height;
83
+ }
84
+
85
+ &:last-child {
86
+ border-radius: 0 $progressbar-height $progressbar-height 0;
87
+ }
88
+
89
+ @each $name in $colors-brand-funcionnal {
90
+ $color: getColor($name);
91
+ $color-invert: invertColor($name);
92
+ $brandName: getColorBrandName($name);
93
+
94
+ &.is-#{$brandName} {
95
+ background-color: $color;
96
+ }
97
+ }
98
+ }
99
+ }
100
+
101
+ // Progress Bar circle
102
+ $progress-circle-slices: (
103
+ secondary: getColor('alternate'),
104
+ tertiary: getColor('font'),
105
+ warning: getColor('warning'),
106
+ empty: getColor('grey-light')
107
+ );
108
+
109
+ .progress-circle {
110
+ --progress-circle-size: 140px;
111
+ --progress-circle-border-width: 8px;
112
+ --progress-circle-spacing: 0;
113
+ --progress-circle-spacing-color: 255, 255, 255;
114
+ --progress-circle-spacing-deg: calc(1deg * var(--progress-circle-spacing));
115
+
116
+ border-radius: 50%;
117
+ height: var(--progress-circle-size);
118
+ margin: 40px;
119
+ position: relative;
120
+ width: var(--progress-circle-size);
121
+ }
122
+
123
+ .progress-circle-content {
124
+ left: 50%;
125
+ line-height: 1.5;
126
+ position: absolute;
127
+ text-align: center;
128
+ top: 50%;
129
+ transform: translate(-50%, -50%);
130
+ width: 80%;
131
+ }
132
+
133
+ .progress-circle-title {
134
+ color: rgba(getColor('font'), 0.7);
135
+ font-size: 28px;
136
+ font-weight: $weight-semibold;
137
+ }
138
+
139
+ .progress-circle-sub {
140
+ color: getColor('font');
141
+ font-size: 15px;
142
+ font-weight: $weight-semibold;
143
+ letter-spacing: 0.05em;
144
+ }
145
+
146
+ .progress-circle-slice {
147
+ height: 100%;
148
+ position: absolute;
149
+ width: 100%;
150
+ }
151
+
152
+ .progress-circle-slice::before,
153
+ .progress-circle-slice::after {
154
+ border: var(--progress-circle-border-width) solid rgba(0,0,0,0);
155
+ border-radius: 50%;
156
+ content: '';
157
+ height: 100%;
158
+ left: 0;
159
+ position: absolute;
160
+ top: 0;
161
+ transform: rotate(45deg);
162
+ width: 100%;
163
+ }
164
+
165
+ .progress-circle-slice::before {
166
+ border-width: calc(var(--progress-circle-border-width) + 1px);
167
+ box-shadow: 0 0 1px 0 #{'rgba(var(--progress-circle-spacing-color), calc(100 * var(--progress-circle-spacing)))'};
168
+ }
169
+
170
+ $slides-concat: '';
171
+
172
+ @each $slice in $progress-circle-slices {
173
+ $name: nth($slice, 1);
174
+ $color: nth($slice, 2);
175
+ $i: index($progress-circle-slices, $slice);
176
+
177
+ @if $i > 1 {
178
+ .progress-circle-background-#{$name} {
179
+ --#{$name}-start: calc(#{$slides-concat});
180
+ --#{$name}-check: max(calc(var(--#{$name}-start) - .5), 0);
181
+
182
+ clip-path: inset(0 calc(50% * (var(--#{$name}-check) / var(--#{$name}-check))) 0 0);
183
+ }
184
+ }
185
+
186
+ @else {
187
+ .progress-circle-background-#{$name} {
188
+ --#{$name}-start: 0;
189
+ }
190
+ }
191
+
192
+ .progress-circle-background-#{$name}::before {
193
+ border-top-color: #{'rgba(var(--progress-circle-spacing-color), calc(100 * var(--progress-circle-spacing)))'};
194
+ transform: rotate(calc(360deg * var(--#{$name}-start) + 45deg));
195
+ }
196
+
197
+ .progress-circle-background-#{$name}::after {
198
+ border-top-color: rgba($color, 1);
199
+ border-right-color: rgba($color, calc(100 * (var(--#{$name}) - .25)));
200
+ border-bottom-color: rgba($color, calc(100 * (var(--#{$name}) - .5)));
201
+ border-left-color: rgba($color, calc(100 * (var(--#{$name}) - .75)));
202
+ transform: rotate(calc(360deg * var(--#{$name}-start) + 45deg + var(--progress-circle-spacing-deg)));
203
+ }
204
+
205
+ @if $i == 1 {
206
+ $slides-concat: var(--#{$name});
207
+ }
208
+
209
+ @else {
210
+ $slides-concat: $slides-concat + ' + ' + var(--#{$name});
211
+ }
212
+ }
@@ -0,0 +1,67 @@
1
+ @include checkbox-and-radio('radio');
2
+
3
+ .radios {
4
+ width: 100%;
5
+ column-gap: 16px;
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+
9
+ &.is-vertical {
10
+ row-gap: 16px;
11
+ }
12
+
13
+ @include mobile {
14
+ &:not(.is-mobile){
15
+ display: block;
16
+ }
17
+ }
18
+
19
+ &.is-centered,
20
+ &.has-text-centered,
21
+ .has-text-centered & {
22
+ justify-content: center;
23
+ }
24
+ }
25
+
26
+ .radio,
27
+ .radio-tile {
28
+ input:checked ~ label.radio-label {
29
+ &:after {
30
+ content: '';
31
+ width: 12px;
32
+ height: 12px;
33
+ }
34
+ }
35
+
36
+ label.radio-label {
37
+ &:before,
38
+ &:after {
39
+ border-radius: 50%;
40
+ }
41
+ }
42
+ }
43
+
44
+ .radio {
45
+ input:checked ~ label.radio-label {
46
+ &:after {
47
+ left: 3px;
48
+ }
49
+ }
50
+ }
51
+
52
+ .radio-tile {
53
+ input:checked ~ label.radio-label {
54
+ &:after {
55
+ top: 18px;
56
+ right: 18px;
57
+ }
58
+ }
59
+
60
+ input:checked:disabled ~ label.radio-label {
61
+ &:after {
62
+ background-color: getColor('grey');
63
+ top: 19px;
64
+ right: 19px;
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,315 @@
1
+ [data-blur-select] {
2
+ position: absolute;
3
+ z-index: zindex('large');
4
+ min-width: 100%;
5
+ min-height: 100%;
6
+ left:0;
7
+ top: 0;
8
+ }
9
+
10
+
11
+ @mixin arrow-style($isDisabled:false, $direction:"up") {
12
+ $color: getColor('font');
13
+ @if($isDisabled) { $color: getColor('grey') }
14
+
15
+ @include arrow($color,$direction);
16
+ right: 16px;
17
+ margin-left: 16px;
18
+ top: calc(50% - 7px);
19
+ }
20
+
21
+ .select {
22
+ border: 1px solid getColor('grey');
23
+ display: inline-block;
24
+ max-width: 100%;
25
+ position: relative;
26
+ font-family: $body-family;
27
+ border-radius: 4px;
28
+ background-color: getColor('background');
29
+ display: block;
30
+ font-size: 1em;
31
+ max-width: 100%;
32
+ outline: none;
33
+ cursor: pointer;
34
+ height: 56px;
35
+
36
+ select {
37
+ height: 100%;
38
+ border: 1px solid transparent;
39
+ border-radius: 3px;
40
+ max-width: 100%;
41
+ width: 100%;
42
+ font-size: 1em;
43
+ font-family: $body-family;
44
+ color: getColor('font');
45
+ cursor: pointer;
46
+ -webkit-appearance: none;
47
+ -moz-appearance: none;
48
+ appearance: none;
49
+ z-index: 10;
50
+ background-color: transparent;
51
+ opacity: 100;
52
+ outline: none;
53
+ padding-left: $spacing-4;
54
+ &::-ms-expand {
55
+ display: none !important;
56
+ }
57
+ &:focus, &:hover {
58
+ outline: 1px auto getColor('alternate');
59
+ }
60
+
61
+ }
62
+
63
+ label {
64
+ position: absolute;
65
+ top: 50%;
66
+ transform: translate(0, -50%);
67
+ left: 16px !important;
68
+ color: getColor('grey') !important
69
+ }
70
+
71
+ &.select-native {
72
+ .icon {
73
+ position: absolute;
74
+ }
75
+
76
+ &.has-icon {
77
+ select {
78
+ padding-left: 50px;
79
+ &:not(.no-label) {
80
+ padding-bottom: 5px;
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ .has-dynamic-placeholder {
87
+ label {
88
+ top: 18px;
89
+ color: getColor('grey') !important
90
+ }
91
+ }
92
+
93
+
94
+ &-value {
95
+ position: absolute ;
96
+ left: 16px;
97
+ top: 50%;
98
+ transform: translateY(-20%);
99
+
100
+ &.no-label {
101
+ transform: translateY(-50%);
102
+
103
+ }
104
+ }
105
+
106
+
107
+
108
+ &-disabled {
109
+ background-color: getColor('grey-disabled');
110
+ border: 1px solid getColor('grey-disabled');
111
+ cursor:default ;
112
+ label {
113
+ color: #565656 !important;
114
+ }
115
+ .icon {
116
+ color: #565656;
117
+ }
118
+ }
119
+
120
+
121
+
122
+ .icon {
123
+ height: 100%;
124
+ width: 50px;
125
+ }
126
+
127
+ &.has-icon {
128
+ label {
129
+ left: 50px !important;
130
+ }
131
+ .select-value {
132
+ left: 50px !important;
133
+ }
134
+ }
135
+
136
+
137
+ &:not(.is-loading) {
138
+ &:not(.select-disabled) {
139
+ &::after {
140
+ @include arrow-style(false,"down")
141
+ }
142
+ &:not(.select-native):hover, &:not(.select-native):focus {
143
+ outline: 1px auto getColor('alternate');
144
+ }
145
+ }
146
+ &.select-disabled {
147
+ &::after {
148
+ @include arrow-style(true,"down")
149
+ }
150
+ }
151
+
152
+ }
153
+
154
+ &.select-show-options:not(.is-loading) {
155
+ outline: 1px auto getColor('alternate');
156
+ &::after {
157
+ @include arrow-style()
158
+ }
159
+ &:hover {
160
+ &::after {
161
+ border-color: getColor('font');
162
+ }
163
+ }
164
+ }
165
+
166
+ // Colors
167
+ @each $name in $colors-brand {
168
+ $brandName: getColorBrandName($name);
169
+ $color: getColor($name);
170
+
171
+ &.is-#{$brandName} {
172
+ &:not(:hover) {
173
+ outline: 1px auto $color;
174
+ }
175
+ &:hover,
176
+ &.is-hovered {
177
+ outline: 1px auto getVariantColor($name, 1);
178
+ }
179
+ }
180
+ }
181
+
182
+ // Sizes
183
+ &.is-small {
184
+ @include control-small;
185
+ }
186
+
187
+ &.is-large {
188
+ @include control-large;
189
+ }
190
+
191
+
192
+ &.is-loading {
193
+ &::after {
194
+ @include spinner;
195
+ margin-top: 0;
196
+ position: absolute;
197
+ right: 0.625em;
198
+ top: 0.625em;
199
+ transform: none;
200
+ }
201
+ &.is-small::after {
202
+ font-size: $size-small;
203
+ }
204
+ &.is-large::after {
205
+ font-size: $size-large;
206
+ }
207
+ }
208
+ }
209
+
210
+ .select-options {
211
+ position: absolute;
212
+ margin-top: 8px;
213
+ display: flex;
214
+ flex-direction: column;
215
+ align-items: flex-start;
216
+ background: getColor('background');
217
+ box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
218
+ border-radius: 4px;
219
+ overflow: auto;
220
+ width: 100%;
221
+ max-height: 260px;
222
+ z-index: zindex('large') ;
223
+
224
+
225
+ &-option {
226
+ display: flex;
227
+ flex-direction: row;
228
+ align-items: center;
229
+ justify-content: space-between;
230
+ padding: 14px $spacing-4;
231
+ width: 100%;
232
+ .has-icon {
233
+ display: flex;
234
+ align-items: center;
235
+ .icon {
236
+ margin-right: 16px;
237
+ width: 20px;
238
+ height: 20px;
239
+ }
240
+ }
241
+ &-activated {
242
+ color: getColor('alternate');
243
+ font-weight: $weight-bold;
244
+ &::after {
245
+ content: "";
246
+ mask-image: url('./assets/icons/all/check.svg');
247
+ background-color: getColor('alternate');
248
+ min-width: 15px;
249
+ min-height: 15px;
250
+ display:inline-block;
251
+ margin-left: 16px;
252
+ mask-size: 20px;
253
+ }
254
+ }
255
+ &-disabled {
256
+ background-color: getColor('grey-disabled');
257
+ color: #565656
258
+ }
259
+ }
260
+
261
+ .option-container, &-option {
262
+ outline:none;
263
+ &:focus {
264
+ background-color: #E4EAED;
265
+ }
266
+
267
+ &:not([data-is-disabled='true']){
268
+ cursor: pointer;
269
+ }
270
+ }
271
+ }
272
+
273
+ [data-is-open-options="false"] {
274
+ display: none;
275
+ }
276
+
277
+ [data-is-open-options="true"] {
278
+ display:block
279
+ }
280
+
281
+ //AutoComplete
282
+ .is-autocomplete {
283
+ .autocomplete-menu {
284
+ display: none;
285
+ }
286
+
287
+ &.is-active {
288
+ .autocomplete-menu {
289
+ display: block;
290
+ border: 1px solid rgba(0,38,60,.4);
291
+ padding: 5px 10px;
292
+ border-radius: 4px;
293
+ max-height: 220px;
294
+ overflow-y: auto;
295
+ background-color: getColor('background');
296
+ z-index: 10000;
297
+ }
298
+
299
+ .autocomplete-item {
300
+ cursor: pointer;
301
+ padding: 3.75px calc(15px - 10px);
302
+
303
+ &.is-active, &[data-autocomplete-item-hover] {
304
+ background-color: rgba(16,157,185,.08);
305
+ border-top: 1px solid getColor('alternate');
306
+ border-bottom: 1px solid getColor('alternate');
307
+ margin-left: -10px;
308
+ margin-right: -10px;
309
+ padding: 2.75px 15px;
310
+ }
311
+ }
312
+ }
313
+ }
314
+
315
+