@ch-post-common/common-web-frontend 0.0.1-security → 6.939.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @ch-post-common/common-web-frontend might be problematic. Click here for more details.
- package/components/accordion.scss +177 -0
- package/components/alert.scss +217 -0
- package/components/badge.scss +95 -0
- package/components/breadcrumb.scss +43 -0
- package/components/button.scss +168 -0
- package/components/card.scss +227 -0
- package/components/carousel.scss +161 -0
- package/components/custom-choice-control.scss +217 -0
- package/components/custom-range-input.scss +51 -0
- package/components/custom-select.scss +60 -0
- package/components/datatable.scss +147 -0
- package/components/datepicker.scss +220 -0
- package/components/detail-summary.scss +72 -0
- package/components/dropdown.scss +71 -0
- package/components/floating-label.scss +65 -0
- package/components/fonts.scss +35 -0
- package/components/form-feedback.scss +70 -0
- package/components/forms.scss +31 -0
- package/components/grid.scss +103 -0
- package/components/icons.scss +62 -0
- package/components/intranet-header/_icon.scss +6 -0
- package/components/intranet-header/_language-chooser.scss +40 -0
- package/components/intranet-header/_logo.scss +74 -0
- package/components/intranet-header/_nav-overflow.scss +56 -0
- package/components/intranet-header/_scaffolding.scss +96 -0
- package/components/intranet-header/_searchbox.scss +56 -0
- package/components/intranet-header/_settings.scss +23 -0
- package/components/intranet-header/_sidebar.scss +118 -0
- package/components/intranet-header/_top-navigation.scss +83 -0
- package/components/list-group.scss +156 -0
- package/components/modal.scss +87 -0
- package/components/pagination.scss +67 -0
- package/components/popover.scss +21 -0
- package/components/product-card.scss +74 -0
- package/components/progress.scss +15 -0
- package/components/reboot.scss +17 -0
- package/components/root.scss +10 -0
- package/components/sizing.scss +90 -0
- package/components/spinner.scss +58 -0
- package/components/stepper.scss +158 -0
- package/components/subnavigation.scss +131 -0
- package/components/switch.scss +132 -0
- package/components/tabs.scss +122 -0
- package/components/timepicker.scss +110 -0
- package/components/toast.scss +172 -0
- package/components/tooltip.scss +23 -0
- package/components/topic-teaser.scss +133 -0
- package/components/type.scss +106 -0
- package/components/utilities.scss +93 -0
- package/index.js +28 -0
- package/layouts/portal/_type.scss +83 -0
- package/lic/_bootstrap-license.scss +29 -0
- package/lic/_cwf-license.scss +7 -0
- package/mixins/_animation.scss +39 -0
- package/mixins/_button.scss +232 -0
- package/mixins/_forms.scss +188 -0
- package/mixins/_icons.scss +27 -0
- package/mixins/_scroll-shadows.scss +13 -0
- package/mixins/_size.scss +69 -0
- package/mixins/_type.scss +187 -0
- package/mixins/_utilities.scss +73 -0
- package/package.json +11 -3
- package/placeholders/_dropdown.scss +11 -0
- package/placeholders/_floating-label.scss +143 -0
- package/placeholders/_notifications.scss +160 -0
- package/placeholders/_text.scss +187 -0
- package/variables/_animation.scss +36 -0
- package/variables/_color.scss +240 -0
- package/variables/_commons.scss +57 -0
- package/variables/_icons.scss +2071 -0
- package/variables/_spacing.scss +180 -0
- package/variables/_type.scss +157 -0
- package/variables/components/_accordion.scss +22 -0
- package/variables/components/_alert.scss +50 -0
- package/variables/components/_badge.scss +29 -0
- package/variables/components/_breadcrumbs.scss +21 -0
- package/variables/components/_button.scss +152 -0
- package/variables/components/_card.scss +29 -0
- package/variables/components/_carousel.scss +27 -0
- package/variables/components/_close.scss +9 -0
- package/variables/components/_datatable.scss +49 -0
- package/variables/components/_datepicker.scss +14 -0
- package/variables/components/_dropdowns.scss +30 -0
- package/variables/components/_forms.scss +256 -0
- package/variables/components/_intranet-header.scss +9 -0
- package/variables/components/_modals.scss +68 -0
- package/variables/components/_nav.scss +82 -0
- package/variables/components/_pagination.scss +41 -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/_stepper.scss +26 -0
- package/variables/components/_subnavigation.scss +36 -0
- package/variables/components/_switch.scss +3 -0
- package/variables/components/_tables.scss +31 -0
- package/variables/components/_tooltips.scss +26 -0
- package/README.md +0 -5
@@ -0,0 +1,49 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 by Swiss Post, Information Technology
|
3
|
+
*/
|
4
|
+
|
5
|
+
|
6
|
+
@use "../color";
|
7
|
+
@use "../spacing";
|
8
|
+
@use "../type";
|
9
|
+
@use "./button";
|
10
|
+
@use "../../functions/icons";
|
11
|
+
|
12
|
+
$datatable-header-font-weight: type.$font-weight-bold;
|
13
|
+
$datatable-header-unsorted-color: color.$secondary;
|
14
|
+
|
15
|
+
$_chevron-up: icons.get-colored-svg-url("2051", color.$gray-800);
|
16
|
+
$_chevron-down: icons.get-colored-svg-url("2052", color.$gray-800);
|
17
|
+
$datatable-sort-asc-icon: url($_chevron-up);
|
18
|
+
$datatable-sort-desc-icon: url($_chevron-down);
|
19
|
+
|
20
|
+
$datatable-cell-bg: color.$light;
|
21
|
+
$datatable-cell-padding-x: spacing.$size-regular;
|
22
|
+
$datatable-cell-padding-y: spacing.$size-mini;
|
23
|
+
$datatable-cell-padding: $datatable-cell-padding-y $datatable-cell-padding-x;
|
24
|
+
$datatable-cell-margin: spacing.$size-line;
|
25
|
+
|
26
|
+
$datatable-inverted-cell-bg: color.$white;
|
27
|
+
|
28
|
+
$datatable-flush-border-width: spacing.$size-line;
|
29
|
+
$datatable-flush-border-color: color.$gray-100;
|
30
|
+
$datatable-flush-border: $datatable-flush-border-width solid $datatable-flush-border-color;
|
31
|
+
|
32
|
+
$datatable-footer-padding-x: spacing.$size-regular;
|
33
|
+
$datatable-footer-padding-y: 0;
|
34
|
+
$datatable-footer-padding: $datatable-footer-padding-y $datatable-footer-padding-x;
|
35
|
+
|
36
|
+
$datatable-footer-separator-width: spacing.$size-line;
|
37
|
+
$datatable-footer-separator-color: color.$gray-100;
|
38
|
+
$datatable-footer-separator: $datatable-flush-border-width solid $datatable-flush-border-color;
|
39
|
+
|
40
|
+
$datatable-row-count-input-width: spacing.$size-giant;
|
41
|
+
$datatable-row-count-font-size: 125%;
|
42
|
+
|
43
|
+
$datatable-button-margin: button.$btn-focus-width;
|
44
|
+
$datatable-button-width: calc(100% - 2 * #{$datatable-button-margin});
|
45
|
+
$datatable-button-height: $datatable-button-width;
|
46
|
+
$datatable-button-focus-shadow: button.$btn-focus-box-shadow;
|
47
|
+
|
48
|
+
$_pencil: icons.get-colored-svg-url("3193", color.$gray-800);
|
49
|
+
$datatable-editable-icon: url($_pencil);
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@use "./forms";
|
2
|
+
|
3
|
+
// nested calc functions are not supported by IE. That's the reason why the $input-height variable isn't used.
|
4
|
+
|
5
|
+
$ngb-dp-icon-size: 22px;
|
6
|
+
$ngb-dp-icon-padding: calc((#{forms.$input-height-inner} + #{forms.$input-height-border} - #{$ngb-dp-icon-size}) / 2);
|
7
|
+
|
8
|
+
$ngb-dp-icon-size-sm: 18px;
|
9
|
+
$ngb-dp-icon-padding-sm: calc((#{forms.$input-height-inner-sm} + #{forms.$input-height-border} - #{$ngb-dp-icon-size-sm}) / 2);
|
10
|
+
|
11
|
+
$ngb-dp-icon-padding-rg: calc((#{forms.$input-height-inner-rg} + #{forms.$input-height-border} - #{$ngb-dp-icon-size}) / 2);
|
12
|
+
|
13
|
+
$ngb-dp-icon-size-lg: 24px;
|
14
|
+
$ngb-dp-icon-padding-lg: calc((#{forms.$input-height-inner-lg} + #{forms.$input-height-border} - #{$ngb-dp-icon-size-lg}) / 2);
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@use "../color";
|
2
|
+
@use "../commons";
|
3
|
+
|
4
|
+
// Dropdowns
|
5
|
+
//
|
6
|
+
// Dropdown menu container and contents.
|
7
|
+
|
8
|
+
$dropdown-min-width: 10rem !default;
|
9
|
+
$dropdown-padding-y: .5rem !default;
|
10
|
+
$dropdown-spacer: .125rem !default;
|
11
|
+
$dropdown-bg: color.$white !default;
|
12
|
+
$dropdown-border-color: rgba(color.$black, .15) !default;
|
13
|
+
$dropdown-border-radius: commons.$border-radius !default;
|
14
|
+
$dropdown-border-width: commons.$border-width !default;
|
15
|
+
$dropdown-divider-bg: color.$white-alpha-60 !default;
|
16
|
+
$dropdown-box-shadow: 0 .5rem 1rem rgba(color.$black, .175) !default;
|
17
|
+
|
18
|
+
$dropdown-link-color: color.$gray-600 !default;
|
19
|
+
$dropdown-link-hover-color: color.$black !default;
|
20
|
+
$dropdown-link-hover-bg: color.$gray-50 !default;
|
21
|
+
|
22
|
+
$dropdown-link-active-color: color.$gray-800 !default;
|
23
|
+
$dropdown-link-active-bg: color.$yellow !default;
|
24
|
+
|
25
|
+
$dropdown-link-disabled-color: color.$gray-200 !default;
|
26
|
+
|
27
|
+
$dropdown-item-padding-y: .25rem !default;
|
28
|
+
$dropdown-item-padding-x: 1.5rem !default;
|
29
|
+
|
30
|
+
$dropdown-header-color: color.$gray-200 !default;
|
@@ -0,0 +1,256 @@
|
|
1
|
+
@use "sass:map";
|
2
|
+
|
3
|
+
@use "./button";
|
4
|
+
@use "../color";
|
5
|
+
@use "../type";
|
6
|
+
@use "../spacing";
|
7
|
+
@use "../commons";
|
8
|
+
@use "../../functions/utilities";
|
9
|
+
|
10
|
+
// Forms
|
11
|
+
|
12
|
+
$label-margin-bottom: .5rem !default;
|
13
|
+
|
14
|
+
$input-padding-y: button.$input-btn-padding-y !default;
|
15
|
+
$input-padding-x: button.$input-btn-padding-x !default;
|
16
|
+
$input-line-height: button.$input-btn-line-height !default;
|
17
|
+
|
18
|
+
$input-padding-y-sm: button.$input-btn-padding-y-sm !default;
|
19
|
+
$input-padding-x-sm: button.$input-btn-padding-x-sm !default;
|
20
|
+
$input-line-height-sm: button.$input-btn-line-height-sm !default;
|
21
|
+
|
22
|
+
$input-padding-y-rg: button.$input-btn-padding-y-rg !default;
|
23
|
+
$input-padding-x-rg: button.$input-btn-padding-x-rg !default;
|
24
|
+
$input-line-height-rg: button.$input-btn-line-height-rg !default;
|
25
|
+
|
26
|
+
$input-padding-y-lg: button.$input-btn-padding-y-lg !default;
|
27
|
+
$input-padding-x-lg: button.$input-btn-padding-x-lg !default;
|
28
|
+
$input-line-height-lg: button.$input-btn-line-height-lg !default;
|
29
|
+
|
30
|
+
$input-bg: color.$white !default;
|
31
|
+
$input-disabled-bg: color.$white-alpha-60 !default;
|
32
|
+
$input-disabled-color: color.$gray-600; // CWF only
|
33
|
+
$input-disabled-border-color: color.$gray-200; // CWF only
|
34
|
+
|
35
|
+
$input-color: color.$black !default;
|
36
|
+
$input-border-color: color.$gray-600 !default;
|
37
|
+
$input-border-width: button.$input-btn-border-width !default;
|
38
|
+
$input-box-shadow: none !default;
|
39
|
+
|
40
|
+
$input-border-radius: 0 !default;
|
41
|
+
$input-border-radius-lg: 0 !default;
|
42
|
+
$input-border-radius-rg: 0 !default;
|
43
|
+
$input-border-radius-sm: 0 !default;
|
44
|
+
|
45
|
+
$input-focus-bg: $input-bg !default;
|
46
|
+
$input-focus-border-color: color.$black !default;
|
47
|
+
$input-focus-color: $input-color !default;
|
48
|
+
$input-focus-width: button.$input-btn-focus-width !default;
|
49
|
+
$input-focus-box-shadow: button.$input-btn-focus-box-shadow !default;
|
50
|
+
|
51
|
+
$input-placeholder-color: color.$gray-600 !default;
|
52
|
+
$input-plaintext-color: color.$body-color !default;
|
53
|
+
|
54
|
+
$input-height-border: $input-border-width * 2 !default;
|
55
|
+
|
56
|
+
$input-height-inner: (type.$font-size-base * button.$input-btn-line-height) +
|
57
|
+
(button.$input-btn-padding-y * 2) !default;
|
58
|
+
$input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;
|
59
|
+
|
60
|
+
$input-height-inner-sm: (type.$font-size-sm * button.$input-btn-line-height-sm) +
|
61
|
+
(button.$input-btn-padding-y-sm * 2) !default;
|
62
|
+
$input-height-sm: calc(
|
63
|
+
#{$input-height-inner-sm} + #{$input-height-border}
|
64
|
+
) !default;
|
65
|
+
|
66
|
+
$input-height-inner-rg: (type.$font-size-rg * button.$input-btn-line-height-rg) +
|
67
|
+
(button.$input-btn-padding-y-rg * 2) !default;
|
68
|
+
$input-height-rg: calc(
|
69
|
+
#{$input-height-inner-rg} + #{$input-height-border}
|
70
|
+
) !default;
|
71
|
+
|
72
|
+
$input-height-inner-lg: (type.$font-size-lg * button.$input-btn-line-height-lg) +
|
73
|
+
(map.get(spacing.$post-sizes, "large") * 2) !default; // CWF
|
74
|
+
$input-height-lg: calc(
|
75
|
+
#{$input-height-inner-lg} + #{$input-height-border}
|
76
|
+
) !default;
|
77
|
+
|
78
|
+
$input-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
|
79
|
+
|
80
|
+
$floating-label-spacing-x: map.get(spacing.$post-sizes, "regular"); // CWF only
|
81
|
+
$floating-label-spacing-y: map.get(spacing.$post-sizes, "large"); // CWF only
|
82
|
+
|
83
|
+
// Adjustment in rendering of selects in IE / Firefox
|
84
|
+
$floating-label-select-spacing-x-ie: .9rem; // CWF only
|
85
|
+
$floating-label-select-spacing-x-moz: .8rem; // CWF only
|
86
|
+
|
87
|
+
$floating-label-padding: $floating-label-spacing-y 0 0 $floating-label-spacing-x; // CWF only
|
88
|
+
$floating-label-input-padding: $floating-label-spacing-y
|
89
|
+
$floating-label-spacing-x 0; // CWF only
|
90
|
+
$floating-label-color: color.$black-alpha-60; // CWF only
|
91
|
+
$floating-label-font-size: type.$font-size-lg; // CWF only
|
92
|
+
$floating-label-font-size-small: type.$font-size-tiny; // CWF only
|
93
|
+
$floating-label-transition-distance: map.get(
|
94
|
+
spacing.$post-sizes,
|
95
|
+
"mini"
|
96
|
+
); // CWF only
|
97
|
+
|
98
|
+
$form-text-margin-top: .25rem !default;
|
99
|
+
|
100
|
+
$form-check-input-gutter: 1.25rem !default;
|
101
|
+
$form-check-input-margin-y: .3rem !default;
|
102
|
+
$form-check-input-margin-x: .25rem !default;
|
103
|
+
|
104
|
+
$form-check-inline-margin-x: .75rem !default;
|
105
|
+
$form-check-inline-input-margin-x: .3125rem !default;
|
106
|
+
|
107
|
+
$form-group-margin-bottom: 1rem !default;
|
108
|
+
|
109
|
+
$input-group-addon-color: $input-color !default;
|
110
|
+
$input-group-addon-bg: color.$white-alpha-60 !default;
|
111
|
+
$input-group-addon-border-color: $input-border-color !default;
|
112
|
+
|
113
|
+
$custom-control-gutter: .5rem !default;
|
114
|
+
$custom-control-spacer-x: 1rem !default;
|
115
|
+
|
116
|
+
$custom-control-indicator-size: 1rem !default;
|
117
|
+
$custom-control-indicator-bg: color.$white-alpha-40 !default;
|
118
|
+
$custom-control-indicator-bg-size: 50% 50% !default;
|
119
|
+
$custom-control-indicator-box-shadow: none !default;
|
120
|
+
|
121
|
+
$custom-control-indicator-disabled-bg: color.$white-alpha-60 !default;
|
122
|
+
$custom-control-label-disabled-color: color.$gray-200 !default;
|
123
|
+
|
124
|
+
$custom-control-indicator-checked-color: color.$black !default;
|
125
|
+
$custom-control-indicator-checked-bg: color.$white !default;
|
126
|
+
$custom-control-indicator-checked-box-shadow: none !default;
|
127
|
+
$custom-control-indicator-focus-box-shadow: none !default;
|
128
|
+
|
129
|
+
$custom-control-indicator-focus-box-shadow: 0 0 0 1px color.$body-bg,
|
130
|
+
button.$input-btn-focus-box-shadow !default;
|
131
|
+
|
132
|
+
$custom-control-indicator-active-color: color.$white !default;
|
133
|
+
$custom-control-indicator-active-bg: lighten(
|
134
|
+
map.get(color.$theme-colors, "primary"),
|
135
|
+
35%
|
136
|
+
) !default;
|
137
|
+
$custom-control-indicator-active-box-shadow: none !default;
|
138
|
+
|
139
|
+
$custom-choice-control-size: 1.5rem !default;
|
140
|
+
|
141
|
+
$custom-checkbox-indicator-border-radius: commons.$border-radius !default;
|
142
|
+
$custom-checkbox-indicator-icon-checked: utilities.replace(
|
143
|
+
url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"),
|
144
|
+
"#",
|
145
|
+
"%23"
|
146
|
+
) !default;
|
147
|
+
|
148
|
+
$custom-checkbox-indicator-indeterminate-bg: map.get(color.$theme-colors,
|
149
|
+
"primary"
|
150
|
+
) !default;
|
151
|
+
$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;
|
152
|
+
$custom-checkbox-indicator-icon-indeterminate: utilities.replace(
|
153
|
+
url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3E%3C/svg%3E"),
|
154
|
+
"#",
|
155
|
+
"%23"
|
156
|
+
) !default;
|
157
|
+
$custom-checkbox-indicator-indeterminate-box-shadow: none !default;
|
158
|
+
|
159
|
+
$custom-radio-indicator-border-radius: 50% !default;
|
160
|
+
$custom-radio-indicator-icon-checked: utilities.replace(
|
161
|
+
url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 12 12'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E"),
|
162
|
+
"#",
|
163
|
+
"%23"
|
164
|
+
) !default;
|
165
|
+
|
166
|
+
$custom-select-padding-y: .375rem !default;
|
167
|
+
$custom-select-padding-x: .75rem !default;
|
168
|
+
$custom-select-height: $input-height !default;
|
169
|
+
$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator
|
170
|
+
$custom-select-line-height: button.$input-btn-line-height !default;
|
171
|
+
$custom-select-color: $input-color !default;
|
172
|
+
$custom-select-disabled-color: color.$gray-200 !default;
|
173
|
+
$custom-select-bg: $input-bg !default;
|
174
|
+
$custom-select-disabled-bg: color.$white-alpha-60 !default;
|
175
|
+
$custom-select-bg-size: 14px 14px !default; // In pixels because image dimensions
|
176
|
+
$custom-select-indicator-color: color.$black !default;
|
177
|
+
|
178
|
+
$custom-select-indicator: utilities.replace(
|
179
|
+
url("data:image/svg+xml;charset=utf8,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctitle%3E2052%3C/title%3E%3Cpath fill='#{$custom-select-indicator-color}' d='M27.6 10.667l-11.6 11.6-11.467-11.6-1.067 1.067 12.533 12.4 12.533-12.4z'%3E%3C/path%3E%3C/svg%3E"),
|
180
|
+
"#",
|
181
|
+
"%23"
|
182
|
+
) !default;
|
183
|
+
$custom-select-border-width: button.$input-btn-border-width !default;
|
184
|
+
$custom-select-border-color: $input-border-color !default;
|
185
|
+
$custom-select-border-radius: 0 !default;
|
186
|
+
|
187
|
+
$custom-select-focus-border-color: $input-focus-border-color !default;
|
188
|
+
$custom-select-focus-box-shadow: inset 0 1px 2px rgba(color.$black, .075),
|
189
|
+
0 0 5px rgba($custom-select-focus-border-color, .5) !default;
|
190
|
+
|
191
|
+
$custom-select-font-size-sm: 75% !default;
|
192
|
+
$custom-select-height-sm: $input-height-sm !default;
|
193
|
+
|
194
|
+
$custom-select-font-size-rg: 100% !default;
|
195
|
+
$custom-select-height-rg: $input-height-rg !default;
|
196
|
+
|
197
|
+
$custom-select-font-size-lg: 125% !default;
|
198
|
+
$custom-select-height-lg: $input-height-lg !default;
|
199
|
+
|
200
|
+
$custom-range-track-width: 100% !default;
|
201
|
+
$custom-range-track-height: .2rem !default;
|
202
|
+
$custom-range-track-cursor: pointer !default;
|
203
|
+
$custom-range-track-bg: color.$gray-200 !default;
|
204
|
+
$custom-range-track-border-radius: 1rem !default;
|
205
|
+
$custom-range-track-box-shadow: inset 0 .25rem .25rem rgba(color.$black, .1) !default;
|
206
|
+
|
207
|
+
$custom-range-thumb-width: 2rem !default;
|
208
|
+
$custom-range-thumb-height: $custom-range-thumb-width !default;
|
209
|
+
$custom-range-thumb-bg: color.$white !default;
|
210
|
+
$custom-range-thumb-border: 2px solid color.$black !default;
|
211
|
+
$custom-range-thumb-border-radius: 1rem !default;
|
212
|
+
$custom-range-thumb-box-shadow: 0 .1rem .25rem rgba(color.$black, .1) !default;
|
213
|
+
$custom-range-thumb-focus-box-shadow: 0 0 0 1px color.$body-bg,
|
214
|
+
button.$input-btn-focus-box-shadow !default;
|
215
|
+
$custom-range-thumb-active-bg: color.$white !default;
|
216
|
+
|
217
|
+
$custom-range-input-height-ie: 6rem !default;
|
218
|
+
|
219
|
+
$custom-file-height: $input-height !default;
|
220
|
+
$custom-file-height-inner: $input-height-inner !default;
|
221
|
+
$custom-file-focus-border-color: $input-focus-border-color !default;
|
222
|
+
$custom-file-focus-box-shadow: button.$input-btn-focus-box-shadow !default;
|
223
|
+
|
224
|
+
$custom-file-padding-y: button.$input-btn-padding-y !default;
|
225
|
+
$custom-file-padding-x: button.$input-btn-padding-x !default;
|
226
|
+
$custom-file-line-height: button.$input-btn-line-height !default;
|
227
|
+
$custom-file-color: $input-color !default;
|
228
|
+
$custom-file-bg: $input-bg !default;
|
229
|
+
$custom-file-border-width: button.$input-btn-border-width !default;
|
230
|
+
$custom-file-border-color: $input-border-color !default;
|
231
|
+
$custom-file-border-radius: $input-border-radius !default;
|
232
|
+
$custom-file-box-shadow: $input-box-shadow !default;
|
233
|
+
$custom-file-button-color: $custom-file-color !default;
|
234
|
+
$custom-file-button-bg: $input-group-addon-bg !default;
|
235
|
+
$custom-file-text: (
|
236
|
+
en: "Browse"
|
237
|
+
) !default;
|
238
|
+
|
239
|
+
// Form validation
|
240
|
+
$form-feedback-valid-icon: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(0%25,50.588235%25,22.745098%25);fill-opacity:1;' d='M 9.5 18.398438 L 3.800781 12.699219 L 5.199219 11.300781 L 9.5 15.597656 L 18.800781 6.300781 L 20.199219 7.699219 Z M 9.5 18.398438 '/%3E%3C/g%3E%3C/svg%3E%0A"); // CWF only
|
241
|
+
$form-feedback-invalid-icon: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24pt' height='24pt' viewBox='0 0 24 24' version='1.1'%3E%3Cg id='surface1'%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(64.705882%25,9.019608%25,15.686275%25);fill-opacity:1;' d='M 11 3 L 13 3 L 13 17 L 11 17 Z M 11 3 '/%3E%3Cpath style=' stroke:none;fill-rule:nonzero;fill:rgb(64.705882%25,9.019608%25,15.686275%25);fill-opacity:1;' d='M 11 19 L 13 19 L 13 21 L 11 21 Z M 11 19 '/%3E%3C/g%3E%3C/svg%3E%0A"); // CWF only
|
242
|
+
$form-feedback-icon-size: 2rem; // Equals 24pt [svg-size] // CWF only
|
243
|
+
$form-feedback-icon-offset: map.get(spacing.$post-sizes, "mini"); // CWF only
|
244
|
+
|
245
|
+
$form-feedback-margin-top: 0 !default;
|
246
|
+
$form-feedback-font-size: type.$font-size-rg !default;
|
247
|
+
$form-feedback-valid-color: color.$gray-600 !default;
|
248
|
+
$form-feedback-valid-bg: map.get(color.$theme-colors, "success") !default;
|
249
|
+
$form-feedback-valid-text: color.$white !default;
|
250
|
+
$form-feedback-invalid-color: map.get(color.$theme-colors, "danger") !default;
|
251
|
+
$form-feedback-invalid-bg: map.get(color.$theme-colors, "danger") !default;
|
252
|
+
$form-feedback-invalid-text: color.$white !default;
|
253
|
+
$form-feedback-custom-color: map.get(color.$theme-colors, "success") !default; // CWF only
|
254
|
+
$form-feedback-custom-bg: map.get(color.$theme-colors, "success") !default; // CWF only
|
255
|
+
$form-feedback-custom-text: color.$white !default; // CWF only
|
256
|
+
$form-feedback-custom-box-shadow: 0 0 0 .2rem rgba($form-feedback-custom-color, .25) !default; // CWF only
|
@@ -0,0 +1,68 @@
|
|
1
|
+
@use "../color";
|
2
|
+
@use "../type";
|
3
|
+
@use "../commons";
|
4
|
+
@use "../spacing";
|
5
|
+
|
6
|
+
@use "../../functions/sizing";
|
7
|
+
|
8
|
+
@use "./button";
|
9
|
+
|
10
|
+
// Modals
|
11
|
+
|
12
|
+
// Padding applied to the modal footer
|
13
|
+
$modal-inner-padding: spacing.$size-regular !default;
|
14
|
+
|
15
|
+
// Padding applied to the modal body
|
16
|
+
$modal-body-padding-y: spacing.$size-mini !default;
|
17
|
+
$modal-body-padding-x: spacing.$size-big !default;
|
18
|
+
$modal-body-padding: $modal-body-padding-y $modal-body-padding-x !default;
|
19
|
+
|
20
|
+
// Margin between elements in footer, must be lower than or equal to 2 * $modal-inner-padding
|
21
|
+
$modal-footer-margin-between: .5rem !default;
|
22
|
+
|
23
|
+
$modal-dialog-margin: spacing.$size-small-regular !default;
|
24
|
+
$modal-dialog-margin-y-sm-up: spacing.$size-big !default;
|
25
|
+
|
26
|
+
$modal-title-line-height: type.$line-height-base !default;
|
27
|
+
|
28
|
+
$modal-content-color: null !default;
|
29
|
+
$modal-content-bg: color.$white !default;
|
30
|
+
$modal-content-border-color: rgba(color.$black, .2) !default;
|
31
|
+
$modal-content-border-width: commons.$border-width !default;
|
32
|
+
$modal-content-border-radius: commons.$border-radius-lg !default;
|
33
|
+
$modal-content-inner-border-radius: subtract(
|
34
|
+
$modal-content-border-radius,
|
35
|
+
$modal-content-border-width
|
36
|
+
) !default;
|
37
|
+
$modal-content-box-shadow-xs: 0 .25rem .5rem rgba(color.$black, .5) !default;
|
38
|
+
$modal-content-box-shadow-sm-up: 0 .5rem 1rem rgba(color.$black, .5) !default;
|
39
|
+
|
40
|
+
$modal-backdrop-bg: color.$black !default;
|
41
|
+
$modal-backdrop-opacity: .5 !default;
|
42
|
+
$modal-header-border-color: commons.$border-color !default;
|
43
|
+
$modal-footer-border-color: $modal-header-border-color !default;
|
44
|
+
$modal-header-border-width: $modal-content-border-width !default;
|
45
|
+
$modal-footer-border-width: $modal-header-border-width !default;
|
46
|
+
$modal-header-padding-y: spacing.$size-large !default;
|
47
|
+
$modal-header-padding-x: $modal-body-padding-x !default;
|
48
|
+
$modal-header-padding: $modal-header-padding-y $modal-header-padding-x !default; // Keep this for backwards compatibility
|
49
|
+
|
50
|
+
$modal-dialog-width-xl: 1140px !default;
|
51
|
+
$modal-dialog-width-lg: 800px !default;
|
52
|
+
$modal-dialog-width-md: 500px !default;
|
53
|
+
$modal-dialog-width-sm: 300px !default;
|
54
|
+
|
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;
|
59
|
+
|
60
|
+
$modal-fade-transform: translate(0, -50px) !default;
|
61
|
+
$modal-show-transform: none !default;
|
62
|
+
$modal-transition: transform .3s ease-out !default;
|
63
|
+
$modal-scale-transform: scale(1.02) !default;
|
64
|
+
|
65
|
+
// Padding applied to the close button
|
66
|
+
$modal-close-btn-padding-y: button.$btn-padding-y !default;
|
67
|
+
$modal-close-btn-padding-x: button.$btn-padding-x !default;
|
68
|
+
$modal-close-btn-padding: $modal-close-btn-padding-y $modal-close-btn-padding-x !default;
|
@@ -0,0 +1,82 @@
|
|
1
|
+
@use "../color";
|
2
|
+
@use "../commons";
|
3
|
+
@use "../type";
|
4
|
+
@use "../spacing";
|
5
|
+
@use "./button";
|
6
|
+
@use "../../functions/utilities";
|
7
|
+
|
8
|
+
// Navs
|
9
|
+
|
10
|
+
$nav-link-padding: spacing.$spacer !default;
|
11
|
+
$nav-link-padding-y: spacing.$spacer !default;
|
12
|
+
$nav-link-padding-x: 1rem !default;
|
13
|
+
$nav-link-disabled-color: color.$gray-200 !default;
|
14
|
+
|
15
|
+
$nav-tabs-border-color: color.$gray-200 !default;
|
16
|
+
$nav-tabs-border-width: 4px !default;
|
17
|
+
$nav-tabs-border-radius: none !default;
|
18
|
+
$nav-tabs-link-hover-bg: lighten(color.$gray-100, 5%) !default;
|
19
|
+
$nav-tabs-link-hover-border-color: color.$gray-400 !default;
|
20
|
+
$nav-tabs-link-text-color: color.$gray-600 !default;
|
21
|
+
$nav-tabs-link-active-color: color.$black !default;
|
22
|
+
$nav-tabs-link-active-bg: color.$white !default;
|
23
|
+
$nav-tabs-link-active-border-color: color.$yellow !default;
|
24
|
+
$nav-tabs-link-active-font-weight: bold !default;
|
25
|
+
|
26
|
+
$nav-tabs-i-border-color: color.$white-alpha-40 !default;
|
27
|
+
$nav-tabs-i-link-hover-bg: color.$black-alpha-10 !default;
|
28
|
+
$nav-tabs-i-link-hover-border-color: color.$white-alpha-80 !default;
|
29
|
+
$nav-tabs-i-link-text-color: color.$white !default;
|
30
|
+
$nav-tabs-i-link-active-color: color.$white !default;
|
31
|
+
|
32
|
+
$nav-tabs-alternate-link-hover-bg: color.$white !default;
|
33
|
+
|
34
|
+
$nav-pills-outline-border-width: commons.$border-width !default;
|
35
|
+
$nav-pills-border-radius: commons.$border-radius !default;
|
36
|
+
$nav-pills-link-active-color: color.$component-active-color !default;
|
37
|
+
$nav-pills-link-active-bg: color.$component-active-bg !default;
|
38
|
+
|
39
|
+
$nav-divider-color: color.$gray-200 !default;
|
40
|
+
$nav-divider-margin-y: (spacing.$spacer / 2) !default;
|
41
|
+
|
42
|
+
// Navbar
|
43
|
+
|
44
|
+
$navbar-padding-y: (spacing.$spacer / 2) !default;
|
45
|
+
$navbar-padding-x: spacing.$spacer !default;
|
46
|
+
|
47
|
+
$navbar-nav-link-padding-x: .5rem !default;
|
48
|
+
|
49
|
+
$navbar-brand-font-size: type.$font-size-lg !default;
|
50
|
+
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
|
51
|
+
$nav-link-height: (
|
52
|
+
type.$font-size-base * type.$line-height-base + $nav-link-padding-y * 2
|
53
|
+
) !default;
|
54
|
+
$navbar-brand-height: $navbar-brand-font-size * type.$line-height-base !default;
|
55
|
+
$navbar-brand-padding-y: ($nav-link-height - $navbar-brand-height) / 2 !default;
|
56
|
+
|
57
|
+
$navbar-toggler-padding-y: .25rem !default;
|
58
|
+
$navbar-toggler-padding-x: .75rem !default;
|
59
|
+
$navbar-toggler-font-size: type.$font-size-lg !default;
|
60
|
+
$navbar-toggler-border-radius: button.$btn-border-radius !default;
|
61
|
+
|
62
|
+
$navbar-dark-color: rgba(color.$white, .5) !default;
|
63
|
+
$navbar-dark-hover-color: rgba(color.$white, .75) !default;
|
64
|
+
$navbar-dark-active-color: color.$white !default;
|
65
|
+
$navbar-dark-disabled-color: rgba(color.$white, .25) !default;
|
66
|
+
$navbar-dark-toggler-icon-bg: utilities.replace(
|
67
|
+
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"),
|
68
|
+
"#",
|
69
|
+
"%23"
|
70
|
+
) !default;
|
71
|
+
$navbar-dark-toggler-border-color: rgba(color.$white, .1) !default;
|
72
|
+
|
73
|
+
$navbar-light-color: rgba(color.$black, .5) !default;
|
74
|
+
$navbar-light-hover-color: rgba(color.$black, .7) !default;
|
75
|
+
$navbar-light-active-color: rgba(color.$black, .9) !default;
|
76
|
+
$navbar-light-disabled-color: rgba(color.$black, .3) !default;
|
77
|
+
$navbar-light-toggler-icon-bg: utilities.replace(
|
78
|
+
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"),
|
79
|
+
"#",
|
80
|
+
"%23"
|
81
|
+
) !default;
|
82
|
+
$navbar-light-toggler-border-color: rgba(color.$black, .1) !default;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@use "../color";
|
2
|
+
@use "../spacing";
|
3
|
+
@use "../type";
|
4
|
+
@use "../commons";
|
5
|
+
@use "./button";
|
6
|
+
|
7
|
+
// Pagination
|
8
|
+
|
9
|
+
$pagination-padding-y: spacing.$size-mini !default;
|
10
|
+
$pagination-padding-x: 0 !default;
|
11
|
+
$pagination-padding-y-sm: spacing.$size-micro !default;
|
12
|
+
$pagination-padding-x-sm: 0 !default;
|
13
|
+
$pagination-padding-y-lg: spacing.$size-small-regular !default;
|
14
|
+
$pagination-padding-x-lg: 0 !default;
|
15
|
+
$pagination-line-height: 1.25 !default;
|
16
|
+
|
17
|
+
$pagination-color: color.$gray-600 !default;
|
18
|
+
$pagination-bg: color.$white !default;
|
19
|
+
$pagination-border-width: 2px !default;
|
20
|
+
$pagination-border-color: color.$gray-100 !default;
|
21
|
+
|
22
|
+
$pagination-focus-box-shadow: button.$input-btn-focus-box-shadow !default;
|
23
|
+
$pagination-focus-outline: 0 !default;
|
24
|
+
|
25
|
+
$pagination-hover-color: color.$black !default;
|
26
|
+
$pagination-hover-bg: color.$gray-50 !default;
|
27
|
+
$pagination-hover-border-color: color.$gray-100 !default;
|
28
|
+
|
29
|
+
$pagination-active-color: color.$black !default;
|
30
|
+
$pagination-active-bg: color.$yellow !default;
|
31
|
+
$pagination-active-border-color: color.$yellow !default;
|
32
|
+
|
33
|
+
$pagination-disabled-color: color.$gray-400 !default;
|
34
|
+
$pagination-disabled-bg: color.$gray-50 !default;
|
35
|
+
$pagination-disabled-border-color: color.$gray-100 !default;
|
36
|
+
|
37
|
+
$pagination-height-border: $pagination-border-width * 2 !default;
|
38
|
+
$pagination-height-inner: (type.$font-size-base * $pagination-line-height) + ($pagination-padding-y * 2) !default;
|
39
|
+
$pagination-height: calc(#{$pagination-height-inner} + #{$pagination-height-border}) !default;
|
40
|
+
|
41
|
+
$pagination-width: $pagination-height !default;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
@use "../type";
|
2
|
+
@use "../color";
|
3
|
+
@use "../commons";
|
4
|
+
|
5
|
+
// Popovers
|
6
|
+
|
7
|
+
$popover-font-size: type.$font-size-sm !default;
|
8
|
+
$popover-bg: color.$info !default;
|
9
|
+
$popover-max-width: 310px !default;
|
10
|
+
$popover-border-width: commons.$border-width !default;
|
11
|
+
$popover-border-color: $popover-bg !default;
|
12
|
+
$popover-border-radius: commons.$border-radius-lg !default;
|
13
|
+
$popover-box-shadow: none !default;
|
14
|
+
|
15
|
+
$popover-header-bg: $popover-bg !default;
|
16
|
+
$popover-header-color: type.$headings-color !default;
|
17
|
+
$popover-header-padding-y: .5rem !default;
|
18
|
+
$popover-header-padding-x: .5rem !default;
|
19
|
+
|
20
|
+
$popover-body-color: color.$black !default;
|
21
|
+
$popover-body-padding-y: $popover-header-padding-y !default;
|
22
|
+
$popover-body-padding-x: $popover-header-padding-x !default;
|
23
|
+
|
24
|
+
$popover-arrow-width: 1rem !default;
|
25
|
+
$popover-arrow-height: .5rem !default;
|
26
|
+
$popover-arrow-color: $popover-bg !default;
|
27
|
+
|
28
|
+
$popover-arrow-outer-color: $popover-bg !default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
@use "sass:map";
|
2
|
+
@use "../color";
|
3
|
+
@use "../type";
|
4
|
+
@use "../commons";
|
5
|
+
|
6
|
+
// Progress bars
|
7
|
+
|
8
|
+
$progress-height: 1rem !default;
|
9
|
+
$progress-font-size: type.$font-size-base * .75 !default;
|
10
|
+
$progress-bg: color.$gray-200 !default;
|
11
|
+
$progress-border-radius: commons.$border-radius !default;
|
12
|
+
$progress-box-shadow: inset 0 .1rem .1rem rgba(color.$black, .1) !default;
|
13
|
+
$progress-bar-color: color.$white !default;
|
14
|
+
$progress-bar-bg: map.get(color.$theme-colors, "primary") !default;
|
15
|
+
$progress-bar-animation-timing: 1s linear infinite !default;
|
16
|
+
$progress-bar-transition: width .6s ease !default;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2021 by Swiss Post, Information Technology
|
3
|
+
*/
|
4
|
+
|
5
|
+
@use "../../functions/icons" as icon-functions;
|
6
|
+
@use "../../variables/color";
|
7
|
+
@use "../../variables/spacing";
|
8
|
+
|
9
|
+
|
10
|
+
$stepper-bar-size: spacing.$size-micro;
|
11
|
+
|
12
|
+
$step-indicator-size: spacing.$size-bigger-big;
|
13
|
+
$step-indicator-default-bg: color.$secondary;
|
14
|
+
$step-indicator-default-color: color.$white;
|
15
|
+
$step-indicator-active-bg: color.$yellow;
|
16
|
+
$step-indicator-active-color: color.$black;
|
17
|
+
$step-indicator-hover-bg: color.$black;
|
18
|
+
$step-indicator-hover-color: color.$white;
|
19
|
+
|
20
|
+
$step-name-height: spacing.$size-small-large;
|
21
|
+
$step-name-color: color.$black-alpha-60;
|
22
|
+
|
23
|
+
$_black-check-mark: icon-functions.get-colored-svg-url(2105, color.$black);
|
24
|
+
$_white-check-mark: icon-functions.get-colored-svg-url(2105, color.$white);
|
25
|
+
$step-indicator-passed-icon: url($_black-check-mark);
|
26
|
+
$step-indicator-passed-icon-hover: url($_white-check-mark);
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@use "sass:map";
|
2
|
+
@use "../color";
|
3
|
+
@use "../commons";
|
4
|
+
@use "../spacing";
|
5
|
+
@use "../../functions/sizing";
|
6
|
+
|
7
|
+
// Subnavigation
|
8
|
+
|
9
|
+
$subnavigation-background-color: color.$white;
|
10
|
+
$subnavigation-background-color-alternate: map.get(color.$background-colors, "light");
|
11
|
+
$subnavigation-background-color-inverted: transparent;
|
12
|
+
|
13
|
+
$subnavigation-border-bottom-width: commons.$border-width;
|
14
|
+
$subnavigation-border-bottom-color: map.get(color.$grays, "100");
|
15
|
+
$subnavigation-border-bottom-color-inverted: map.get(color.$black-alphas, "20");
|
16
|
+
|
17
|
+
// These heights have to be synchronous to main navigation heights
|
18
|
+
$subnavigation-height-xs: sizing.px-to-rem(56);
|
19
|
+
$subnavigation-height-lg: sizing.px-to-rem(64);
|
20
|
+
$subnavigation-height-xl: sizing.px-to-rem(72);
|
21
|
+
|
22
|
+
$subnavigation-link-color: map.get(color.$grays, "600");
|
23
|
+
$subnavigation-link-color-hover: map.get(color.$colors, "black");
|
24
|
+
|
25
|
+
$subnavigation-link-color-inverted: map.get(color.$white-alphas, "60");
|
26
|
+
$subnavigation-link-color-hover-inverted: map.get(color.$colors, "white");
|
27
|
+
|
28
|
+
$subnavigation-link-underscore-height: map.get(spacing.$post-sizes, "micro");
|
29
|
+
$subnavigation-link-underscore-color-active: map.get(color.$theme-colors, "active");
|
30
|
+
$subnavigation-link-underscore-color-hover: map.get(color.$grays, "400");
|
31
|
+
$subnavigation-link-underscore-color-hover-inverted: map.get(color.$white-alphas, "40");
|
32
|
+
|
33
|
+
$subnavigation-link-padding-xs: map.get(spacing.$post-sizes, "regular") map.get(spacing.$post-sizes, "small-regular");
|
34
|
+
$subnavigation-link-padding-lg: map.get(spacing.$post-sizes, "small-large") map.get(spacing.$post-sizes, "regular");
|
35
|
+
|
36
|
+
$subnavigation-result-margin-left: map.get(spacing.$post-sizes, "mini");
|