@lucca-front/scss 16.0.0 → 16.1.0
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.
- package/dist/lucca-front.min.css +1 -1
- package/package.json +2 -2
- package/src/commons/base.scss +23 -0
- package/src/commons/config.scss +67 -59
- package/src/commons/core.scss +1 -1
- package/src/commons/utils/a11y.scss +9 -0
- package/src/commons/vars.scss +3 -1
- package/src/components/actionIcon/component.scss +8 -9
- package/src/components/actionIcon/index.scss +4 -4
- package/src/components/actionIcon/mods.scss +29 -29
- package/src/components/actionIcon/states.scss +2 -4
- package/src/components/breadcrumbs/component.scss +9 -3
- package/src/components/breadcrumbs/mods.scss +4 -3
- package/src/components/button/component.scss +8 -9
- package/src/components/button/mods.scss +22 -37
- package/src/components/button/states.scss +3 -8
- package/src/components/button/vars.scss +1 -1
- package/src/components/buttonGroup/component.scss +18 -14
- package/src/components/buttonGroup/mods.scss +0 -4
- package/src/components/callout/component.scss +8 -11
- package/src/components/callout/index.scss +4 -0
- package/src/components/callout/mods.scss +9 -3
- package/src/components/checkbox/component.scss +25 -19
- package/src/components/checkbox/index.scss +0 -4
- package/src/components/checkbox/mods.scss +7 -19
- package/src/components/checkbox/states.scss +7 -4
- package/src/components/checkbox/vars.scss +2 -14
- package/src/components/field/component.scss +16 -8
- package/src/components/field/mods.scss +2 -9
- package/src/components/field/states.scss +4 -30
- package/src/components/field/vars.scss +2 -4
- package/src/components/form/vars.scss +1 -1
- package/src/components/gauge/index.scss +0 -4
- package/src/components/gauge/mods.scss +1 -15
- package/src/components/gauge/vars.scss +1 -20
- package/src/components/link/component.scss +8 -3
- package/src/components/link/index.scss +4 -0
- package/src/components/link/mods.scss +8 -0
- package/src/components/progress/component.scss +1 -1
- package/src/components/progress/index.scss +2 -2
- package/src/components/progress/mods.scss +3 -3
- package/src/components/progress/states.scss +2 -6
- package/src/components/progress/vars.scss +1 -1
- package/src/components/radio/component.scss +26 -20
- package/src/components/radio/mods.scss +13 -3
- package/src/components/radio/states.scss +4 -0
- package/src/components/radio/vars.scss +5 -20
- package/src/components/radioButtons/component.scss +12 -32
- package/src/components/radioButtons/index.scss +4 -0
- package/src/components/radioButtons/mods.scss +7 -0
- package/src/components/radioButtons/vars.scss +3 -11
- package/src/components/statusBadge/component.scss +1 -1
- package/src/components/switch/component.scss +26 -18
- package/src/components/switch/index.scss +1 -9
- package/src/components/switch/mods.scss +8 -29
- package/src/components/switch/states.scss +10 -33
- package/src/components/switch/vars.scss +10 -18
- package/src/components/textfield/component.scss +4 -2
- package/src/components/textfield/index.scss +1 -55
- package/src/components/textfield/mods.scss +78 -60
- package/src/components/textfield/states.scss +6 -81
- package/src/components/textfield/vars.scss +2 -6
- package/src/components/title/mods.scss +7 -0
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
@use '@lucca-front/icons/src/commons/utils/icon';
|
|
2
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
2
3
|
|
|
3
4
|
@mixin checked {
|
|
4
5
|
~ .switch-label {
|
|
5
6
|
&::before {
|
|
6
|
-
@include icon.generate('
|
|
7
|
+
@include icon.generate('confirm');
|
|
7
8
|
|
|
8
9
|
display: flex;
|
|
9
|
-
background-color: var(--palettes-700, var(--
|
|
10
|
-
padding-left: var(--components-switch-
|
|
10
|
+
background-color: var(--palettes-700, var(--palettes-primary-700));
|
|
11
|
+
padding-left: var(--components-switch-handler-offset);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
&::after {
|
|
14
|
-
left: calc(
|
|
15
|
+
left: calc(var(--components-switch-width) - var(--components-switch-slider-size) - var(--components-switch-handler-offset));
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -20,17 +21,7 @@
|
|
|
20
21
|
&:not([disabled], [readonly]) {
|
|
21
22
|
~ .switch-label {
|
|
22
23
|
&::before {
|
|
23
|
-
background-color: var(--palettes-600, var(--
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
@mixin checkedFocus {
|
|
29
|
-
&:not([disabled], [readonly]) {
|
|
30
|
-
~ .switch-label {
|
|
31
|
-
&::before {
|
|
32
|
-
background-color: var(--palettes-600, var(--components-switch-default-palette-600));
|
|
33
|
-
box-shadow: 0 0 0 4px var(--palettes-200, var(--components-switch-default-palette-200));
|
|
24
|
+
background-color: var(--palettes-600, var(--palettes-primary-600));
|
|
34
25
|
}
|
|
35
26
|
}
|
|
36
27
|
}
|
|
@@ -40,25 +31,12 @@
|
|
|
40
31
|
&:not([disabled], [readonly]) {
|
|
41
32
|
~ .switch-label {
|
|
42
33
|
&::before {
|
|
43
|
-
background-color: var(--palettes-800, var(--
|
|
44
|
-
box-shadow: 0 0 0 4px var(--palettes-300, var(--components-switch-default-palette-300));
|
|
34
|
+
background-color: var(--palettes-800, var(--palettes-primary-800));
|
|
45
35
|
}
|
|
46
36
|
}
|
|
47
37
|
}
|
|
48
38
|
}
|
|
49
39
|
|
|
50
|
-
@mixin checkedS {
|
|
51
|
-
~ .switch-label {
|
|
52
|
-
&::before {
|
|
53
|
-
font-size: var(--sizes-XS-fontSize);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&::after {
|
|
57
|
-
left: calc(var(--sizes-S-fontSize) - 2px);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
40
|
@mixin hover {
|
|
63
41
|
~ .switch-label {
|
|
64
42
|
&::before {
|
|
@@ -72,7 +50,6 @@
|
|
|
72
50
|
~ .switch-label {
|
|
73
51
|
&::before {
|
|
74
52
|
background-color: var(--palettes-grey-600);
|
|
75
|
-
box-shadow: 0 0 0 4px var(--palettes-grey-300);
|
|
76
53
|
}
|
|
77
54
|
}
|
|
78
55
|
}
|
|
@@ -82,7 +59,7 @@
|
|
|
82
59
|
&:not([disabled], [readonly]) {
|
|
83
60
|
~ .switch-label {
|
|
84
61
|
&::before {
|
|
85
|
-
|
|
62
|
+
@include a11y.focusVisible;
|
|
86
63
|
}
|
|
87
64
|
}
|
|
88
65
|
}
|
|
@@ -94,7 +71,7 @@
|
|
|
94
71
|
cursor: default;
|
|
95
72
|
|
|
96
73
|
&::before {
|
|
97
|
-
background-color: var(--palettes-grey-
|
|
74
|
+
background-color: var(--palettes-grey-100);
|
|
98
75
|
color: var(--palettes-grey-500);
|
|
99
76
|
}
|
|
100
77
|
|
|
@@ -108,7 +85,7 @@
|
|
|
108
85
|
@mixin disabledChecked {
|
|
109
86
|
~ .switch-label {
|
|
110
87
|
&::before {
|
|
111
|
-
background-color: var(--palettes-grey-
|
|
88
|
+
background-color: var(--palettes-grey-100);
|
|
112
89
|
}
|
|
113
90
|
}
|
|
114
91
|
}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
|
-
--components-switch-
|
|
3
|
-
--components-switch-
|
|
4
|
-
--components-switch-
|
|
5
|
-
--components-switch-
|
|
6
|
-
--components-switch-
|
|
7
|
-
--components-switch-
|
|
8
|
-
--components-switch-
|
|
9
|
-
--components-switch-
|
|
10
|
-
--components-switch-
|
|
11
|
-
--components-switch-
|
|
12
|
-
|
|
13
|
-
--components-switch-top: 1px;
|
|
14
|
-
--components-switch-icon-top: 1px;
|
|
15
|
-
--components-switch-icon-left: 2px;
|
|
16
|
-
--components-switch-icon-right: calc(2px + 0.75rem);
|
|
17
|
-
--components-switch-S-top: 2px;
|
|
18
|
-
--components-switch-S-icon-left: 1px;
|
|
19
|
-
--components-switch-S-icon-right: calc(3px + 0.5rem);
|
|
2
|
+
--components-switch-offset-top: 2px;
|
|
3
|
+
--components-switch-handler-offset: 2px;
|
|
4
|
+
--components-switch-height: 1.25rem;
|
|
5
|
+
--components-switch-width: 2.25rem;
|
|
6
|
+
--components-switch-slider-size: 1rem;
|
|
7
|
+
--components-switch-icon-size: var(--sizes-XS-lineHeight);
|
|
8
|
+
--components-switch-lineHeight: var(--sizes-M-lineHeight);
|
|
9
|
+
--components-switch-fontSize: var(--sizes-M-fontSize);
|
|
10
|
+
--components-switch-helper-lineHeight: var(--sizes-S-lineHeight);
|
|
11
|
+
--components-switch-helper-fontSize: var(--sizes-S-fontSize);
|
|
20
12
|
}
|
|
@@ -6,16 +6,17 @@
|
|
|
6
6
|
.textfield-input {
|
|
7
7
|
min-width: 0;
|
|
8
8
|
border: 0;
|
|
9
|
+
box-shadow: 0 0 0 1px var(--palettes-grey-300);
|
|
9
10
|
line-height: var(--sizes-M-lineHeight);
|
|
10
11
|
-webkit-appearance: none;
|
|
11
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--colors-white-color);
|
|
12
13
|
border-radius: var(--components-textfield-border-radius);
|
|
13
14
|
padding: var(--components-textfield-input-padding-vertical) var(--components-textfield-input-padding-horizontal);
|
|
14
15
|
transition-property: box-shadow, background-color, color;
|
|
15
16
|
transition-duration: var(--commons-animations-durations-fast);
|
|
16
17
|
|
|
17
18
|
&::placeholder {
|
|
18
|
-
color: var(--palettes-400
|
|
19
|
+
color: var(--palettes-grey-400);
|
|
19
20
|
transition-property: color;
|
|
20
21
|
transition-duration: var(--commons-animations-durations-fast);
|
|
21
22
|
opacity: 1;
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.textfield-suffix {
|
|
34
|
+
color: var(--palettes-grey-600);
|
|
33
35
|
top: calc(var(--components-textfield-suffix-top) + var(--components-textfield-input-padding-vertical));
|
|
34
36
|
right: var(--components-textfield-input-padding-horizontal);
|
|
35
37
|
position: absolute;
|
|
@@ -51,10 +51,6 @@
|
|
|
51
51
|
@include searchClearableXS;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
&.mod-outlined {
|
|
56
|
-
@include outlinedSearch;
|
|
57
|
-
}
|
|
58
54
|
}
|
|
59
55
|
|
|
60
56
|
&.mod-clearable {
|
|
@@ -89,24 +85,8 @@
|
|
|
89
85
|
}
|
|
90
86
|
}
|
|
91
87
|
|
|
92
|
-
&.mod-white {
|
|
93
|
-
@include white;
|
|
94
|
-
|
|
95
|
-
.textfield-input {
|
|
96
|
-
&:is(:focus) {
|
|
97
|
-
@include whiteInputFocus;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
88
|
&.mod-invert {
|
|
103
89
|
@include invert;
|
|
104
|
-
|
|
105
|
-
.textfield-input {
|
|
106
|
-
&:is(:focus) {
|
|
107
|
-
@include invertInputFocus;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
90
|
}
|
|
111
91
|
|
|
112
92
|
&.mod-radio {
|
|
@@ -271,40 +251,6 @@
|
|
|
271
251
|
@include materialValid;
|
|
272
252
|
}
|
|
273
253
|
}
|
|
274
|
-
|
|
275
|
-
&.mod-outlined {
|
|
276
|
-
@include outlined;
|
|
277
|
-
|
|
278
|
-
&:hover {
|
|
279
|
-
@include outlinedHover;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
&:is(.is-focused, .focused) .textfield-input,
|
|
283
|
-
.textfield-input:is(:focus, .is-focused, .focused) {
|
|
284
|
-
@include outlinedFocus;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.textfield-input {
|
|
288
|
-
&:is(.is-disabled, .disabled, [disabled], .is-readonly, .readonly, [readonly]) {
|
|
289
|
-
&,
|
|
290
|
-
&:is(:focus, .is-focused, .focused) {
|
|
291
|
-
@include outlinedInputDisabled;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
&:is(.is-error, .error, .palette-error) {
|
|
296
|
-
@include outlinedError;
|
|
297
|
-
|
|
298
|
-
&:hover {
|
|
299
|
-
@include outlinedErrorHover;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
&:is(:focus-within) {
|
|
303
|
-
@include outlinedErrorFocus;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
254
|
}
|
|
309
255
|
|
|
310
256
|
.textfield-input {
|
|
@@ -312,7 +258,7 @@
|
|
|
312
258
|
@include inputHover;
|
|
313
259
|
}
|
|
314
260
|
|
|
315
|
-
&:is(:focus, .is-focused, .focused) {
|
|
261
|
+
&:is(:focus-visible, .is-focused, .focused) {
|
|
316
262
|
@include inputFocus;
|
|
317
263
|
}
|
|
318
264
|
}
|
|
@@ -23,27 +23,28 @@
|
|
|
23
23
|
|
|
24
24
|
@mixin clearable {
|
|
25
25
|
.textfield-input {
|
|
26
|
-
padding-right:
|
|
26
|
+
padding-right: 2rem;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.textfield-actionClear {
|
|
30
30
|
text-align: center;
|
|
31
31
|
position: absolute;
|
|
32
|
-
bottom: .
|
|
32
|
+
bottom: .75rem;
|
|
33
33
|
right: var(--spacings-XS);
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
34
|
+
width: 1rem;
|
|
35
|
+
height: 1rem;
|
|
36
36
|
padding: 0;
|
|
37
37
|
line-height: 0;
|
|
38
|
-
|
|
38
|
+
background-color: var(--palettes-grey-700);
|
|
39
|
+
border-radius: 50%;
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
color:
|
|
41
|
+
.lucca-icon {
|
|
42
|
+
font-size: var(--sizes-XS-lineHeight);
|
|
43
|
+
color: white;
|
|
44
|
+
}
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
&:hover {
|
|
47
|
+
background-color: var(--palettes-grey-600) !important;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -81,9 +82,15 @@
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
@mixin S {
|
|
85
|
+
.textfield-label {
|
|
86
|
+
line-height: var(--sizes-S-lineHeight);
|
|
87
|
+
font-size: var(--sizes-S-fontSize);
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
.textfield-input {
|
|
85
|
-
line-height: var(--sizes-
|
|
91
|
+
line-height: var(--sizes-S-lineHeight);
|
|
86
92
|
font-size: var(--sizes-S-fontSize);
|
|
93
|
+
padding: .375rem;
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
.textfield-suffix {
|
|
@@ -97,11 +104,15 @@
|
|
|
97
104
|
}
|
|
98
105
|
|
|
99
106
|
@mixin XS {
|
|
107
|
+
.textfield-label {
|
|
108
|
+
line-height: var(--sizes-XS-lineHeight);
|
|
109
|
+
font-size: var(--sizes-XS-fontSize);
|
|
110
|
+
}
|
|
111
|
+
|
|
100
112
|
.textfield-input {
|
|
101
113
|
line-height: var(--sizes-XS-lineHeight);
|
|
102
114
|
font-size: var(--sizes-XS-fontSize);
|
|
103
|
-
padding
|
|
104
|
-
padding-top: var(--spacings-XXS);
|
|
115
|
+
padding: var(--spacings-XXS);
|
|
105
116
|
}
|
|
106
117
|
|
|
107
118
|
.textfield-suffix {
|
|
@@ -113,6 +124,16 @@
|
|
|
113
124
|
font-size: calc(var(--sizes-XS-fontSize) * 1.25);
|
|
114
125
|
}
|
|
115
126
|
}
|
|
127
|
+
|
|
128
|
+
.textfield-messages {
|
|
129
|
+
font-size: var(--sizes-XS-fontSize);
|
|
130
|
+
line-height: var(--sizes-XS-lineHeight);
|
|
131
|
+
|
|
132
|
+
.lucca-icon {
|
|
133
|
+
font-size: .75rem;
|
|
134
|
+
line-height: var(--sizes-XS-lineHeight);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
116
137
|
}
|
|
117
138
|
|
|
118
139
|
@mixin noLabelXS {
|
|
@@ -152,26 +173,7 @@
|
|
|
152
173
|
}
|
|
153
174
|
}
|
|
154
175
|
|
|
155
|
-
@mixin white {
|
|
156
|
-
.textfield-input {
|
|
157
|
-
background-color: var(--colors-white-color);
|
|
158
|
-
box-shadow: 0 0 0 1px var(--palettes-500, var(--palettes-primary-500)) inset;
|
|
159
|
-
|
|
160
|
-
&::placeholder {
|
|
161
|
-
color: var(--palettes-300, var(--components-textfield-focus-placeholder));
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
176
|
@mixin invert {
|
|
167
|
-
.textfield-input {
|
|
168
|
-
background-color: var(--colors-white-color);
|
|
169
|
-
|
|
170
|
-
&::placeholder {
|
|
171
|
-
color: var(--palettes-300, var(--components-textfield-focus-placeholder));
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
177
|
.textfield-label {
|
|
176
178
|
color: var(--colors-white-color);
|
|
177
179
|
}
|
|
@@ -179,7 +181,11 @@
|
|
|
179
181
|
|
|
180
182
|
@mixin materialSearchBlockClearableInput {
|
|
181
183
|
.textfield-input {
|
|
182
|
-
padding-right:
|
|
184
|
+
padding-right: 3.75rem;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.textfield-actionClear {
|
|
188
|
+
right: 2rem;
|
|
183
189
|
}
|
|
184
190
|
}
|
|
185
191
|
|
|
@@ -187,13 +193,13 @@
|
|
|
187
193
|
&::after {
|
|
188
194
|
@include icon.generate('search');
|
|
189
195
|
|
|
190
|
-
color: var(--palettes-
|
|
196
|
+
color: var(--palettes-grey-600);
|
|
191
197
|
position: absolute;
|
|
192
198
|
pointer-events: none;
|
|
193
199
|
bottom: var(--spacings-XS);
|
|
194
|
-
font-size: var(--sizes-
|
|
200
|
+
font-size: var(--sizes-M-lineHeight);
|
|
195
201
|
line-height: var(--sizes-M-lineHeight);
|
|
196
|
-
right:
|
|
202
|
+
right: var(--spacings-XS);
|
|
197
203
|
}
|
|
198
204
|
|
|
199
205
|
.textfield-input {
|
|
@@ -207,32 +213,39 @@
|
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
215
|
|
|
210
|
-
@mixin outlinedSearch {
|
|
211
|
-
&::after {
|
|
212
|
-
color: var(--palettes-grey-600);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
216
|
@mixin searchClearable {
|
|
217
217
|
.textfield-input {
|
|
218
|
-
padding-right:
|
|
218
|
+
padding-right: 4rem;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.textfield-actionClear {
|
|
222
|
-
right:
|
|
222
|
+
right: 2.5rem;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
@mixin searchS {
|
|
227
227
|
&::after {
|
|
228
|
-
line-height: var(--sizes-
|
|
229
|
-
font-size: var(--sizes-
|
|
228
|
+
line-height: var(--sizes-S-lineHeight);
|
|
229
|
+
font-size: var(--sizes-S-lineHeight);
|
|
230
|
+
bottom: .375rem;
|
|
231
|
+
right: .375rem;
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
@mixin searchClearableS {
|
|
236
|
+
.textfield-input {
|
|
237
|
+
padding-right: 3.5rem;
|
|
238
|
+
}
|
|
239
|
+
|
|
234
240
|
.textfield-actionClear {
|
|
235
|
-
right:
|
|
241
|
+
right: 2.125rem;
|
|
242
|
+
bottom: .625rem;
|
|
243
|
+
width: .75rem;
|
|
244
|
+
height: .75rem;
|
|
245
|
+
|
|
246
|
+
.lucca-icon {
|
|
247
|
+
font-size: .75rem;
|
|
248
|
+
}
|
|
236
249
|
}
|
|
237
250
|
}
|
|
238
251
|
|
|
@@ -241,12 +254,24 @@
|
|
|
241
254
|
line-height: var(--sizes-XS-lineHeight);
|
|
242
255
|
font-size: var(--sizes-XS-lineHeight);
|
|
243
256
|
bottom: var(--spacings-XXS);
|
|
257
|
+
right: var(--spacings-XXS);
|
|
244
258
|
}
|
|
245
259
|
}
|
|
246
260
|
|
|
247
261
|
@mixin searchClearableXS {
|
|
262
|
+
.textfield-input {
|
|
263
|
+
padding-right: 3rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
248
266
|
.textfield-actionClear {
|
|
249
|
-
right: 1.
|
|
267
|
+
right: 1.75rem;
|
|
268
|
+
bottom: .375rem;
|
|
269
|
+
width: .75rem;
|
|
270
|
+
height: .75rem;
|
|
271
|
+
|
|
272
|
+
.lucca-icon {
|
|
273
|
+
font-size: .75rem;
|
|
274
|
+
}
|
|
250
275
|
}
|
|
251
276
|
}
|
|
252
277
|
|
|
@@ -287,6 +312,7 @@
|
|
|
287
312
|
// todo: déplacer dans filters ?
|
|
288
313
|
height: var(--components-filters-height);
|
|
289
314
|
border-radius: 0;
|
|
315
|
+
box-shadow: none;
|
|
290
316
|
|
|
291
317
|
&::after {
|
|
292
318
|
bottom: var(--spacings-XS);
|
|
@@ -357,6 +383,7 @@
|
|
|
357
383
|
padding: var(--components-field-framed-top-padding) var(--components-field-framed-side-padding)
|
|
358
384
|
var(--components-field-framed-bottom-padding);
|
|
359
385
|
line-height: var(--sizes-M-lineHeight);
|
|
386
|
+
outline: none;
|
|
360
387
|
|
|
361
388
|
&:not(:disabled, .is-error, .is-success, .is-valid, .is-warning, .is-invalid) {
|
|
362
389
|
background-color: var(--colors-white-color);
|
|
@@ -371,6 +398,8 @@
|
|
|
371
398
|
top: 0;
|
|
372
399
|
z-index: 10;
|
|
373
400
|
line-height: var(--sizes-M-lineHeight);
|
|
401
|
+
font-size: var(--sizes-S-fontSize);
|
|
402
|
+
color: var(--palettes-grey-600);
|
|
374
403
|
}
|
|
375
404
|
|
|
376
405
|
.textfield-messages,
|
|
@@ -556,14 +585,3 @@
|
|
|
556
585
|
padding-right: var(--spacings-M);
|
|
557
586
|
}
|
|
558
587
|
}
|
|
559
|
-
|
|
560
|
-
@mixin outlined {
|
|
561
|
-
.textfield-input {
|
|
562
|
-
box-shadow: inset 0 0 0 var(--components-textfield-outlined-border-width) var(--components-textfield-outlined-border-default-color);
|
|
563
|
-
background-color: var(--colors-white-color);
|
|
564
|
-
|
|
565
|
-
&::placeholder {
|
|
566
|
-
color: var(--palettes-grey-400);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
@use '@lucca-front/scss/src/commons/utils/form';
|
|
2
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
2
3
|
|
|
3
4
|
@mixin inputHover {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
&::placeholder {
|
|
7
|
-
color: var(--palettes-400, var(--components-textfield-hover-placeholder));
|
|
8
|
-
}
|
|
5
|
+
box-shadow: 0 0 0 1px var(--palettes-grey-400);
|
|
9
6
|
}
|
|
10
7
|
|
|
11
8
|
@mixin inputFocus {
|
|
12
|
-
|
|
13
|
-
box-shadow: 0 0 0 4px var(--palettes-200, var(--components-textfield-focus-shadow-color)),
|
|
14
|
-
inset 0 0 0 1px var(--palettes-600, var(--components-textfield-focus-border-color));
|
|
15
|
-
|
|
16
|
-
&::placeholder {
|
|
17
|
-
color: var(--palettes-300, var(--components-textfield-focus-placeholder));
|
|
18
|
-
}
|
|
9
|
+
@include a11y.focusVisible($offset: 3px);
|
|
19
10
|
}
|
|
20
11
|
|
|
21
12
|
@mixin inputDisabled {
|
|
22
13
|
background-color: var(--components-textfield-disabled-background);
|
|
23
14
|
color: var(--components-textfield-disabled-color);
|
|
24
|
-
box-shadow:
|
|
15
|
+
box-shadow: 0 0 0 1px var(--palettes-grey-300);
|
|
25
16
|
cursor: default;
|
|
26
17
|
|
|
27
18
|
&::placeholder {
|
|
@@ -34,22 +25,6 @@
|
|
|
34
25
|
}
|
|
35
26
|
}
|
|
36
27
|
|
|
37
|
-
@mixin whiteInputFocus {
|
|
38
|
-
box-shadow: 0 0 0 4px var(--palettes-primary-200), 0 0 0 1px var(--palettes-primary-500) inset;
|
|
39
|
-
|
|
40
|
-
&::placeholder {
|
|
41
|
-
color: var(--palettes-300, var(--components-textfield-focus-placeholder));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@mixin invertInputFocus {
|
|
46
|
-
box-shadow: 0 0 0 4px var(--palettes-primary-700), 0 0 0 1px var(--palettes-primary-500) inset;
|
|
47
|
-
|
|
48
|
-
&::placeholder {
|
|
49
|
-
color: var(--palettes-300, var(--components-textfield-focus-placeholder));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
28
|
@mixin filterHover {
|
|
54
29
|
background-color: var(--commons-background-base);
|
|
55
30
|
}
|
|
@@ -186,6 +161,8 @@
|
|
|
186
161
|
}
|
|
187
162
|
|
|
188
163
|
@mixin materialInputFocus {
|
|
164
|
+
outline: none;
|
|
165
|
+
|
|
189
166
|
&::placeholder {
|
|
190
167
|
opacity: 1;
|
|
191
168
|
}
|
|
@@ -242,58 +219,6 @@
|
|
|
242
219
|
}
|
|
243
220
|
}
|
|
244
221
|
|
|
245
|
-
@mixin outlinedHover {
|
|
246
|
-
.textfield-input {
|
|
247
|
-
&:not(.is-disabled, .disabled, [disabled], [readonly], .is-readonly, .readonly) {
|
|
248
|
-
box-shadow: inset 0 0 0 var(--components-textfield-outlined-border-width) var(--palettes-400, var(--palettes-grey-400));
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@mixin outlinedFocus {
|
|
254
|
-
&:not(.is-disabled, .disabled, [disabled], [readonly], .is-readonly, .readonly) {
|
|
255
|
-
background-color: var(--colors-white-color);
|
|
256
|
-
box-shadow: 0 0 0 4px var(--palettes-200, var(--palettes-primary-200)),
|
|
257
|
-
inset 0 0 0 var(--components-textfield-outlined-border-width) var(--palettes-600, var(--palettes-primary-600));
|
|
258
|
-
|
|
259
|
-
&::placeholder {
|
|
260
|
-
color: var(--palettes-grey-300);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
@mixin outlinedError {
|
|
266
|
-
&:not(.is-disabled, .disabled, [disabled], [readonly], .is-readonly, .readonly) {
|
|
267
|
-
background-color: var(--palettes-error-50);
|
|
268
|
-
box-shadow: inset 0 0 0 var(--components-textfield-outlined-border-width) var(--palettes-error-600);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
@mixin outlinedErrorHover {
|
|
273
|
-
&:not(.is-disabled, .disabled, [disabled], [readonly], .is-readonly, .readonly) {
|
|
274
|
-
background-color: var(--palettes-error-100);
|
|
275
|
-
box-shadow: inset 0 0 0 var(--components-textfield-outlined-border-width) var(--palettes-error-600);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
@mixin outlinedErrorFocus {
|
|
280
|
-
&:not(.is-disabled, .disabled, [disabled], [readonly], .is-readonly, .readonly) {
|
|
281
|
-
background-color: var(--colors-white-color);
|
|
282
|
-
box-shadow: 0 0 0 4px var(--palettes-error-200), inset 0 0 0 1px var(--palettes-error-700);
|
|
283
|
-
|
|
284
|
-
&::placeholder {
|
|
285
|
-
color: var(--palettes-error-300);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
@mixin outlinedInputDisabled {
|
|
291
|
-
background-color: var(--components-textfield-disabled-background);
|
|
292
|
-
color: var(--components-textfield-disabled-color);
|
|
293
|
-
box-shadow: inset 0 0 0 var(--components-textfield-outlined-border-width) var(--components-textfield-outlined-border-default-color);
|
|
294
|
-
cursor: default;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
222
|
@mixin entryHover {
|
|
298
223
|
background-color: var(--palettes-primary-50);
|
|
299
224
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@mixin vars {
|
|
2
|
-
--components-textfield-background: var(--palettes-primary-50);
|
|
3
2
|
--components-textfield-border-radius: 4px;
|
|
4
3
|
--components-textfield-input-padding-horizontal: var(--spacings-XS);
|
|
5
4
|
--components-textfield-input-padding-vertical: var(--spacings-XS);
|
|
@@ -11,8 +10,8 @@
|
|
|
11
10
|
--components-textfield-focus-border-color: var(--palettes-primary-600);
|
|
12
11
|
--components-textfield-disabled-background: var(--commons-disabled-background);
|
|
13
12
|
--components-textfield-disabled-color: var(--palettes-grey-600);
|
|
14
|
-
--components-textfield-suffix-top: 1.
|
|
15
|
-
--components-textfield-suffix-padding-right: var(--spacings-
|
|
13
|
+
--components-textfield-suffix-top: 1.75rem;
|
|
14
|
+
--components-textfield-suffix-padding-right: var(--spacings-L);
|
|
16
15
|
--components-textfield-sizes-shortest: 3rem;
|
|
17
16
|
--components-textfield-sizes-shorter: 6rem;
|
|
18
17
|
--components-textfield-sizes-short: 9rem;
|
|
@@ -38,8 +37,5 @@
|
|
|
38
37
|
--components-textfield-compact-label-sizes-long: 9rem;
|
|
39
38
|
--components-textfield-compact-label-sizes-longer: 11rem;
|
|
40
39
|
|
|
41
|
-
--components-textfield-outlined-border-width: 1px;
|
|
42
|
-
--components-textfield-outlined-border-default-color: var(--palettes-grey-200);
|
|
43
|
-
|
|
44
40
|
--components-textfield-filter-width: 18rem;
|
|
45
41
|
}
|
|
@@ -2,40 +2,47 @@
|
|
|
2
2
|
--sizes-verticalPadding: var(--sizes-XXXL-verticalPadding);
|
|
3
3
|
--sizes-fontSize: var(--sizes-XXXL-fontSize);
|
|
4
4
|
--sizes-lineHeight: var(--sizes-XXXL-lineHeight);
|
|
5
|
+
--components-title-weight: 900;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
@mixin h1 {
|
|
8
9
|
--sizes-verticalPadding: var(--sizes-XXL-verticalPadding);
|
|
9
10
|
--sizes-fontSize: var(--sizes-XXL-fontSize);
|
|
10
11
|
--sizes-lineHeight: var(--sizes-XXL-lineHeight);
|
|
12
|
+
--components-title-weight: 900;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
@mixin h2 {
|
|
14
16
|
--sizes-verticalPadding: var(--sizes-XL-verticalPadding);
|
|
15
17
|
--sizes-fontSize: var(--sizes-XL-fontSize);
|
|
16
18
|
--sizes-lineHeight: var(--sizes-XL-lineHeight);
|
|
19
|
+
--components-title-weight: 700;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
@mixin h3 {
|
|
20
23
|
--sizes-verticalPadding: var(--sizes-L-verticalPadding);
|
|
21
24
|
--sizes-fontSize: var(--sizes-L-fontSize);
|
|
22
25
|
--sizes-lineHeight: var(--sizes-L-lineHeight);
|
|
26
|
+
--components-title-weight: 700;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
@mixin h4 {
|
|
26
30
|
--sizes-verticalPadding: var(--sizes-M-verticalPadding);
|
|
27
31
|
--sizes-fontSize: var(--sizes-M-fontSize);
|
|
28
32
|
--sizes-lineHeight: var(--sizes-M-lineHeight);
|
|
33
|
+
--components-title-weight: 600;
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
@mixin h5 {
|
|
32
37
|
--sizes-verticalPadding: var(--sizes-S-verticalPadding);
|
|
33
38
|
--sizes-fontSize: var(--sizes-S-fontSize);
|
|
34
39
|
--sizes-lineHeight: var(--sizes-S-lineHeight);
|
|
40
|
+
--components-title-weight: 600;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
@mixin h6 {
|
|
38
44
|
--sizes-verticalPadding: var(--sizes-XS-verticalPadding);
|
|
39
45
|
--sizes-fontSize: var(--sizes-XS-fontSize);
|
|
40
46
|
--sizes-lineHeight: var(--sizes-XS-lineHeight);
|
|
47
|
+
--components-title-weight: 600;
|
|
41
48
|
}
|