@swisspost/design-system-styles 6.6.3 → 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/components/tabs/_tab-title.scss +7 -5
- package/components/tabs/_tabs-wrapper.scss +5 -2
- package/index.css +1 -1
- package/intranet.css +1 -1
- package/package.json +2 -2
package/_svg-icon-map.scss
CHANGED
|
@@ -559,6 +559,12 @@ $svg-icon-map: (
|
|
|
559
559
|
"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='M0 0'/%3E%3Cpath d='M20.6 24h-9.7v-1.5c4-3.5 7.8-7.6 7.8-10.3 0-4.2-6.3-2.4-6.9-2l-.3-1.4c.6-.3 8.8-3.1 8.8 3.4 0 3.8-7.3 10.1-7.8 10.4h8.1z'/%3E%3C/g%3E%3C/svg%3E",
|
|
560
560
|
'3000':
|
|
561
561
|
"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='M17.4 8.2V24h-1.6V9.9c-.2.2-.5.5-.9.8-.3.3-.7.6-1 .9l-.9.8-.8-1L16 8.2z'/%3E%3C/g%3E%3C/svg%3E",
|
|
562
|
+
'2578':
|
|
563
|
+
"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='M18.91 1.33v4.24l.85.33c2.71 1.06 4.87 3.15 6.01 5.76h-2.62c-1.53-2.57-4.31-4.19-7.32-4.19-4.7 0-8.52 3.82-8.52 8.52s3.82 8.52 8.52 8.52c2.6 0 5.03-1.18 6.64-3.19h2.8a10.9 10.9 0 0 1-5.51 4.75l-.85.33v4.25h-1.33v-3.89l-1.38.05c-.1 0-.2.01-.29.02l-.08.01c-.44 0-.9-.04-1.47-.11l-1.51-.21v4.13h-1.33v-4.66l-.71-.37C7.2 23.73 4.97 20.04 4.97 16S7.2 8.27 10.8 6.38l.71-.37V1.33h1.33v4.13l1.51-.21c.56-.08 1.03-.11 1.45-.11l.08.01.31.03 1.38.05v-3.9zM20.24 0h-4v3.84c-.14 0-.27-.04-.41-.04-.56 0-1.11.05-1.64.12V0h-4v5.2C6.3 7.24 3.64 11.31 3.64 16s2.66 8.76 6.55 10.8V32h4v-3.93c.54.07 1.09.12 1.64.12.14 0 .27-.03.41-.03V32h4v-4.67c3.3-1.3 5.92-3.96 7.09-7.33H21.8a7.2 7.2 0 0 1-5.97 3.19c-3.97 0-7.19-3.23-7.19-7.19 0-3.97 3.23-7.19 7.19-7.19 2.89 0 5.37 1.72 6.52 4.19h5.29c-.97-3.83-3.77-6.91-7.39-8.33V0z'/%3E%3C/g%3E%3C/svg%3E",
|
|
564
|
+
'2577':
|
|
565
|
+
"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='M28.58 2.75V0H4.83v2.75c0 .69.56 1.25 1.24 1.25h.09v24h-.09c-.69 0-1.25.56-1.25 1.25V32h23.75v-2.75c0-.69-.56-1.25-1.25-1.25V4c.7 0 1.26-.56 1.26-1.25M6.16 1.33h21.09v1.33H6.16zM10 28v-2.86c.97-.25 4.18-.97 6.64.06 1.15.48 2.42.64 3.59.64 1.32 0 2.51-.2 3.3-.38V28zm6-13.33v2h-1.05c.04-.31.06-.64.06-1 0-.34-.02-.68-.07-1zm0 3.41v5.53c-2.26-.54-4.68-.14-5.9.14.46-3 2.87-5.33 5.9-5.67m1.33 5.96v-5.98c3.24.28 5.81 2.82 6.13 6.06-1.2.27-3.93.74-6.13-.08m1.06-7.37h-1.05v-2h1.06c-.04.31-.06.65-.06 1.01-.01.35.01.68.05.99m-1.63-3.34a6.75 6.75 0 0 1-5.6-2.98c1.41-.23 3.55-.39 5.3.34 1.03.43 2.36.56 3.57.56.6 0 1.16-.03 1.65-.07a6.7 6.7 0 0 1-4.92 2.15m5.95-3.61c-1.86.26-4.32.33-5.73-.26-2.2-.92-4.8-.67-6.47-.35-.33-.78-.51-1.64-.51-2.54V4h13.53v2.57c0 1.15-.32 2.21-.82 3.15M7.49 4h1.17v2.57c0 3.26 1.93 6.06 4.71 7.35.4.9.4 2.6 0 3.5a8.09 8.09 0 0 0-4.71 7.35V28H7.49zm19.76 26.67H6.16v-1.33h21.09zM26 28h-1.14v-3.24c0-3.36-2.05-6.25-4.97-7.47-.31-.88-.3-2.38.01-3.26 2.91-1.23 4.96-4.11 4.96-7.47V4H26z'/%3E%3C/g%3E%3C/svg%3E",
|
|
566
|
+
'2576':
|
|
567
|
+
"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='M20 17.33v-.97h-2.67v-1.33H20V13.8h-2.67v-.16l1.18-1.18H20v-1.23h-.26l.26-.25 1.33-1.33v7.69c0 2.93-2.4 5.33-5.33 5.33-2.07 0-3.86-1.21-4.74-2.95l1-1c.57 1.52 2.02 2.62 3.74 2.62 2.21-.01 4-1.8 4-4.01M8.76 18.45q-.09-.54-.09-1.11V12a.67.67 0 0 0-1.34 0v5.33c0 .77.11 1.52.3 2.24zM24 11.33c-.37 0-.67.3-.67.67v5.33c0 4.04-3.29 7.33-7.33 7.33-2.62 0-4.92-1.39-6.22-3.47l-.97.97a8.65 8.65 0 0 0 6.52 3.79v2.71H12A.67.67 0 0 0 12 30h8a.67.67 0 0 0 0-1.34h-3.33v-2.7c4.47-.34 8-4.08 8-8.63V12c0-.37-.3-.67-.67-.67m-6.67-2.66h1.21l1.33-1.33h-2.54zm9.54-6.45a.664.664 0 0 0-.94 0L14.67 13.48v-1.02H12v-1.23h2.67V9.9H12V8.67h2.67V7.33H12v-.66c0-2.21 1.79-4 4-4s4 1.79 4 4v.54l1.26-1.26c-.36-2.6-2.57-4.62-5.26-4.62-2.93 0-5.33 2.4-5.33 5.33v9.87l.67-.67.84-.84H12V13.8h2.35L5.4 22.75c-.26.26-.26.68 0 .94.13.13.3.2.47.2s.34-.07.47-.2L26.87 3.16c.26-.26.26-.68 0-.94'/%3E%3C/g%3E%3C/svg%3E",
|
|
562
568
|
'2575':
|
|
563
569
|
"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='m15.96 11.26-.94-.94.94-.94.94.94zm6.6 4.71-.94-.94-.94.94.94.94zm-1.88-1.89-.94-.94-.94.94.94.94zm-3.77-1.88.94.94.94-.94-.94-.94zM5.65 19.69l.94.94.94-.94-.94-.94zm3.77 3.77.94.94.94-.94-.94-.94zm3.77 1.88-.94-.94-.94.94.94.94zm-3.77-3.77-.94-.94-.94.94.94.94zm6.76-13.64 2.32-2.32.71.71c-.27.62-.41 1.28-.41 1.97a4.93 4.93 0 0 0 4.92 4.92c.68 0 1.35-.14 1.96-.42l.71.71-6.15 6.15c.33.3.66.6 1 .88l7.03-7.03-2.39-2.39c-.61.47-1.35.76-2.18.76-1.98 0-3.59-1.61-3.59-3.59 0-.82.29-1.57.76-2.18L18.5 3.72l-2.32 2.32c.2.63.19 1.29 0 1.89m-6.4 22.18-.86-.86c.16-.48.24-.98.24-1.49a4.93 4.93 0 0 0-4.92-4.92c-.51 0-1.01.08-1.49.24l-.86-.86 6.07-6.07c-.19-.44-.39-.88-.56-1.33L0 22.22l2.45 2.45c.53-.31 1.13-.49 1.79-.49 1.98 0 3.59 1.61 3.59 3.59 0 .65-.19 1.26-.49 1.79L9.78 32l5.75-5.75c-.34-.28-.66-.59-.99-.89zm20.83-3.57c-.02.56-.28 1.06-.73 1.39l-2.01 1.46-1.29.93c-.04-.01-.08-.01-.12-.02C14.32 27.34 6.04 15.8 7.14 3.43c0-.02.01-.04.01-.06l1.3-.94v.01l2-1.45a1.79 1.79 0 0 1 1.54-.27c.53.16.95.55 1.15 1.06l1.74 4.56c.29.75.03 1.6-.62 2.06l-1.61 1.16c1.33 5.47 4.75 10.12 9.79 13.54l1.55-1.14c.31-.23.68-.34 1.04-.34.4 0 .79.13 1.12.39l3.79 3.08c.44.38.68.9.67 1.45m-1.34-.04c0-.14-.05-.26-.16-.35l-3.79-3.08a.45.45 0 0 0-.27-.1c-.06 0-.16.01-.26.08l-1.55 1.13-.76.56-.78-.53c-5.37-3.65-8.94-8.61-10.34-14.33l-.21-.87.73-.53 1.61-1.16c.16-.12.22-.32.15-.51L11.9 2.26a.42.42 0 0 0-.29-.26.438.438 0 0 0-.38.06l-2 1.45-.81.59c-.75 11.32 6.83 21.84 17.88 24.77l.79-.57 2.01-1.46c.11-.08.17-.2.17-.34'/%3E%3C/g%3E%3C/svg%3E",
|
|
564
570
|
'2574':
|
|
@@ -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
|