@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,13 +1,12 @@
1
1
  @use 'sass:math';
2
2
  @import "../utilities/spacing";
3
3
 
4
- $timeline-marker-color: getColor('grey-lighter') !default;
4
+ $timeline-marker-color: getColor('neutral-fade') !default;
5
5
  $timeline-marker-icon-size: 2.85em !default;
6
- $timeline-line-color: getColor('grey-lighter') !default;
6
+ $timeline-line-color: getColor('neutral-fade') !default;
7
7
  $timeline-marker-size: 0.8em !default;
8
8
  $timeline-marker-border-size: 0.1em !default;
9
- $timeline-marker-border: $timeline-marker-border-size solid
10
- $timeline-marker-color !default;
9
+ $timeline-marker-border: $timeline-marker-border-size solid $timeline-marker-color !default;
11
10
  $timeline-line-width: 0.125em !default;
12
11
  $timeline-line-style: solid !default;
13
12
  $timeline-line: $timeline-line-width $timeline-line-style $timeline-line-color !default;
@@ -32,8 +31,9 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
32
31
  margin-left: 0;
33
32
  }
34
33
 
35
- .timeline-item,
36
- .undone {
34
+ .timeline-item {
35
+ --font-color: #{getColor('neutral')};
36
+ --bg-color: #{getColor('background')};
37
37
  display: flex;
38
38
  display: -ms-flexbox;
39
39
  display: -webkit-flex;
@@ -43,9 +43,9 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
43
43
 
44
44
  &::before {
45
45
  content: '';
46
- background-color: getColor('grey-lighter');
47
46
  display: block;
48
47
  width: $timeline-line-width;
48
+ background-color: var(--font-color);
49
49
  position: absolute;
50
50
  top: 49.80px;
51
51
  left: 3rem;
@@ -55,86 +55,32 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
55
55
  }
56
56
 
57
57
  .timeline-marker.is-icon {
58
- background-color: getColor('alternate');
59
- .icon {
60
- color: aside;
61
- }
58
+ background-color: var(--font-color);
59
+ color: var(--bg-color);
62
60
  }
63
61
 
64
-
62
+ &.active, &.done {
63
+ --font-color: #{getColor('main')};
64
+ --bg-color: #{getColor('background')};
65
+ }
65
66
 
66
67
  &.active {
67
- .timeline-marker.is-icon {
68
- background-color: getColor('alternate');
69
- .icon {
70
- color: getColor('background');
71
- }
72
- }
73
68
  .timeline-content {
74
69
  p.main-content {
75
70
  font-weight: 800;
76
71
  }
77
72
  }
78
- &::before {
79
- content: '';
80
- background-color: getColor('alternate');
81
- display: block;
82
- width: $timeline-line-width;
83
- position: absolute;
84
- top: 49.80px;
85
- left: 3rem;
86
- bottom: 8px;
87
- height: auto;
88
- border-radius: 2px;
89
- }
90
-
91
- }
92
- &.done {
93
- .timeline-marker.is-icon {
94
- background-color: getColor('font');
95
- .icon {
96
- color: getColor('background')
97
- }
98
- }
99
- &::before {
100
- content: '';
101
- background-color: getColor('font');
102
- display: block;
103
- width: $timeline-line-width;
104
- position: absolute;
105
- top: 49.80px;
106
- left: 3rem;
107
- bottom: 8px;
108
- height: auto;
109
- border-radius: 2px;
110
- }
111
73
  }
112
74
 
113
75
  &.cancel {
114
- .timeline-marker.is-icon {
115
- background-color: getColor('grey-light');
116
- .icon {
117
- color: getColor('grey-darker');
118
- }
119
- }
120
- &::before {
121
- content: '';
122
- background-color: getColor('grey-light');
123
- display: block;
124
- width: $timeline-line-width;
125
- position: absolute;
126
- top: 49.80px;
127
- left: 3rem;
128
- bottom: 8px;
129
- height: auto;
130
- border-radius: 2px;
131
- }
76
+ --font-color: #{getColor('neutral')};
77
+ --bg-color: #{getColor('neutral-fade')};
132
78
  }
133
79
 
134
80
  .timeline-marker {
135
81
  position: absolute;
136
82
  background: $timeline-marker-color;
137
- border-radius: 100%;
83
+ border-radius: 9999px;
138
84
  content: '';
139
85
  display: block;
140
86
  height: $timeline-marker-size;
@@ -154,7 +100,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
154
100
  }
155
101
 
156
102
  background: $timeline-marker-color;
157
- border-radius: 100%;
103
+ border-radius: 9999px;
158
104
  display: block;
159
105
  overflow: hidden;
160
106
  }
@@ -169,13 +115,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
169
115
  $timeline-marker-border-size * 0.5);
