@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,131 @@
1
+ $status-select: (
2
+ 'success', 'error'
3
+ );
4
+
5
+ .select {
6
+ position: relative;
7
+ input { cursor: pointer }
8
+
9
+ select {
10
+ width: 100%;
11
+ @include input;
12
+ padding-right: 40px;
13
+ text-overflow: ellipsis;
14
+
15
+ &:focus {
16
+ padding-left: 15px !important;
17
+ }
18
+
19
+ // to prevent user agent style
20
+ &:disabled {
21
+ opacity: 1 !important;
22
+ }
23
+
24
+ @each $name in $status-select {
25
+ $color: getColor($name);
26
+ $color-invert: invertColor($name);
27
+ $brandName: getColorBrandName($name);
28
+
29
+ &.is-#{$brandName} {
30
+ border: 1px solid $color;
31
+ }
32
+ }
33
+ }
34
+
35
+ .has-icons-left {
36
+ select {
37
+ padding-left: 45px;
38
+
39
+ &:focus {
40
+ padding-left: 44px !important;
41
+ }
42
+ }
43
+ }
44
+
45
+ &-options {
46
+ box-shadow: 0 0 8px #0000001a;
47
+ border-radius: 4px;
48
+ overflow: hidden;
49
+ position: absolute;
50
+ z-index: 1001;
51
+ left: 0;
52
+ right: 0;
53
+ margin-top: 8px;
54
+ }
55
+
56
+
57
+ .field {
58
+ margin-bottom: 0 !important;
59
+ .control {
60
+ position: relative;
61
+ &:after {
62
+ @include arrow();
63
+ right: 12px;
64
+ top: 50%;
65
+ transform: translate(-50%, -50%);
66
+ transition: transform 0.3s;
67
+ min-width: 20px;
68
+ min-height: 20px;
69
+ mask-size: 20px;
70
+ pointer-events: none;
71
+ }
72
+ }
73
+
74
+ &.focus .control {
75
+ &:after {
76
+ transform: rotate(180deg) translate(50%, 50%);
77
+ }
78
+ }
79
+ }
80
+
81
+
82
+ &-trilogy_modal_open {
83
+ position: fixed;
84
+ top: 0;
85
+ left: 0;
86
+ right: 0;
87
+ bottom: 0;
88
+ z-index: 1000;
89
+ }
90
+
91
+ .select-options {
92
+ background-color: getColor('background');
93
+
94
+ li.option {
95
+ padding: $spacing-3 $spacing-4;
96
+ cursor: pointer;
97
+ display: flex;
98
+ gap: $spacing-2;
99
+ @include hover;
100
+
101
+ &.is-disabled {
102
+ color: getColor('disabled');
103
+ background-color: getColor('disabled-fade');
104
+ cursor: not-allowed;
105
+ }
106
+
107
+ &[data-selected="true"] {
108
+ font-weight: $weight-black;
109
+
110
+ &:after {
111
+ content: "" !important;
112
+ mask-image: url('./assets/icons/all/check.svg') !important;
113
+ background-color: getColor('main') !important;
114
+ mask-size: 18px !important;
115
+ right: 18px !important;
116
+ height: 18px !important;
117
+ width: 18px !important;
118
+ position: absolute;
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ &-options-top {
125
+ top: auto;
126
+ bottom: 100%;
127
+ overflow-y: scroll;
128
+ }
129
+ }
130
+
131
+
@@ -143,20 +143,36 @@
143
143
  font-weight: 400;
144
144
  font-size: 16px;
145
145
  line-height: 24px;
146
- padding-top: $spacing-2;
147
146
  gap: $spacing-1;
148
147
  .icon {
149
148
  font-size: 20px;
150
149
  height: auto;
151
150
  }
151
+ }
152
152
 
153
- @include touch {
154
- position: absolute;
155
- top: 10px;
156
- left: 0;
157
- }
153
+ .stepper-wrapper > .stepper-item > .step-label {
154
+ padding-top: $spacing-2;
155
+ @include touch {
156
+ position: absolute;
157
+ top: 10px;
158
+ left: 0;
159
+ }
158
160
  }
159
161
 
162
+ .stepper-container > .stepper-content > .step-label {
163
+ transition: opacity 0.3s ease-in-out;
164
+ animation: fadeInLabel 0.4s ease-out;
165
+ }
166
+
167
+ .stepper-content {
168
+ margin-bottom: $spacing-3 !important;
169
+ }
170
+
171
+ .stepper-steps {
172
+ margin-bottom: $spacing-2 !important;
173
+ }
174
+
175
+
160
176
  @include desktop {
161
177
  .step-count {
162
178
  display: none;
@@ -180,6 +196,20 @@
180
196
  display: none;
181
197
  }
182
198
  }
199
+
200
+ .stepper-container > .stepper-steps {
201
+ font-size: 12px !important;
202
+ line-height: 18px !important;
203
+ }
204
+
205
+ .stepper-container > .stepper-content > .step-label {
206
+ font-size: 14px !important;
207
+ line-height: 18px !important;
208
+ }
209
+
210
+ .stepper-container > .stepper-content > .icon {
211
+ font-size: 16px !important;
212
+ }
183
213
  }
184
214
 
185
215
  @include tablet-only {
@@ -194,9 +224,9 @@
194
224
 
195
225
  .stepper-item:not(.is-current) {
196
226
  display: flex;
197
-
227
+
198
228
  .step-label {
199
- display: none;
229
+ display: none;
200
230
  }
201
231
  }
202
232
  }
@@ -204,7 +234,7 @@
204
234
 
205
235
  @keyframes progress {
206
236
  0%, 100% {
207
- background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral-fade') 50%, getColor('neutral-fade') 100%);
237
+ background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
208
238
  }
209
239
  0% {
210
240
  background-position: 100% 0;
@@ -214,4 +244,11 @@
214
244
  }
215
245
  }
216
246
 
217
-
247
+ @keyframes fadeInLabel {
248
+ 0% {
249
+ opacity: 0;
250
+ }
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ }
@@ -9,18 +9,34 @@ $sticker-height: 35px;
9
9
  color: getColor('background') !important;
10
10
  line-height: 20px;
11
11
  flex-shrink: 0;
12
- background-color: getColor('font');
12
+ background-color: getColor('main');
13
13
  font-weight: 600;
14
+ max-height: 36px;
15
+
16
+ .icon {
17
+ font-size: 20px;
18
+ width: auto;
19
+ height: auto;
20
+ margin-right: $spacing-2;
21
+ }
22
+
23
+ &.is-small {
24
+ .icon {
25
+ margin-right: $spacing-1;
26
+ }
27
+ }
14
28
 
15
29
  &:not(.is-hat) {
16
30
  width: fit-content;
17
-
18
31
  @include mobile {
19
32
  font-size: 12px;
20
33
  padding: $spacing-1 $spacing-2;
21
34
  height: auto;
22
35
  line-height: 15px;
23
-
36
+ .icon {
37
+ font-size: 16px;
38
+ margin-right: $spacing-1;
39
+ }
24
40
  }
25
41
  }
26
42
 
@@ -47,7 +63,11 @@ $sticker-height: 35px;
47
63
  padding: $spacing-1 $spacing-2;
48
64
  height: auto;
49
65
  line-height: 15px;
50
-
66
+ .icon {
67
+ font-size: 16px;
68
+ height: 15px;
69
+ margin-right: $spacing-1;
70
+ }
51
71
  }
