@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
package/variables/_index.scss
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
// Sizing
|
|
4
|
+
|
|
5
|
+
// This variable affects the `.h-*` and `.w-*` classes.
|
|
6
|
+
$post-percentage-sizes: () !default;
|
|
7
|
+
$post-percentage-sizes: map.merge(
|
|
8
|
+
(
|
|
9
|
+
'quarter': 25%,
|
|
10
|
+
'third': 33%,
|
|
11
|
+
'half': 50%,
|
|
12
|
+
'two-thirds': 66%,
|
|
13
|
+
'three-quarters': 75%,
|
|
14
|
+
'full': 100%,
|
|
15
|
+
),
|
|
16
|
+
$post-percentage-sizes
|
|
17
|
+
);
|
package/variables/_spacing.scss
CHANGED
|
@@ -16,158 +16,6 @@ $spacers: (
|
|
|
16
16
|
5: $spacer * 3,
|
|
17
17
|
) !default;
|
|
18
18
|
|
|
19
|
-
// Post-Sizes
|
|
20
|
-
$size-hair: 1px !default;
|
|
21
|
-
$size-line: 2px !default;
|
|
22
|
-
$size-micro: 0.25rem !default; // ~4px
|
|
23
|
-
$size-mini: 0.5rem !default; // ~8px
|
|
24
|
-
$size-small-regular: 0.75rem !default; // ~12px
|
|
25
|
-
$size-regular: 1rem !default; // ~16px
|
|
26
|
-
$size-small-large: 1.25rem !default; // ~20px
|
|
27
|
-
$size-large: 1.5rem !default; // ~24px
|
|
28
|
-
$size-big: 2rem !default; // ~32px
|
|
29
|
-
$size-bigger-big: 2.5rem !default; // ~40px
|
|
30
|
-
$size-small-huge: 3rem !default; // ~48px
|
|
31
|
-
$size-huge: 3.5rem !default; // ~56px
|
|
32
|
-
$size-small-giant: 4.5rem !default; // ~72px
|
|
33
|
-
$size-giant: 5rem !default; // ~80px
|
|
34
|
-
$size-bigger-giant: 7rem !default; // ~112px
|
|
35
|
-
|
|
36
|
-
$post-sizes: () !default;
|
|
37
|
-
$post-sizes: map.merge(
|
|
38
|
-
(
|
|
39
|
-
'hair': $size-hair,
|
|
40
|
-
'line': $size-line,
|
|
41
|
-
'micro': $size-micro,
|
|
42
|
-
'mini': $size-mini,
|
|
43
|
-
'small-regular': $size-small-regular,
|
|
44
|
-
'regular': $size-regular,
|
|
45
|
-
'small-large': $size-small-large,
|
|
46
|
-
'large': $size-large,
|
|
47
|
-
'big': $size-big,
|
|
48
|
-
'bigger-big': $size-bigger-big,
|
|
49
|
-
'small-huge': $size-small-huge,
|
|
50
|
-
'huge': $size-huge,
|
|
51
|
-
'small-giant': $size-small-giant,
|
|
52
|
-
'giant': $size-giant,
|
|
53
|
-
'bigger-giant': $size-bigger-giant,
|
|
54
|
-
),
|
|
55
|
-
$post-sizes
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
// This variable affects the `.h-*` and `.w-*` classes.
|
|
59
|
-
$sizes: () !default;
|
|
60
|
-
$sizes: map.merge(
|
|
61
|
-
(
|
|
62
|
-
25: 25%,
|
|
63
|
-
50: 50%,
|
|
64
|
-
75: 75%,
|
|
65
|
-
100: 100%,
|
|
66
|
-
auto: auto,
|
|
67
|
-
),
|
|
68
|
-
$sizes
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
// Abstand Gross, Section
|
|
72
|
-
$size-curve-giant: (
|
|
73
|
-
'xs': $size-huge,
|
|
74
|
-
'sm': $size-huge,
|
|
75
|
-
'rg': $size-huge,
|
|
76
|
-
'md': $size-giant,
|
|
77
|
-
'lg': $size-giant,
|
|
78
|
-
'xl': $size-giant,
|
|
79
|
-
'xxl': $size-giant,
|
|
80
|
-
) !default;
|
|
81
|
-
|
|
82
|
-
// Abstand standard
|
|
83
|
-
$size-curve-huge: (
|
|
84
|
-
'xs': $size-big,
|
|
85
|
-
'sm': $size-big,
|
|
86
|
-
'rg': $size-big,
|
|
87
|
-
'md': $size-bigger-big,
|
|
88
|
-
'lg': $size-bigger-big,
|
|
89
|
-
'xl': $size-huge,
|
|
90
|
-
'xxl': $size-huge,
|
|
91
|
-
) !default;
|
|
92
|
-
|
|
93
|
-
// Abstand Section halb
|
|
94
|
-
$size-curve-bigger-big: (
|
|
95
|
-
'xs': $size-large,
|
|
96
|
-
'sm': $size-large,
|
|
97
|
-
'rg': $size-large,
|
|
98
|
-
'md': $size-small-huge,
|
|
99
|
-
'lg': $size-small-huge,
|
|
100
|
-
'xl': $size-small-huge,
|
|
101
|
-
'xxl': $size-small-huge,
|
|
102
|
-
) !default;
|
|
103
|
-
|
|
104
|
-
// Abstand Breadcrumb, Stepper
|
|
105
|
-
$size-curve-big: (
|
|
106
|
-
'xs': $size-small-large,
|
|
107
|
-
'sm': $size-small-large,
|
|
108
|
-
'rg': $size-small-large,
|
|
109
|
-
'md': $size-big,
|
|
110
|
-
'lg': $size-big,
|
|
111
|
-
'xl': $size-bigger-big,
|
|
112
|
-
'xxl': $size-bigger-big,
|
|
113
|
-
) !default;
|
|
114
|
-
|
|
115
|
-
// H2
|
|
116
|
-
$size-curve-large: (
|
|
117
|
-
'xs': $size-regular,
|
|
118
|
-
'sm': $size-regular,
|
|
119
|
-
'rg': $size-regular,
|
|
120
|
-
'md': $size-small-large,
|
|
121
|
-
'lg': $size-small-large,
|
|
122
|
-
'xl': $size-big,
|
|
123
|
-
'xxl': $size-big,
|
|
124
|
-
) !default;
|
|
125
|
-
|
|
126
|
-
// Button
|
|
127
|
-
$size-curve-regular: (
|
|
128
|
-
'xs': $size-regular,
|
|
129
|
-
'sm': $size-regular,
|
|
130
|
-
'rg': $size-regular,
|
|
131
|
-
'md': $size-large,
|
|
132
|
-
'lg': $size-large,
|
|
133
|
-
'xl': $size-large,
|
|
134
|
-
'xxl': $size-large,
|
|
135
|
-
) !default;
|
|
136
|
-
|
|
137
|
-
// Teaser
|
|
138
|
-
$size-curve-small: (
|
|
139
|
-
'xs': $size-small-regular,
|
|
140
|
-
'sm': $size-regular,
|
|
141
|
-
'rg': $size-regular,
|
|
142
|
-
'md': $size-regular,
|
|
143
|
-
'lg': $size-regular,
|
|
144
|
-
'xl': $size-regular,
|
|
145
|
-
'xxl': $size-regular,
|
|
146
|
-
) !default;
|
|
147
|
-
|
|
148
|
-
// Eingabefelder, p, h3, h4
|
|
149
|
-
$size-curve-tiny: (
|
|
150
|
-
'xs': $size-small-regular,
|
|
151
|
-
'sm': $size-small-regular,
|
|
152
|
-
'rg': $size-small-regular,
|
|
153
|
-
'md': $size-regular,
|
|
154
|
-
'lg': $size-regular,
|
|
155
|
-
'xl': $size-regular,
|
|
156
|
-
'xxl': $size-regular,
|
|
157
|
-
) !default;
|
|
158
|
-
|
|
159
|
-
// List of all adaptive size curves
|
|
160
|
-
$size-curves: (
|
|
161
|
-
'giant': $size-curve-giant,
|
|
162
|
-
'huge': $size-curve-huge,
|
|
163
|
-
'bigger-big': $size-curve-bigger-big,
|
|
164
|
-
'big': $size-curve-big,
|
|
165
|
-
'large': $size-curve-large,
|
|
166
|
-
'regular': $size-curve-regular,
|
|
167
|
-
'small': $size-curve-small,
|
|
168
|
-
'tiny': $size-curve-tiny,
|
|
169
|
-
) !default;
|
|
170
|
-
|
|
171
19
|
$responsive-spacing-properties: (
|
|
172
20
|
'm': 'margin',
|
|
173
21
|
'mt': 'margin-top',
|
package/variables/_type.scss
CHANGED
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
@use './components/paragraph';
|
|
7
7
|
@use './../functions/sizing';
|
|
8
8
|
|
|
9
|
+
@use './../functions/tokens';
|
|
10
|
+
@use './../tokens/utilities';
|
|
11
|
+
@use './../tokens/elements' as element-tokens;
|
|
12
|
+
|
|
13
|
+
tokens.$default-map: utilities.$post-typo;
|
|
14
|
+
|
|
9
15
|
// Fonts
|
|
10
16
|
//
|
|
11
17
|
// Font, line-height, and color for body text, headings, and more.
|
|
12
18
|
|
|
13
19
|
$font-family-sans-serif:
|
|
14
|
-
'
|
|
20
|
+
tokens.get('body-font-family', element-tokens.$post-body),
|
|
15
21
|
-apple-system,
|
|
16
22
|
BlinkMacSystemFont,
|
|
17
23
|
'Segoe UI',
|
|
@@ -21,7 +27,6 @@ $font-family-sans-serif:
|
|
|
21
27
|
sans-serif !default;
|
|
22
28
|
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
23
29
|
monospace !default;
|
|
24
|
-
$font-family-base: $font-family-sans-serif !default;
|
|
25
30
|
|
|
26
31
|
// Deprecated
|
|
27
32
|
$font-size-tiny: sizing.px-to-rem(13px);
|
|
@@ -49,13 +54,12 @@ $font-size-40: sizing.px-to-rem(40px);
|
|
|
49
54
|
$font-size-48: sizing.px-to-rem(48px);
|
|
50
55
|
$font-size-56: sizing.px-to-rem(56px);
|
|
51
56
|
|
|
52
|
-
$line-height-sm: 1;
|
|
53
57
|
$line-height-copy: 1.5;
|
|
54
58
|
$line-height-heading: 1.2;
|
|
55
59
|
|
|
56
|
-
$font-weight-
|
|
57
|
-
$font-weight-
|
|
58
|
-
$font-weight-
|
|
60
|
+
$font-weight-normal: tokens.get('utility-font-weight-regular') !default;
|
|
61
|
+
$font-weight-bold: tokens.get('utility-font-weight-bold') !default;
|
|
62
|
+
$font-weight-black: tokens.get('utility-font-weight-black') !default;
|
|
59
63
|
|
|
60
64
|
// Deprecated
|
|
61
65
|
$font-sizes: (
|
|
@@ -94,7 +98,6 @@ $font-curve-tiny: (
|
|
|
94
98
|
'md': $font-size-small,
|
|
95
99
|
'lg': $font-size-regular,
|
|
96
100
|
'xl': $font-size-regular,
|
|
97
|
-
'xxl': $font-size-bigger-regular,
|
|
98
101
|
);
|
|
99
102
|
$font-curve-small: (
|
|
100
103
|
'xs': $font-size-small,
|
|
@@ -103,7 +106,6 @@ $font-curve-small: (
|
|
|
103
106
|
'md': $font-size-regular,
|
|
104
107
|
'lg': $font-size-bigger-regular,
|
|
105
108
|
'xl': $font-size-bigger-regular,
|
|
106
|
-
'xxl': $font-size-bigger-regular,
|
|
107
109
|
);
|
|
108
110
|
$font-curve-regular: (
|
|
109
111
|
'xs': $font-size-bigger-regular,
|
|
@@ -112,7 +114,6 @@ $font-curve-regular: (
|
|
|
112
114
|
'md': $font-size-bigger-regular,
|
|
113
115
|
'lg': $font-size-medium,
|
|
114
116
|
'xl': $font-size-medium,
|
|
115
|
-
'xxl': $font-size-medium,
|
|
116
117
|
);
|
|
117
118
|
$font-curve-bigger-regular: (
|
|
118
119
|
'xs': $font-size-bigger-regular,
|
|
@@ -121,7 +122,6 @@ $font-curve-bigger-regular: (
|
|
|
121
122
|
'md': $font-size-medium,
|
|
122
123
|
'lg': $font-size-large,
|
|
123
124
|
'xl': $font-size-large,
|
|
124
|
-
'xxl': $font-size-large,
|
|
125
125
|
);
|
|
126
126
|
$font-curve-medium: (
|
|
127
127
|
'xs': $font-size-medium,
|
|
@@ -130,7 +130,6 @@ $font-curve-medium: (
|
|
|
130
130
|
'md': $font-size-medium,
|
|
131
131
|
'lg': $font-size-large,
|
|
132
132
|
'xl': $font-size-large,
|
|
133
|
-
'xxl': $font-size-small-big,
|
|
134
133
|
);
|
|
135
134
|
$font-curve-large: (
|
|
136
135
|
'xs': $font-size-large,
|
|
@@ -139,7 +138,6 @@ $font-curve-large: (
|
|
|
139
138
|
'md': $font-size-small-big,
|
|
140
139
|
'lg': $font-size-big,
|
|
141
140
|
'xl': $font-size-big,
|
|
142
|
-
'xxl': $font-size-bigger-big,
|
|
143
141
|
);
|
|
144
142
|
$font-curve-big: (
|
|
145
143
|
'xs': $font-size-small-big,
|
|
@@ -148,7 +146,6 @@ $font-curve-big: (
|
|
|
148
146
|
'md': $font-size-big,
|
|
149
147
|
'lg': $font-size-bigger-big,
|
|
150
148
|
'xl': $font-size-bigger-big,
|
|
151
|
-
'xxl': $font-size-small-huge,
|
|
152
149
|
);
|
|
153
150
|
|
|
154
151
|
// Deprecated
|
|
@@ -165,8 +162,9 @@ $font-curves: (
|
|
|
165
162
|
$font-size-base: $font-size-regular !default;
|
|
166
163
|
$font-weight-base: $font-weight-normal !default;
|
|
167
164
|
$line-height-base: $line-height-copy;
|
|
168
|
-
$line-height-
|
|
169
|
-
$line-height-
|
|
165
|
+
$line-height-1: tokens.get('utility-line-height-1');
|
|
166
|
+
$line-height-sm: tokens.get('utility-line-height-sm');
|
|
167
|
+
$line-height-lg: tokens.get('utility-line-height-lg');
|
|
170
168
|
|
|
171
169
|
$headings-margin-bottom: (spacing.$spacer * 0.5) !default;
|
|
172
170
|
$headings-font-family: inherit !default;
|
|
@@ -174,24 +172,16 @@ $headings-font-weight: 700 !default;
|
|
|
174
172
|
$headings-line-height: $line-height-heading;
|
|
175
173
|
$headings-color: inherit !default;
|
|
176
174
|
|
|
177
|
-
// Deprecated because unused
|
|
178
|
-
$display1-weight: 300 !default;
|
|
179
|
-
$display2-weight: 300 !default;
|
|
180
|
-
$display3-weight: 300 !default;
|
|
181
|
-
$display4-weight: 300 !default;
|
|
182
|
-
$display-line-height: $headings-line-height !default;
|
|
183
|
-
|
|
184
175
|
$small-font-size: 80% !default;
|
|
185
176
|
|
|
186
177
|
$text-muted: color.$gray-60;
|
|
187
178
|
|
|
188
179
|
$blockquote-font-weight: $font-weight-bold !default;
|
|
189
180
|
$blockquote-border-left: commons.$border-thick solid color.$black !default;
|
|
190
|
-
$blockquote-border-left-width-md:
|
|
191
|
-
$blockquote-padding-left:
|
|
192
|
-
$blockquote-
|
|
193
|
-
$blockquote-margin-
|
|
194
|
-
$blockquote-margin-y: spacing.$size-regular !default;
|
|
181
|
+
$blockquote-border-left-width-md: tokens.get('utility-gap-4', utilities.$post-spacing) !default;
|
|
182
|
+
$blockquote-padding-left: tokens.get('utility-gap-12', utilities.$post-spacing) !default;
|
|
183
|
+
$blockquote-margin-top: tokens.get('utility-gap-24', utilities.$post-spacing) !default;
|
|
184
|
+
$blockquote-margin-y: tokens.get('utility-gap-16', utilities.$post-spacing) !default;
|
|
195
185
|
$blockquote-footer-font-size: math.div(1em * sizing.strip-unit($small-font-size), 100) !default;
|
|
196
186
|
$blockquote-cite-font-weight: $font-weight-normal !default;
|
|
197
187
|
|
|
@@ -8,53 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
@use './button';
|
|
10
10
|
|
|
11
|
-
$accordion-padding: spacing.$spacer !default;
|
|
12
|
-
$accordion-gap: spacing.$size-mini !default;
|
|
13
|
-
$accordion-border-width: commons.$border-thick !default;
|
|
14
|
-
$accordion-border-color: color.$gray-60 !default;
|
|
15
|
-
|
|
16
|
-
$accordion-header-color: color.$gray-80 !default;
|
|
17
|
-
$accordion-header-font-size: type.$font-size-16 !default;
|
|
18
|
-
$accordion-header-font-weight: type.$font-weight-bold !default;
|
|
19
|
-
$accordion-header-line-height: type.$line-height-copy !default;
|
|
20
|
-
|
|
21
11
|
$accordion-button-transition: button.$btn-transition !default;
|
|
22
|
-
$accordion-button-padding: $accordion-padding !default;
|
|
23
|
-
$accordion-button-gap: $accordion-gap !default;
|
|
24
|
-
$accordion-button-disabled-opacity: button.$btn-disabled-opacity !default;
|
|
25
|
-
$accordion-button-focus-box-shadow: button.$btn-focus-box-shadow !default;
|
|
26
|
-
$accordion-button-hover-color: color.$black !default;
|
|
27
|
-
$accordion-button-hover-bg: color.$gray-10 !default;
|
|
28
|
-
|
|
29
|
-
$accordion-icon-name: 2112 !default;
|
|
30
|
-
$accordion-icon-size: spacing.$size-large !default;
|
|
31
12
|
$accordion-icon-transition: transform animation.$transition-base-timing !default;
|
|
32
13
|
$accordion-icon-transform: rotate(-180deg) !default;
|
|
33
|
-
|
|
34
|
-
$accordion-body-padding: $accordion-gap $accordion-padding $accordion-padding !default;
|
|
35
|
-
$accordion-body-font-weight: type.$font-weight-normal !default;
|
|
36
|
-
|
|
37
|
-
// Deprecated
|
|
38
|
-
$accordion-padding-x: spacing.$size-regular !default;
|
|
39
|
-
$accordion-border-radius: 0 !default;
|
|
40
|
-
$accordion-font-curve: 'regular';
|
|
41
|
-
$accordion-body-padding-top: spacing.$size-small-regular !default;
|
|
42
|
-
$accordion-body-padding-bottom: spacing.$size-bigger-big !default;
|
|
43
|
-
$accordion-body-heading-margin-top: spacing.$size-bigger-big;
|
|
44
|
-
$accordion-body-heading-font-weight: type.$font-weight-bold;
|
|
45
|
-
$accordion-button-padding-y: spacing.$size-regular !default;
|
|
46
|
-
$accordion-button-color: color.$black !default;
|
|
47
|
-
$accordion-button-active-bg: transparent !default;
|
|
48
|
-
$accordion-button-active-color: color.$black !default;
|
|
49
|
-
$accordion-button-hover-color: color.$black !default;
|
|
50
|
-
$accordion-button-font-weight: type.$font-weight-bold !default;
|
|
51
|
-
$accordion-button-line-height: type.$line-height-copy !default;
|
|
52
|
-
$accordion-icon-width: spacing.$size-large !default;
|
|
53
|
-
$accordion-button-icon: url('#{icons.get-colored-svg-url(2113, $accordion-button-color)}');
|
|
54
|
-
$accordion-button-active-icon: url('#{icons.get-colored-svg-url(2113, $accordion-button-active-color)}');
|
|
55
|
-
$accordion-hcm-icon: url('#{icons.get-colored-svg-url(2113, color.$white)}');
|
|
56
|
-
$accordion-header-font-curve: 'regular' !default;
|
|
57
|
-
$accordion-heading-margin: spacing.$size-bigger-big 0 0 !default;
|
|
58
|
-
$accordion-heading-font-curve: $accordion-header-font-curve !default;
|
|
59
|
-
$accordion-heading-font-weight: $accordion-header-font-weight !default;
|
|
60
|
-
$accordion-button-cursor: pointer !default;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
@use './button';
|
|
7
7
|
@use './../../functions/sizing';
|
|
8
|
+
@use './../../functions/tokens';
|
|
9
|
+
@use './../../tokens/utilities';
|
|
10
|
+
|
|
11
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
8
12
|
|
|
9
13
|
$badge-border-radius: 50rem;
|
|
10
14
|
$badge-line-height: type.$line-height-copy;
|
|
@@ -12,12 +16,12 @@ $badge-color: color.$white;
|
|
|
12
16
|
$badge-bg: color.$error;
|
|
13
17
|
$badge-border: color.$white solid commons.$border-thick;
|
|
14
18
|
|
|
15
|
-
$badge-height:
|
|
16
|
-
$badge-height-sm:
|
|
17
|
-
$badge-height-empty:
|
|
19
|
+
$badge-height: tokens.get('utility-gap-24');
|
|
20
|
+
$badge-height-sm: tokens.get('utility-gap-16');
|
|
21
|
+
$badge-height-empty: tokens.get('utility-gap-8');
|
|
18
22
|
|
|
19
|
-
$badge-padding-x:
|
|
20
|
-
$badge-padding-x-sm:
|
|
23
|
+
$badge-padding-x: tokens.get('utility-gap-8');
|
|
24
|
+
$badge-padding-x-sm: tokens.get('utility-gap-4');
|
|
21
25
|
$badge-padding-x-empty: 0%; // needs a unit for the calculated min-width
|
|
22
26
|
|
|
23
27
|
$badge-font-size: type.$font-size-12;
|
|
@@ -8,142 +8,90 @@
|
|
|
8
8
|
|
|
9
9
|
@use './../../functions/sizing';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
@use '../../functions/tokens';
|
|
12
|
+
@use '../../tokens/components';
|
|
13
|
+
@use '../../tokens/utilities';
|
|
14
|
+
|
|
15
|
+
tokens.$default-map: components.$post-button;
|
|
16
|
+
|
|
17
|
+
// Available button sizes except the default, which is md
|
|
18
|
+
$btn-non-default-sizes: sm, lg !default;
|
|
19
|
+
|
|
20
|
+
$btn-padding-x-map: (
|
|
21
|
+
'sm': tokens.get('button-small-padding-inline'),
|
|
22
|
+
'md': tokens.get('button-medium-padding-inline'),
|
|
23
|
+
'lg': tokens.get('button-large-padding-inline'),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
$btn-height-map: (
|
|
27
|
+
'sm': tokens.get('button-small-height'),
|
|
28
|
+
'md': tokens.get('button-medium-height'),
|
|
29
|
+
'lg': tokens.get('button-large-height'),
|
|
30
|
+
);
|
|
31
|
+
|
|
14
32
|
$input-btn-border-width: commons.$border-thick !default;
|
|
33
|
+
$btn-border-width: $input-btn-border-width !default;
|
|
34
|
+
|
|
35
|
+
// Allows for customizing button radius independently from global border radius
|
|
36
|
+
$btn-border-radius: tokens.get('button-border-radius-round') !default;
|
|
37
|
+
|
|
38
|
+
$btn-transition-duration: animation.$transition-time-default;
|
|
39
|
+
$btn-transition: (
|
|
40
|
+
opacity $btn-transition-duration,
|
|
41
|
+
border-color $btn-transition-duration,
|
|
42
|
+
background-color $btn-transition-duration,
|
|
43
|
+
color $btn-transition-duration
|
|
44
|
+
) !default;
|
|
45
|
+
|
|
46
|
+
$btn-variants: primary, default, secondary, tertiary, link !default;
|
|
47
|
+
|
|
48
|
+
// For sizes
|
|
49
|
+
$btn-gap-x-map: (
|
|
50
|
+
'sm': tokens.get('button-small-gap-inline'),
|
|
51
|
+
'md': tokens.get('button-medium-gap-inline'),
|
|
52
|
+
'lg': tokens.get('button-large-gap-inline'),
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
$btn-icon-size-map: (
|
|
56
|
+
'sm': tokens.get('button-small-icon'),
|
|
57
|
+
'md': tokens.get('button-medium-icon'),
|
|
58
|
+
'lg': tokens.get('button-large-icon'),
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
// Old variables / Used elsewhere than on the v2 button component
|
|
15
62
|
$input-btn-border-width-rem: sizing.px-to-rem($input-btn-border-width);
|
|
16
63
|
|
|
17
|
-
$input-btn-padding-y:
|
|
18
|
-
$input-btn-padding-x:
|
|
64
|
+
$input-btn-padding-y: sizing.px-to-rem(16) - $input-btn-border-width-rem !default; // px value to avoid build errors
|
|
65
|
+
$input-btn-padding-x: sizing.px-to-rem(20) - $input-btn-border-width-rem !default; // px value to avoid build errors
|
|
19
66
|
$input-btn-line-height: type.$line-height-copy !default;
|
|
20
67
|
|
|
21
|
-
$input-btn-padding-y-sm:
|
|
22
|
-
$input-btn-padding-x-sm:
|
|
23
|
-
$input-btn-line-height-sm: type.$line-height-copy !default;
|
|
68
|
+
$input-btn-padding-y-sm: 4px !default; // px value to avoid build errors
|
|
69
|
+
$input-btn-padding-x-sm: 16px !default; // px value to avoid build errors
|
|
24
70
|
|
|
25
|
-
$input-btn-padding-y-rg:
|
|
26
|
-
$input-btn-padding-x-rg:
|
|
27
|
-
$input-btn-line-height-rg: type.$line-height-copy !default;
|
|
71
|
+
$input-btn-padding-y-rg: sizing.px-to-rem(12) - $input-btn-border-width-rem !default; // px value to avoid build errors
|
|
72
|
+
$input-btn-padding-x-rg: sizing.px-to-rem(16) - $input-btn-border-width-rem !default; // px value to avoid build errors
|
|
28
73
|
|
|
29
|
-
$input-btn-padding-y-lg:
|
|
30
|
-
$input-btn-padding-x-lg:
|
|
31
|
-
$input-btn-line-height-lg: type.$line-height-copy !default;
|
|
74
|
+
$input-btn-padding-y-lg: 12px !default; // px value to avoid build errors
|
|
75
|
+
$input-btn-padding-x-lg: 16px !default; // px value to avoid build errors
|
|
32
76
|
|
|
33
77
|
$input-btn-focus-width: 0.125rem !default; // 2px
|
|
34
78
|
$input-btn-focus-color: rgba(color.$gray-80, 0.25) !default;
|
|
35
79
|
$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;
|
|
36
80
|
|
|
37
|
-
// Buttons
|
|
38
|
-
$btn-animation-distance-factor: 0.5 !default;
|
|
39
|
-
|
|
40
|
-
// sm
|
|
41
|
-
$btn-padding-y-sm: spacing.$size-mini !default;
|
|
42
|
-
$btn-padding-x-sm: sizing.px-to-rem(12) !default;
|
|
43
|
-
$btn-gap-x-sm: sizing.px-to-rem(6) !default;
|
|
44
|
-
$btn-animation-distance-sm: spacing.$size-mini !default;
|
|
45
|
-
// Design System only
|
|
46
81
|
$btn-height-sm: 2rem;
|
|
47
|
-
$btn-
|
|
48
|
-
$btn-icon-size-sm: spacing.$size-regular !default;
|
|
49
|
-
|
|
50
|
-
// rg
|
|
51
|
-
$btn-padding-y-rg: spacing.$size-small-regular !default;
|
|
52
|
-
$btn-padding-x-rg: sizing.px-to-rem(14) !default;
|
|
53
|
-
$btn-gap-x-rg: sizing.px-to-rem(8) !default;
|
|
54
|
-
$btn-animation-distance-rg: spacing.$size-mini !default;
|
|
55
|
-
// Design System only
|
|
56
|
-
$btn-height-rg: 2.5rem;
|
|
82
|
+
$btn-icon-size-sm: tokens.get('utility-gap-16', utilities.$post-spacing) !default;
|
|
57
83
|
$btn-font-size-rg: type.$font-size-14 !default;
|
|
58
84
|
$btn-icon-size-rg: 1.125rem !default;
|
|
59
|
-
|
|
60
|
-
// md
|
|
61
|
-
$btn-padding-y-md: spacing.$size-regular !default;
|
|
62
|
-
$btn-padding-x-md: sizing.px-to-rem(16) !default;
|
|
63
|
-
$btn-gap-x-md: sizing.px-to-rem(10) !default;
|
|
64
|
-
$btn-animation-distance-md: spacing.$size-mini !default;
|
|
65
|
-
// Design System only
|
|
66
85
|
$btn-height-md: 3rem;
|
|
67
|
-
$btn-
|
|
68
|
-
$btn-icon-size-md: spacing.$size-small-large !default;
|
|
69
|
-
|
|
70
|
-
// lg
|
|
71
|
-
$btn-padding-y-lg: spacing.$size-small-large !default;
|
|
72
|
-
$btn-padding-x-lg: sizing.px-to-rem(18) !default;
|
|
73
|
-
$btn-gap-x-lg: sizing.px-to-rem(12) !default;
|
|
74
|
-
$btn-animation-distance-lg: spacing.$size-mini !default;
|
|
75
|
-
// Design System only
|
|
76
|
-
$btn-height-lg: 3.5rem;
|
|
77
|
-
$btn-font-size-lg: type.$font-size-18 !default;
|
|
86
|
+
$btn-icon-size-md: 1.25rem !default;
|
|
78
87
|
$btn-icon-size-lg: 1.375rem !default;
|
|
79
|
-
|
|
80
|
-
// Available button sizes except the default, which is md
|
|
81
|
-
$btn-non-default-sizes: sm, rg, lg !default;
|
|
82
|
-
|
|
83
|
-
$btn-animation-distance-map: (
|
|
84
|
-
'sm': $btn-animation-distance-sm,
|
|
85
|
-
'rg': $btn-animation-distance-rg,
|
|
86
|
-
'md': $btn-animation-distance-md,
|
|
87
|
-
'lg': $btn-animation-distance-lg,
|
|
88
|
-
);
|
|
89
|
-
$btn-padding-y-map: (
|
|
90
|
-
'sm': $btn-padding-y-sm,
|
|
91
|
-
'rg': $btn-padding-y-rg,
|
|
92
|
-
'md': $btn-padding-y-md,
|
|
93
|
-
'lg': $btn-padding-y-lg,
|
|
94
|
-
);
|
|
95
|
-
$btn-padding-x-map: (
|
|
96
|
-
'sm': $btn-padding-x-sm,
|
|
97
|
-
'rg': $btn-padding-x-rg,
|
|
98
|
-
'md': $btn-padding-x-md,
|
|
99
|
-
'lg': $btn-padding-x-lg,
|
|
100
|
-
);
|
|
101
|
-
$btn-gap-x-map: (
|
|
102
|
-
'sm': $btn-gap-x-sm,
|
|
103
|
-
'rg': $btn-gap-x-rg,
|
|
104
|
-
'md': $btn-gap-x-md,
|
|
105
|
-
'lg': $btn-gap-x-lg,
|
|
106
|
-
);
|
|
107
|
-
$btn-height-map: (
|
|
108
|
-
'sm': $btn-height-sm,
|
|
109
|
-
'rg': $btn-height-rg,
|
|
110
|
-
'md': $btn-height-md,
|
|
111
|
-
'lg': $btn-height-lg,
|
|
112
|
-
);
|
|
113
|
-
$btn-font-size-map: (
|
|
114
|
-
'sm': $btn-font-size-sm,
|
|
115
|
-
'rg': $btn-font-size-rg,
|
|
116
|
-
'md': $btn-font-size-md,
|
|
117
|
-
'lg': $btn-font-size-lg,
|
|
118
|
-
);
|
|
119
|
-
$btn-icon-size-map: (
|
|
88
|
+
$old-btn-icon-size-map: (
|
|
120
89
|
'sm': $btn-icon-size-sm,
|
|
121
90
|
'rg': $btn-icon-size-rg,
|
|
122
91
|
'md': $btn-icon-size-md,
|
|
123
92
|
'lg': $btn-icon-size-lg,
|
|
124
93
|
);
|
|
125
94
|
|
|
126
|
-
$btn-border-width: $input-btn-border-width !default;
|
|
127
|
-
|
|
128
|
-
$btn-font-weight: type.$font-weight-normal !default;
|
|
129
|
-
$btn-box-shadow: none !default;
|
|
130
95
|
$btn-focus-width: $input-btn-focus-width !default;
|
|
131
96
|
$btn-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
|
132
97
|
$btn-disabled-opacity: 0.4 !default;
|
|
133
|
-
$btn-disabled-background: rgba(color.$black, 0.4) !default;
|
|
134
|
-
$btn-active-box-shadow: none !default;
|
|
135
|
-
|
|
136
|
-
$btn-link-disabled-color: color.$gray-20 !default;
|
|
137
|
-
|
|
138
|
-
$btn-block-spacing-y: 0.5rem !default;
|
|
139
|
-
|
|
140
|
-
// Allows for customizing button radius independently from global border radius
|
|
141
|
-
$btn-border-radius: commons.$border-radius !default;
|
|
142
|
-
|
|
143
|
-
$btn-transition-duration: animation.$transition-time-default;
|
|
144
|
-
$btn-transition: (
|
|
145
|
-
opacity $btn-transition-duration,
|
|
146
|
-
border-color $btn-transition-duration,
|
|
147
|
-
background-color $btn-transition-duration,
|
|
148
|
-
color $btn-transition-duration
|
|
149
|
-
) !default;
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
@use './../type';
|
|
5
5
|
@use './../spacing';
|
|
6
6
|
@use './../../functions/sizing';
|
|
7
|
+
@use '../../functions/tokens';
|
|
8
|
+
@use '../../tokens/utilities';
|
|
9
|
+
|
|
10
|
+
tokens.$default-map: utilities.$post-spacing;
|
|
7
11
|
|
|
8
12
|
// Cards
|
|
9
13
|
$card-font-size: type.$font-size-small !default; // Design System only
|
|
@@ -14,8 +18,9 @@ $card-margin-top: sizing.calculate-single-box-shadow-size(
|
|
|
14
18
|
commons.$box-shadow
|
|
15
19
|
) !default; // ensures the shadow is visible
|
|
16
20
|
|
|
17
|
-
$card-spacer-y:
|
|
18
|
-
$card-spacer-x:
|
|
21
|
+
$card-spacer-y: 20px !default; // px value to avoid bootstrap build errors
|
|
22
|
+
$card-spacer-x: tokens.get('utility-gap-16') !default;
|
|
23
|
+
|
|
19
24
|
$card-border-width: commons.$border-width !default;
|
|
20
25
|
$card-border-radius: commons.$border-width * 2 !default; // Design System
|
|
21
26
|
$card-border-color: color.$gray-20 !default; // Design System
|
|
@@ -27,5 +32,3 @@ $card-bg: color.$white !default;
|
|
|
27
32
|
$card-color: color.$black !default;
|
|
28
33
|
|
|
29
34
|
$card-img-overlay-padding: $card-spacer-x !default;
|
|
30
|
-
|
|
31
|
-
$card-group-margin: (grid.$grid-gutter-width * 0.5) !default;
|