@swisspost/design-system-styles 10.6.0 → 10.8.0
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/README.md +28 -23
- package/_svg-icon-map.scss +8 -4
- package/basics.css +1 -1
- package/cargo-compact.css +1 -1
- package/cargo-condensed.css +1 -0
- package/cargo-condensed.scss +12 -0
- package/cargo-default.css +1 -1
- package/cargo-tokens-compact.css +1 -1
- package/cargo-tokens-condensed.css +1 -0
- package/cargo-tokens-condensed.scss +8 -0
- package/cargo-tokens-default.css +1 -1
- package/components/avatar.css +1 -1
- package/components/blockquote.css +1 -1
- package/components/blockquote.scss +4 -1
- package/components/button-group.css +1 -1
- package/components/button.css +1 -1
- package/components/button.scss +5 -0
- package/components/card.css +1 -1
- package/components/checkbox.css +1 -1
- package/components/chip.css +1 -1
- package/components/dialog.css +1 -1
- package/components/dialog.scss +21 -6
- package/components/form-input.css +1 -1
- package/components/form-input.scss +3 -1
- package/components/form-search-input.css +1 -1
- package/components/form-select.css +1 -1
- package/components/form-select.scss +3 -2
- package/components/form-textarea.css +1 -1
- package/components/form-textarea.scss +3 -1
- package/components/header/index.css +1 -1
- package/components/inline-notification.css +1 -1
- package/components/inline-notification.scss +32 -15
- package/components/list-check.css +1 -1
- package/components/list-check.scss +18 -53
- package/components/list-interactive.css +1 -1
- package/components/palette.css +1 -1
- package/components/radio-button.css +1 -1
- package/components/segmented-button.css +1 -1
- package/components/selection-card.css +1 -1
- package/components/selection-card.scss +2 -1
- package/components/skiplinks.css +1 -1
- package/components/switch.css +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tag.css +1 -1
- package/components/tag.scss +2 -1
- package/components/toast.css +1 -1
- package/components/toast.scss +2 -1
- package/elements/anchor.css +1 -1
- package/functions/_env.scss +12 -0
- package/functions/_icons.scss +4 -3
- package/functions/_index.scss +1 -0
- package/helpers/focus-ring.css +1 -1
- package/mixins/_button.scss +12 -1
- package/mixins/_color-scheme.scss +48 -17
- package/mixins/_notification.scss +2 -1
- package/mixins/_utilities.scss +22 -29
- package/package.json +5 -5
- package/placeholders/_button.scss +1 -0
- package/post-compact.css +1 -1
- package/post-condensed.css +1 -0
- package/post-condensed.scss +12 -0
- package/post-default.css +1 -1
- package/post-tokens-compact.css +1 -1
- package/post-tokens-condensed.css +1 -0
- package/post-tokens-condensed.scss +8 -0
- package/post-tokens-default.css +1 -1
- package/tokens/_appearance-condensed.scss +11 -0
- package/tokens/_device-condensed.scss +10 -0
- package/tokens/_schemes.scss +2 -8
- package/utilities/_env-variables.scss +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@use '@swisspost/design-system-tokens/appearance';
|
|
2
|
+
|
|
3
|
+
@use './core';
|
|
4
|
+
@use './../mixins/tokens';
|
|
5
|
+
|
|
6
|
+
:root,
|
|
7
|
+
[data-color-scheme] {
|
|
8
|
+
// todo: there is no condensed appearance yet; replace after tokens are updated
|
|
9
|
+
@include tokens.from(appearance.$post-compact);
|
|
10
|
+
--_post-initial-global-header-height: 2rem;
|
|
11
|
+
}
|
package/tokens/_schemes.scss
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
@use './core';
|
|
3
3
|
@use '@swisspost/design-system-tokens/scheme';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Check for light-dark support was added so we don't use CSS functions that don't work anyway.
|
|
7
|
-
* This check becomes obsolete when the fallback is removed.
|
|
8
|
-
*/
|
|
9
5
|
@use '../mixins/supports';
|
|
6
|
+
@use '../mixins/color-scheme';
|
|
10
7
|
|
|
11
8
|
@include supports.light-dark(true) {
|
|
12
9
|
:root {
|
|
@@ -19,9 +16,6 @@
|
|
|
19
16
|
@include supports.light-dark(false) {
|
|
20
17
|
:root,
|
|
21
18
|
[data-color-scheme] {
|
|
22
|
-
@
|
|
23
|
-
--#{$key}-light: var(--post-fallback-prefers-light) #{$light-value};
|
|
24
|
-
--#{$key}: var(--#{$key}-light, #{map.get(scheme.$post-dark, $key)});
|
|
25
|
-
}
|
|
19
|
+
@extend %color-scheme-fallback-variables;
|
|
26
20
|
}
|
|
27
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
$post-icon-version: '10.
|
|
1
|
+
$post-icon-version: '10.8.0';
|