170
116
  line-height: size(0.75rem);
171
117
  padding: math.div($timeline-icon-size, 3);
172
- background: $timeline-marker-color;
173
- border-radius: 100%;
174
-
175
- > i {
176
- color: getColor('background');
177
- font-size: $timeline-icon-size !important;
178
- }
118
+ border-radius: 9999px;
179
119
  }
180
120
 
181
121
  &.is-outlined {
@@ -199,13 +139,12 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
199
139
 
200
140
  .heading {
201
141
  font-size: $text-12;
202
- color: getColor('grey');
203
- font-family: $family-sans-serif;
142
+ color: getColor('font');
143
+ font-family: $family-primary;
204
144
  text-transform: none;
205
145
  letter-spacing: 0;
206
146
  line-height: 15px;
207
147
  font-weight: 500;
208
- color: #707070;
209
148
  }
210
149
 
211
150
  p {
@@ -213,7 +152,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
213
152
  }
214
153
  }
215
154
 
216
- @each $name in $colors-brand-funcionnal {
155
+ @each $name in $colors-brand-functionnal {
217
156
  $color: getColor($name);
218
157
  $brandName: getColorBrandName($name);
219
158
 
@@ -293,7 +232,7 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
293
232
  }
294
233
  }
295
234
 
296
- @each $name, $pair in $colors-brand-funcionnal {
235
+ @each $name, $pair in $colors-brand-functionnal {
297
236
  $color: getColor($name);
298
237
  $brandName: getColorBrandName($name);
299
238
 
@@ -314,51 +253,27 @@ $timeline-image-dimensions: 16 24 32 48 64 96 128 !default;
314
253
  .timeline-item {
315
254
  flex-direction: column;
316
255
  width: 100%;
256
+
317
257
  &:not(:last-child) {
318
258
  margin-right: 16px;
319
259
  }
320
260
 
321
261
  &::before {
322
- content: '';
323
- background-color: $timeline-line-color;
324
- display: block;
325
262
  width: calc(100% - 58px);
326
- position: absolute;
327
263
  top: 22.89px;
328
264
  left: 59px;
329
- bottom: 8px;
330
265
  height: 2px;
331
- border-radius: 2px;
332
- }
333
- &.active::before {
334
- background-color: getColor('alternate');
335
- }
336
- &.undone
337
- {
338
- i {
339
- background-color: getColor('font');
340
- }
341
- &::before {
342
- background-color: getColor('grey-lighter');
343
- }
344
- }
345
- &.done::before {
346
- background-color: getColor('font');
347
- }
348
- &.cancel::before {
349
- background-color: getColor('grey-light');
350
266
  }
267
+
351
268
  .timeline-marker {
352
- position: static ;
353
- margin-left:0
269
+ position: static;
270
+ margin-left: 0
354
271
  }
272
+
355
273
  .timeline-content {
356
274
  margin-left: 0;
357
- padding:0;
275
+ padding: 0;
358
276
  margin-top: 8px;
359
- .main-content {
360
- margin-left: 0;
361
- }
362
277
 
363
278
  }
364
279
  }
@@ -0,0 +1,151 @@
1
+ @use 'sass:math';
2
+
3
+ $title-weight: $weight-semibold;
4
+ $title-high-weight: 550;
5
+ $title-line-height: 1.1;
6
+ $title-strong-color: inherit;
7
+ $title-strong-weight: inherit;
8
+ $title-sub-size: 0.5em;
9
+ $title-sup-size: 0.5em;
10
+
11
+ $subtitle-size: $text-16;
12
+ $subtitle-weight: $weight-medium;
13
+ $subtitle-size-tablet: $text-15;
14
+ $subtitle-line-height: 1.2;
15
+ $subtitle-strong-weight: $weight-semibold;
16
+
17
+ $overline-size: $text-14;
18
+ $overline-weight: $weight-semibold;
19
+ $overline-line-height: 1.2;
20
+ $overline-size-tablet: $text-15;
21
+
22
+ $title-levels: (
23
+ ($text-48, $text-58, $family-secondary),
24
+ ($text-36, $text-44, $family-secondary),
25
+ ($text-28, $text-32, $family-primary),
26
+ ($text-24, $text-28, $family-primary),
27
+ ($text-20, $text-24, $family-primary),
28
+ ($text-16, $text-20, $family-primary)
29
+ );
30
+ $title-levels-mobile: (
31
+ ($text-32, $text-38),
32
+ ($text-28, $text-34),
33
+ ($text-22, $text-26),
34
+ ($text-20, $text-24),
35
+ ($text-18, $text-22),
36
+ ($text-16, $text-20)
37
+ );
38
+
39
+ .title,
40
+ .subtitle,
41
+ .overline {
42
+ word-break: break-word;
43
+
44
+ em,
45
+ span {
46
+ font-weight: inherit;
47
+ }
48
+
49
+ .tag {
50
+ vertical-align: middle;
51
+ }
52
+ }
53
+
54
+ .title {
55
+ font-size: $text-32;
56
+ font-weight: $title-weight;
57
+ line-height: $title-line-height;
58
+
59
+ // new typography
60
+ @each $title-level in $title-levels {
61
+ $i: index($title-levels, $title-level);
62
+ $font-size: nth($title-level, 1);
63
+ $line-height: nth($title-level, 2);
64
+ $font-family: nth($title-level, 3);
65
+
66
+ // Avoid Safari font weight issues
67
+ &.is-level-1 {
68
+ font-weight: $title-high-weight;
69
+ }
70
+
71
+ &.is-level-2 {
72
+ font-weight: $title-high-weight;
73
+ }
74
+
75
+ &.is-level-#{$i} {
76
+ font-size: $font-size;
77
+ line-height: $line-height;
78
+ font-family: $font-family;
79
+ }
80
+
81
+ &.is-medium {
82
+ font-weight: $weight-medium;
83
+ }
84
+
85
+ &.is-inverted {
86
+ color: getColor('background');
87
+ }
88
+
89
+ .details {
90
+ font-size: 80%;
91
+ color: getColor('neutral');
92
+ font-weight: $weight-normal;
93
+ }
94
+
95
+ &.is-section-title {
96
+ text-align: center;
97
+ }
98
+
99
+ @include tablet {
100
+ font-size: $text-40;
101
+ }
102
+
103
+ sup {
104
+ top: -0.5em;
105
+ font-size: $title-sup-size;
106
+ }
107
+
108
+ sub {
109
+ bottom: -0.5em;
110
+ font-size: $title-sub-size;
111
+ }
112
+
113
+ &.is-centered {
114
+ text-align: center;
115
+ }
116
+ }
117
+
118
+ @include mobile {
119
+ @each $title-level-mobile in $title-levels-mobile {
120
+ $i: index($title-levels-mobile, $title-level-mobile);
121
+ $font-size-mobile: nth($title-level-mobile, 1);
122
+ $line-height-mobile: nth($title-level-mobile, 2);
123
+ &.is-level-#{$i} {
124
+ font-size: $font-size-mobile;
125
+ line-height: $line-height-mobile;
126
+ }
127
+ }
128
+ }
129
+ }
130
+
131
+ .subtitle {
132
+ color: getColor('font');
133
+ font-size: $subtitle-size;
134
+ font-weight: $subtitle-weight;
135
+ line-height: $subtitle-line-height;
136
+
137
+ &.is-inverted {
138
+ color: getColor('background');
139
+ }
140
+ }
141
+
142
+ .overline {
143
+ color: getColor('font');
144
+ font-size: $overline-size;
145
+ font-weight: $overline-weight;
146
+ line-height: $overline-line-height;
147
+
148
+ &.is-inverted {
149
+ color: getColor('background');
150
+ }
151
+ }
@@ -1,3 +1,4 @@
1
+ /* @todo validate a.alert exist */
1
2
  a.alert {
2
3
  cursor: pointer;
3
4
  transition: box-shadow $animation-duration;
@@ -10,19 +11,24 @@ a.alert {
10
11
  }
11
12
 
12
13
  .alert {
13
-
14
- border-radius: $radius;
15
- margin-bottom: 16px;
14
+ border-radius: var(--radius);
16
15
  position: relative;
17
16
  display: flex;
18
17
  align-self: flex-start;
19
18
  box-shadow: none;
20
19
  padding: $spacing-4;
21
20
 
21
+ &.is-banner {
22
+
23
+ text-align: center;
24
+ border-radius: 0;
25
+ border: none !important;
26
+
27
+ }
28
+
22
29
  .text:first-child,
23
30
  .title:first-child {
24
31
  line-height: normal;
25
- font-size: $text-16 !important;
26
32
  }
27
33
 
28
34
  .title,
@@ -47,12 +53,10 @@ a.alert {
47
53
  color: currentColor;
48
54
  }
49
55
 
50
- @each $name, $pair in $colors-feedback {
51
- $bg-color: nth($pair, 1);
52
-
56
+ @each $name in $colors-feedback {
53
57
  &.is-#{$name} {
54
- background-color: getColor($bg-color);
55
- border: 2px solid getColor($name);
58
+ background-color: fadeColor($name);
59
+ border: 1px solid getColor($name);
56
60
 
57
61
  .icon {
58
62
  color: getColor($name);
@@ -81,7 +85,6 @@ a.alert {
81
85
  }
82
86
  }
83
87
 
84
- .title,
85
88
  .text,
86
89
  .paragraph {
87
90
  font-size: $text-14;
@@ -0,0 +1,2 @@
1
+ @import "alert";
2
+ @import "toaster";
@@ -10,11 +10,8 @@ a.toaster {
10
10
  }
11
11
 
12
12
  .toaster {
13
- @include apply-shadow-box();
14
-
15
-
16
- background-color: getColor('bg-info');
17
- border-radius: $radius;
13
+ background-color: getColor('info-fade');
14
+ border-radius: var(--radius);
18
15
  margin-bottom: 16px;
19
16
  position: relative;
20
17
  margin-left: 24px;
@@ -62,10 +59,9 @@ a.toaster {
62
59
  background: transparent;
63
60
  }
64
61
 
65
- @each $name, $pair in $colors-feedback {
66
- $bg-color: nth($pair, 1);
62
+ @each $name in $colors-feedback {
67
63
  &.is-#{$name} {
68
- background-color: getColor($bg-color);
64
+ background-color: fadeColor($name);
69
65
  border: 2px solid getColor($name);
70
66
 
71
67
  .icon {
@@ -0,0 +1,135 @@
1
+ .input, .textarea {
2
+ &:not(:disabled) {
3
+ &:active,
4
+ &:focus,
5
+ &:focus-visible:not(.icon) {
6
+ padding-left: 15px ;
7
+ }
8
+ }
9
+ }
10
+
11
+ .input,
12
+ .textarea {
13
+ @include input;
14
+
15
+ padding-left: $spacing-4;
16
+ padding-right: $spacing-4;
17
+ font-size: $size-medium;
18
+ max-width: 100%;
19
+ width: 100%;
20
+
21
+ // Colors
22
+ @each $name in $colors-brand-functionnal {
23
+ $color: getColor($name);
24
+ $color-invert: invertColor($name);
25
+ $brandName: getColorBrandName($name);
26
+
27
+ &.is-#{$brandName} {
28
+ border: 1px solid $color;
29
+ }
30
+ }
31
+
32
+ // Sizes
33
+ &.is-small {
34
+ @include control-small;
35
+ }
36
+
37
+ &.is-large {
38
+ @include control-large;
39
+ }
40
+
41
+ &.is-fullwidth {
42
+ display: block;
43
+ width: 100%;
44
+ }
45
+
46
+ &.is-inline {
47
+ display: inline;
48
+ }
49
+
50
+ & label {
51
+ margin-top: 10px;
52
+ }
53
+ }
54
+
55
+ .input {
56
+ &::-ms-clear {
57
+ display: none;
58
+ }
59
+
60
+ &.is-small {
61
+ height: 24px;
62
+ }
63
+
64
+ &.is-rounded {
65
+ padding-left: 1em;
66
+ padding-right: 1em;
67
+ }
68
+
69
+ &.is-static {
70
+ background-color: transparent;
71
+ border-color: transparent;
72
+ padding-left: 0;
73
+ padding-right: 0;
74
+ }
75
+
76
+ &::-webkit-search-cancel-button{
77
+ $colorSvg: encodecolor(getColorValue('main'));
78
+ position:absolute;
79
+ right: 0px;
80
+ bottom : 0px;
81
+ top:0px;
82
+ padding: 0 24px;
83
+ opacity: 1;
84
+ display: block;
85
+ background-image: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
86
+ background-size : 20px;
87
+ -webkit-appearance: none;
88
+ background-repeat: no-repeat;
89
+ background-color: getColor('background') ;
90
+ background-position: center;
91
+ }
92
+
93
+ &[type="search"] {
94
+ padding-right: 45px;
95
+ &:hover:not(:focus){
96
+ &::-webkit-search-cancel-button {
97
+ background-color: getColor('main-fade');
98
+ }
99
+ }
100
+ &:focus{
101
+ &::-webkit-search-cancel-button {
102
+ padding: 0 23px;
103
+ }
104
+ }
105
+ }
106
+
107
+
108
+ }
109
+
110
+ .textarea {
111
+ display: block;
112
+ max-width: 100%;
113
+ min-width: 100%;
114
+ resize: vertical;
115
+ padding-top: 15px;
116
+
117
+
118
+ &:not([rows]) {
119
+ max-height: 600px;
120
+ min-height: 120px;
121
+ }
122
+
123
+ &[rows] {
124
+ height: initial;
125
+ }
126
+
127
+ &.has-fixed-size {
128
+ resize: none;
129
+ }
130
+
131
+ &:focus-visible{
132
+ padding-top: 14px;
133
+ padding-bottom: 4px;
134
+ }
135
+ }