52
72
 
53
73
  // deprecated
@@ -8,8 +8,13 @@
8
8
  }
9
9
 
10
10
  input {
11
- display: none;
11
+ opacity: 0;
12
+ position: absolute;
13
+ outline: none;
12
14
 
15
+ &:focus-visible ~ label:before{
16
+ outline: 2px solid;
17
+ }
13
18
  &:disabled ~ label,
14
19
  &:disabled:checked ~ label {
15
20
  cursor: not-allowed;
@@ -21,14 +26,14 @@
21
26
 
22
27
  &:disabled ~ label {
23
28
  &:after {
24
- $colorSvg: encodecolor(getColorValue('disabled'));
29
+ $colorSvg: encodecolor(getColor('disabled'));
25
30
  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>');
26
31
  }
27
32
  }
28
33
 
29
34
  &:disabled:checked ~ label {
30
35
  &:after {
31
- $colorSvg: encodecolor(getColorValue('disabled'));
36
+ $colorSvg: encodecolor(getColor('disabled'));
32
37
  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>');
33
38
  }
34
39
  }
@@ -55,7 +60,7 @@
55
60
  }
56
61
 
57
62
  &:after {
58
- $colorSvg: encodecolor(getColorValue('neutral'));
63
+ $colorSvg: encodecolor(getColor('neutral'));
59
64
  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>');
60
65
  position: absolute;
61
66
  top: 50%;
@@ -64,7 +69,7 @@
64
69
  border-radius: 9999px;
65
70
  width: 18px;
66
71
  height: 18px;
67
- background-color: getColorValue('background');
72
+ background-color: getColor('background');
68
73
  transition: 0.3s;
69
74
  }
70
75
  }
