@trilogy-ds/styles 0.0.3-beta-v4 → 0.0.3-fix-timepicker

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 (113) hide show
  1. package/dist/default/assets/icons/all/arrow-high.svg +1 -0
  2. package/dist/default/assets/icons/all/calendar.svg +1 -0
  3. package/dist/default/assets/icons/all/clock.svg +1 -0
  4. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  5. package/dist/default/assets/icons/all/micro.svg +1 -0
  6. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  7. package/dist/default/trilogy-mangled.css +1 -1
  8. package/dist/default/trilogy-partials.css +1 -1
  9. package/dist/default/trilogy.css +1 -1
  10. package/framework/src/_all.scss +2 -2
  11. package/framework/src/base/_all.scss +0 -1
  12. package/framework/src/base/_color.scss +0 -21
  13. package/framework/src/base/_elements.scss +1 -1
  14. package/framework/src/base/_generic.scss +5 -0
  15. package/framework/src/base/_helpers.scss +21 -6
  16. package/framework/src/base/_loading.scss +2 -2
  17. package/framework/src/base/_reset.scss +6 -1
  18. package/framework/src/components/_accordion.scss +5 -12
  19. package/framework/src/components/_autocomplete.scss +43 -0
  20. package/framework/src/components/_autolayout.scss +145 -109
  21. package/framework/src/{elements → components}/_badge.scss +1 -1
  22. package/framework/src/{elements → components}/_box.scss +10 -12
  23. package/framework/src/components/_breadcrumb.scss +17 -31
  24. package/framework/src/{elements → components}/_button.scss +23 -3
  25. package/framework/src/components/_calendar.scss +129 -0
  26. package/framework/src/components/_card.scss +26 -9
  27. package/framework/src/components/_checkbox.scss +73 -0
  28. package/framework/src/{elements → components}/_container.scss +0 -7
  29. package/framework/src/components/_countdown.scss +1 -1
  30. package/framework/src/components/_date-picker.scss +58 -0
  31. package/framework/src/components/_divider.scss +44 -4
  32. package/framework/src/components/_dropdown.scss +195 -0
  33. package/framework/src/components/_flex-box.scss +1005 -0
  34. package/framework/src/{elements → components}/_icon.scss +9 -8
  35. package/framework/src/components/_index.scss +53 -0
  36. package/framework/src/{elements → components}/_link.scss +13 -3
  37. package/framework/src/components/_list.scss +66 -0
  38. package/framework/src/components/_modal.scss +32 -11
  39. package/framework/src/components/_otp.scss +2 -2
  40. package/framework/src/components/_pagination.scss +5 -2
  41. package/framework/src/components/_price.scss +28 -2
  42. package/framework/src/components/_prompt.scss +156 -0
  43. package/framework/src/{elements → components}/_radio.scss +12 -8
  44. package/framework/src/components/_segmented-control.scss +9 -5
  45. package/framework/src/components/_select.scss +131 -0
  46. package/framework/src/components/_stepper.scss +47 -10
  47. package/framework/src/{elements → components}/_sticker.scss +24 -4
  48. package/framework/src/{elements → components}/_switch.scss +13 -8
  49. package/framework/src/{elements → components}/_table.scss +9 -10
  50. package/framework/src/components/_tabs.scss +79 -28
  51. package/framework/src/{elements → components}/_tag.scss +1 -17
  52. package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
  53. package/framework/src/components/_textarea.scss +46 -0
  54. package/framework/src/components/_timeline.scss +1 -1
  55. package/framework/src/components/_timepicker-circular.scss +88 -0
  56. package/framework/src/components/_timepicker.scss +79 -0
  57. package/framework/src/{elements → components}/_title.scss +10 -0
  58. package/framework/src/{elements → components/alert}/_alert.scss +2 -2
  59. package/framework/src/components/alert/_index.scss +2 -0
  60. package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
  61. package/framework/src/{elements → components/input}/_entry.scss +48 -10
  62. package/framework/src/{elements → components/input}/_form.scss +18 -12
  63. package/framework/src/components/input/_index.scss +4 -0
  64. package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
  65. package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
  66. package/framework/src/components/progress/_index.scss +2 -0
  67. package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
  68. package/framework/src/{elements → components/progress}/_progress.scss +2 -4
  69. package/framework/src/elements/_index.scss +5 -0
  70. package/framework/src/elements/_other.scss +0 -4
  71. package/framework/src/grid/_columns.scss +33 -11
  72. package/framework/src/layout/_hero.scss +4 -0
  73. package/framework/src/layout/_section.scss +5 -0
  74. package/framework/src/theming/buttons_partial.scss +2 -2
  75. package/framework/src/theming/common_partials.scss +1 -1
  76. package/framework/src/trilogy-mangled.scss +3 -3
  77. package/framework/src/trilogy.scss +3 -2
  78. package/framework/src/utilities/_background.scss +3 -1
  79. package/framework/src/utilities/_derived-variables.scss +0 -92
  80. package/framework/src/utilities/_initial-variables.scss +3 -111
  81. package/framework/src/utilities/_pre.scss +3 -1
  82. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  83. package/framework/src/utilities/mixins/_delete.scss +86 -0
  84. package/framework/src/utilities/mixins/_index.scss +11 -0
  85. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  86. package/framework/src/utilities/mixins/_mixins.scss +372 -0
  87. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  88. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  89. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  90. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  91. package/framework/src/utilities/mixins/_state.scss +25 -0
  92. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  93. package/framework/src/utilities/mixins/_utils.scss +24 -0
  94. package/framework/src/utilities/variables/_animation.scss +2 -0
  95. package/framework/src/utilities/{_colors.scss → variables/_color.scss} +46 -0
  96. package/framework/src/utilities/variables/_font.scss +97 -0
  97. package/framework/src/utilities/variables/_index.scss +6 -0
  98. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  99. package/framework/src/utilities/variables/_shadow.scss +3 -0
  100. package/framework/src/utilities/variables/_zindex.scss +14 -0
  101. package/package.json +6 -1
  102. package/framework/src/components/_all.scss +0 -24
  103. package/framework/src/elements/_all.scss +0 -32
  104. package/framework/src/elements/_autocomplete.scss +0 -32
  105. package/framework/src/elements/_checkbox.scss +0 -42
  106. package/framework/src/elements/_list.scss +0 -62
  107. package/framework/src/elements/_select.scss +0 -96
  108. package/framework/src/elements/_textarea.scss +0 -133
  109. package/framework/src/utilities/_mixins.scss +0 -635
  110. /package/framework/src/{elements → components}/_chips.scss +0 -0
  111. /package/framework/src/{elements → components}/_image.scss +0 -0
  112. /package/framework/src/{elements → components}/_loader.scss +0 -0
  113. /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
