@trilogy-ds/styles 0.0.1-beta.8 → 0.0.1-calendar

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 (143) 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/_all.scss +2 -2
  5. package/framework/src/base/_all.scss +1 -1
  6. package/framework/src/base/_color.scss +1 -52
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +9 -1
  9. package/framework/src/base/_helpers.scss +34 -44
  10. package/framework/src/base/_loading.scss +9 -2
  11. package/framework/src/base/_reset.scss +11 -1
  12. package/framework/src/components/_accordion.scss +55 -89
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +332 -0
  15. package/framework/src/components/_badge.scss +87 -0
  16. package/framework/src/components/_box.scss +168 -0
  17. package/framework/src/components/_breadcrumb.scss +29 -38
  18. package/framework/src/components/_button.scss +79 -0
  19. package/framework/src/components/_calendar.scss +125 -0
  20. package/framework/src/components/_card.scss +33 -87
  21. package/framework/src/components/_checkbox.scss +71 -0
  22. package/framework/src/components/_chips.scss +84 -0
  23. package/framework/src/{elements → components}/_container.scss +7 -39
  24. package/framework/src/components/_countdown.scss +49 -47
  25. package/framework/src/components/_divider.scss +25 -14
  26. package/framework/src/components/_fab.scss +25 -38
  27. package/framework/src/components/_flex-box.scss +457 -0
  28. package/framework/src/{elements → components}/_icon.scss +4 -4
  29. package/framework/src/components/_image.scss +69 -0
  30. package/framework/src/components/_index.scss +48 -0
  31. package/framework/src/components/_link.scss +58 -0
  32. package/framework/src/components/_list.scss +66 -0
  33. package/framework/src/{elements → components}/_loader.scss +2 -2
  34. package/framework/src/components/_modal.scss +182 -158
  35. package/framework/src/components/_otp.scss +11 -30
  36. package/framework/src/components/_pagination.scss +60 -159
  37. package/framework/src/components/_popover.scss +260 -260
  38. package/framework/src/components/_price.scss +140 -165
  39. package/framework/src/components/_product-tour.scss +2 -4
  40. package/framework/src/components/_radio.scss +82 -0
  41. package/framework/src/components/_range.scss +73 -72
  42. package/framework/src/components/_segmented-control.scss +55 -53
  43. package/framework/src/components/_select.scss +131 -0
  44. package/framework/src/components/_stepper.scss +42 -222
  45. package/framework/src/{elements → components}/_sticker.scss +25 -28
  46. package/framework/src/components/_switch.scss +97 -191
  47. package/framework/src/components/_table.scss +244 -0
  48. package/framework/src/components/_tabs.scss +101 -98
  49. package/framework/src/components/_tag.scss +114 -0
  50. package/framework/src/components/_text.scss +55 -0
  51. package/framework/src/components/_textarea.scss +46 -0
  52. package/framework/src/components/_timeline.scss +28 -113
  53. package/framework/src/components/_title.scss +151 -0
  54. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  55. package/framework/src/components/alert/_index.scss +2 -0
  56. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  57. package/framework/src/components/input/_entry.scss +135 -0
  58. package/framework/src/{elements → components/input}/_form.scss +42 -33
  59. package/framework/src/components/input/_index.scss +4 -0
  60. package/framework/src/components/input/_input-gauge.scss +44 -0
  61. package/framework/src/components/input/_input-icons.scss +55 -0
  62. package/framework/src/components/progress/_index.scss +2 -0
  63. package/framework/src/components/progress/_progress-radial.scss +28 -0
  64. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  65. package/framework/src/elements/_index.scss +5 -0
  66. package/framework/src/elements/_other.scss +0 -41
  67. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  68. package/framework/src/grid/_columns.scss +278 -763
  69. package/framework/src/grid/_rows.scss +45 -38
  70. package/framework/src/layout/_all.scss +0 -1
  71. package/framework/src/layout/_hero.scss +92 -214
  72. package/framework/src/layout/_section.scss +10 -29
  73. package/framework/src/theming/_all.scss +3 -0
  74. package/framework/src/theming/buttons_partial.scss +32 -0
  75. package/framework/src/theming/common_partials.scss +10 -0
  76. package/framework/src/theming/links_partial.scss +20 -0
  77. package/framework/src/trilogy-mangled.scss +3 -3
  78. package/framework/src/trilogy.scss +2 -2
  79. package/framework/src/utilities/_a11y.scss +13 -0
  80. package/framework/src/utilities/_all.scss +4 -0
  81. package/framework/src/utilities/_background.scss +21 -0
  82. package/framework/src/utilities/_controls.scss +38 -49
  83. package/framework/src/utilities/_derived-variables.scss +0 -103
  84. package/framework/src/utilities/_initial-variables.scss +4 -144
  85. package/framework/src/utilities/_pre.scss +4 -1
  86. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  87. package/framework/src/utilities/mixins/_delete.scss +86 -0
  88. package/framework/src/utilities/mixins/_index.scss +11 -0
  89. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  90. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  91. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  92. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  93. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  94. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  95. package/framework/src/utilities/mixins/_state.scss +25 -0
  96. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  97. package/framework/src/utilities/mixins/_utils.scss +24 -0
  98. package/framework/src/utilities/variables/_animation.scss +2 -0
  99. package/framework/src/utilities/variables/_color.scss +85 -0
  100. package/framework/src/utilities/variables/_font.scss +97 -0
  101. package/framework/src/utilities/variables/_index.scss +6 -0
  102. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  103. package/framework/src/utilities/variables/_shadow.scss +3 -0
  104. package/framework/src/utilities/variables/_zindex.scss +14 -0
  105. package/package.json +3 -3
  106. package/framework/src/components/_all.scss +0 -30
  107. package/framework/src/components/_autolayout2.scss +0 -38
  108. package/framework/src/components/_disclaimer.scss +0 -84
  109. package/framework/src/components/_dropdown.scss +0 -128
  110. package/framework/src/components/_level.scss +0 -120
  111. package/framework/src/components/_media.scss +0 -64
  112. package/framework/src/components/_menu.scss +0 -213
  113. package/framework/src/components/_progress-radial.scss +0 -23
  114. package/framework/src/components/_search-modal.scss +0 -197
  115. package/framework/src/components/_slices.scss +0 -316
  116. package/framework/src/components/_slider.scss +0 -92
  117. package/framework/src/elements/_all.scss +0 -35
  118. package/framework/src/elements/_badge.scss +0 -81
  119. package/framework/src/elements/_box.scss +0 -267
  120. package/framework/src/elements/_button.scss +0 -192
  121. package/framework/src/elements/_checkbox.scss +0 -39
  122. package/framework/src/elements/_checkradio.scss +0 -173
  123. package/framework/src/elements/_chips.scss +0 -100
  124. package/framework/src/elements/_dot.scss +0 -6
  125. package/framework/src/elements/_entry.scss +0 -109
  126. package/framework/src/elements/_image.scss +0 -59
  127. package/framework/src/elements/_input-gauge.scss +0 -37
  128. package/framework/src/elements/_input-icons.scss +0 -41
  129. package/framework/src/elements/_link.scss +0 -79
  130. package/framework/src/elements/_list.scss +0 -61
  131. package/framework/src/elements/_notification.scss +0 -151
  132. package/framework/src/elements/_options.scss +0 -146
  133. package/framework/src/elements/_paragraph.scss +0 -101
  134. package/framework/src/elements/_radio.scss +0 -67
  135. package/framework/src/elements/_select.scss +0 -315
  136. package/framework/src/elements/_switch.scss +0 -108
  137. package/framework/src/elements/_table.scss +0 -298
  138. package/framework/src/elements/_tag.scss +0 -131
  139. package/framework/src/elements/_textarea.scss +0 -125
  140. package/framework/src/elements/_timeline.scss +0 -283
  141. package/framework/src/elements/_title.scss +0 -139
  142. package/framework/src/layout/_toolbar.scss +0 -100
  143. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,108 +0,0 @@
