@swisspost/design-system-styles 6.6.3 → 6.6.5
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/fonts.scss +9 -39
- package/components/tabs/_tab-title.scss +7 -5
- package/components/tabs/_tabs-wrapper.scss +5 -2
- package/fonts.css +1 -1
- package/index.css +2 -2
- package/intranet.css +2 -2
- package/package.json +2 -2
- package/variables/_options.scss +1 -1
- package/variables/_type.scss +4 -4
package/components/fonts.scss
CHANGED
|
@@ -4,57 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
@font-face {
|
|
6
6
|
font-display: swap;
|
|
7
|
-
font-family: '
|
|
7
|
+
font-family: 'Swiss Post Sans';
|
|
8
8
|
font-weight: 700;
|
|
9
9
|
src:
|
|
10
|
-
url('#{options.$font-base-path}/
|
|
11
|
-
url('#{options.$font-base-path}/
|
|
10
|
+
url('#{options.$font-base-path}/SwissPostSans-Bold.woff2') format('woff2'),
|
|
11
|
+
url('#{options.$font-base-path}/SwissPostSans-Bold.woff') format('woff');
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@font-face {
|
|
15
15
|
font-display: swap;
|
|
16
|
-
font-family: '
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
font-style: italic;
|
|
19
|
-
src:
|
|
20
|
-
url('#{options.$font-base-path}/FrutigerNeueforPostW05-BdIt.woff2') format('woff2'),
|
|
21
|
-
url('#{options.$font-base-path}/FrutigerNeueforPostW05-BdIt.woff') format('woff');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@font-face {
|
|
25
|
-
font-display: swap;
|
|
26
|
-
font-family: 'Frutiger Neue For Post';
|
|
27
|
-
font-weight: 400;
|
|
28
|
-
src:
|
|
29
|
-
url('#{options.$font-base-path}/FrutigerNeueforPostW05-Rg.woff2') format('woff2'),
|
|
30
|
-
url('#{options.$font-base-path}/FrutigerNeueforPostW05-Rg.woff') format('woff');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@font-face {
|
|
34
|
-
font-display: swap;
|
|
35
|
-
font-family: 'Frutiger Neue For Post';
|
|
16
|
+
font-family: 'Swiss Post Sans';
|
|
36
17
|
font-weight: 400;
|
|
37
|
-
font-style: italic;
|
|
38
|
-
src:
|
|
39
|
-
url('#{options.$font-base-path}/FrutigerNeueforPostW05-It.woff2') format('woff2'),
|
|
40
|
-
url('#{options.$font-base-path}/FrutigerNeueforPostW05-It.woff') format('woff');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@font-face {
|
|
44
|
-
font-display: swap;
|
|
45
|
-
font-family: 'Frutiger Neue For Post';
|
|
46
|
-
font-weight: 300;
|
|
47
18
|
src:
|
|
48
|
-
url('#{options.$font-base-path}/
|
|
49
|
-
url('#{options.$font-base-path}/
|
|
19
|
+
url('#{options.$font-base-path}/SwissPostSans-Regular.woff2') format('woff2'),
|
|
20
|
+
url('#{options.$font-base-path}/SwissPostSans-Regular.woff') format('woff');
|
|
50
21
|
}
|
|
51
22
|
|
|
52
23
|
@font-face {
|
|
53
24
|
font-display: swap;
|
|
54
|
-
font-family: '
|
|
25
|
+
font-family: 'Swiss Post Sans';
|
|
55
26
|
font-weight: 300;
|
|
56
|
-
font-style: italic;
|
|
57
27
|
src:
|
|
58
|
-
url('#{options.$font-base-path}/
|
|
59
|
-
url('#{options.$font-base-path}/
|
|
28
|
+
url('#{options.$font-base-path}/SwissPostSans-Light.woff2') format('woff2'),
|
|
29
|
+
url('#{options.$font-base-path}/SwissPostSans-Light.woff') format('woff');
|
|
60
30
|
}
|
|
@@ -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
|
package/fonts.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-display:swap;font-family:"
|
|
1
|
+
@font-face{font-display:swap;font-family:"Swiss Post Sans";font-weight:700;src:url("https://fonts.post.ch/swiss-post-sans/v1/SwissPostSans-Bold.woff2") format("woff2"),url("https://fonts.post.ch/swiss-post-sans/v1/SwissPostSans-Bold.woff") format("woff")}@font-face{font-display:swap;font-family:"Swiss Post Sans";font-weight:400;src:url("https://fonts.post.ch/swiss-post-sans/v1/SwissPostSans-Regular.woff2") format("woff2"),url("https://fonts.post.ch/swiss-post-sans/v1/SwissPostSans-Regular.woff") format("woff")}@font-face{font-display:swap;font-family:"Swiss Post Sans";font-weight:300;src:url("https://fonts.post.ch/swiss-post-sans/v1/SwissPostSans-Light.woff2") format("woff2"),url("https://fonts.post.ch/swiss-post-sans/v1/SwissPostSans-Light.woff") format("woff")}
|