@swisspost/design-system-styles 5.0.0-alpha.7
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/LICENSE +202 -0
- package/README.md +40 -0
- package/basics.css +29 -0
- package/basics.scss +9 -0
- package/components/_index.scss +45 -0
- package/components/accordion.scss +94 -0
- package/components/alert.scss +214 -0
- package/components/badge.scss +85 -0
- package/components/base.scss +6 -0
- package/components/breadcrumb.scss +42 -0
- package/components/button-group.scss +69 -0
- package/components/button.scss +213 -0
- package/components/card.scss +211 -0
- package/components/carousel.scss +176 -0
- package/components/close.scss +33 -0
- package/components/datatable.scss +196 -0
- package/components/datepicker.scss +232 -0
- package/components/dropdown.scss +83 -0
- package/components/floating-label.scss +77 -0
- package/components/fonts.scss +27 -0
- package/components/form-check.scss +236 -0
- package/components/form-feedback.scss +32 -0
- package/components/form-range.scss +111 -0
- package/components/form-select.scss +31 -0
- package/components/forms.scss +54 -0
- package/components/grid.scss +100 -0
- package/components/icons.scss +60 -0
- package/components/intranet-header/_icon.scss +6 -0
- package/components/intranet-header/_language-chooser.scss +40 -0
- package/components/intranet-header/_logo.scss +54 -0
- package/components/intranet-header/_nav-overflow.scss +56 -0
- package/components/intranet-header/_scaffolding.scss +96 -0
- package/components/intranet-header/_searchbox.scss +32 -0
- package/components/intranet-header/_settings.scss +23 -0
- package/components/intranet-header/_sidebar.scss +118 -0
- package/components/intranet-header/_top-navigation.scss +109 -0
- package/components/intranet-header/index.scss +17 -0
- package/components/list-group.scss +166 -0
- package/components/modal.scss +62 -0
- package/components/offcanvas.scss +5 -0
- package/components/pagination.scss +79 -0
- package/components/popover.scss +21 -0
- package/components/product-card.scss +74 -0
- package/components/progress.scss +28 -0
- package/components/reboot.scss +10 -0
- package/components/root.scss +11 -0
- package/components/sizing.scss +101 -0
- package/components/spinner.scss +71 -0
- package/components/stepper.scss +193 -0
- package/components/subnavigation.scss +138 -0
- package/components/tables.scss +16 -0
- package/components/tabs.scss +212 -0
- package/components/timepicker.scss +123 -0
- package/components/toast.scss +187 -0
- package/components/tooltip.scss +23 -0
- package/components/topic-teaser.scss +186 -0
- package/components/transitions.scss +4 -0
- package/components/type.scss +131 -0
- package/components/utilities.scss +98 -0
- package/core.css +0 -0
- package/core.scss +5 -0
- package/functions/_color.scss +55 -0
- package/functions/_icons.scss +71 -0
- package/functions/_index.scss +5 -0
- package/functions/_list.scss +22 -0
- package/functions/_sizing.scss +103 -0
- package/functions/_utilities.scss +66 -0
- package/index.css +75 -0
- package/index.scss +8 -0
- package/intranet.css +75 -0
- package/intranet.scss +6 -0
- package/layouts/portal/_grid.scss +80 -0
- package/layouts/portal/_subnavigation.scss +5 -0
- package/layouts/portal/_type.scss +83 -0
- package/layouts/portal/_variables.scss +8 -0
- package/layouts/portal/index.scss +5 -0
- package/lic/_bootstrap-license.scss +29 -0
- package/mixins/_animation.scss +48 -0
- package/mixins/_badge.scss +22 -0
- package/mixins/_button.scss +57 -0
- package/mixins/_color.scss +15 -0
- package/mixins/_form-checks.scss +80 -0
- package/mixins/_forms.scss +110 -0
- package/mixins/_icons.scss +38 -0
- package/mixins/_index.scss +8 -0
- package/mixins/_scroll-shadows.scss +17 -0
- package/mixins/_size.scss +65 -0
- package/mixins/_type.scss +54 -0
- package/mixins/_utilities.scss +79 -0
- package/package.json +76 -0
- package/placeholders/_button.scss +25 -0
- package/placeholders/_color.scss +71 -0
- package/placeholders/_dropdown.scss +11 -0
- package/placeholders/_index.scss +3 -0
- package/placeholders/_notifications.scss +128 -0
- package/placeholders/_text.scss +158 -0
- package/placeholders/badge.scss +61 -0
- package/themes/bootstrap/_accordion.scss +2 -0
- package/themes/bootstrap/_alert.scss +2 -0
- package/themes/bootstrap/_badge.scss +2 -0
- package/themes/bootstrap/_breadcrumbs.scss +2 -0
- package/themes/bootstrap/_button-group.scss +2 -0
- package/themes/bootstrap/_buttons.scss +3 -0
- package/themes/bootstrap/_card.scss +2 -0
- package/themes/bootstrap/_carousel.scss +2 -0
- package/themes/bootstrap/_close.scss +2 -0
- package/themes/bootstrap/_containers.scss +2 -0
- package/themes/bootstrap/_dropdown.scss +2 -0
- package/themes/bootstrap/_forms.scss +9 -0
- package/themes/bootstrap/_grid.scss +2 -0
- package/themes/bootstrap/_images.scss +2 -0
- package/themes/bootstrap/_list-group.scss +2 -0
- package/themes/bootstrap/_modal.scss +2 -0
- package/themes/bootstrap/_nav.scss +2 -0
- package/themes/bootstrap/_navbar.scss +2 -0
- package/themes/bootstrap/_offcanvas.scss +2 -0
- package/themes/bootstrap/_overrides-color.scss +45 -0
- package/themes/bootstrap/_overrides-features.scss +18 -0
- package/themes/bootstrap/_overrides-variables.scss +40 -0
- package/themes/bootstrap/_overrides.scss +5 -0
- package/themes/bootstrap/_pagination.scss +2 -0
- package/themes/bootstrap/_popover.scss +2 -0
- package/themes/bootstrap/_progress.scss +2 -0
- package/themes/bootstrap/_reboot.scss +2 -0
- package/themes/bootstrap/_root.scss +2 -0
- package/themes/bootstrap/_spinners.scss +2 -0
- package/themes/bootstrap/_tables.scss +2 -0
- package/themes/bootstrap/_toasts.scss +2 -0
- package/themes/bootstrap/_tooltip.scss +2 -0
- package/themes/bootstrap/_transitions.scss +2 -0
- package/themes/bootstrap/_type.scss +6 -0
- package/themes/bootstrap/_utilities.scss +9 -0
- package/themes/bootstrap/forms/_floating-labels.scss +2 -0
- package/themes/bootstrap/forms/_form-check.scss +2 -0
- package/themes/bootstrap/forms/_form-control.scss +2 -0
- package/themes/bootstrap/forms/_form-range.scss +2 -0
- package/themes/bootstrap/forms/_form-select.scss +2 -0
- package/themes/bootstrap/forms/_form-text.scss +2 -0
- package/themes/bootstrap/forms/_input-group.scss +2 -0
- package/themes/bootstrap/forms/_labels.scss +2 -0
- package/themes/bootstrap/forms/_validation.scss +2 -0
- package/variables/_animation.scss +36 -0
- package/variables/_breakpoints.scss +9 -0
- package/variables/_color.scss +119 -0
- package/variables/_commons.scss +56 -0
- package/variables/_grid.scss +27 -0
- package/variables/_icons.scss +4600 -0
- package/variables/_index.scss +14 -0
- package/variables/_options.scss +5 -0
- package/variables/_spacing.scss +181 -0
- package/variables/_type.scss +204 -0
- package/variables/components/_accordion.scss +38 -0
- package/variables/components/_alert.scss +51 -0
- package/variables/components/_badge.scss +44 -0
- package/variables/components/_breadcrumbs.scss +21 -0
- package/variables/components/_button.scss +137 -0
- package/variables/components/_card.scss +30 -0
- package/variables/components/_carousel.scss +27 -0
- package/variables/components/_close.scss +19 -0
- package/variables/components/_code.scss +14 -0
- package/variables/components/_datatable.scss +53 -0
- package/variables/components/_datepicker.scss +22 -0
- package/variables/components/_detail-summary.scss +12 -0
- package/variables/components/_dropdowns.scss +30 -0
- package/variables/components/_figures.scss +6 -0
- package/variables/components/_form-check.scss +63 -0
- package/variables/components/_form-feedback.scss +25 -0
- package/variables/components/_form-select.scss +13 -0
- package/variables/components/_form-switch.scss +38 -0
- package/variables/components/_forms.scss +129 -0
- package/variables/components/_index.scss +30 -0
- package/variables/components/_intranet-header.scss +9 -0
- package/variables/components/_list-group.scss +29 -0
- package/variables/components/_modals.scss +68 -0
- package/variables/components/_nav.scss +55 -0
- package/variables/components/_navbar.scss +44 -0
- package/variables/components/_pagination.scss +42 -0
- package/variables/components/_paragraph.scss +6 -0
- package/variables/components/_popovers.scss +28 -0
- package/variables/components/_progress-bars.scss +16 -0
- package/variables/components/_spinners.scss +16 -0
- package/variables/components/_stepper.scss +36 -0
- package/variables/components/_subnavigation.scss +32 -0
- package/variables/components/_tables.scss +39 -0
- package/variables/components/_thumbnails.scss +11 -0
- package/variables/components/_toasts.scss +18 -0
- package/variables/components/_tooltips.scss +18 -0
- package/variables/components/_topic-teaser.scss +27 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@forward './forms/labels';
|
|
2
|
+
@forward './forms/form-text';
|
|
3
|
+
@forward './forms/form-control';
|
|
4
|
+
@forward './forms/form-select';
|
|
5
|
+
@forward './forms/form-check';
|
|
6
|
+
@forward './forms/form-range';
|
|
7
|
+
@forward './forms/floating-labels';
|
|
8
|
+
@forward './forms/input-group';
|
|
9
|
+
@forward './forms/validation';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../variables/color';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Override the necessary bootstrap
|
|
6
|
+
* colors and maps using colors from
|
|
7
|
+
* the post style guide only.
|
|
8
|
+
*
|
|
9
|
+
* Other bootstrap colors
|
|
10
|
+
* will be available as sass-variables
|
|
11
|
+
* but should not be used.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
// $grays are defined in post colors
|
|
15
|
+
// $colors are defined in post colors
|
|
16
|
+
|
|
17
|
+
$primary: color.$gray-80;
|
|
18
|
+
$secondary: color.$gray-60;
|
|
19
|
+
// $success: color.$success; // Is already defined as $sucess in post-colors
|
|
20
|
+
$info: color.$yellow;
|
|
21
|
+
// $warning: color.$warning; // Is already defined as $warning in post-colors
|
|
22
|
+
$danger: color.$error;
|
|
23
|
+
|
|
24
|
+
// Colors that can be used as a background
|
|
25
|
+
$colors: () !default;
|
|
26
|
+
|
|
27
|
+
$theme-colors: () !default;
|
|
28
|
+
$theme-colors: map.merge(
|
|
29
|
+
$theme-colors,
|
|
30
|
+
(
|
|
31
|
+
'primary': $primary,
|
|
32
|
+
'secondary': $secondary,
|
|
33
|
+
'light': color.$light,
|
|
34
|
+
'dark': color.$dark,
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
$theme-colors: map.merge($theme-colors, color.$contextual-colors);
|
|
38
|
+
|
|
39
|
+
// Contrast colors are ok
|
|
40
|
+
|
|
41
|
+
$body-bg: color.$white;
|
|
42
|
+
$body-color: color.$black;
|
|
43
|
+
|
|
44
|
+
$component-active-color: color.$white !default;
|
|
45
|
+
$component-active-bg: $primary !default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Features
|
|
2
|
+
//
|
|
3
|
+
// Note: This variables have almost no influence on how the UI is shown,
|
|
4
|
+
// because they have not been used in the custom swisspost styling.
|
|
5
|
+
// Nevertheless, they have to be defined, for bootstrap to work as expected.
|
|
6
|
+
|
|
7
|
+
$enable-caret: true;
|
|
8
|
+
$enable-rounded: true;
|
|
9
|
+
$enable-shadows: false;
|
|
10
|
+
$enable-gradients: false;
|
|
11
|
+
$enable-transitions: true;
|
|
12
|
+
$enable-hover-media-query: false;
|
|
13
|
+
$enable-grid-classes: true;
|
|
14
|
+
|
|
15
|
+
// Prefix for :root CSS variables
|
|
16
|
+
// TODO: this variable will change from "$variable-prefix" to "$prefix" in bootstrap@5.2
|
|
17
|
+
// https://getbootstrap.com/docs/5.2/customize/css-variables/#prefix
|
|
18
|
+
$variable-prefix: 'bs-' !default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@forward '../../variables/animation';
|
|
2
|
+
@forward '../../variables/breakpoints';
|
|
3
|
+
@forward '../../variables/color';
|
|
4
|
+
@forward './overrides-features';
|
|
5
|
+
@forward './overrides-color';
|
|
6
|
+
@forward '../../variables/commons';
|
|
7
|
+
@forward '../../variables/grid';
|
|
8
|
+
@forward '../../variables/icons';
|
|
9
|
+
@forward '../../variables/spacing';
|
|
10
|
+
@forward '../../variables/options';
|
|
11
|
+
@forward '../../variables/type';
|
|
12
|
+
@forward '../../variables/components/accordion';
|
|
13
|
+
@forward '../../variables/components/alert';
|
|
14
|
+
@forward '../../variables/components/badge';
|
|
15
|
+
@forward '../../variables/components/breadcrumbs';
|
|
16
|
+
@forward '../../variables/components/button';
|
|
17
|
+
@forward '../../variables/components/card';
|
|
18
|
+
@forward '../../variables/components/carousel';
|
|
19
|
+
@forward '../../variables/components/close';
|
|
20
|
+
@forward '../../variables/components/dropdowns';
|
|
21
|
+
@forward '../../variables/components/figures';
|
|
22
|
+
@forward '../../variables/components/form-check';
|
|
23
|
+
@forward '../../variables/components/form-feedback';
|
|
24
|
+
@forward '../../variables/components/form-select';
|
|
25
|
+
@forward '../../variables/components/form-switch';
|
|
26
|
+
@forward '../../variables/components/forms';
|
|
27
|
+
@forward '../../variables/components/list-group';
|
|
28
|
+
@forward '../../variables/components/modals';
|
|
29
|
+
@forward '../../variables/components/nav';
|
|
30
|
+
@forward '../../variables/components/navbar';
|
|
31
|
+
@forward '../../variables/components/pagination';
|
|
32
|
+
@forward '../../variables/components/paragraph';
|
|
33
|
+
@forward '../../variables/components/popovers';
|
|
34
|
+
@forward '../../variables/components/progress-bars';
|
|
35
|
+
@forward '../../variables/components/spinners';
|
|
36
|
+
@forward '../../variables/components/subnavigation';
|
|
37
|
+
@forward '../../variables/components/tables';
|
|
38
|
+
@forward '../../variables/components/thumbnails';
|
|
39
|
+
@forward '../../variables/components/toasts';
|
|
40
|
+
@forward '../../variables/components/tooltips';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './overrides' as *;
|
|
3
|
+
@import 'bootstrap/scss/helpers';
|
|
4
|
+
@import 'bootstrap/scss/utilities';
|
|
5
|
+
|
|
6
|
+
// manipulate $utilities before you import utilities/api
|
|
7
|
+
$utilities: map.remove($utilities, 'background-color');
|
|
8
|
+
|
|
9
|
+
@import 'bootstrap/scss/utilities/api';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './spacing';
|
|
3
|
+
|
|
4
|
+
// Material Design - Motion Guidelines implementation
|
|
5
|
+
// https://material.io/design/motion/
|
|
6
|
+
// The // Original flag simple means, that this variable is not yet tweaked for Post
|
|
7
|
+
|
|
8
|
+
// Complexity
|
|
9
|
+
$transition-time-simple: 150ms !default;
|
|
10
|
+
$transition-time-default: 250ms !default;
|
|
11
|
+
$transition-time-morph: 500ms !default; // Original
|
|
12
|
+
$transition-time-fade-in: 200ms !default;
|
|
13
|
+
$transition-time-fade-out: 125ms !default;
|
|
14
|
+
|
|
15
|
+
// Area
|
|
16
|
+
$transition-time-area-small: $transition-time-simple !default;
|
|
17
|
+
$transition-time-area-medium: 350ms !default;
|
|
18
|
+
$transition-time-area-large: 500ms !default;
|
|
19
|
+
|
|
20
|
+
// Easings
|
|
21
|
+
$transition-easing-default: cubic-bezier(0.4, 0, 0.2, 1) !default;
|
|
22
|
+
$transition-easing-decelerate: cubic-bezier(0, 0, 0.2, 1) !default;
|
|
23
|
+
$transition-easing-accelerate: cubic-bezier(0.4, 0, 1, 1) !default;
|
|
24
|
+
|
|
25
|
+
// Distances
|
|
26
|
+
$transition-distance-xsmall: map.get(spacing.$post-sizes, 'micro') !default;
|
|
27
|
+
$transition-distance-small: map.get(spacing.$post-sizes, 'small-regular') !default;
|
|
28
|
+
$transition-distance-medium: map.get(spacing.$post-sizes, 'regular') !default;
|
|
29
|
+
$transition-distance-medium-md: map.get(spacing.$post-sizes, 'big') !default;
|
|
30
|
+
$transition-distance-large: map.get(spacing.$post-sizes, 'huge') !default;
|
|
31
|
+
$transition-distance-large-md: map.get(spacing.$post-sizes, 'giant') !default;
|
|
32
|
+
|
|
33
|
+
$transition-base-timing: $transition-time-default $transition-easing-default !default;
|
|
34
|
+
$transition-base: all $transition-base-timing !default;
|
|
35
|
+
$transition-fade: opacity $transition-time-fade-in linear !default;
|
|
36
|
+
$transition-collapse: height $transition-base-timing, padding $transition-base-timing !default;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
@use '../functions/color' as color-fn;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Colors used by the post style guide
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// The one and only
|
|
10
|
+
$yellow: #fc0;
|
|
11
|
+
|
|
12
|
+
// Grayscale
|
|
13
|
+
$gray-background: #f4f3f1;
|
|
14
|
+
$gray-background-light: #faf9f8;
|
|
15
|
+
|
|
16
|
+
$white: #fff;
|
|
17
|
+
$gray-10: hsl(0, 0%, 90%);
|
|
18
|
+
$gray-20: hsl(0, 0%, 80%);
|
|
19
|
+
$gray-40: hsl(0, 0%, 60%);
|
|
20
|
+
$gray-60: hsl(0, 0%, 40%);
|
|
21
|
+
$gray-80: hsl(0, 0%, 20%);
|
|
22
|
+
$black: #000;
|
|
23
|
+
|
|
24
|
+
$dark: $gray-80;
|
|
25
|
+
$light: $gray-background-light;
|
|
26
|
+
|
|
27
|
+
// Accent colors
|
|
28
|
+
$nightblue-dark: #004976;
|
|
29
|
+
$nightblue-bright: #0076a8;
|
|
30
|
+
$petrol-dark: #006d68;
|
|
31
|
+
$petrol-bright: #00968f;
|
|
32
|
+
$coral-dark: #9e2a2f;
|
|
33
|
+
$coral-bright: #e03c31;
|
|
34
|
+
$purple-dark: #80276c;
|
|
35
|
+
$purple-bright: #c5299b;
|
|
36
|
+
$olive-dark: #716135;
|
|
37
|
+
$olive-bright: #aa9d2e;
|
|
38
|
+
$aubergine-dark: #523178;
|
|
39
|
+
$aubergine-bright: #7566a0;
|
|
40
|
+
|
|
41
|
+
// Contextual colors
|
|
42
|
+
$success: #2c911c;
|
|
43
|
+
$success-text: #255e1c;
|
|
44
|
+
$error: #a51728;
|
|
45
|
+
$error-text: #8f0d1c;
|
|
46
|
+
$warning: #f49e00;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Maps. Allow maps to have custom colors from the project
|
|
50
|
+
* by always merging into a default empty map
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
$post-grays: () !default;
|
|
54
|
+
$post-grays: map.merge(
|
|
55
|
+
$post-grays,
|
|
56
|
+
(
|
|
57
|
+
'gray-10': $gray-10,
|
|
58
|
+
'gray-20': $gray-20,
|
|
59
|
+
'gray-40': $gray-40,
|
|
60
|
+
'gray-60': $gray-60,
|
|
61
|
+
'gray-80': $gray-80,
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
$contextual-colors: () !default;
|
|
66
|
+
$contextual-colors: map.merge(
|
|
67
|
+
$contextual-colors,
|
|
68
|
+
(
|
|
69
|
+
'success': $success,
|
|
70
|
+
'info': $yellow,
|
|
71
|
+
'warning': $warning,
|
|
72
|
+
'danger': $error,
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
$accent-colors: () !default;
|
|
77
|
+
$accent-colors: map.merge(
|
|
78
|
+
$accent-colors,
|
|
79
|
+
(
|
|
80
|
+
'nightblue': $nightblue-dark,
|
|
81
|
+
'nightblue-bright': $nightblue-bright,
|
|
82
|
+
'petrol': $petrol-dark,
|
|
83
|
+
'petrol-bright': $petrol-bright,
|
|
84
|
+
'coral': $coral-dark,
|
|
85
|
+
'coral-bright': $coral-bright,
|
|
86
|
+
'olive': $olive-dark,
|
|
87
|
+
'olive-bright': $olive-bright,
|
|
88
|
+
'purple': $purple-dark,
|
|
89
|
+
'purple-bright': $purple-bright,
|
|
90
|
+
'aubergine': $aubergine-dark,
|
|
91
|
+
'aubergine-bright': $aubergine-bright,
|
|
92
|
+
)
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
// List of possible background colors with some synonyms for easier usage
|
|
96
|
+
$background-colors: () !default;
|
|
97
|
+
$background-colors: map.merge(
|
|
98
|
+
$background-colors,
|
|
99
|
+
(
|
|
100
|
+
'yellow': $yellow,
|
|
101
|
+
'light': $light,
|
|
102
|
+
'gray': $gray-background,
|
|
103
|
+
'dark': $dark,
|
|
104
|
+
'primary': $gray-80,
|
|
105
|
+
'white': $white,
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
// Merge with the other lists
|
|
110
|
+
$background-colors: map.merge($background-colors, $contextual-colors);
|
|
111
|
+
$background-colors: map.merge($background-colors, $accent-colors);
|
|
112
|
+
|
|
113
|
+
// Compile a list of dark backgrounds, used in the :is selector mixin at mixins/color
|
|
114
|
+
$dark-backgrounds: () !default;
|
|
115
|
+
@each $colorname, $color in $background-colors {
|
|
116
|
+
@if (color-fn.get-contrast-color($color) != #000) {
|
|
117
|
+
$dark-backgrounds: list.append($dark-backgrounds, '.bg-#{$colorname}', $separator: comma);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use './color';
|
|
2
|
+
|
|
3
|
+
// Components
|
|
4
|
+
//
|
|
5
|
+
// Define common padding and border radius sizes and more.
|
|
6
|
+
$border-width: 1px !default;
|
|
7
|
+
$border-thick: 2px !default;
|
|
8
|
+
$border-color: color.$gray-20 !default;
|
|
9
|
+
|
|
10
|
+
$border-radius: 3px !default;
|
|
11
|
+
$border-radius-sm: $border-radius !default;
|
|
12
|
+
$border-radius-rg: $border-radius !default;
|
|
13
|
+
$border-radius-lg: $border-radius !default;
|
|
14
|
+
|
|
15
|
+
$box-shadow-sm: 0 0 4px 0 rgba(color.$black, 0.4) !default;
|
|
16
|
+
$box-shadow: 0 0 5px 0 rgba(color.$black, 0.3) !default;
|
|
17
|
+
$box-shadow-lg: 0 0 8px 0 rgba(color.$black, 0.4) !default;
|
|
18
|
+
$box-shadow-hover: 0 0 1rem 0 rgba(color.$black, 0.08) !default;
|
|
19
|
+
|
|
20
|
+
$caret-width: 0.3em !default;
|
|
21
|
+
|
|
22
|
+
// Z-index master list
|
|
23
|
+
//
|
|
24
|
+
// Warning: Avoid customizing these values. They're used for a bird's eye view
|
|
25
|
+
// of components dependent on the z-axis and are designed to all work together.
|
|
26
|
+
|
|
27
|
+
$zindex-spinner: 990 !default; // Design System only
|
|
28
|
+
$zindex-dropdown: 1000 !default;
|
|
29
|
+
$zindex-sticky: 1020 !default;
|
|
30
|
+
$zindex-fixed: 1030 !default;
|
|
31
|
+
$zindex-modal-backdrop: 1040 !default;
|
|
32
|
+
$zindex-modal: 1055 !default;
|
|
33
|
+
$zindex-popover: 1060 !default;
|
|
34
|
+
$zindex-tooltip: 1070 !default;
|
|
35
|
+
$zindex-alert: 1080 !default; // Design System only
|
|
36
|
+
|
|
37
|
+
// Z-index
|
|
38
|
+
|
|
39
|
+
$z-indexes: (
|
|
40
|
+
hero: (
|
|
41
|
+
img,
|
|
42
|
+
brandframe,
|
|
43
|
+
),
|
|
44
|
+
productcard: (
|
|
45
|
+
card,
|
|
46
|
+
),
|
|
47
|
+
subnavigation: (
|
|
48
|
+
underscore-root,
|
|
49
|
+
underscore-link,
|
|
50
|
+
),
|
|
51
|
+
) !default;
|
|
52
|
+
|
|
53
|
+
// Utilities
|
|
54
|
+
$displays: none, inline, inline-block, block, table, table-row, table-cell, flex, inline-flex !default;
|
|
55
|
+
$overflows: auto, hidden !default;
|
|
56
|
+
$positions: static, relative, absolute, fixed, sticky !default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Grid containers
|
|
2
|
+
//
|
|
3
|
+
// Define the maximum width of `.container` for different screen sizes.
|
|
4
|
+
|
|
5
|
+
$container-max-widths: (
|
|
6
|
+
xs: 1440px,
|
|
7
|
+
) !default;
|
|
8
|
+
|
|
9
|
+
// list of breakpoint giving the possibility to loop over them
|
|
10
|
+
$grid-breakpoints-list: xs sm rg md lg xl xxl;
|
|
11
|
+
|
|
12
|
+
// Grid columns
|
|
13
|
+
//
|
|
14
|
+
// Set the number of columns and specify the width of the gutters.
|
|
15
|
+
|
|
16
|
+
$grid-columns: 12 !default;
|
|
17
|
+
$grid-gutter-width: 30px !default;
|
|
18
|
+
|
|
19
|
+
$grid-container-padding: (
|
|
20
|
+
xs: 12px,
|
|
21
|
+
sm: 16px,
|
|
22
|
+
rg: 32px,
|
|
23
|
+
md: 32px,
|
|
24
|
+
lg: 40px,
|
|
25
|
+
xl: 128px,
|
|
26
|
+
xxl: 128px,
|
|
27
|
+
) !default;
|