@swisspost/design-system-styles 6.5.0 → 6.5.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/_svg-icon-map.scss +706 -696
- package/basics.css +1 -1
- package/components/elevation.scss +2 -1
- package/components/sizing.scss +15 -0
- package/components/tabs/_tabs-wrapper.scss +1 -2
- package/functions/_contrast.scss +9 -0
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/mixins/_elevation.scss +6 -0
- package/package.json +7 -7
- package/placeholders/_close.scss +6 -0
- package/variables/_color.scss +1 -1
package/components/sizing.scss
CHANGED
|
@@ -55,6 +55,21 @@
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
// Post breakpoints width - e.g. w-sm-100
|
|
59
|
+
@each $breakpoint in map-keys(breakpoints.$grid-breakpoints) {
|
|
60
|
+
@include media-breakpoint-up($breakpoint) {
|
|
61
|
+
@if $breakpoint != 'xs' {
|
|
62
|
+
@each $prop, $abbrev in (width: w) {
|
|
63
|
+
@each $size, $length in spacing.$sizes {
|
|
64
|
+
.#{$abbrev}-#{$breakpoint}-#{$size} {
|
|
65
|
+
#{$prop}: $length !important;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
58
73
|
// Generate responsive spacing utility classes, a lot of them
|
|
59
74
|
$cache: ();
|
|
60
75
|
|
package/functions/_contrast.scss
CHANGED
|
@@ -48,6 +48,15 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@function light-or-dark($background, $light-color: #fff, $dark-color: #000) {
|
|
51
|
+
/*
|
|
52
|
+
exception for Success-color issue #2227
|
|
53
|
+
the color is statically defined because the reference to the variable from here
|
|
54
|
+
would create a loop
|
|
55
|
+
*/
|
|
56
|
+
@if ($background == #2c911c) {
|
|
57
|
+
@return 'dark';
|
|
58
|
+
}
|
|
59
|
+
|
|
51
60
|
// Contrast ratio with a light color
|
|
52
61
|
$contrast-light: contrast-ratio($background, $light-color);
|
|
53
62
|
|