@swisspost/design-system-styles 6.6.2 → 6.6.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 +6 -0
- package/basics.css +1 -1
- package/components/floating-label.scss +6 -0
- package/components/form-check.scss +1 -1
- package/components/tabs/_tab-title.scss +7 -5
- package/components/tabs/_tabs-wrapper.scss +5 -2
- package/components/type.scss +2 -0
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/layouts/portal/_type.scss +5 -0
- package/mixins/_badge.scss +9 -0
- package/package.json +2 -2
- package/placeholders/_close.scss +4 -0
- package/variables/_breakpoints.scss +1 -1
- package/variables/components/_form-validation.scss +3 -3
- package/variables/components/_forms.scss +1 -1
- package/variables/components/_notification.scss +1 -1
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
.tab-title[role='tab'] {
|
|
10
10
|
display: inline-block;
|
|
11
|
+
cursor: pointer;
|
|
11
12
|
position: relative;
|
|
12
13
|
box-sizing: border-box;
|
|
13
14
|
padding: nav.$nav-link-padding;
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
opacity: 0.7;
|
|
19
20
|
color: var(--post-contrast-color);
|
|
20
21
|
text-decoration: none;
|
|
22
|
+
background-color: var(--post-contrast-color-inverted);
|
|
21
23
|
|
|
22
24
|
&:focus {
|
|
23
25
|
background-color: unset;
|
|
@@ -26,16 +28,16 @@
|
|
|
26
28
|
|
|
27
29
|
&:hover {
|
|
28
30
|
opacity: 1;
|
|
29
|
-
background-color:
|
|
30
|
-
color: var(--post-contrast-color);
|
|
31
|
+
background-color: rgba(var(--post-contrast-color-rgb), 0.6);
|
|
32
|
+
color: var(--post-contrast-color-inverted);
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
// same styles as focus, can't use placeholder here because focus-visible can't be described outside of the support condition
|
|
34
36
|
&:focus-visible {
|
|
35
37
|
outline: transparent;
|
|
36
38
|
opacity: 1;
|
|
37
|
-
background-color:
|
|
38
|
-
color: var(--post-contrast-color);
|
|
39
|
+
background-color: rgba(var(--post-contrast-color-rgb), 0.6);
|
|
40
|
+
color: var(--post-contrast-color-inverted);
|
|
39
41
|
box-shadow: none;
|
|
40
42
|
|
|
41
43
|
&::after {
|
|
@@ -55,7 +57,7 @@
|
|
|
55
57
|
border-right-color: nav.$nav-tabs-border-color;
|
|
56
58
|
border-left-color: nav.$nav-tabs-border-color;
|
|
57
59
|
opacity: 1;
|
|
58
|
-
background-color:
|
|
60
|
+
background-color: var(--post-contrast-color-inverted);
|
|
59
61
|
color: var(--post-contrast-color);
|
|
60
62
|
font-weight: 700;
|
|
61
63
|
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
position: relative;
|
|
10
10
|
padding-top: spacing.$spacer;
|
|
11
11
|
border: 0;
|
|
12
|
-
background-color:
|
|
12
|
+
background-color: rgba(
|
|
13
|
+
var(--post-contrast-color-rgb),
|
|
14
|
+
0.02
|
|
15
|
+
); // 0.02 gets as close as possible to color.$gray-background-light on white background
|
|
13
16
|
|
|
14
17
|
// Create a line that lies below the active but above the passive elements
|
|
15
18
|
// This way hover works smoothly with the background color
|
|
@@ -55,7 +58,7 @@
|
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
.tab-content {
|
|
58
|
-
|
|
61
|
+
padding-top: spacing.$spacer;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
// Careful, this generates a lot of code
|