@swisspost/design-system-styles 9.0.0-next.2 → 9.0.0-next.21
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 +85 -23
- package/basics.css +1 -1
- package/basics.scss +2 -6
- package/cargo-external.css +7 -0
- package/cargo-external.scss +10 -0
- package/cargo-internal.css +7 -0
- package/cargo-internal.scss +10 -0
- package/cargo-tokens-external.css +1 -0
- package/cargo-tokens-external.scss +8 -0
- package/cargo-tokens-internal.css +1 -0
- package/cargo-tokens-internal.scss +8 -0
- package/components/_form-check.scss +166 -0
- package/components/_index.scss +21 -13
- package/components/appstore-badge.css +1 -0
- package/components/appstore-badge.scss +18 -0
- package/components/avatar.css +1 -0
- package/components/avatar.scss +41 -0
- package/components/badge.css +1 -1
- package/components/badge.scss +8 -2
- package/components/banner.css +1 -0
- package/components/banner.scss +105 -0
- package/components/blockquote.css +1 -0
- package/components/blockquote.scss +46 -0
- package/components/breadcrumb.css +1 -1
- package/components/breadcrumb.scss +4 -24
- package/components/breakpoints.css +1 -0
- package/components/breakpoints.scss +17 -0
- package/components/button-group.css +1 -1
- package/components/button-group.scss +7 -6
- package/components/button.css +1 -1
- package/components/button.scss +41 -228
- package/components/card-control.css +1 -1
- package/components/card-control.scss +33 -24
- package/components/card.css +1 -1
- package/components/card.scss +72 -68
- package/components/checkbox.css +1 -0
- package/components/checkbox.scss +127 -0
- package/components/chip.css +1 -1
- package/components/chip.scss +9 -8
- package/components/close.css +1 -1
- package/components/close.scss +0 -2
- package/components/datatable.css +1 -3
- package/components/datatable.scss +22 -17
- package/components/datepicker.css +1 -1
- package/components/datepicker.scss +6 -22
- package/components/dialog.css +1 -1
- package/components/dialog.scss +26 -38
- package/components/dropdown.css +1 -1
- package/components/dropdown.scss +9 -6
- package/components/fonts.css +1 -1
- package/components/fonts.scss +7 -45
- package/components/form-footer.css +1 -0
- package/components/form-footer.scss +18 -0
- package/components/form-hint.css +1 -0
- package/components/form-hint.scss +15 -0
- package/components/form-input.css +1 -0
- package/components/form-input.scss +301 -0
- package/components/form-range.css +1 -1
- package/components/form-range.scss +9 -9
- package/components/form-search-input.css +1 -0
- package/components/form-search-input.scss +97 -0
- package/components/form-select.css +1 -1
- package/components/form-select.scss +266 -55
- package/components/form-textarea.css +1 -1
- package/components/form-textarea.scss +172 -9
- package/components/globals/_index.scss +1 -0
- package/components/globals/post-footer.css +1 -0
- package/components/globals/post-footer.scss +113 -0
- package/components/header/_mixins.scss +48 -0
- package/components/header/index.css +1 -0
- package/components/header/index.scss +131 -0
- package/components/icon-button.css +1 -0
- package/components/icon-button.scss +19 -0
- package/components/icon-close-button.css +1 -0
- package/components/icon-close-button.scss +29 -0
- package/components/intranet-header/_icon.scss +1 -1
- package/components/intranet-header/_index.scss +0 -2
- package/components/intranet-header/_language-chooser.scss +3 -2
- package/components/intranet-header/_nav-overflow.scss +2 -2
- package/components/intranet-header/_scaffolding.scss +1 -1
- package/components/intranet-header/_searchbox.scss +1 -1
- package/components/intranet-header/_sidebar.scss +11 -11
- package/components/intranet-header/_top-navigation.scss +1 -1
- package/components/list-check.css +1 -0
- package/components/list-check.scss +79 -0
- package/components/list-group.css +1 -1
- package/components/list-group.scss +72 -127
- package/components/modal.css +2 -2
- package/components/modal.scss +2 -4
- package/components/offcanvas.css +1 -1
- package/components/offcanvas.scss +0 -2
- package/components/pagination.css +1 -1
- package/components/pagination.scss +10 -9
- package/components/popover.css +1 -1
- package/components/popover.scss +0 -2
- package/components/product-card.css +1 -1
- package/components/product-card.scss +11 -5
- package/components/progress.scss +0 -2
- package/components/radio-button.css +1 -0
- package/components/radio-button.scss +125 -0
- package/components/segmented-button.css +3 -0
- package/components/segmented-button.scss +207 -0
- package/components/skiplinks.css +1 -0
- package/components/skiplinks.scss +20 -0
- package/components/spinner.scss +0 -1
- package/components/stepper.css +1 -1
- package/components/stepper.scss +40 -33
- package/components/subnavigation.css +1 -1
- package/components/subnavigation.scss +17 -14
- package/components/switch.css +1 -0
- package/components/switch.scss +212 -0
- package/components/tables.css +1 -1
- package/components/tables.scss +0 -1
- package/components/tabs/_tab-title.scss +16 -55
- package/components/tabs/_tabs-wrapper.scss +3 -13
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.scss +0 -2
- package/components/tag.css +1 -1
- package/components/tag.scss +1 -2
- package/components/teaser.css +1 -0
- package/components/teaser.scss +83 -0
- package/components/text-highlight.css +1 -1
- package/components/timepicker.css +1 -1
- package/components/timepicker.scss +13 -16
- package/components/toast.css +1 -1
- package/components/toast.scss +19 -16
- package/components/tooltip.css +1 -1
- package/components/tooltip.scss +0 -2
- package/components/transitions.scss +0 -2
- package/components/validation.css +1 -0
- package/components/validation.scss +120 -0
- package/elements/_index.scss +7 -1
- package/elements/anchor.css +1 -0
- package/elements/anchor.scss +33 -0
- package/elements/body.css +1 -1
- package/elements/body.scss +5 -1
- package/elements/fieldset-legend.css +1 -1
- package/elements/fieldset-legend.scss +7 -3
- package/elements/heading.css +1 -1
- package/elements/heading.scss +10 -12
- package/elements/list-bullet.css +1 -0
- package/elements/list-bullet.scss +43 -0
- package/elements/list-description.css +1 -0
- package/elements/list-description.scss +5 -0
- package/elements/list-number.css +1 -0
- package/elements/list-number.scss +33 -0
- package/elements/paragraph.css +1 -0
- package/elements/paragraph.scss +17 -0
- package/elements/reset.css +1 -1
- package/elements/reset.scss +16 -7
- package/elements.css +1 -0
- package/elements.scss +1 -0
- package/fonts.css +1 -1
- package/functions/_breakpoint.scss +26 -0
- package/functions/_forms.scss +46 -3
- package/functions/_icons.scss +2 -14
- package/helpers/_index.scss +4 -0
- package/helpers/clearfix.css +1 -0
- package/helpers/clearfix.scss +5 -0
- package/helpers/focus-ring.css +1 -0
- package/helpers/focus-ring.scss +5 -0
- package/helpers/text-truncation.css +1 -0
- package/helpers/text-truncation.scss +5 -0
- package/helpers/visually-hidden.css +1 -0
- package/helpers/visually-hidden.scss +5 -0
- package/index.css +3 -3
- package/index.scss +2 -5
- package/intranet.css +3 -3
- package/intranet.scss +2 -2
- package/layout/_containers.scss +32 -0
- package/layout/_section.scss +133 -0
- package/layout/grid/_index.scss +11 -0
- package/layout/grid/_mixins.scss +104 -0
- package/layout/grid/_variables.scss +2 -0
- package/layout/index.css +1 -0
- package/layout/index.scss +3 -0
- package/mixins/_button.scss +19 -15
- package/mixins/_form-checks.scss +1 -1
- package/mixins/_forms.scss +42 -33
- package/mixins/_icon-button.scss +27 -0
- package/mixins/_icons.scss +22 -32
- package/mixins/_index.scss +3 -2
- package/mixins/_layout.scss +26 -0
- package/mixins/_list.scss +112 -0
- package/mixins/_media.scss +58 -2
- package/mixins/_notification.scss +59 -53
- package/mixins/_utilities.scss +46 -25
- package/package.json +16 -16
- package/palettes/_mixins.scss +74 -0
- package/palettes/_utilities.scss +3 -0
- package/palettes/_variables.scss +2 -0
- package/palettes/cargo-palettes.css +1 -0
- package/palettes/cargo-palettes.scss +3 -0
- package/palettes/post-palettes.css +1 -0
- package/palettes/post-palettes.scss +3 -0
- package/placeholders/_button.scss +3 -6
- package/placeholders/_close.scss +2 -5
- package/placeholders/_schemes.scss +10 -0
- package/post-external.css +3 -3
- package/post-external.scss +7 -1
- package/post-internal.css +3 -3
- package/post-internal.scss +7 -1
- package/post-tokens-external.css +1 -1
- package/post-tokens-external.scss +1 -1
- package/post-tokens-internal.css +1 -1
- package/post-tokens-internal.scss +1 -1
- package/themes/bootstrap/_core.scss +0 -2
- package/themes/bootstrap/_forms.scss +0 -4
- package/themes/bootstrap/_overrides-variables.scss +0 -6
- package/themes/bootstrap/_utilities.scss +45 -1
- package/tokens/_cargo-theme.scss +8 -0
- package/tokens/_helpers.scss +1 -0
- package/tokens/_palettes.scss +9 -0
- package/tokens/_schemes.scss +11 -0
- package/tokens/_utilities_formatted.scss +1 -0
- package/tokens/temp/_channel.scss +4 -3
- package/tokens/temp/_components.scss +594 -503
- package/tokens/temp/_core.scss +49 -37
- package/tokens/temp/_device.scss +210 -239
- package/tokens/temp/_elements.scss +11 -11
- package/tokens/temp/_helpers.scss +13 -0
- package/tokens/temp/_index.scss +6 -4
- package/tokens/temp/_palettes.scss +19 -0
- package/tokens/temp/_scheme.scss +334 -0
- package/tokens/temp/_theme.scss +28 -9
- package/tokens/temp/_utilities-formatted.scss +128 -0
- package/tokens/temp/_utilities.scss +34 -58
- package/tokens/temp/palettes/_cargo-dark.scss +19 -0
- package/tokens/temp/palettes/_cargo-light.scss +19 -0
- package/tokens/temp/palettes/_post-dark.scss +19 -0
- package/tokens/temp/palettes/_post-light.scss +19 -0
- package/utilities/_not-defined.scss +44 -0
- package/utilities/_variables.scss +304 -22
- package/utilities/index.css +1 -0
- package/utilities/{_index.scss → index.scss} +1 -2
- package/variables/_animation.scss +10 -6
- package/variables/_breakpoints.scss +9 -5
- package/variables/_color.scss +0 -61
- package/variables/_commons.scss +1 -0
- package/variables/_elevation.scss +16 -22
- package/variables/_grid.scss +2 -12
- package/variables/_icons.scss +19 -696
- package/variables/_index.scss +1 -1
- package/variables/_sizing.scss +17 -0
- package/variables/_spacing.scss +0 -152
- package/variables/_type.scss +17 -27
- package/variables/components/_accordion.scss +0 -47
- package/variables/components/_badge.scss +9 -5
- package/variables/components/_button.scss +61 -113
- package/variables/components/_card.scss +7 -4
- package/variables/components/_chip.scss +13 -7
- package/variables/components/_close.scss +14 -8
- package/variables/components/_code.scss +1 -1
- package/variables/components/_datatable.scss +12 -8
- package/variables/components/_dropdowns.scss +1 -1
- package/variables/components/_form-check.scss +9 -46
- package/variables/components/_forms.scss +8 -101
- package/variables/components/_index.scss +0 -5
- package/variables/components/_modal.scss +17 -12
- package/variables/components/_nav.scss +3 -3
- package/variables/components/_navbar.scss +7 -4
- package/variables/components/_notification.scss +48 -37
- package/variables/components/_pagination.scss +14 -6
- package/variables/components/_spinners.scss +7 -2
- package/variables/components/_stepper.scss +15 -10
- package/variables/components/_subnavigation.scss +11 -9
- package/variables/components/_tables.scss +11 -6
- package/variables/components/_tag.scss +10 -7
- package/components/accordion.css +0 -1
- package/components/accordion.scss +0 -100
- package/components/alert.css +0 -1
- package/components/alert.scss +0 -137
- package/components/carousel.css +0 -1
- package/components/carousel.scss +0 -178
- package/components/elevation.css +0 -1
- package/components/elevation.scss +0 -8
- package/components/floating-label.css +0 -1
- package/components/floating-label.scss +0 -353
- package/components/form-check.css +0 -1
- package/components/form-check.scss +0 -297
- package/components/form-validation.css +0 -1
- package/components/form-validation.scss +0 -148
- package/components/forms.css +0 -1
- package/components/forms.scss +0 -215
- package/components/grid.css +0 -1
- package/components/grid.scss +0 -170
- package/components/icons.css +0 -1
- package/components/icons.scss +0 -60
- package/components/sizing.css +0 -1
- package/components/sizing.scss +0 -85
- package/components/topic-teaser.css +0 -1
- package/components/topic-teaser.scss +0 -196
- package/layouts/portal/_grid.scss +0 -85
- package/layouts/portal/_index.scss +0 -2
- package/layouts/portal/_subnavigation.scss +0 -5
- package/layouts/portal/_variables.scss +0 -8
- package/mixins/_accordion.scss +0 -16
- package/mixins/_elevation.scss +0 -6
- package/mixins/_focus.scss +0 -9
- package/mixins/_form-validation.scss +0 -5
- package/mixins/_size.scss +0 -65
- package/placeholders/_modes.scss +0 -10
- package/themes/bootstrap/_carousel.scss +0 -2
- package/themes/bootstrap/_containers.scss +0 -2
- package/themes/bootstrap/_grid.scss +0 -2
- package/themes/bootstrap/_overrides-mixins.scss +0 -33
- package/themes/bootstrap/forms/_floating-labels.scss +0 -2
- package/themes/bootstrap/forms/_form-control.scss +0 -2
- package/themes/bootstrap/forms/_form-select.scss +0 -2
- package/themes/bootstrap/forms/_form-text.scss +0 -2
- package/tokens/_modes.scss +0 -11
- package/tokens/temp/_mode.scss +0 -299
- package/utilities/_functions.scss +0 -35
- package/utilities/temp/_legacy.scss +0 -95
- package/variables/_options.scss +0 -5
- package/variables/components/_carousel.scss +0 -27
- package/variables/components/_figures.scss +0 -6
- package/variables/components/_form-select.scss +0 -13
- package/variables/components/_form-validation.scss +0 -38
- package/variables/components/_list-group.scss +0 -29
- package/variables/components/_topic-teaser.scss +0 -32
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
@use './button';
|
|
2
4
|
@use './../animation';
|
|
3
5
|
@use './../color';
|
|
@@ -6,6 +8,10 @@
|
|
|
6
8
|
@use './../type';
|
|
7
9
|
|
|
8
10
|
@use './../../functions/sizing';
|
|
11
|
+
@use '../../tokens/utilities';
|
|
12
|
+
@use '../../functions/tokens';
|
|
13
|
+
|
|
14
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
9
15
|
|
|
10
16
|
$chip-color: color.$gray-80;
|
|
11
17
|
$chip-bg: color.$white;
|
|
@@ -13,10 +19,10 @@ $chip-border-color: color.$gray-60;
|
|
|
13
19
|
$chip-border-width: commons.$border-thick;
|
|
14
20
|
$chip-border-radius: commons.$border-radius-pill;
|
|
15
21
|
|
|
16
|
-
$chip-height: button.$btn-height-
|
|
22
|
+
$chip-height: map.get(button.$btn-height-map, 'md');
|
|
17
23
|
$chip-max-width: 100%;
|
|
18
|
-
$chip-padding-x:
|
|
19
|
-
$chip-gap:
|
|
24
|
+
$chip-padding-x: tokens.get('utility-gap-16');
|
|
25
|
+
$chip-gap: tokens.get('utility-gap-8');
|
|
20
26
|
|
|
21
27
|
$chip-font-size: type.$font-size-16;
|
|
22
28
|
$chip-font-weight: type.$font-weight-normal;
|
|
@@ -30,7 +36,7 @@ $chip-transition:
|
|
|
30
36
|
$chip-height-sm: button.$btn-height-sm;
|
|
31
37
|
$chip-gap-sm: sizing.px-to-rem(6px);
|
|
32
38
|
$chip-font-size-sm: type.$font-size-14;
|
|
33
|
-
$chip-padding-x-sm:
|
|
39
|
+
$chip-padding-x-sm: tokens.get('utility-gap-12');
|
|
34
40
|
|
|
35
41
|
$chip-hover-color: color.$black;
|
|
36
42
|
$chip-hover-bg: color.$gray-20;
|
|
@@ -51,7 +57,7 @@ $chip-close-button-icon: 2043;
|
|
|
51
57
|
$chip-close-button-border-width: commons.$border-width;
|
|
52
58
|
$chip-close-button-border-radius: commons.$border-radius-round;
|
|
53
59
|
$chip-close-button-border: $chip-close-button-border-width solid $chip-border-color;
|
|
54
|
-
$chip-close-button-height:
|
|
55
|
-
$chip-close-button-height-sm:
|
|
60
|
+
$chip-close-button-height: tokens.get('utility-gap-24');
|
|
61
|
+
$chip-close-button-height-sm: tokens.get('utility-gap-16');
|
|
56
62
|
|
|
57
|
-
$chip-dismissable-padding-start:
|
|
63
|
+
$chip-dismissable-padding-start: tokens.get('utility-gap-8');
|
|
@@ -2,20 +2,26 @@
|
|
|
2
2
|
@use './../color';
|
|
3
3
|
@use './../spacing';
|
|
4
4
|
@use './../../functions/icons';
|
|
5
|
+
@use './../../functions/tokens';
|
|
6
|
+
@use './../../tokens/utilities';
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
9
|
+
|
|
10
|
+
$close-size: tokens.get('utility-gap-24') !default;
|
|
7
11
|
$close-border-radius: button.$btn-border-radius !default;
|
|
8
|
-
$close-color:
|
|
9
|
-
$close-hover-color:
|
|
10
|
-
$close-disabled-color:
|
|
12
|
+
$close-color: color.$black !default;
|
|
13
|
+
$close-hover-color: color.$black !default;
|
|
14
|
+
$close-disabled-color: color.$gray-40 !default;
|
|
11
15
|
$close-transition: button.$btn-transition !default;
|
|
12
16
|
|
|
13
17
|
// DEPRECATED
|
|
14
|
-
$btn-close-width:
|
|
18
|
+
$btn-close-width: tokens.get('utility-gap-24') !default;
|
|
15
19
|
$btn-close-height: $btn-close-width !default;
|
|
16
|
-
$btn-close-padding-x:
|
|
20
|
+
$btn-close-padding-x: tokens.get('utility-gap-16') !default;
|
|
17
21
|
$btn-close-color: color.$black !default;
|
|
18
|
-
$
|
|
19
|
-
$
|
|
22
|
+
$_btn-close-bg: icons.get-colored-svg-url(2043, $btn-close-color);
|
|
23
|
+
$_btn-close-hcm-bg: icons.get-colored-svg-url(2043, color.$white);
|
|
24
|
+
$btn-close-bg: url('#{$_btn-close-bg}') !default;
|
|
25
|
+
$btn-close-hcm-bg: url('#{$_btn-close-hcm-bg}') !default;
|
|
20
26
|
$btn-close-opacity: 0.5 !default;
|
|
21
27
|
$btn-close-hover-opacity: 0.75 !default;
|
|
@@ -7,37 +7,41 @@
|
|
|
7
7
|
@use './../type';
|
|
8
8
|
@use './button';
|
|
9
9
|
@use './../../functions/icons';
|
|
10
|
+
@use '../../functions/tokens';
|
|
11
|
+
@use '../../tokens/utilities';
|
|
12
|
+
|
|
13
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
10
14
|
|
|
11
15
|
$datatable-header-font-weight: type.$font-weight-bold;
|
|
12
16
|
$datatable-header-unsorted-color: color.$gray-60;
|
|
13
17
|
|
|
14
18
|
$datatable-cell-bg: color.$light;
|
|
15
|
-
$datatable-cell-padding-x:
|
|
16
|
-
$datatable-cell-padding-y:
|
|
19
|
+
$datatable-cell-padding-x: tokens.get('utility-gap-16');
|
|
20
|
+
$datatable-cell-padding-y: tokens.get('utility-gap-8');
|
|
17
21
|
$datatable-cell-padding: $datatable-cell-padding-y $datatable-cell-padding-x;
|
|
18
|
-
$datatable-cell-margin:
|
|
22
|
+
$datatable-cell-margin: tokens.get('utility-gap-2');
|
|
19
23
|
|
|
20
24
|
$datatable-inverted-cell-bg: color.$white;
|
|
21
25
|
|
|
22
|
-
$datatable-flush-border-width:
|
|
26
|
+
$datatable-flush-border-width: tokens.get('utility-gap-2');
|
|
23
27
|
$datatable-flush-border-color: color.$gray-10;
|
|
24
28
|
$datatable-flush-border: $datatable-flush-border-width solid $datatable-flush-border-color;
|
|
25
29
|
|
|
26
|
-
$datatable-footer-padding-x:
|
|
30
|
+
$datatable-footer-padding-x: tokens.get('utility-gap-16');
|
|
27
31
|
$datatable-footer-padding-y: button.$input-btn-focus-width;
|
|
28
32
|
$datatable-footer-padding: $datatable-footer-padding-y $datatable-footer-padding-x;
|
|
29
33
|
|
|
30
|
-
$datatable-footer-separator-width:
|
|
34
|
+
$datatable-footer-separator-width: tokens.get('utility-gap-2');
|
|
31
35
|
$datatable-footer-separator-color: color.$gray-10;
|
|
32
36
|
$datatable-footer-separator: $datatable-flush-border-width solid $datatable-flush-border-color;
|
|
33
37
|
|
|
34
|
-
$datatable-row-count-input-width:
|
|
38
|
+
$datatable-row-count-input-width: 7rem;
|
|
35
39
|
|
|
36
40
|
$datatable-button-margin: button.$btn-focus-width;
|
|
37
41
|
$datatable-button-width: calc(100% - 2 * #{$datatable-button-margin});
|
|
38
42
|
$datatable-button-height: $datatable-button-width;
|
|
39
43
|
$datatable-button-focus-shadow: button.$btn-focus-box-shadow;
|
|
40
44
|
|
|
41
|
-
$datatable-progressbar-height:
|
|
45
|
+
$datatable-progressbar-height: tokens.get('utility-gap-4');
|
|
42
46
|
$datatable-progressbar-backgroundcolor: color.$gray-10;
|
|
43
47
|
$datatable-progressbar-activecolor: color.$yellow;
|
|
@@ -12,7 +12,7 @@ $dropdown-bg: color.$white !default;
|
|
|
12
12
|
$dropdown-border-color: rgba(color.$black, 0.15) !default;
|
|
13
13
|
$dropdown-border-radius: commons.$border-radius !default;
|
|
14
14
|
$dropdown-border-width: commons.$border-width !default;
|
|
15
|
-
$dropdown-divider-bg:
|
|
15
|
+
$dropdown-divider-bg: color.$white-alpha-60 !default;
|
|
16
16
|
$dropdown-box-shadow: 0 0.5rem 1rem rgba(color.$black, 0.175) !default;
|
|
17
17
|
|
|
18
18
|
$dropdown-link-color: color.$gray-60 !default;
|
|
@@ -6,13 +6,17 @@
|
|
|
6
6
|
@use './../../functions/icons';
|
|
7
7
|
@use './../../functions/sizing';
|
|
8
8
|
@use './../../functions/forms' as forms-fn;
|
|
9
|
+
@use '../../tokens/utilities';
|
|
10
|
+
@use '../../functions/tokens';
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$form-check-
|
|
13
|
-
$form-check-
|
|
12
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
13
|
+
|
|
14
|
+
$form-check-row-gap: tokens.get('utility-gap-12') !default;
|
|
15
|
+
$form-check-column-gap: tokens.get('utility-gap-8') !default;
|
|
16
|
+
$form-check-margin-bottom: tokens.get('utility-gap-16') !default;
|
|
17
|
+
$form-check-inline-margin-right: tokens.get('utility-gap-24') !default;
|
|
14
18
|
$form-check-input-size: 1.375rem !default;
|
|
15
|
-
$form-check-input-size-sm:
|
|
19
|
+
$form-check-input-size-sm: tokens.get('utility-gap-16') !default;
|
|
16
20
|
$form-check-input-border-width: forms.$input-border-width !default;
|
|
17
21
|
$form-check-input-focus-box-shadow: forms.$input-focus-box-shadow !default;
|
|
18
22
|
$form-check-input-disabled-svg-border-width: $form-check-input-border-width * 2;
|
|
@@ -88,44 +92,3 @@ $form-check-input-radio-disabled-background-url-hcm: forms-fn.get-background-svg
|
|
|
88
92
|
initial,
|
|
89
93
|
$form-check-input-disabled-svg-border-width
|
|
90
94
|
);
|
|
91
|
-
|
|
92
|
-
$form-switch-column-gap: spacing.$size-regular !default;
|
|
93
|
-
$form-switch-height: spacing.$size-big !default;
|
|
94
|
-
$form-switch-width: 2 * spacing.$size-big !default;
|
|
95
|
-
$form-switch-bg: rgba(var(--post-contrast-color-rgb), 0.3) !default;
|
|
96
|
-
$form-switch-checked-bg: var(--post-success) !default;
|
|
97
|
-
$form-switch-disabled-bg: color.$gray-20 !default;
|
|
98
|
-
$form-switch-background-image: linear-gradient(
|
|
99
|
-
to right,
|
|
100
|
-
#{$form-switch-bg} 50%,
|
|
101
|
-
#{$form-switch-checked-bg} 50%
|
|
102
|
-
) !default;
|
|
103
|
-
$form-switch-color: color.$white !default;
|
|
104
|
-
$form-switch-border-color: color.$gray-60 !default;
|
|
105
|
-
$form-switch-checked-border-color: color.$black !default;
|
|
106
|
-
$form-switch-disabled-border-color: color.$gray-40 !default;
|
|
107
|
-
$form-switch-label-padding-top: ($form-switch-height - type.$line-height-copy) * 0.5 !default;
|
|
108
|
-
|
|
109
|
-
// DEPRECATED
|
|
110
|
-
|
|
111
|
-
$form-switch-padding-start: 0 !default;
|
|
112
|
-
$form-switch-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-16 -16 32 32'><circle r='15' stroke='#{$form-switch-border-color}' stroke-width='2' fill='#{$form-switch-color}'/></svg>") !default;
|
|
113
|
-
$form-switch-border-radius: $form-switch-width !default;
|
|
114
|
-
$form-switch-transition:
|
|
115
|
-
background-position animation.$transition-base-timing,
|
|
116
|
-
background-color animation.$transition-time-default !default;
|
|
117
|
-
$form-switch-checked-color: color.$white !default;
|
|
118
|
-
$form-switch-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-16 -16 32 32'><circle r='15' stroke='#{$form-switch-checked-border-color}' stroke-width='2' fill='#{$form-switch-checked-color}'/></svg>") !default;
|
|
119
|
-
$form-switch-focus-bg-image: $form-switch-checked-bg-image;
|
|
120
|
-
$form-switch-checked-bg-image-size: $form-switch-height;
|
|
121
|
-
$form-switch-hover-bg: rgba(var(--post-contrast-color-rgb), 0.1) !default;
|
|
122
|
-
$form-switch-linear-gradient: linear-gradient(
|
|
123
|
-
to right,
|
|
124
|
-
#{$form-switch-bg} 50%,
|
|
125
|
-
#{$form-switch-checked-bg} 50%
|
|
126
|
-
);
|
|
127
|
-
$form-switch-linear-gradient-size: (2 * $form-switch-width - $form-switch-height)
|
|
128
|
-
$form-switch-height;
|
|
129
|
-
$form-switch-label-padding-x: spacing.$size-regular !default;
|
|
130
|
-
$form-switch-label-padding-start: $form-switch-label-padding-top 0 0 $form-switch-label-padding-x !default;
|
|
131
|
-
$form-switch-label-padding-end: $form-switch-label-padding-top $form-switch-label-padding-x 0 0 !default;
|
|
@@ -6,60 +6,37 @@
|
|
|
6
6
|
@use './../color';
|
|
7
7
|
@use './../type';
|
|
8
8
|
@use './../spacing';
|
|
9
|
-
@use './../animation';
|
|
10
|
-
@use './../../functions/utilities';
|
|
11
9
|
@use './../../functions/sizing';
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
@use './../../functions/tokens';
|
|
12
|
+
@use './../../tokens/utilities';
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
$form-bg-size-sm: 24px !default;
|
|
14
|
+
// Forms
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
$form-label-color: var(--post-contrast-color) !default;
|
|
20
|
-
$form-label-font-size-sm: type.$font-size-14;
|
|
16
|
+
// Used elsewhere than text input, textarea or select
|
|
21
17
|
|
|
22
18
|
$input-padding-y: button.$input-btn-padding-y !default;
|
|
23
19
|
$input-padding-x: button.$input-btn-padding-x !default;
|
|
24
20
|
$input-line-height: type.$line-height-copy !default;
|
|
25
21
|
|
|
26
|
-
$input-padding-y-sm: button.$input-btn-padding-y-sm !default;
|
|
27
|
-
$input-padding-x-sm: button.$input-btn-padding-x-sm !default;
|
|
22
|
+
$input-padding-y-sm: sizing.px-to-rem(button.$input-btn-padding-y-sm) !default;
|
|
28
23
|
$input-line-height-sm: type.$line-height-copy !default;
|
|
29
24
|
|
|
30
25
|
$input-padding-y-rg: button.$input-btn-padding-y-rg !default;
|
|
31
26
|
$input-padding-x-rg: button.$input-btn-padding-x-rg !default;
|
|
32
27
|
$input-line-height-rg: type.$line-height-copy !default;
|
|
33
28
|
|
|
34
|
-
$input-padding-y-lg: button.$input-btn-padding-y-lg !default;
|
|
35
|
-
$input-padding-x-lg: button.$input-btn-padding-x-lg !default;
|
|
29
|
+
$input-padding-y-lg: sizing.px-to-rem(button.$input-btn-padding-y-lg) !default;
|
|
36
30
|
$input-line-height-lg: type.$line-height-copy !default;
|
|
37
31
|
|
|
38
|
-
$input-
|
|
39
|
-
$input-disabled-bg: rgba(var(--post-contrast-color-inverted-rgb), 0.4) !default;
|
|
40
|
-
$input-disabled-color: var(--post-gray-60); // Design System only
|
|
41
|
-
$input-disabled-border-color: var(--post-gray-40); // Design System only
|
|
42
|
-
$input-disabled-border-style: spacing.$size-line dashed;
|
|
32
|
+
$input-disabled-border-color: color.$gray-40; // Design System only
|
|
43
33
|
|
|
44
|
-
$input-color: color.$black !default;
|
|
45
34
|
$input-border-color: color.$gray-80 !default;
|
|
46
35
|
$input-border-width: button.$input-btn-border-width !default;
|
|
47
|
-
$input-box-shadow: none !default;
|
|
48
|
-
|
|
49
|
-
$input-border-radius: 0 !default;
|
|
50
|
-
$input-border-radius-lg: 0 !default;
|
|
51
|
-
$input-border-radius-rg: 0 !default;
|
|
52
|
-
$input-border-radius-sm: 0 !default;
|
|
53
36
|
|
|
54
|
-
$input-focus-bg: inherit !default;
|
|
55
|
-
$input-focus-border-color: inherit !default;
|
|
56
|
-
$input-focus-color: inherit !default;
|
|
57
37
|
$input-focus-width: button.$input-btn-focus-width !default;
|
|
58
38
|
$input-focus-box-shadow: none !default;
|
|
59
|
-
$input-focus-outline-thickness:
|
|
60
|
-
|
|
61
|
-
$input-placeholder-color: color.$gray-60 !default;
|
|
62
|
-
$input-plaintext-color: var(--post-contrast-color) !default;
|
|
39
|
+
$input-focus-outline-thickness: tokens.get('utility-gap-2', utilities.$post-spacing);
|
|
63
40
|
|
|
64
41
|
$input-height-border: $input-border-width * 2 !default;
|
|
65
42
|
|
|
@@ -71,12 +48,6 @@ $input-height-content-sm: type.$font-size-14 * 1 !default;
|
|
|
71
48
|
$input-height-inner-sm: $input-height-content-sm + ($input-padding-y-sm * 2) + sizing.px-to-rem(2) !default; // + 2px approximation from Figma mockup
|
|
72
49
|
$input-height-sm: $input-height-inner-sm + sizing.px-to-rem($input-height-border) !default;
|
|
73
50
|
|
|
74
|
-
$form-floating-input-height-content-sm: type.$font-size-14 * 1 !default;
|
|
75
|
-
$form-floating-input-height-inner-sm: $form-floating-input-height-content-sm +
|
|
76
|
-
(spacing.$size-regular * 2) - sizing.px-to-rem(2) !default; // - 2px approximation from Figma mockup
|
|
77
|
-
$form-floating-input-height-sm: $form-floating-input-height-inner-sm +
|
|
78
|
-
sizing.px-to-rem($input-height-border) !default;
|
|
79
|
-
|
|
80
51
|
$input-height-content-rg: type.$font-size-regular * $input-line-height-rg !default;
|
|
81
52
|
$input-height-inner-rg: $input-height-content-rg + ($input-padding-y-rg * 2) !default;
|
|
82
53
|
$input-height-rg: calc(#{$input-height-inner-rg} + #{$input-height-border}) !default;
|
|
@@ -85,20 +56,6 @@ $input-height-content-lg: (type.$font-size-16 * $input-line-height-lg) - sizing.
|
|
|
85
56
|
$input-height-inner-lg: $input-height-content-lg + ($input-padding-y-lg * 2) !default;
|
|
86
57
|
$input-height-lg: $input-height-inner-lg + sizing.px-to-rem($input-height-border) !default;
|
|
87
58
|
|
|
88
|
-
$input-transition:
|
|
89
|
-
border-color 0.15s ease-in-out,
|
|
90
|
-
box-shadow 0.15s ease-in-out !default;
|
|
91
|
-
|
|
92
|
-
$form-text-color: var(--post-contrast-color);
|
|
93
|
-
$form-text-font-size: type.$font-size-tiny;
|
|
94
|
-
$form-text-margin-top: spacing.$size-micro !default;
|
|
95
|
-
|
|
96
|
-
$form-group-margin-bottom: 1rem !default;
|
|
97
|
-
|
|
98
|
-
$input-group-addon-color: $input-color !default;
|
|
99
|
-
$input-group-addon-bg: rgba(var(--post-contrast-color-inverted-rgb), 0.6) !default;
|
|
100
|
-
$input-group-addon-border-color: $input-border-color !default;
|
|
101
|
-
|
|
102
59
|
$form-range-track-height: 0.2rem !default;
|
|
103
60
|
$form-range-track-bg: color.$gray-20 !default;
|
|
104
61
|
$form-range-track-box-shadow: inset 0 0.25rem 0.25rem rgba(color.$black, 0.1) !default;
|
|
@@ -118,54 +75,4 @@ $form-range-thumb-disabled-border-color: $input-disabled-border-color !default;
|
|
|
118
75
|
$form-range-height: $form-range-thumb-height + $form-range-thumb-focus-box-shadow-width * 2;
|
|
119
76
|
$form-range-input-height-ie: 6rem !default;
|
|
120
77
|
|
|
121
|
-
$form-file-button-hover-bg: $input-bg;
|
|
122
|
-
|
|
123
78
|
$form-floating-height: $input-height-lg * $input-line-height-lg;
|
|
124
|
-
$form-floating-padding-x: $input-padding-x-lg;
|
|
125
|
-
$form-floating-padding-y: $input-padding-y-lg;
|
|
126
|
-
$form-floating-line-height: type.$line-height-copy;
|
|
127
|
-
$form-floating-input-padding-t: spacing.$size-large;
|
|
128
|
-
$form-floating-input-padding-b: 0;
|
|
129
|
-
$form-floating-label-opacity: 1;
|
|
130
|
-
$form-floating-label-height: $form-floating-height;
|
|
131
|
-
$form-floating-label-color: color.$gray-80;
|
|
132
|
-
$form-floating-label-font-size: type.$font-size-16;
|
|
133
|
-
$form-floating-label-font-size-small: type.$font-size-12;
|
|
134
|
-
$form-floating-label-scale: math.div(
|
|
135
|
-
$form-floating-label-font-size-small,
|
|
136
|
-
$form-floating-label-font-size
|
|
137
|
-
);
|
|
138
|
-
$form-floating-label-upscale: math.div(1, $form-floating-label-scale);
|
|
139
|
-
$form-floating-label-padding-t: $form-floating-label-height * 0.5 - $form-floating-label-font-size *
|
|
140
|
-
type.$line-height-copy * 0.5;
|
|
141
|
-
$form-floating-label-translate-x: $form-floating-padding-x * (1 - $form-floating-label-scale);
|
|
142
|
-
$form-floating-label-transform: scale($form-floating-label-scale);
|
|
143
|
-
$form-floating-transition: animation.$transition-base;
|
|
144
|
-
$form-floating-transition-in:
|
|
145
|
-
$form-floating-transition,
|
|
146
|
-
width 0ms list.nth(animation.$transition-base, 2);
|
|
147
|
-
$form-floating-transition-out:
|
|
148
|
-
$form-floating-transition,
|
|
149
|
-
width 0ms linear;
|
|
150
|
-
$form-floating-select-bg-size: 32px 32px;
|
|
151
|
-
|
|
152
|
-
$form-floating-label-font-size-sm: type.$font-size-12;
|
|
153
|
-
$form-floating-label-font-size-placeholder-sm: type.$font-size-14;
|
|
154
|
-
$form-floating-label-scale-sm: math.div(
|
|
155
|
-
$form-floating-label-font-size-sm,
|
|
156
|
-
$form-floating-label-font-size-placeholder-sm
|
|
157
|
-
);
|
|
158
|
-
$form-floating-label-upscale-sm: math.div(1, $form-floating-label-scale-sm);
|
|
159
|
-
$form-floating-padding-x-sm: spacing.$size-regular;
|
|
160
|
-
$form-floating-padding-y-sm: $input-padding-y-sm;
|
|
161
|
-
$form-floating-label-translate-x-sm: $form-floating-padding-x-sm *
|
|
162
|
-
(1 - $form-floating-label-scale-sm);
|
|
163
|
-
$form-floating-label-height-sm: $form-floating-input-height-sm;
|
|
164
|
-
$form-floating-label-padding-t-sm: $form-floating-label-height-sm * 0.5 -
|
|
165
|
-
$form-floating-label-font-size-sm;
|
|
166
|
-
|
|
167
|
-
$form-floating-textarea-padding-t: spacing.$size-mini + $form-floating-label-font-size *
|
|
168
|
-
$form-floating-line-height * $form-floating-label-scale; // The Space needed for the label on focus
|
|
169
|
-
$form-floating-textarea-padding-t-sm: spacing.$size-mini +
|
|
170
|
-
$form-floating-label-font-size-placeholder-sm * $input-line-height-sm *
|
|
171
|
-
$form-floating-label-scale-sm;
|
|
@@ -3,17 +3,12 @@
|
|
|
3
3
|
@forward 'breadcrumbs';
|
|
4
4
|
@forward 'button';
|
|
5
5
|
@forward 'card';
|
|
6
|
-
@forward 'carousel';
|
|
7
6
|
@forward 'chip';
|
|
8
7
|
@forward 'close';
|
|
9
8
|
@forward 'datepicker';
|
|
10
9
|
@forward 'dropdowns';
|
|
11
|
-
@forward 'figures';
|
|
12
10
|
@forward 'form-check';
|
|
13
|
-
@forward 'form-validation';
|
|
14
|
-
@forward 'form-select';
|
|
15
11
|
@forward 'forms';
|
|
16
|
-
@forward 'list-group';
|
|
17
12
|
@forward 'modal';
|
|
18
13
|
@forward 'nav';
|
|
19
14
|
@forward 'navbar';
|
|
@@ -7,21 +7,26 @@
|
|
|
7
7
|
|
|
8
8
|
@use './button';
|
|
9
9
|
|
|
10
|
+
@use '../../tokens/utilities';
|
|
11
|
+
@use '../../functions/tokens';
|
|
12
|
+
|
|
13
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
14
|
+
|
|
10
15
|
// Modals
|
|
11
16
|
|
|
12
17
|
// Padding applied to the modal footer
|
|
13
|
-
$modal-inner-padding:
|
|
18
|
+
$modal-inner-padding: tokens.get('utility-gap-16') !default;
|
|
14
19
|
|
|
15
20
|
// Padding applied to the modal body
|
|
16
|
-
$modal-body-padding-y:
|
|
17
|
-
$modal-body-padding-x:
|
|
21
|
+
$modal-body-padding-y: tokens.get('utility-gap-8') !default;
|
|
22
|
+
$modal-body-padding-x: tokens.get('utility-gap-32') !default;
|
|
18
23
|
$modal-body-padding: $modal-body-padding-y $modal-body-padding-x !default;
|
|
19
24
|
|
|
20
25
|
// Margin between elements in footer, must be lower than or equal to 2 * $modal-inner-padding
|
|
21
26
|
$modal-footer-margin-between: 0.5rem !default;
|
|
22
27
|
|
|
23
|
-
$modal-dialog-margin:
|
|
24
|
-
$modal-dialog-margin-y-sm-up:
|
|
28
|
+
$modal-dialog-margin: tokens.get('utility-gap-12') !default;
|
|
29
|
+
$modal-dialog-margin-y-sm-up: tokens.get('utility-gap-32') !default;
|
|
25
30
|
|
|
26
31
|
$modal-title-line-height: type.$line-height-copy !default;
|
|
27
32
|
|
|
@@ -43,7 +48,7 @@ $modal-header-border-color: commons.$border-color !default;
|
|
|
43
48
|
$modal-footer-border-color: $modal-header-border-color !default;
|
|
44
49
|
$modal-header-border-width: $modal-content-border-width !default;
|
|
45
50
|
$modal-footer-border-width: $modal-header-border-width !default;
|
|
46
|
-
$modal-header-padding-y:
|
|
51
|
+
$modal-header-padding-y: tokens.get('utility-gap-24') !default;
|
|
47
52
|
$modal-header-padding-x: $modal-body-padding-x !default;
|
|
48
53
|
$modal-header-padding: $modal-header-padding-y $modal-header-padding-x !default; // Keep this for backwards compatibility
|
|
49
54
|
|
|
@@ -52,10 +57,10 @@ $modal-dialog-width-lg: 800px !default;
|
|
|
52
57
|
$modal-dialog-width-md: 500px !default;
|
|
53
58
|
$modal-dialog-width-sm: 300px !default;
|
|
54
59
|
|
|
55
|
-
$modal-xl: sizing.px-to-rem($modal-dialog-width-xl) - 2 * $modal-dialog-margin !default;
|
|
56
|
-
$modal-lg: sizing.px-to-rem($modal-dialog-width-lg) - 2 * $modal-dialog-margin !default;
|
|
57
|
-
$modal-md: sizing.px-to-rem($modal-dialog-width-md) - 2 * $modal-dialog-margin !default;
|
|
58
|
-
$modal-sm: sizing.px-to-rem($modal-dialog-width-sm) - 2 * $modal-dialog-margin !default;
|
|
60
|
+
$modal-xl: calc(sizing.px-to-rem($modal-dialog-width-xl) - 2 * #{$modal-dialog-margin}) !default;
|
|
61
|
+
$modal-lg: calc(sizing.px-to-rem($modal-dialog-width-lg) - 2 * #{$modal-dialog-margin}) !default;
|
|
62
|
+
$modal-md: calc(sizing.px-to-rem($modal-dialog-width-md) - 2 * #{$modal-dialog-margin}) !default;
|
|
63
|
+
$modal-sm: calc(sizing.px-to-rem($modal-dialog-width-sm) - 2 * #{$modal-dialog-margin}) !default;
|
|
59
64
|
|
|
60
65
|
$modal-fade-transform: translate(0, -50px) !default;
|
|
61
66
|
$modal-show-transform: none !default;
|
|
@@ -63,6 +68,6 @@ $modal-transition: transform 0.3s ease-out !default;
|
|
|
63
68
|
$modal-scale-transform: scale(1.02) !default;
|
|
64
69
|
|
|
65
70
|
// Padding applied to the close button
|
|
66
|
-
$modal-btn-close-margin-y:
|
|
67
|
-
$modal-btn-close-margin-x:
|
|
71
|
+
$modal-btn-close-margin-y: tokens.get('utility-gap-8') !default;
|
|
72
|
+
$modal-btn-close-margin-x: tokens.get('utility-gap-16') !default;
|
|
68
73
|
$modal-btn-close-margin: $modal-btn-close-margin-y $modal-btn-close-margin-x !default;
|
|
@@ -41,9 +41,9 @@ $nav-tabs-focus-box-shadow:
|
|
|
41
41
|
0 0 0 2px color.$gray-80 !default;
|
|
42
42
|
$nav-tabs-focus-box-shadow-width: 2px !default;
|
|
43
43
|
|
|
44
|
-
$nav-tabs-i-border-color:
|
|
45
|
-
$nav-tabs-i-link-hover-bg:
|
|
46
|
-
$nav-tabs-i-link-hover-border-color:
|
|
44
|
+
$nav-tabs-i-border-color: color.$white-alpha-40 !default;
|
|
45
|
+
$nav-tabs-i-link-hover-bg: color.$black-alpha-10 !default;
|
|
46
|
+
$nav-tabs-i-link-hover-border-color: color.$white-alpha-80 !default;
|
|
47
47
|
$nav-tabs-i-link-text-color: color.$white !default;
|
|
48
48
|
$nav-tabs-i-link-active-color: color.$white !default;
|
|
49
49
|
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
@use './../type';
|
|
4
4
|
@use './../components/button';
|
|
5
5
|
@use './../components/nav';
|
|
6
|
-
@use './../../functions/utilities';
|
|
6
|
+
@use './../../functions/utilities' as utilities-fx;
|
|
7
|
+
|
|
8
|
+
@use '../../tokens/utilities';
|
|
9
|
+
@use '../../functions/tokens';
|
|
7
10
|
|
|
8
11
|
// Bootstrap variables
|
|
9
12
|
$navbar-padding-y: (spacing.$spacer * 0.5) !default;
|
|
10
13
|
$navbar-padding-x: spacing.$spacer !default;
|
|
11
14
|
|
|
12
|
-
$navbar-nav-link-padding-x:
|
|
15
|
+
$navbar-nav-link-padding-x: tokens.get('utility-gap-48', utilities.$post-spacing) !default;
|
|
13
16
|
|
|
14
17
|
$navbar-brand-font-size: type.$font-size-bigger-regular !default;
|
|
15
18
|
$navbar-brand-height: $navbar-brand-font-size * type.$line-height-copy !default;
|
|
@@ -25,7 +28,7 @@ $navbar-dark-hover-color: rgba(color.$white, 0.75) !default;
|
|
|
25
28
|
$navbar-dark-active-color: color.$white !default;
|
|
26
29
|
$navbar-dark-disabled-color: rgba(color.$white, 0.25) !default;
|
|
27
30
|
|
|
28
|
-
$navbar-dark-toggler-icon-bg: utilities.replace(
|
|
31
|
+
$navbar-dark-toggler-icon-bg: utilities-fx.replace(
|
|
29
32
|
url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-dark-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"),
|
|
30
33
|
'#',
|
|
31
34
|
'%23'
|
|
@@ -36,7 +39,7 @@ $navbar-light-color: rgba(color.$black, 0.5) !default;
|
|
|
36
39
|
$navbar-light-hover-color: rgba(color.$black, 0.7) !default;
|
|
37
40
|
$navbar-light-active-color: rgba(color.$black, 0.9) !default;
|
|
38
41
|
$navbar-light-disabled-color: rgba(color.$black, 0.3) !default;
|
|
39
|
-
$navbar-light-toggler-icon-bg: utilities.replace(
|
|
42
|
+
$navbar-light-toggler-icon-bg: utilities-fx.replace(
|
|
40
43
|
url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-light-color}' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"),
|
|
41
44
|
'#',
|
|
42
45
|
'%23'
|
|
@@ -4,23 +4,31 @@
|
|
|
4
4
|
@use './../commons';
|
|
5
5
|
@use './../spacing';
|
|
6
6
|
@use './../type';
|
|
7
|
+
@use '../../tokens/components';
|
|
8
|
+
@use '../../tokens/utilities';
|
|
9
|
+
@use '../../functions/tokens';
|
|
7
10
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$notification-
|
|
11
|
-
$notification-gap: spacing.$size-small-large !default;
|
|
12
|
-
$notification-body-gap: spacing.$size-micro !default;
|
|
11
|
+
tokens.$default-map: components.$post-banner;
|
|
12
|
+
|
|
13
|
+
$notification-body-gap: tokens.get('utility-gap-4', utilities.$post-spacing) !default;
|
|
13
14
|
$notification-font-weight: type.$font-weight-normal !default;
|
|
14
15
|
$notification-link-font-weight: type.$font-weight-normal !default;
|
|
15
|
-
|
|
16
|
-
$notification-
|
|
16
|
+
|
|
17
|
+
$notification-gap-map: () !default;
|
|
18
|
+
$notification-gap-map: map.merge(
|
|
19
|
+
$notification-gap-map,
|
|
20
|
+
(
|
|
21
|
+
'banner': tokens.get('banner-gap'),
|
|
22
|
+
'toast': tokens.get('toast-spacing-gap-outer', components.$post-toast),
|
|
23
|
+
)
|
|
24
|
+
);
|
|
17
25
|
|
|
18
26
|
$notification-padding-x-map: () !default;
|
|
19
27
|
$notification-padding-x-map: map.merge(
|
|
20
28
|
$notification-padding-x-map,
|
|
21
29
|
(
|
|
22
|
-
'
|
|
23
|
-
'toast': spacing.$
|
|
30
|
+
'banner': tokens.get('banner-padding'),
|
|
31
|
+
'toast': tokens.get('toast-spacing-padding-inline', components.$post-toast),
|
|
24
32
|
)
|
|
25
33
|
);
|
|
26
34
|
|
|
@@ -28,8 +36,8 @@ $notification-padding-y-map: () !default;
|
|
|
28
36
|
$notification-padding-y-map: map.merge(
|
|
29
37
|
$notification-padding-y-map,
|
|
30
38
|
(
|
|
31
|
-
'
|
|
32
|
-
'toast': spacing
|
|
39
|
+
'banner': tokens.get('banner-padding'),
|
|
40
|
+
'toast': tokens.get('toast-spacing-padding-block', components.$post-toast),
|
|
33
41
|
)
|
|
34
42
|
);
|
|
35
43
|
|
|
@@ -37,26 +45,28 @@ $notification-font-size-map: () !default;
|
|
|
37
45
|
$notification-font-size-map: map.merge(
|
|
38
46
|
$notification-font-size-map,
|
|
39
47
|
(
|
|
40
|
-
'
|
|
48
|
+
'banner': type.$font-size-base,
|
|
41
49
|
'toast': type.$font-size-tiny,
|
|
42
50
|
)
|
|
43
51
|
);
|
|
44
52
|
|
|
45
|
-
$notification-
|
|
46
|
-
$notification-
|
|
47
|
-
$notification-
|
|
53
|
+
$notification-hr-margin-block-map: () !default;
|
|
54
|
+
$notification-hr-margin-block-map: map.merge(
|
|
55
|
+
$notification-hr-margin-block-map,
|
|
48
56
|
(
|
|
49
|
-
'
|
|
50
|
-
|
|
57
|
+
'banner': tokens.get('utility-gap-8', utilities.$post-spacing)
|
|
58
|
+
tokens.get('utility-gap-12', utilities.$post-spacing),
|
|
59
|
+
'toast': tokens.get('utility-gap-4', utilities.$post-spacing)
|
|
60
|
+
tokens.get('utility-gap-12', utilities.$post-spacing),
|
|
51
61
|
)
|
|
52
62
|
);
|
|
53
63
|
|
|
54
|
-
$notification-
|
|
55
|
-
$notification-
|
|
56
|
-
$notification-
|
|
64
|
+
$notification-elevation-map: () !default;
|
|
65
|
+
$notification-elevation-map: map.merge(
|
|
66
|
+
$notification-elevation-map,
|
|
57
67
|
(
|
|
58
|
-
'
|
|
59
|
-
'toast':
|
|
68
|
+
'banner': tokens.get('banner-elevation'),
|
|
69
|
+
'toast': tokens.get('toast-elevation', components.$post-toast),
|
|
60
70
|
)
|
|
61
71
|
);
|
|
62
72
|
|
|
@@ -64,27 +74,28 @@ $notification-icon-size-map: () !default;
|
|
|
64
74
|
$notification-icon-size-map: map.merge(
|
|
65
75
|
$notification-icon-size-map,
|
|
66
76
|
(
|
|
67
|
-
'
|
|
68
|
-
'toast':
|
|
77
|
+
'banner': tokens.get('banner-icon-size'),
|
|
78
|
+
'toast': tokens.get('toast-sizing-icon', components.$post-toast),
|
|
69
79
|
)
|
|
70
80
|
);
|
|
71
81
|
|
|
82
|
+
//TODO: Note that primary, and gray have been deleted (.banner by default is now neutral) and that danger is back to error
|
|
72
83
|
$notification-variants: () !default;
|
|
73
84
|
$notification-variants: list.join(
|
|
74
85
|
$notification-variants,
|
|
75
86
|
(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'success'
|
|
79
|
-
|
|
80
|
-
'
|
|
81
|
-
|
|
82
|
-
'
|
|
83
|
-
|
|
84
|
-
'
|
|
85
|
-
|
|
87
|
+
'neutral' tokens.get('banner-neutral-bg') 2201 tokens.get('banner-neutral-border-color')
|
|
88
|
+
tokens.get('banner-neutral-icon-color') tokens.get('post-banner-neutral-bg-scheme'),
|
|
89
|
+
'success' tokens.get('banner-success-bg') 2105 tokens.get('banner-success-border-color')
|
|
90
|
+
tokens.get('banner-success-icon-color') tokens.get('post-banner-success-bg-scheme'),
|
|
91
|
+
'warning' tokens.get('banner-warning-bg') 2104 tokens.get('banner-warning-border-color')
|
|
92
|
+
tokens.get('banner-warning-icon-color') tokens.get('post-banner-warning-bg-scheme'),
|
|
93
|
+
'error' tokens.get('banner-error-bg') 2104 tokens.get('banner-error-border-color')
|
|
94
|
+
tokens.get('banner-error-icon-color') tokens.get('post-banner-error-bg-scheme'),
|
|
95
|
+
'info' tokens.get('banner-info-bg') 2106 tokens.get('banner-info-border-color')
|
|
96
|
+
tokens.get('banner-info-icon-color') tokens.get('post-banner-info-bg-scheme'),
|
|
97
|
+
// duplicate
|
|
98
|
+
'danger' tokens.get('banner-error-bg') 2104 tokens.get('banner-error-border-color')
|
|
99
|
+
tokens.get('banner-error-icon-color') tokens.get('post-banner-error-bg-scheme')
|
|
86
100
|
)
|
|
87
101
|
);
|
|
88
|
-
|
|
89
|
-
// deprecated
|
|
90
|
-
$notification-buttons-margin-start: $notification-buttons-gap !default;
|