@swisspost/design-system-styles 6.4.3 → 6.4.4
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/_svg-icon-map.scss +1 -1
- package/components/button-group.scss +6 -0
- package/components/dropdown.scss +0 -1
- package/components/floating-label.scss +6 -6
- package/components/form-check.scss +2 -1
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/mixins/_button.scss +0 -1
- package/mixins/_notification.scss +6 -1
- package/package.json +6 -6
- package/placeholders/_index.scss +4 -0
- package/variables/components/_forms.scss +4 -0
- /package/placeholders/{badge.scss → _badge.scss} +0 -0
package/_svg-icon-map.scss
CHANGED
|
@@ -36,7 +36,7 @@ $svg-icon-map: (
|
|
|
36
36
|
'8001':
|
|
37
37
|
"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Crect/%3E%3Cpath d='m13.9 12.7-5.5 9.7H1.8l5.5-9.7-3.7-6.4h6.6l3.7 6.4zM30 0h-6.6L12.7 19.1 19.8 32h6.5l-7-12.9L30 0z'/%3E%3C/g%3E%3C/svg%3E",
|
|
38
38
|
'8000':
|
|
39
|
-
"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='
|
|
39
|
+
"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Cpath d='M24.87 2.667h4.714L19.288 14.465 31.401 30.52h-9.483l-7.428-9.739-8.5 9.739H1.274L12.286 17.9.667 2.667h9.725l6.713 8.899 7.766-8.899h-.001zm-1.652 25.025h2.612L8.971 5.346H6.17l17.048 22.346z'/%3E%3C/g%3E%3C/svg%3E",
|
|
40
40
|
'3260':
|
|
41
41
|
"data:image/svg+xml,%3Csvg xml:space='preserve' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon'%3E%3Crect/%3E%3Cpath d='M16 4C9.3 4 4 9.4 4 16s5.4 12 12 12 12-5.4 12-12S22.6 4 16 4zm0 1.3c2 0 3.9.6 5.5 1.6-1.5 1.7-6.8 6.6-14.7 3.7 1.9-3.2 5.3-5.3 9.2-5.3zm0 21.4c-5.9 0-10.7-4.8-10.7-10.7 0-1.5.3-2.9.9-4.2 1.9.7 3.8 1.1 5.4 1.1 5.8 0 9.7-3.8 11-5.2 2.5 2 4.1 5 4.1 8.4 0 5.8-4.8 10.6-10.7 10.6zm-3.3-10h-1.3c0-.4-.3-.7-.7-.7-.4 0-.7.3-.7.7H8.7c0-1.1.9-2 2-2s2 .9 2 2zm10.6 0H22c0-.4-.3-.7-.7-.7s-.7.3-.7.7h-1.3c0-1.1.9-2 2-2s2 .9 2 2zm-11.9 3.8h9.3v1.3h-9.3v-1.3z'/%3E%3C/g%3E%3C/svg%3E",
|
|
42
42
|
'3259':
|
package/components/dropdown.scss
CHANGED
|
@@ -20,10 +20,7 @@
|
|
|
20
20
|
left: forms.$input-border-width;
|
|
21
21
|
margin: 0;
|
|
22
22
|
padding-inline: forms.$form-floating-padding-x;
|
|
23
|
-
padding-top:
|
|
24
|
-
#{forms.$input-border-width} + #{forms.$form-floating-label-height * 0.5} - #{forms.$form-floating-label-font-size *
|
|
25
|
-
type.$line-height-copy * 0.5}
|
|
26
|
-
);
|
|
23
|
+
padding-top: forms.$form-floating-label-padding-t;
|
|
27
24
|
padding-bottom: 0;
|
|
28
25
|
border: 0;
|
|
29
26
|
color: forms.$form-floating-label-color;
|
|
@@ -90,12 +87,15 @@
|
|
|
90
87
|
transition: forms.$form-floating-transition-in;
|
|
91
88
|
}
|
|
92
89
|
|
|
93
|
-
|
|
90
|
+
// TODO: replace with :has
|
|
91
|
+
&:empty,
|
|
92
|
+
&.form-select-empty {
|
|
94
93
|
padding-top: forms.$form-floating-input-padding-t;
|
|
95
94
|
padding-bottom: forms.$form-floating-input-padding-b;
|
|
96
95
|
|
|
97
96
|
~ label {
|
|
98
|
-
|
|
97
|
+
color: forms.$form-floating-label-color;
|
|
98
|
+
padding-top: forms.$form-floating-label-padding-t;
|
|
99
99
|
max-width: calc(100% - (#{forms.$input-border-width * 2}));
|
|
100
100
|
transform: none;
|
|
101
101
|
}
|
|
@@ -84,9 +84,10 @@
|
|
|
84
84
|
border-radius: 50%;
|
|
85
85
|
|
|
86
86
|
&:checked::after {
|
|
87
|
-
border: spacing.$size-micro solid
|
|
87
|
+
border: spacing.$size-micro solid transparent;
|
|
88
88
|
background-color: currentColor;
|
|
89
89
|
border-radius: inherit;
|
|
90
|
+
background-clip: padding-box;
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
|