@@ -0,0 +1,372 @@
1
+ @use "sass:string";
2
+ @import "../initial-variables";
3
+
4
+ @mixin center($width, $height: 0) {
5
+ position: absolute;
6
+
7
+ @if $height != 0 {
8
+ left: calc(50% - (#{$width} / 2));
9
+ top: calc(50% - (#{$height} / 2));
10
+ } @else {
11
+ left: calc(50% - (#{$width} / 2));
12
+ top: calc(50% - (#{$width} / 2));
13
+ }
14
+ }
15
+
16
+ @mixin label-states {
17
+ &:focus,
18
+ &:active,
19
+ &:hover {
20
+ @include hover();
21
+ }
22
+ }
23
+
24
+ // import sass bulma
25
+ @mixin input {
26
+ @include control;
27
+ height: 56px;
28
+ background-color: getColor('background');
29
+ border: var(--border);
30
+ color: getColor('font');
31
+
32
+ @include placeholder {
33
+ color: getColor('font-placeholder') !important;
34
+ opacity: 1 !important;
35
+ transition: all 0.2s ease-out;
36
+ }
37
+
38
+ @include hover();
39
+ }
40
+
41
+ @mixin checkbox-and-radio($type) {
42
+ //TILES WRAPPER
43
+ .#{$type}-tiles {
44
+ display: flex;
45
+ gap: 16px;
46
+ flex-wrap: wrap;
47
+ &.is-grid {
48
+ display: grid;
49
+ & > .#{$type}-tile {
50
+ width: 100%;
51
+ max-width: none;
52
+ }
53
+ }
54
+ @for $i from 1 through 12 {
55
+ &.is-grid-cols-#{$i} {
56
+ grid-template-columns: repeat(#{$i}, 1fr);
57
+ }
58
+ }
59
+ @include mobile {
60
+ @for $i from 1 through 12 {
61
+ &.is-grid-cols-mobile-#{$i} {
62
+ grid-template-columns: repeat(#{$i}, 1fr);
63
+ }
64
+ }
65
+ }
66
+ @include tablet {
67
+ @for $i from 1 through 12 {
68
+ &.is-grid-cols-tablet-#{$i} {
69
+ grid-template-columns: repeat(#{$i}, 1fr);
70
+ }
71
+ }
72
+ }
73
+ @include touch {
74
+ @for $i from 1 through 12 {
75
+ &.is-grid-cols-touch-#{$i} {
76
+ grid-template-columns: repeat(#{$i}, 1fr);
77
+ }
78
+ }
79
+ }
80
+ @include desktop {
81
+ @for $i from 1 through 12 {
82
+ &.is-grid-cols-desktop-#{$i} {
83
+ grid-template-columns: repeat(#{$i}, 1fr);
84
+ }
85
+ }
86
+ }
87
+ @include widescreen {
88
+ @for $i from 1 through 12 {
89
+ &.is-grid-cols-widescreen-#{$i} {
90
+ grid-template-columns: repeat(#{$i}, 1fr);
91
+ }
92
+ }
93
+ }
94
+ @include fullhd {
95
+ @for $i from 1 through 12 {
96
+ &.is-grid-cols-fullhd-#{$i} {
97
+ grid-template-columns: repeat(#{$i}, 1fr);
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ //BOTH
104
+ .#{$type},
105
+ .#{$type}-tile {
106
+ position: relative;
107
+
108
+ label.#{$type}-label,
109
+ .#{$type}-container {
110
+ cursor: pointer;
111
+ font-size: 14px;
112
+
113
+ &:before,
114
+ &:after {
115
+ content: '';
116
+ position: absolute;
117
+ width: 18px;
118
+ height: 18px;
119
+ }
120
+
121
+ &:before {
122
+ border: var(--border);
123
+ }
124
+ }
125
+
126
+ input {
127
+ opacity: 0;
128
+ position: absolute;
129
+ outline: none;
130
+
131
+ &:checked ~ label.#{$type}-label,
132
+ &:checked ~ .#{$type}-container {
133
+ border-color: getColor('main');
134
+
135
+ &:before {
136
+ border-color: getColor('main');
137
+ }
138
+
139
+ &:after {
140
+ background-color: getColor('main');
141
+ }
142
+ }
143
+
144
+ &:focus-visible ~ label.#{$type}-label:before,
145
+ &:focus-visible ~ .#{$type}-container:before {
146
+ outline: 1px solid;
147
+ }
148
+
149
+ &:disabled,
150
+ &:disabled:checked {
151
+ & ~ label.checkbox-label,
152
+ & ~ .checkbox-container {
153
+ &:after {
154
+ background-color: getColor('disabled-fade');
155
+ }
156
+ }
157
+ & ~ label.radio-label,
158
+ & ~ .radio-container {
159
+ &:after {
160
+ background-color: getColor('disabled');
161
+ }
162
+ }
163
+ }
164
+
165
+ &:disabled {
166
+ & ~ label.#{$type}-label,
167
+ & ~ .#{$type}-container {
168
+ &:after {
169
+ background-color: transparent;
170
+ }
171
+ }
172
+ }
173
+ }
174
+ .divider {
175
+ &:not(.is-marginless) {
176
+ margin: $spacing-3 0;
177
+ }
178
+ }
179
+ }
180
+
181
+ // SIMPLE WITH LABEL ONLY
182
+ .#{$type} {
183
+ display: flex;
184
+ align-items: center;
185
+ width: fit-content;
186
+
187
+ input:disabled,
188
+ input:disabled:checked {
189
+ & ~ label.#{$type}-label {
190
+ @include disabledRulesWithoutBG;
191
+ }
192
+ }
193
+
194
+ label.#{$type}-label {
195
+ padding-left: calc(18px + $spacing-3);
196
+
197
+ &:before,
198
+ &:after {
199
+ top: 50%;
200
+ transform: translateY(-50%);
201
+ left: 0;
202
+ }
203
+ }
204
+
205
+ &:hover &:not(disabled) {
206
+ label.#{$type}-label {
207
+ &:before {
208
+ @include hoverRules();
209
+ }
210
+ }
211
+ }
212
+
213
+ &:focus {
214
+ border: 2px;
215
+ border-color: getColor('main');
216
+ }
217
+ }
218
+
219
+ //TILE ONLY
220
+ .#{$type}-tile {
221
+ position: relative;
222
+ max-width: 160px;
223
+ display: inline-block;
224
+ text-align: center;
225
+
226
+ input:disabled,
227
+ input:disabled:checked {
228
+ & ~ label.#{$type}-label,
229
+ & ~ .#{$type}-container {
230
+ @include disabledRules;
231
+ }
232
+ }
233
+
234
+ &:has(input:focus-visible) label.#{$type}-label,
235
+ &:has(input:focus-visible) .#{$type}-container{
236
+ outline: 1px solid;
237
+ }
238
+
239
+ &:first-child {
240
+ margin-left: 0;
241
+ }
242
+
243
+ &:last-child {
244
+ margin-right: 0;
245
+ }
246
+
247
+ label.#{$type}-label,
248
+ .#{$type}-container {
249
+ display: block;
250
+ position: relative;
251
+ padding: 40px 16px 16px;
252
+ border: var(--border);
253
+ border-radius: var(--radius);
254
+ box-sizing: border-box;
255
+ background-color: getColor('background');
256
+ height: 100%;
257
+
258
+ &:before {
259
+ top: 16px;
260
+ left: 16px;
261
+ }
262
+
263
+ span.#{$type}-title,
264
+ label.#{$type}-title {
265
+ font-weight: bold;
266
+ width: 100%;
267
+ display: block;
268
+ font-size: 16px;
269
+ }
270
+
271
+ label.#{$type}-title {
272
+ cursor: pointer;
273
+ }
274
+ }
275
+
276
+ input {
277
+ &:not(:disabled):not(:checked) ~ label.radio-label,
278
+ &:not(:disabled):not(:checked) ~ .radio-container {
279
+ @include label-states;
280
+ }
281
+
282
+ &:not(:disabled) ~ label.checkbox-label,
283
+ &:not(:disabled) ~ .checkbox-container {
284
+ @include label-states;
285
+ }
286
+
287
+ &:checked:not(:disabled) ~ label.#{$type}-label,
288
+ &:checked:not(:disabled) ~ .#{$type}-container {
289
+ border-color: getColor('main');
290
+ border-width: 2px;
291
+ padding: 15px;
292
+ padding-top: 39px;
293
+
294
+ &:before {
295
+ top: 15px;
296
+ left: 15px;
297
+ }
298
+
299
+ span.#{$type}-title,
300
+ label.#{$type}-title {
301
+ color: getColor('main');
302
+ }
303
+ }
304
+
305
+ &:disabled {
306
+ & ~ label.#{$type}-label,
307
+ & ~ .#{$type}-container {
308
+ &:before {
309
+ border-color: getColor('disabled') !important;
310
+ }
311
+ }
312
+ }
313
+
314
+ &:disabled:checked ~ label.#{$type}-label,
315
+ &:disabled:checked ~ .#{$type}-container {
316
+ .checkbox-title {
317
+ color: getColor('disabled');
318
+ }
319
+ }
320
+ }
321
+
322
+ .#{$type}-sticker {
323
+ position: absolute;
324
+ top: 0px;
325
+ right: 16px;
326
+ transform: translateY(-50%);
327
+ }
328
+
329
+ &.is-horizontal {
330
+ display: flex;
331
+ justify-content: space-between;
332
+ align-items: center;
333
+ max-width: unset;
334
+ width: 100%;
335
+ position: relative;
336
+
337
+ &.is-narrow {
338
+ width: fit-content;
339
+ }
340
+
341
+ input {
342
+ &:checked:not(:disabled) ~ label.#{$type}-label,
343
+ &:checked:not(:disabled) ~ .#{$type}-container {
344
+ padding: ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-4 - 1px) ($spacing-8 - 1px);
345
+ }
346
+
347
+ }
348
+
349
+ label.#{$type}-label,
350
+ .#{$type}-container {
351
+ width: 100%;
352
+ display: flex;
353
+ align-items: center;
354
+ justify-content: flex-start;
355
+ text-align: left;
356
+ padding: $spacing-4 $spacing-4 $spacing-4 $spacing-8;
357
+
358
+
359
+ &:before,
360
+ &:after {
361
+ top: 50% !important;
362
+ transform: translateY(-50%);
363
+ }
364
+ > .icon {
365
+ margin-right: $spacing-4;
366
+ }
367
+
368
+ }
369
+
370
+ }
371
+ }
372
+ }
@@ -0,0 +1,7 @@
1
+ @mixin overlay($offset: 0) {
2
+ position: absolute;
3
+ top: $offset;
4
+ bottom: $offset;
5
+ left: $offset;
6
+ right: $offset;
7
+ }
@@ -0,0 +1,10 @@
1
+ @mixin pattern-light($size, $x-pos: top, $y-pos: center) {
2
+ background-size: $size;
3
+ background-position: $x-pos $y-pos;
4
+ }
5
+
6
+ @mixin pattern-dark($size, $x-pos: top, $y-pos: center) {
7
+ background: linear-gradient(#1b3650, getColor('accent'));
8
+ background-size: auto, $size, auto;
9
+ background-position: top left, $x-pos $y-pos, top left;
10
+ }
@@ -0,0 +1,174 @@
1
+ // Responsiveness
2
+ @mixin from($device) {
3
+ @media screen and (min-width: $device) {
4
+ @content;
5
+ }
6
+ }
7
+
8
+ @mixin until($device) {
9
+ @media screen and (max-width: #{$device - 1px}) {
10
+ @content;
11
+ }
12
+ }
13
+
14
+ @mixin mobile {
15
+ @media screen and (max-width: #{$tablet - 1px}) {
16
+ @content;
17
+ }
18
+ }
19
+
20
+ @mixin tablet {
21
+ @media screen and (min-width: $tablet), print {
22
+ @content;
23
+ }
24
+ }
25
+
26
+ @mixin tablet-only {
27
+ @media screen and (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
28
+ @content;
29
+ }
30
+ }
31
+
32
+ @mixin touch {
33
+ @media screen and (max-width: #{$desktop - 1px}) {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ @mixin desktop {
39
+ @media screen and (min-width: $desktop) {
40
+ @content;
41
+ }
42
+ }
43
+
44
+ @mixin desktop-only {
45
+ @media screen and (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
46
+ @content;
47
+ }
48
+ }
49
+
50
+ @mixin until-widescreen {
51
+ @media screen and (max-width: #{$widescreen - 1px}) {
52
+ @content;
53
+ }
54
+ }
55
+
56
+ @mixin widescreen {
57
+ @media screen and (min-width: $widescreen) {
58
+ @content;
59
+ }
60
+ }
61
+
62
+ @mixin widescreen-only {
63
+ @media screen and (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
64
+ @content;
65
+ }
66
+ }
67
+
68
+ @mixin until-fullhd {
69
+ @media screen and (max-width: #{$fullhd - 1px}) {
70
+ @content;
71
+ }
72
+ }
73
+
74
+ @mixin fullhd {
75
+ @media screen and (min-width: $fullhd) {
76
+ @content;
77
+ }
78
+ }
79
+
80
+ @mixin all-desktop-only {
81
+ @media screen and (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
82
+ @content;
83
+ }
84
+ }
85
+
86
+ // Responsive for container queries
87
+ .query-container {
88
+ container-type: inline-size;
89
+ }
90
+
91
+ @mixin container-from($device) {
92
+ @container (min-width: #{$device}) {
93
+ @content;
94
+ }
95
+ }
96
+
97
+ @mixin container-until($device) {
98
+ @container (max-width: #{$device - 1px}) {
99
+ @content;
100
+ }
101
+ }
102
+
103
+ @mixin container-mobile {
104
+ @container (max-width: #{$tablet - 1px}) {
105
+ @content;
106
+ }
107
+ }
108
+
109
+ @mixin container-tablet {
110
+ @container (min-width: #{$tablet}) {
111
+ @content;
112
+ }
113
+ }
114
+
115
+ @mixin container-tablet-only {
116
+ @container (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
117
+ @content;
118
+ }
119
+ }
120
+
121
+ @mixin container-touch {
122
+ @container (max-width: #{$desktop - 1px}) {
123
+ @content;
124
+ }
125
+ }
126
+
127
+ @mixin container-desktop {
128
+ @container (min-width: #{$desktop}) {
129
+ @content;
130
+ }
131
+ }
132
+
133
+ @mixin container-desktop-only {
134
+ @container (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
135
+ @content;
136
+ }
137
+ }
138
+
139
+ @mixin container-until-widescreen {
140
+ @container (max-width: #{$widescreen - 1px}) {
141
+ @content;
142
+ }
143
+ }
144
+
145
+ @mixin container-widescreen {
146
+ @container (min-width: #{$widescreen}) {
147
+ @content;
148
+ }
149
+ }
150
+
151
+ @mixin container-widescreen-only {
152
+ @container (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
153
+ @content;
154
+ }
155
+ }
156
+
157
+ @mixin container-until-fullhd {
158
+ @container (max-width: #{$fullhd - 1px}) {
159
+ @content;
160
+ }
161
+ }
162
+
163
+ @mixin container-fullhd {
164
+ @container (min-width: #{$fullhd}) {
165
+ @content;
166
+ }
167
+ }
168
+
169
+ @mixin container-all-desktop-only {
170
+ @container (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
171
+ @content;
172
+ }
173
+ }
174
+
@@ -0,0 +1,12 @@
1
+ @mixin spinner($color: 'neutral') {
2
+ animation: spinAround 500ms infinite linear;
3
+ border: 2px solid getColor("#{$color}");
4
+ border-radius: 290486px;
5
+ border-right-color: transparent;
6
+ border-top-color: transparent;
7
+ content: '';
8
+ display: block;
9
+ height: 1em;
10
+ position: relative;
11
+ width: 1em;
12
+ }
@@ -0,0 +1,25 @@
1
+ @mixin hoverRules {
2
+ background-color: getColor('main-fade');
3
+ }
4
+
5
+ @mixin hover {
6
+ &:hover:not(.is-disabled):not(:focus) {
7
+ @include hoverRules();
8
+ }
9
+ &:focus:not(.is-disabled), &:focus-visible:not(.is-disabled) {
10
+ border: 2px solid currentColor;
11
+ }
12
+ }
13
+
14
+ @mixin disabledRulesWithoutBG {
15
+ border-color: getColor('disabled') !important;
16
+ box-shadow: none !important;
17
+ color: getColor('disabled') !important;
18
+ cursor: not-allowed !important;
19
+ filter: grayscale(1);
20
+ }
21
+
22
+ @mixin disabledRules {
23
+ background-color: getColor('disabled-fade') !important;
24
+ @include disabledRulesWithoutBG;
25
+ }
@@ -0,0 +1,10 @@
1
+ %unselectable {
2
+ -webkit-touch-callout: none;
3
+ -webkit-user-select: none;
4
+ -moz-user-select: none;
5
+ -ms-user-select: none;
6
+ user-select: none;
7
+ }
8
+ @mixin unselectable {
9
+ @extend %unselectable;
10
+ }
@@ -0,0 +1,24 @@
1
+ @mixin block {
2
+ &:not(:last-child) {
3
+ margin-bottom: 15px;
4
+ }
5
+ }
6
+
7
+ @mixin overflow-touch {
8
+ -webkit-overflow-scrolling: touch;
9
+ }
10
+
11
+ @mixin placeholder {
12
+ $placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input';
13
+ @each $placeholder in $placeholders {
14
+ &:#{$placeholder}-placeholder {
15
+ @content;
16
+ }
17
+ }
18
+ }
19
+
20
+ @mixin ellipsis() {
21
+ white-space: nowrap;
22
+ overflow-x: hidden;
23
+ text-overflow: ellipsis;
24
+ }
@@ -0,0 +1,2 @@
1
+ $animation-duration: 0.3s;
2
+ $animation-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
@@ -11,10 +11,15 @@ $suffix: '';
11
11
  */
12
12
  $colors: (
13
13
  'background': [#fff, 'white', 'main'],
14
+ 'stroke':[ #727272, 'stroke', 'white' ],
15
+ 'stroke-fade':[ #cadbe8, 'stroke-fade', 'white' ],
16
+ 'transparent': ['transparent', 'transparent', 'transparent'],
14
17
  'main':[ #3d5d7e, 'main', 'white'],
15
18
  'main-fade':[ #eff2f8, 'main-fade', 'white'],
16
19
  'accent':[ #da641b,'accent', 'white'],
20
+ 'accent-fade':[ #faebe3,'accent-fade', 'white'],
17
21
  'font':[ #3d5d7e, 'font', 'white'],
22
+ 'font-placeholder':[ #687a87, 'font-placeholder', 'white'],
18
23
  'success':[ #007B52, 'success', 'white'],
19
24
  'success-fade':[ #cae8ca,'success-fade', 'white'],
20
25
  'info':[ #1A688A, 'info', 'white'],
@@ -38,3 +43,44 @@ $fade-colors: (
38
43
  'disabled': 'disabled-fade',
39
44
  'neutral': 'neutral-fade',
40
45
  ) !default;
46
+
47
+ @function getColor( $name ) {
48
+ @if global-variable-exists(suffix-theme) {
49
+ @return var(--color-#{nth(map-get($colors, $name), 2)}-#{$suffix-theme});
50
+ } @else {
51
+ @return var(--color-#{nth(map-get($colors,$name),2)});
52
+ }
53
+ }
54
+
55
+ @function getColorValue( $name ) {
56
+ @return #{nth(map-get($colors,$name),1)}
57
+ }
58
+
59
+ @function getColorBrandName( $name ) {
60
+ @return #{nth(map-get($colors,$name),2)}
61
+ }
62
+
63
+
64
+
65
+ @function invertColor ($colorName) {
66
+ @return var(--color-#{nth(map-get($colors,$colorName),3)})
67
+ }
68
+
69
+ @function fadeColor ($colorName) {
70
+ $name: map-get($fade-colors,$colorName);
71
+ @return getColor($name);
72
+ }
73
+
74
+ // Brand Color
75
+ $colors-brand: (
76
+ 'background', 'main', 'accent'
77
+ );
78
+
79
+ // Brand Color Functionnal
80
+ $colors-brand-functionnal: (
81
+ 'background', 'main', 'accent', 'info', 'success', 'error', 'warning', 'neutral'
82
+ );
83
+
84
+ $colors-feedback: (
85
+ 'success', 'error', 'warning', 'info'
86
+ );