@swisspost/design-system-styles 6.2.0 → 6.2.1
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/components/floating-label.scss +8 -10
- package/components/forms.scss +10 -32
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/package.json +10 -11
- package/placeholders/badge.scss +1 -0
- package/variables/components/_badge.scss +3 -2
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
border: 0;
|
|
28
28
|
color: forms.$form-floating-label-color;
|
|
29
29
|
font-size: forms.$form-floating-label-font-size;
|
|
30
|
+
width: auto;
|
|
30
31
|
max-width: calc(100% - (forms.$input-border-width * 2));
|
|
31
32
|
white-space: nowrap;
|
|
32
33
|
overflow: hidden;
|
|
@@ -39,21 +40,11 @@
|
|
|
39
40
|
// disable stylelint here, because the classes are coming from bs5
|
|
40
41
|
@extend .form-control-lg; /* stylelint-disable-line */
|
|
41
42
|
|
|
42
|
-
&[type='file']::file-selector-button {
|
|
43
|
-
padding-top: forms.$form-floating-input-padding-t +
|
|
44
|
-
((forms.$form-floating-line-height - 1) * 0.5);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
43
|
&:focus,
|
|
48
44
|
&:not(:placeholder-shown) {
|
|
49
45
|
padding-top: forms.$form-floating-input-padding-t;
|
|
50
46
|
padding-bottom: forms.$form-floating-input-padding-b;
|
|
51
47
|
|
|
52
|
-
&[type='file']::file-selector-button {
|
|
53
|
-
padding-top: forms.$form-floating-input-padding-t +
|
|
54
|
-
((forms.$form-floating-line-height - 1) * 0.5);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
48
|
~ label {
|
|
58
49
|
padding-top: 0.7rem;
|
|
59
50
|
max-width: calc(
|
|
@@ -64,6 +55,13 @@
|
|
|
64
55
|
transition: forms.$form-floating-transition-in;
|
|
65
56
|
}
|
|
66
57
|
}
|
|
58
|
+
|
|
59
|
+
&[type='file'] {
|
|
60
|
+
&:focus,
|
|
61
|
+
&:not(:placeholder-shown) {
|
|
62
|
+
padding-top: forms.$form-floating-input-padding-t * 1.33;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
> .form-select {
|
package/components/forms.scss
CHANGED
|
@@ -31,46 +31,24 @@ select.form-control-rg:not([size]):not([multiple]) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&[type='file'] {
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
34
36
|
min-height: calc(
|
|
35
37
|
(1rem * forms.$input-line-height) + (forms.$input-padding-y * 2) +
|
|
36
38
|
(forms.$input-border-width * 2)
|
|
37
39
|
);
|
|
38
40
|
|
|
39
41
|
&::file-selector-button {
|
|
40
|
-
|
|
41
|
-
margin-inline-end: 0;
|
|
42
|
-
padding-left: 0;
|
|
43
|
-
padding-right: 0;
|
|
44
|
-
width: 0;
|
|
45
|
-
border: 0 none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&::after {
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
content: 'Choose File';
|
|
42
|
+
display: block;
|
|
52
43
|
position: absolute;
|
|
53
44
|
top: 0;
|
|
54
45
|
bottom: 0;
|
|
55
46
|
right: 0;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
padding-right: inherit;
|
|
47
|
+
margin-inline: 0;
|
|
48
|
+
height: auto;
|
|
59
49
|
background-color: inherit;
|
|
50
|
+
border-right: 0 none;
|
|
60
51
|
border-left: inherit;
|
|
61
|
-
text-align: center;
|
|
62
|
-
|
|
63
|
-
[lang='de'] & {
|
|
64
|
-
content: 'Datei auswählen';
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[lang='fr'] & {
|
|
68
|
-
content: 'Choisir un fichier';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[lang='it'] & {
|
|
72
|
-
content: 'Scegli file';
|
|
73
|
-
}
|
|
74
52
|
}
|
|
75
53
|
|
|
76
54
|
&.form-control-sm {
|
|
@@ -98,11 +76,11 @@ select.form-control-rg:not([size]):not([multiple]) {
|
|
|
98
76
|
@include utilities.high-contrast-mode() {
|
|
99
77
|
&:hover,
|
|
100
78
|
&:focus {
|
|
101
|
-
|
|
79
|
+
&:not(:disabled) {
|
|
80
|
+
border-color: Highlight;
|
|
102
81
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
border-color: Highlight;
|
|
82
|
+
&::file-selector-button {
|
|
83
|
+
border-left-color: Highlight;
|
|
106
84
|
}
|
|
107
85
|
}
|
|
108
86
|
}
|