1
- .switch {
2
- position: relative;
3
- margin: 8px;
4
-
5
- input {
6
- display: none;
7
-
8
- &:disabled ~ label,
9
- &:disabled:checked ~ label {
10
- &:hover {
11
- cursor: no-drop;
12
- }
13
-
14
- &:before {
15
- background-color: getColor('grey-disabled');
16
- }
17
- }
18
-
19
- &:disabled ~ label {
20
- &:after {
21
- $colorSvg: encodecolor(getColorValue('grey-dark'));
22
- content: 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>');
23
- }
24
- }
25
-
26
- &:disabled:checked ~ label {
27
- &:after {
28
- $colorSvg: encodecolor(getColorValue('grey-dark'));
29
- content: 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-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
30
- }
31
- }
32
- }
33
-
34
- label {
35
- width: 100%;
36
- display: flex;
37
- align-items: center;
38
- cursor: pointer;
39
- padding: $spacing-1;
40
- padding-right: 60px;
41
-
42
- &:before {
43
- content: '';
44
- position: absolute;
45
- top: 50%;
46
- transform: translateY(-50%);
47
- right: 0;
48
- border-radius: 24px;
49
- width: 44px;
50
- height: 22px;
51
- background-color: getColorValue('grey');
52
- margin-left: 16px;
53
- }
54
-
55
- &:after {
56
- $colorSvg: encodecolor(getColorValue('grey'));
57
- content: 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>');
58
- position: absolute;
59
- top: 50%;
60
- transform: translateY(-50%);
61
- right: calc(44px - 18px - 2px);
62
- border-radius: 50%;
63
- width: 18px;
64
- height: 18px;
65
- background-color: getColorValue('background');
66
- transition: 0.3s;
67
- }
68
- }
69
-
70
- input:checked {
71
- & ~ label {
72
- font-weight: bold;
73
-
74
- &:before {
75
- background-color: getColorValue('alternate');
76
- }
77
-
78
- &:after {
79
- right: 2px;
80
- $colorSvg: encodecolor(getColorValue('alternate'));
81
- content: 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-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
82
- background-color: getColorValue('background');
83
- }
84
- }
85
- }
86
-
87
- &.is-reversed {
88
- label {
89
- flex-direction: row-reverse;
90
- padding-right: 0;
91
- padding-left: 60px;
92
-
93
- &:before {
94
- left: 0;
95
- margin-left: 0;
96
- margin-right: 16px;
97
- }
98
-
99
- &:after {
100
- left: 2px;
101
- }
102
- }
103
-
104
- input:checked ~ label:after {
105
- left: calc(44px - 18px - 2px);
106
- }
107
- }
108
- }
@@ -1,298 +0,0 @@
1
- @use "sass:math";
2
-
3
- /**
4
- * @deprecated "Use box.is-paddingless instead"
5
- */
6
- .table-container.box {
7
- padding: 0;
8
- }
9
-
10
- .table {
11
- @include block;
12
-
13
- background-color: transparent;
14
- color: getColor('grey-dark');
15
-
16
- &:not(:last-child) {
17
- margin-bottom: 30px;
18
- }
19
-
20
- /**
21
- * @deprecated "Use multiples <tr><th> instead"
22
- */
23
- tbody .is-body-header {
24
- background-color: getColor('grey-light');
25
- }
26
-
27
- td,
28
- th {
29
- border: 1px solid getColor('grey-light');
30
- border-width: 0;
31
- padding: 20px;
32
- vertical-align: top;
33
- text-align: left;
34
-
35
- // Modifiers
36
- &.is-narrow {
37
- white-space: nowrap;
38
- width: 1%;
39
- }
40
-
41
- &.is-selected {
42
- background-color: getColor('main');
43
- color: getColor('background');
44
- a,
45
- strong {
46
- color: currentColor;
47
- }
48
- }
49
- }
50
-
51
- th {
52
- color: getColor('font');
53
- }
54
-
55
- tr {
56
- @each $name, $pair in $colors-feedback {
57
- $bg-color: nth($pair, 1);
58
- &.is-#{$name} {
59
- background-color:getColor($bg-color);
60
- }
61
- }
62
-
63
- th {
64
- background-color: getColor('background');
65
- }
66
-
67
- th,
68
- td {
69
- color: getColor('font');
70
- vertical-align: middle;
71
- }
72
-
73
- td {
74
- border-bottom: 1px solid getColor('grey-light');
75
-
76
- > p {
77
- margin: 0;
78
- }
79
- }
80
-
81
- &.is-selected {
82
- background-color: getColor('main');
83
- color: getColor('background');
84
-
85
- a,
86
- strong {
87
- color: currentColor;
88
- }
89
-
90
- td,
91
- th {
92
- border-color: currentColor;
93
- color: currentColor;
94
- }
95
- }
96
-
97
- &.is-expanded,
98
- &.is-expandable:hover {
99
- td {
100
- color: getColor('alternate');
101
- cursor: pointer;
102
- }
103
- }
104
-
105
- &.is-expandable + .is-expansion {
106
- display: none;
107
- }
108
-
109
- &.is-expanded + .is-expansion {
110
- display: table-row;
111
- }
112
-
113
- &.is-expanded {
114
- > td {
115
- border-bottom: 0;
116
- }
117
-
118
- .toggle {
119
- transform: rotate(180deg);
120
- color: inherit;
121
- }
122
-
123
- + tr > td {
124
- border-top: 0;
125
- }
126
- }
127
- }
128
-
129
- thead {
130
- td,
131
- th {
132
- border-width: 0 0 1px;
133
- color: getColor('font');
134
- }
135
- }
136
-
137
- tfoot {
138
- td,
139
- th {
140
- border-width: 2px 0 0;
141
- color: getColor('font');
142
- }
143
- }
144
-
145
- tbody {
146
- tr {
147
- &:last-child {
148
- td,
149
- th {
150
- border-bottom-width: 0;
151
- }
152
- }
153
- }
154
- }
155
-
156
- &:not(.is-bordered).is-comparative {
157
- th {
158
- border-right: 1px solid getColor('grey-lighter');
159
- }
160
-
161
- td {
162
- &:not(:last-child) {
163
- border-right: 1px solid getColor('grey-light');
164
- }
165
- }
166
- }
167
-
168
- &.is-compact {
169
- td,
170
- th {
171
- padding: math.div(20px, 3) math.div(20px, 3);
172
- }
173
- }
174
-
175
- &.is-large {
176
- thead {
177
- height: 50px;
178
-
179
- th {
180
- color: getVariantColor('alternate',2);
181
- font-weight: 600;
182
- text-transform: uppercase;
183
- }
184
- }
185
-
186
- tbody {
187
- border-top: 1px solid #d8d8d8;
188
-
189
- tr {
190
- td {
191
- height: 40px;
192
- }
193
-
194
- &:not(.is-body-header) td {
195
- height: 96px;
196
- }
197
- }
198
- }
199
- }
200
-
201
- &.is-bordered {
202
- td,
203
- th {
204
- border-width: 1px;
205
- }
206
-
207
- tr {
208
- &:last-child {
209
- td,
210
- th {
211
- border-bottom-width: 1px;
212
- }
213
- }
214
- }
215
- }
216
-
217
- &.is-fullwidth {
218
- width: 100%;
219
- }
220
-
221
- &.is-hoverable {
222
- tbody {
223
- tr:not(.is-selected) {
224
- &:hover {
225
- background-color: getColor('grey-lighter');
226
- }
227
- }
228
- }
229
-
230
- &.is-striped {
231
- tbody {
232
- tr:not(.is-selected) {
233
- &:hover {
234
- background-color: getColor('grey-light');
235
- }
236
- }
237
- }
238
- }
239
- }
240
-
241
- &.is-narrow {
242
- td,
243
- th {
244
- padding: 0.25em 0.5em;
245
- }
246
- }
247
-
248
- &.is-striped {
249
- tbody {
250
- tr:not(.is-selected) {
251
- &:nth-child(even) {
252
- background-color: getColor('grey-lighter');
253
- }
254
- }
255
- }
256
- }
257
-
258
- .subtable {
259
- background-color: getColor('grey-lighter');
260
- border-radius: $radius;
261
- padding: $box-padding * 2;
262
-
263
- @include mobile() {
264
- padding: 15px;
265
- }
266
-
267
- .table {
268
- background: transparent;
269
-
270
- tr:not(:first-child) {
271
- td {
272
- border-top: 1px solid getColor('grey-dark');
273
- }
274
- }
275
-
276
- td {
277
- border: 0;
278
-
279
- &:first-child {
280
- padding-left: 0;
281
- }
282
-
283
- &:last-child {
284
- padding-right: 0;
285
- }
286
- }
287
- }
288
- }
289
- }
290
-
291
- .table-container {
292
- @include block;
293
- @include overflow-touch;
294
-
295
- overflow: auto;
296
- overflow-y: hidden;
297
- max-width: 100%;
298
- }
@@ -1,131 +0,0 @@
1
- $tag-radius: $radius-rounded !default;
2
- $tag-delete-margin: 1px !default;
3
-
4
- // container pour multi-tags ou tags avec actions
5
- .tags {
6
- align-items: center;
7
- display: inline-flex;
8
- flex-wrap: wrap;
9
- justify-content: flex-start;
10
- margin-bottom: 16px;
11
-
12
- // multi-tags : ajout d'une marge bottom, supprimable par facette
13
- &:not(.is-gapless) {
14
- &:not(:last-child) {
15
- margin-right: 8px;
16
- }
17
-
18
- .tag {
19
- margin-bottom: 10px;
20
- }
21
- }
22
-
23
- // multi-tags : ajout d'une marge à droite de chaque tag
24
- .tag:not(:last-child) {
25
- margin-right: 8px;
26
- }
27
-
28
- // centrage des tags
29
- &.is-centered {
30
- justify-content: center;
31
- }
32
-
33
- // tags avec actions
34
- &.has-addons {
35
- cursor: pointer;
36
-
37
- .tag {
38
- margin-right: 0;
39
-
40
- &:not(:first-child) {
41
- border-bottom-left-radius: 0;
42
- border-top-left-radius: 0;
43
- }
44
-
45
- &:not(:last-child) {
46
- border-bottom-right-radius: 0;
47
- border-top-right-radius: 0;
48
- }
49
-
50
- &:first-child {
51
- padding-right: 5px;
52
- }
53
-
54
- + .tag {
55
- padding: 0;
56
- position: relative;
57
- width: 25px;
58
- border-width: 0;
59
-
60
- // fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
61
- cursor: inherit;
62
-
63
- // affichage d'une fausse croix avec 2 traits penchés
64
- &:empty {
65
- &::before,
66
- &::after {
67
- position: absolute;
68
- content: '';
69
- height: 10px;
70
- width: 2px;
71
- background-color: currentColor;
72
- top: 50%;
73
- left: 30%;
74
- }
75
-
76
- &::before {
77
- transform: translate(50%, -50%) rotate(45deg);
78
- }
79
-
80
- &::after {
81
- transform: translate(50%, -50%) rotate(-45deg);
82
- }
83
- }
84
- }
85
- }
86
-
87
- &.is-inverted {
88
- .tag {
89
- background-color: getColor(getColor('background'));
90
- }
91
- }
92
-
93
- }
94
- }
95
-
96
- .tag {
97
- align-items: center;
98
- background-color: getColor('background');
99
- border-radius: $tag-radius;
100
- color: getColor('font');
101
- display: inline-flex;
102
- font-size: $size-medium;
103
- font-weight: $weight-medium;
104
- height: 28px;
105
- justify-content: center;
106
- line-height: 20px;
107
- padding: $spacing-1 $spacing-2;
108
- white-space: nowrap;
109
-
110
- &.is-small {
111
- font-size: $text-12;
112
- line-height: 15px;
113
- height: 23px;
114
- }
115
-
116
-
117
- @include mobile {
118
- font-size: 12px;
119
- line-height: 15px;
120
- }
121
-
122
- @each $name, $pair in $colors-feedback {
123
- $bg-color: nth($pair, 1);
124
- &.is-#{$name}:not(.is-inverted) {
125
- background-color: getColor($bg-color);
126
- }
127
- &.is-inverted.is-#{$name} {
128
- color: getColor($name);
129
- }
130
- }
131
- }
@@ -1,125 +0,0 @@
1
- .textarea-wrapper {
2
- position: relative;
3
- margin: 16px 0;
4
-
5
- textarea.textarea {
6
- padding: $spacing-4;
7
- border-radius: 4px;
8
- outline: none;
9
-
10
- &::placeholder {
11
- font-size: 16px;
12
- }
13
-
14
- &.has-dynamic-label {
15
- &.has-icon ~ label {
16
- left: $spacing-9;
17
- margin-right: 2px;
18
- width: calc(100% - 96px - 2px);
19
- }
20
-
21
- ~ label {
22
- visibility: visible;
23
- position: absolute;
24
- top: 2px;
25
- left: $spacing-4;
26
- padding-top: $spacing-2;
27
- width: calc(100% - 28px - 2px);
28
- font-size: 12px;
29
- color: getColor('grey');
30
- transition: top 0.2s ease-out;
31
- background-color: getColor('background');
32
- }
33
-
34
- &:placeholder-shown {
35
- ~ label {
36
- visibility: hidden;
37
- top: $spacing-4;
38
- background-color: getColor('background');
39
- transition: none;
40
- }
41
- }
42
-
43
- &:not(:placeholder-shown) {
44
- padding-top: $spacing-5;
45
- }
46
- }
47
-
48
- &:disabled {
49
- background-color: getColor('grey-disabled');
50
- border-color: getColor('grey-disabled');
51
- color: getColor('grey-dark');
52
-
53
- &::placeholder {
54
- color: black;
55
- }
56
-
57
- & ~ span.icon {
58
- color: getColor('grey');
59
- }
60
- }
61
-
62
- &.has-icon {
63
- padding-left: $spacing-9;
64
- padding-right: $spacing-9;
65
-
66
- &:hover,
67
- &:focus,
68
- &:focus-visible {
69
- padding-left: 55px;
70
- padding-right: 55px;
71
- }
72
- }
73
- }
74
-
75
- label {
76
- font-size: 16px;
77
- }
78
-
79
- span.icon {
80
- position: absolute;
81
- top: $spacing-4;
82
-
83
- &:first-of-type {
84
- left: $spacing-4;
85
- }
86
-
87
- &:nth-of-type(2) {
88
- right: $spacing-4;
89
- }
90
- }
91
-
92
- // Colors
93
- @each $name, $pair in $colors-brand-funcionnal {
94
- $color: getColor($name);
95
- $color-invert: invertColor($name);
96
- $brandName: getColorBrandName($name);
97
- &.is-#{$brandName} {
98
- textarea.textarea {
99
- border-color: $color;
100
- &:active,
101
- &:focus,
102
- &:focus-visible {
103
- &:not(:placeholder-shown) {
104
- padding-top: 29px;
105
- }
106
- }
107
- }
108
-
109
- span.icon:nth-of-type(2) {
110
- color: $color;
111
- }
112
- }
113
- }
114
-
115
- .counter {
116
- position: absolute;
117
- bottom: $spacing-2;
118
- right: $spacing-4;
119
- font-size: 10px;
120
- }
121
-
122
- .help ~ .counter {
123
- bottom: $spacing-6;
124
- }
125
- }