@@ -74,14 +79,14 @@
74
79
  font-weight: bold;
75
80
 
76
81
  &:before {
77
- background-color: getColorValue('main');
82
+ background-color: getColor('main');
78
83
  }
79
84
 
80
85
  &:after {
81
86
  right: 2px;
82
- $colorSvg: encodecolor(getColorValue('main'));
87
+ $colorSvg: encodecolor(getColor('main'));
83
88
  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>');
84
- background-color: getColorValue('background');
89
+ background-color: getColor('background');
85
90
  }
86
91
  }
87
92
  }
@@ -26,7 +26,7 @@
26
26
 
27
27
  td,
28
28
  th {
29
- border: 1px solid getColor('neutral-fade');
29
+ border: 1px solid #{getColor('stroke-fade')};
30
30
  border-width: 0;
31
31
  padding: 20px;
32
32
  vertical-align: top;
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  td {
74
- border-bottom: 1px solid getColor('neutral-fade');
74
+ border-bottom: 1px solid #{getColor('stroke-fade')};
75
75
 
76
76
  > p {
77
77
  margin: 0;
@@ -89,7 +89,6 @@
89
89
 
90
90
  td,
91
91
  th {
92
- border-color: currentColor;
93
92
  color: currentColor;
94
93
  }
95
94
  }
@@ -154,15 +153,15 @@
154
153
  }
155
154
 
156
155
  &.has-border-all {
157
- border: 1px solid getColor('neutral-fade');
156
+ border: 1px solid #{getColor('stroke-fade')};
158
157
 
159
158
  th {
160
- border-right: 1px solid getColor('neutral-fade');
159
+ border-right: 1px solid #{getColor('stroke-fade')};
161
160
  }
162
161
 
163
162
  td {
164
163
  &:not(:last-child) {
165
- border-right: 1px solid getColor('neutral-fade');
164
+ border-right: 1px solid #{getColor('stroke-fade')};
166
165
  }
167
166
  }
168
167
  }
@@ -170,13 +169,13 @@
170
169
  &.has-border-inner {
171
170
  th {
172
171
  &:not(:last-child) {
173
- border-right: 1px solid getColor('neutral-fade');
172
+ border-right: 1px solid #{getColor('stroke-fade')};
174
173
  }
175
174
  }
176
175
 
177
176
  td {
178
177
  &:not(:last-child) {
179
- border-right: 1px solid getColor('neutral-fade');
178
+ border-right: 1px solid #{getColor('stroke-fade')};
180
179
  }
181
180
  }
182
181
  }
@@ -205,7 +204,7 @@
205
204
  .subtable {
206
205
  background-color: getColor('neutral-fade');
207
206
  border-radius: var(--radius);
208
- padding: $box-padding * 2;
207
+ padding: 25px;
209
208
 
210
209
  @include mobile() {
211
210
  padding: 15px;
@@ -216,7 +215,7 @@
216
215
 
217
216
  tr:not(:first-child) {
218
217
  td {
219
- border-top: 1px solid getColor('neutral');
218
+ border-top: 1px solid #{getColor('stroke-fade')};
220
219
  }
221
220
  }
222
221
 
@@ -1,3 +1,7 @@
1
+ $height-tab-default: 64px;
2
+ $height-arrow-default:48px;
3
+ $height-arrow-small:30px;
4
+
1
5
  .tabs {
2
6
  @include overflow-touch;
3
7
  @include unselectable;
@@ -7,18 +11,33 @@
7
11
  font-weight: $weight-normal;
8
12
  width: 100%;
9
13
  text-align: center;
10
- overflow: scroll;
11
- overflow: -moz-scrollbars-none !important;
12
- -ms-overflow-style: none !important;
13
- scrollbar-width: none;
14
+ overflow: hidden;
15
+ position: relative;
16
+
17
+
18
+ .arrow-prev, .arrow-next {
19
+ z-index: 1;
20
+ height: 44px;
21
+ position: absolute;
22
+ top: 0px;
23
+ transition: opacity 0.3s ease;
24
+ opacity: 1;
25
+ background-color: getColor('background');
26
+ }
14
27
 
15
- @include mobile {
16
- text-align: left;
28
+ .arrow-prev {
29
+ left: 0px;
30
+ }
31
+
32
+ .arrow-next {
33
+ right: 0px;
17
34
  }
18
35
 
36
+
19
37
  &::-webkit-scrollbar {
20
38
  width: 0 !important;
21
39
  height: 0 !important;
40
+ scrollbar-width: none !important;
22
41
  }
23
42
 
24
43
  &.is-inverted {
@@ -41,6 +60,11 @@
41
60
  }
42
61
 
43
62
  }
63
+
64
+ .arrow-prev, .arrow-next {
65
+ background-color: getColor('font');
66
+ }
67
+
44
68
  }
45
69
 
46
70
  &:has(.tab-list.is-aligned-start) {
@@ -56,7 +80,14 @@
56
80
  height: 48px;
57
81
  overflow-x: auto;
58
82
  white-space: nowrap;
59
- display: inline-flex;
83
+ overflow-y: hidden;
84
+ max-width: 100%;
85
+
86
+ &::-webkit-scrollbar {
87
+ width: 0 !important;
88
+ height: 0 !important;
89
+ scrollbar-width: none !important;
90
+ }
60
91
 
61
92
  &.is-fullwidth {
62
93
  @include desktop {
@@ -73,54 +104,46 @@
73
104
 
74
105
  @include mobile {
75
106
  justify-content: flex-start;
76
- > .tab:first-child {
77
- margin-left: 24px;
78
- }
79
107
  }
80
108
 
81
109
  &:has(.tab .icon) {
82
110
  height: 64px;
111
+ .arrow-prev, .arrow-next {
112
+ height: 60px;
113
+ }
83
114
  }
84
115
 
85
116
  > .tab {
117
+ display: inline-block;
118
+ line-height: normal;
119
+ font-family: $family-primary;
86
120
  height: calc(100% - 4px);
87
121
  background-color: transparent;
88
122
  color: getColor('font');
89
123
  text-decoration: none;
90
124
  outline: none;
91
- padding: 6px 14px;
92
- font-size: $text-14;
93
- @include desktop {
94
- font-size: $text-16;
95
- }
125
+ padding: 12px 24px;
126
+ font-size: $text-16;
96
127
  border: 0px solid transparent;
97
- border-bottom: 2px solid transparent;
128
+ border-bottom: 1px solid getColor('neutral');
98
129
 
99
130
  .tab-icon {
100
131
  margin-top: 2px;
101
132
  }
102
133
 
103
- &:not(button) {
104
- .tab-icon {
105
- margin-top: 4px;
106
- }
107
- }
108
-
109
- @include mobile {
110
- font-size: $text-14;
111
- }
112
-
113
134
  &.is-active {
114
135
  color: getColor('main');
115
136
  position: relative;
116
137
  border-bottom-color: getColor('main');
117
- font-weight: $weight-medium;
138
+ font-weight: $weight-bold;
139
+ border-bottom-width: 2px;
118
140
  }
119
141
 
120
- &:hover:not(.is-disabled) {
142
+ &:hover:not([disabled]) {
121
143
  color: getColor('main');
122
144
  border-bottom-color: currentColor;
123
145
  cursor: pointer;
146
+ border-bottom-width: 2px;
124
147
 
125
148
  .icon.is-small [class^=tri-]::before, .icon.is-small [class*=" tri-"]::before {
126
149
  font-size: 22px !important;
@@ -143,11 +166,32 @@
143
166
 
144
167
  &[disabled], &[aria-disabled=true] {
145
168
  background-color: transparent !important;
169
+ border-bottom-color: getColor('neutral') !important;
170
+ &.is-active{
171
+ border-bottom-color: currentColor !important;
172
+ }
146
173
  }
174
+ }
175
+ }
176
+
177
+ &.is-fullwidth .tab-list {
178
+ display: flex;
179
+ > .tab {
180
+ flex:1;
181
+ }
182
+ }
183
+
184
+ &.is-small{
147
185
 
186
+ .tab-list {
187
+ & > .tab {
188
+ font-size: $text-14 ;
189
+ padding: 12px 16px;
190
+ }
148
191
  }
149
192
  }
150
193
 
194
+
151
195
  .tab-panels {
152
196
  padding-top: $spacing-3;
153
197
  padding-bottom: $spacing-3;
@@ -156,6 +200,13 @@
156
200
  transition: opacity 2s ease-in-out;
157
201
  transition-delay: 1s;
158
202
 
203
+ * {
204
+ -webkit-user-select: text;
205
+ -moz-user-select: text;
206
+ -ms-user-select: text;
207
+ user-select: text;
208
+ }
209
+
159
210
  &:not(.is-active) {
160
211
  display: none;
161
212
  }
@@ -6,23 +6,8 @@ $tag-delete-margin: 1px !default;
6
6
  justify-content: flex-start;
7
7
  align-items: center;
8
8
  flex-wrap: wrap;
9
- margin-bottom: 16px;
10
-
11
- // multi-tags : ajout d'une marge bottom, supprimable par facette
12
- &:not(.is-gapless) {
13
- &:not(:last-child) {
14
- margin-right: 8px;
15
- }
16
-
17
- .tag {
18
- margin-bottom: 10px;
19
- }
20
- }
21
-
9
+ gap: $spacing-3;
22
10
  // multi-tags : ajout d'une marge à droite de chaque tag
23
- .tag:not(:last-child) {
24
- margin-right: 8px;
25
- }
26
11
 
27
12
  // centrage des tags
28
13
  &.is-centered {
@@ -34,7 +19,6 @@ $tag-delete-margin: 1px !default;
34
19
  cursor: pointer;
35
20
 
36
21
  .tag {
37
- margin-right: 0;
38
22
 
39
23
  &:not(:first-child) {
40
24
  border-bottom-left-radius: 0;
@@ -1,16 +1,4 @@
1
- $text-levels: (
2
- ($text-16, $text-20, $text-16),
3
- ($text-14, $text-18, $text-16),
4
- ($text-12, $text-15, $text-16),
5
- ($text-10, $text-12, $text-16)
6
- );
7
- $text-levels-mobile: (
8
- ($text-16, $text-20, $text-8),
9
- ($text-14, $text-18, $text-8),
10
- ($text-12, $text-15, $text-8),
11
- ($text-10, $text-12, $text-8)
12
- );
13
-
1
+ @import "../utilities/variables/_font.scss";
14
2
 
15
3
  .text {
16
4
  @each $text-level in $text-levels {
@@ -0,0 +1,46 @@
1
+ .textarea-wrapper {
2
+
3
+ .textarea-label {
4
+ display: inline-block;
5
+ margin-bottom: 6px;
6
+ }
7
+
8
+ .textarea-sample {
9
+ margin-bottom: 10px !important;
10
+ }
11
+
12
+ textarea.textarea {
13
+ &::placeholder, label {
14
+ font-size: 16px;
15
+ }
16
+ }
17
+
18
+ .icon {
19
+ align-items: flex-start !important;
20
+ padding-top: 18px !important;
21
+ }
22
+
23
+ // Colors
24
+ @each $name, $pair in $colors-brand-functionnal {
25
+ $color: getColor($name);
26
+ $color-invert: invertColor($name);
27
+ $brandName: getColorBrandName($name);
28
+ &.is-#{$brandName} {
29
+ textarea.textarea {
30
+ border-color: $color;
31
+ }
32
+
33
+ }
34
+ }
35
+
36
+ .counter {
37
+ position: absolute;
38
+ bottom: $spacing-2;
39
+ right: $spacing-4;
40
+ font-size: 10px;
41
+ }
42
+
43
+ .help ~ .counter {
44
+ bottom: $spacing-6;
45
+ }
46
+ }