@swisspost/design-system-styles 6.6.4 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_svg-icon-map.scss +927 -907
- package/basics.css +1 -1
- package/components/_index.scss +4 -1
- package/components/alert.scss +6 -1
- package/components/badge.scss +25 -78
- package/components/button-group.scss +2 -4
- package/components/button.scss +82 -31
- package/components/card-control.scss +322 -0
- package/components/carousel.scss +1 -1
- package/components/chip.scss +159 -0
- package/components/datepicker.scss +24 -12
- package/components/error-container.scss +9 -0
- package/components/floating-label.scss +0 -1
- package/components/form-check.scss +118 -31
- package/components/form-range.scss +94 -19
- package/components/form-select.scss +64 -15
- package/components/form-validation.scss +32 -13
- package/components/forms.scss +51 -13
- package/components/intranet-header/_sidebar.scss +24 -5
- package/components/sizing.scss +2 -2
- package/components/spinner.scss +6 -12
- package/components/stepper.scss +283 -138
- package/components/subnavigation.scss +2 -5
- package/components/tables.scss +1 -1
- package/components/tabs/_tabs-wrapper.scss +1 -1
- package/components/tag.scss +82 -0
- package/components/topic-teaser.scss +1 -2
- package/components/utilities.scss +0 -2
- package/functions/_color.scss +12 -0
- package/functions/_forms.scss +22 -0
- package/functions/_list.scss +2 -1
- package/functions/_sizing.scss +2 -2
- package/functions/_utilities.scss +3 -3
- package/index.css +3 -3
- package/intranet.css +3 -3
- package/mixins/_accordion.scss +2 -2
- package/mixins/_button.scss +1 -2
- package/mixins/_chip.scss +36 -0
- package/mixins/_forms.scss +1 -0
- package/mixins/_icons.scss +1 -3
- package/mixins/_index.scss +1 -1
- package/mixins/_utilities.scss +85 -0
- package/package.json +15 -15
- package/placeholders/_badge.scss +4 -56
- package/placeholders/_button.scss +2 -0
- package/placeholders/_close.scss +8 -1
- package/placeholders/_color.scss +10 -0
- package/themes/bootstrap/_overrides-color.scss +4 -14
- package/themes/bootstrap/_overrides-variables.scss +1 -0
- package/variables/_color.scss +104 -44
- package/variables/_commons.scss +2 -0
- package/variables/_features.scss +1 -3
- package/variables/_icons.scss +4 -1
- package/variables/_type.scss +9 -1
- package/variables/components/_badge.scss +14 -38
- package/variables/components/_card.scss +1 -1
- package/variables/components/_chip.scss +50 -0
- package/variables/components/_datatable.scss +1 -1
- package/variables/components/_dropdowns.scss +1 -1
- package/variables/components/_form-check.scss +75 -1
- package/variables/components/_form-select.scss +20 -5
- package/variables/components/_form-validation.scss +14 -6
- package/variables/components/_index.scss +2 -0
- package/variables/components/_list-group.scss +1 -1
- package/variables/components/_notification.scss +5 -4
- package/variables/components/_pagination.scss +2 -2
- package/variables/components/_stepper.scss +25 -14
- package/variables/components/_subnavigation.scss +1 -1
- package/variables/components/_tag.scss +27 -0
- package/components/choice-control-card.scss +0 -148
- package/mixins/_badge.scss +0 -31
package/variables/_type.scss
CHANGED
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
//
|
|
11
11
|
// Font, line-height, and color for body text, headings, and more.
|
|
12
12
|
|
|
13
|
-
$font-family-sans-serif:
|
|
13
|
+
$font-family-sans-serif:
|
|
14
|
+
'Frutiger Neue For Post',
|
|
15
|
+
-apple-system,
|
|
16
|
+
BlinkMacSystemFont,
|
|
17
|
+
'Segoe UI',
|
|
18
|
+
Roboto,
|
|
19
|
+
'Helvetica Neue',
|
|
20
|
+
Arial,
|
|
21
|
+
sans-serif !default;
|
|
14
22
|
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
|
|
15
23
|
monospace !default;
|
|
16
24
|
$font-family-base: $font-family-sans-serif !default;
|
|
@@ -1,48 +1,24 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
@use './button';
|
|
4
|
-
@use './../animation';
|
|
5
1
|
@use './../color';
|
|
6
2
|
@use './../commons';
|
|
7
3
|
@use './../spacing';
|
|
8
4
|
@use './../type';
|
|
9
5
|
|
|
6
|
+
@use './button';
|
|
10
7
|
@use './../../functions/sizing';
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
$badge-height:
|
|
14
|
-
$badge-
|
|
15
|
-
$badge-
|
|
16
|
-
$badge-border
|
|
17
|
-
$badge-transition:
|
|
18
|
-
color 250ms,
|
|
19
|
-
background-color 250ms,
|
|
20
|
-
border-color 250ms;
|
|
21
|
-
$badge-hover-color: color.$black;
|
|
22
|
-
$badge-hover-bg-color: color.$gray-10;
|
|
23
|
-
$badge-active-color: color.$black;
|
|
24
|
-
$badge-active-bg-color: color.$yellow;
|
|
25
|
-
|
|
26
|
-
$badge-height-sm: button.$btn-height-sm;
|
|
27
|
-
$badge-gap-sm: sizing.px-to-rem(6px);
|
|
28
|
-
$badge-font-size-sm: type.$font-size-tiny;
|
|
9
|
+
$badge-border-radius: 50rem;
|
|
10
|
+
$badge-line-height: type.$line-height-copy;
|
|
11
|
+
$badge-color: color.$white;
|
|
12
|
+
$badge-bg: color.$error;
|
|
13
|
+
$badge-border: color.$white solid commons.$border-thick;
|
|
29
14
|
|
|
30
|
-
$badge-
|
|
31
|
-
$badge-
|
|
32
|
-
$badge-
|
|
33
|
-
$badge-nested-border-color: color.$white;
|
|
34
|
-
$badge-nested-font-size: sizing.px-to-rem(10px);
|
|
35
|
-
$badge-nested-translate-x: ($badge-height - $badge-nested-height) * 0.5;
|
|
36
|
-
$badge-nested-active-bg-color: color.$white;
|
|
37
|
-
$badge-nested-translate-x-sm: ($badge-height-sm - $badge-nested-height) * 0.5;
|
|
15
|
+
$badge-height: spacing.$size-large;
|
|
16
|
+
$badge-height-sm: spacing.$size-regular;
|
|
17
|
+
$badge-height-empty: spacing.$size-mini;
|
|
38
18
|
|
|
39
|
-
$badge-
|
|
40
|
-
$badge-
|
|
19
|
+
$badge-padding-x: spacing.$size-mini;
|
|
20
|
+
$badge-padding-x-sm: spacing.$size-micro;
|
|
21
|
+
$badge-padding-x-empty: 0%; // needs a unit for the calculated min-width
|
|
41
22
|
|
|
42
|
-
|
|
43
|
-
$badge-font-size:
|
|
44
|
-
$badge-font-weight: type.$font-weight-normal;
|
|
45
|
-
$badge-color: var(--post-gray-80);
|
|
46
|
-
$badge-padding-y: 0;
|
|
47
|
-
$badge-padding-x: spacing.$size-regular - sizing.px-to-rem($badge-border-width);
|
|
48
|
-
$badge-border-radius: 50rem;
|
|
23
|
+
$badge-font-size: type.$font-size-12;
|
|
24
|
+
$badge-font-size-sm: 10px;
|
|
@@ -22,7 +22,7 @@ $card-border-color: color.$gray-20 !default; // Design System
|
|
|
22
22
|
$card-inner-border-radius: calc(
|
|
23
23
|
#{$card-border-radius} - #{$card-border-width}
|
|
24
24
|
) !default; // Design System
|
|
25
|
-
$card-cap-bg: color.$
|
|
25
|
+
$card-cap-bg: color.$light !default;
|
|
26
26
|
$card-bg: color.$white !default;
|
|
27
27
|
|
|
28
28
|
$card-img-overlay-padding: $card-spacer-x !default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use './button';
|
|
2
|
+
@use './../animation';
|
|
3
|
+
@use './../color';
|
|
4
|
+
@use './../commons';
|
|
5
|
+
@use './../spacing';
|
|
6
|
+
@use './../type';
|
|
7
|
+
|
|
8
|
+
@use './../../functions/sizing';
|
|
9
|
+
|
|
10
|
+
$chip-color: color.$gray-80;
|
|
11
|
+
$chip-bg: color.$white;
|
|
12
|
+
$chip-border-color: color.$gray-60;
|
|
13
|
+
$chip-border-width: commons.$border-thick;
|
|
14
|
+
$chip-border-radius: commons.$border-radius-pill;
|
|
15
|
+
|
|
16
|
+
$chip-height: button.$btn-height-rg;
|
|
17
|
+
$chip-max-width: sizing.px-to-rem(296px);
|
|
18
|
+
$chip-padding-x: spacing.$size-regular;
|
|
19
|
+
$chip-gap: spacing.$size-mini;
|
|
20
|
+
|
|
21
|
+
$chip-font-size: type.$font-size-16;
|
|
22
|
+
$chip-font-weight: type.$font-weight-normal;
|
|
23
|
+
$chip-line-height: type.$line-height-copy;
|
|
24
|
+
|
|
25
|
+
$chip-transition:
|
|
26
|
+
color animation.$transition-base-timing,
|
|
27
|
+
background-color animation.$transition-base-timing,
|
|
28
|
+
border-color animation.$transition-base-timing;
|
|
29
|
+
|
|
30
|
+
$chip-height-sm: button.$btn-height-sm;
|
|
31
|
+
$chip-gap-sm: sizing.px-to-rem(6px);
|
|
32
|
+
$chip-font-size-sm: type.$font-size-14;
|
|
33
|
+
$chip-padding-x-sm: spacing.$size-small-regular;
|
|
34
|
+
|
|
35
|
+
$chip-hover-color: color.$black;
|
|
36
|
+
$chip-hover-bg: color.$gray-20;
|
|
37
|
+
|
|
38
|
+
$chip-active-color: color.$black;
|
|
39
|
+
$chip-active-bg: color.$yellow;
|
|
40
|
+
|
|
41
|
+
$chip-disabled-bg: color.$white;
|
|
42
|
+
$chip-disabled-active-bg: color.$gray;
|
|
43
|
+
|
|
44
|
+
$chip-text-transition: text-decoration animation.$transition-time-simple
|
|
45
|
+
animation.$transition-easing-default;
|
|
46
|
+
|
|
47
|
+
$chip-close-button-icon: 2043;
|
|
48
|
+
$chip-close-button-border-radius: commons.$border-radius-round;
|
|
49
|
+
$chip-close-button-height: spacing.$size-large;
|
|
50
|
+
$chip-close-button-height-sm: spacing.$size-regular;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
$datatable-header-font-weight: type.$font-weight-bold;
|
|
12
12
|
$datatable-header-unsorted-color: color.$gray-60;
|
|
13
13
|
|
|
14
|
-
$datatable-cell-bg: color.$
|
|
14
|
+
$datatable-cell-bg: color.$light;
|
|
15
15
|
$datatable-cell-padding-x: spacing.$size-regular;
|
|
16
16
|
$datatable-cell-padding-y: spacing.$size-mini;
|
|
17
17
|
$datatable-cell-padding: $datatable-cell-padding-y $datatable-cell-padding-x;
|
|
@@ -17,7 +17,7 @@ $dropdown-box-shadow: 0 0.5rem 1rem rgba(color.$black, 0.175) !default;
|
|
|
17
17
|
|
|
18
18
|
$dropdown-link-color: color.$gray-60 !default;
|
|
19
19
|
$dropdown-link-hover-color: color.$black !default;
|
|
20
|
-
$dropdown-link-hover-bg: color.$
|
|
20
|
+
$dropdown-link-hover-bg: color.$light !default;
|
|
21
21
|
|
|
22
22
|
$dropdown-link-active-color: color.$gray-80 !default;
|
|
23
23
|
$dropdown-link-active-bg: color.$yellow !default;
|
|
@@ -5,15 +5,89 @@
|
|
|
5
5
|
@use './../animation';
|
|
6
6
|
@use './../../functions/icons';
|
|
7
7
|
@use './../../functions/sizing';
|
|
8
|
+
@use './../../functions/forms' as forms-fn;
|
|
8
9
|
|
|
9
10
|
$form-check-row-gap: spacing.$size-small-regular !default;
|
|
10
11
|
$form-check-column-gap: spacing.$size-mini !default;
|
|
11
12
|
$form-check-margin-bottom: spacing.$size-regular !default;
|
|
12
13
|
$form-check-inline-margin-right: spacing.$size-large !default;
|
|
13
|
-
$form-check-input-size:
|
|
14
|
+
$form-check-input-size: 1.375rem !default;
|
|
14
15
|
$form-check-input-size-sm: spacing.$size-regular !default;
|
|
15
16
|
$form-check-input-border-width: forms.$input-border-width !default;
|
|
16
17
|
$form-check-input-focus-box-shadow: forms.$input-focus-box-shadow !default;
|
|
18
|
+
$form-check-input-disabled-svg-border-width: $form-check-input-border-width * 2;
|
|
19
|
+
$form-check-input-disabled-svg-stroke-square-pattern-lg: '2 1.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4';
|
|
20
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-lg: 88;
|
|
21
|
+
$form-check-input-disabled-svg-stroke-square-pattern-sm: '2 1.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 2 3.5 4 1.5 4 1.5 4';
|
|
22
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-sm: 66;
|
|
23
|
+
$form-check-input-disabled-svg-stroke-circle-pattern: '4 2';
|
|
24
|
+
|
|
25
|
+
// Checkbox lg
|
|
26
|
+
$form-check-input-disabled-background-url-light-lg: forms-fn.get-background-svg-stroke(
|
|
27
|
+
'square',
|
|
28
|
+
color.$gray-60,
|
|
29
|
+
$form-check-input-disabled-svg-stroke-square-pattern-lg,
|
|
30
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-lg,
|
|
31
|
+
$form-check-input-disabled-svg-border-width
|
|
32
|
+
);
|
|
33
|
+
$form-check-input-disabled-background-url-dark-lg: forms-fn.get-background-svg-stroke(
|
|
34
|
+
'square',
|
|
35
|
+
color.$white-alpha-80,
|
|
36
|
+
$form-check-input-disabled-svg-stroke-square-pattern-lg,
|
|
37
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-lg,
|
|
38
|
+
$form-check-input-disabled-svg-border-width
|
|
39
|
+
);
|
|
40
|
+
$form-check-input-disabled-background-url-hcm-lg: forms-fn.get-background-svg-stroke(
|
|
41
|
+
'square',
|
|
42
|
+
'GrayText',
|
|
43
|
+
$form-check-input-disabled-svg-stroke-square-pattern-lg,
|
|
44
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-lg,
|
|
45
|
+
$form-check-input-disabled-svg-border-width
|
|
46
|
+
);
|
|
47
|
+
//Checkbox sm
|
|
48
|
+
$form-check-input-disabled-background-url-light-sm: forms-fn.get-background-svg-stroke(
|
|
49
|
+
'square',
|
|
50
|
+
color.$gray-60,
|
|
51
|
+
$form-check-input-disabled-svg-stroke-square-pattern-sm,
|
|
52
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-sm,
|
|
53
|
+
$form-check-input-disabled-svg-border-width
|
|
54
|
+
);
|
|
55
|
+
$form-check-input-disabled-background-url-dark-sm: forms-fn.get-background-svg-stroke(
|
|
56
|
+
'square',
|
|
57
|
+
color.$white-alpha-80,
|
|
58
|
+
$form-check-input-disabled-svg-stroke-square-pattern-sm,
|
|
59
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-sm,
|
|
60
|
+
$form-check-input-disabled-svg-border-width
|
|
61
|
+
);
|
|
62
|
+
$form-check-input-disabled-background-url-hcm-sm: forms-fn.get-background-svg-stroke(
|
|
63
|
+
'square',
|
|
64
|
+
'GrayText',
|
|
65
|
+
$form-check-input-disabled-svg-stroke-square-pattern-sm,
|
|
66
|
+
$form-check-input-disabled-svg-stroke-square-pathlength-sm,
|
|
67
|
+
$form-check-input-disabled-svg-border-width
|
|
68
|
+
);
|
|
69
|
+
// Radio
|
|
70
|
+
$form-check-input-radio-disabled-background-url-light: forms-fn.get-background-svg-stroke(
|
|
71
|
+
'circle',
|
|
72
|
+
color.$gray-60,
|
|
73
|
+
$form-check-input-disabled-svg-stroke-circle-pattern,
|
|
74
|
+
initial,
|
|
75
|
+
$form-check-input-disabled-svg-border-width
|
|
76
|
+
);
|
|
77
|
+
$form-check-input-radio-disabled-background-url-dark: forms-fn.get-background-svg-stroke(
|
|
78
|
+
'circle',
|
|
79
|
+
color.$white-alpha-80,
|
|
80
|
+
$form-check-input-disabled-svg-stroke-circle-pattern,
|
|
81
|
+
initial,
|
|
82
|
+
$form-check-input-disabled-svg-border-width
|
|
83
|
+
);
|
|
84
|
+
$form-check-input-radio-disabled-background-url-hcm: forms-fn.get-background-svg-stroke(
|
|
85
|
+
'circle',
|
|
86
|
+
'GrayText',
|
|
87
|
+
$form-check-input-disabled-svg-stroke-circle-pattern,
|
|
88
|
+
initial,
|
|
89
|
+
$form-check-input-disabled-svg-border-width
|
|
90
|
+
);
|
|
17
91
|
|
|
18
92
|
$form-switch-column-gap: spacing.$size-regular !default;
|
|
19
93
|
$form-switch-height: spacing.$size-big !default;
|
|
@@ -13,10 +13,25 @@ $form-select-indicator-disabled: url(icons.get-colored-svg-url(
|
|
|
13
13
|
'2113',
|
|
14
14
|
$form-select-disabled-color
|
|
15
15
|
)) !default;
|
|
16
|
-
$form-select-indicator-success: url(icons.get-colored-svg-url(
|
|
17
|
-
'2105',
|
|
18
|
-
color.$success-green
|
|
19
|
-
)) !default;
|
|
20
|
-
$form-select-indicator-error: url(icons.get-colored-svg-url('2104', color.$error-red)) !default;
|
|
21
16
|
$form-select-indicator-hcm-dark: url(icons.get-colored-svg-url('2113', color.$white)) !default;
|
|
22
17
|
$form-select-indicator-hcm-light: url(icons.get-colored-svg-url('2113', color.$black)) !default;
|
|
18
|
+
|
|
19
|
+
$form-select-indicator-success: url(icons.get-colored-svg-url('2105', color.$success)) !default;
|
|
20
|
+
$form-select-indicator-success-hcm-dark: url(icons.get-colored-svg-url(
|
|
21
|
+
'2105',
|
|
22
|
+
color.$white
|
|
23
|
+
)) !default;
|
|
24
|
+
$form-select-indicator-success-hcm-light: url(icons.get-colored-svg-url(
|
|
25
|
+
'2105',
|
|
26
|
+
color.$black
|
|
27
|
+
)) !default;
|
|
28
|
+
|
|
29
|
+
$form-select-indicator-error: url(icons.get-colored-svg-url('2104', color.$error)) !default;
|
|
30
|
+
$form-select-indicator-error-hcm-dark: url(icons.get-colored-svg-url(
|
|
31
|
+
'2104',
|
|
32
|
+
color.$white
|
|
33
|
+
)) !default;
|
|
34
|
+
$form-select-indicator-error-hcm-light: url(icons.get-colored-svg-url(
|
|
35
|
+
'2104',
|
|
36
|
+
color.$black
|
|
37
|
+
)) !default;
|
|
@@ -3,29 +3,37 @@
|
|
|
3
3
|
@use './../type';
|
|
4
4
|
@use './../components/button';
|
|
5
5
|
@use './../components/forms';
|
|
6
|
+
@use './../../functions/icons';
|
|
6
7
|
|
|
7
8
|
// Bootstrap variables
|
|
8
9
|
$form-feedback-margin-top: 0 !default;
|
|
9
10
|
$form-feedback-font-size: type.$font-size-12 !default;
|
|
10
11
|
$form-feedback-valid-color: color.$gray-60 !default;
|
|
11
12
|
$form-feedback-invalid-color: color.$error !default;
|
|
12
|
-
$form-feedback-icon-valid: url(
|
|
13
|
-
$form-feedback-icon-
|
|
13
|
+
$form-feedback-icon-valid: url(icons.get-colored-svg-url('2105', color.$success)) !default;
|
|
14
|
+
$form-feedback-icon-valid-hcm-dark: url(icons.get-colored-svg-url('2105', color.$white)) !default;
|
|
15
|
+
$form-feedback-icon-valid-hcm-light: url(icons.get-colored-svg-url('2105', color.$black)) !default;
|
|
16
|
+
$form-feedback-icon-invalid: url(icons.get-colored-svg-url('2104', color.$error)) !default;
|
|
17
|
+
$form-feedback-icon-invalid-hcm-dark: url(icons.get-colored-svg-url('2104', color.$white)) !default;
|
|
18
|
+
$form-feedback-icon-invalid-hcm-light: url(icons.get-colored-svg-url(
|
|
19
|
+
'2104',
|
|
20
|
+
color.$black
|
|
21
|
+
)) !default;
|
|
14
22
|
|
|
15
23
|
// Design System custom variables
|
|
16
24
|
$form-feedback-padding-x: button.$input-btn-padding-x !default;
|
|
17
25
|
$form-feedback-padding-y: 0.5 * button.$input-btn-padding-x !default;
|
|
18
26
|
$form-feedback-icon-size: 2rem !default; // Equals 24pt [svg-size]
|
|
19
27
|
$form-feedback-icon-offset: spacing.$size-mini !default;
|
|
20
|
-
$form-feedback-valid-bg: color.$success
|
|
28
|
+
$form-feedback-valid-bg: color.$success !default;
|
|
21
29
|
$form-feedback-valid-text: color.$white !default;
|
|
22
30
|
$form-feedback-invalid-bg: color.$error !default;
|
|
23
31
|
$form-feedback-invalid-text: color.$white !default;
|
|
24
|
-
$form-feedback-custom-color: color.$success
|
|
25
|
-
$form-feedback-custom-bg: color.$success
|
|
32
|
+
$form-feedback-custom-color: color.$success !default;
|
|
33
|
+
$form-feedback-custom-bg: color.$success !default;
|
|
26
34
|
$form-feedback-invalid-box-shadow: 0 0 0 forms.$input-focus-width
|
|
27
35
|
rgba($form-feedback-invalid-color, 0.25) !default;
|
|
28
36
|
$form-feedback-valid-box-shadow: 0 0 0 forms.$input-focus-width
|
|
29
|
-
rgba($form-feedback-valid-color, 0.25) !default;
|
|
37
|
+
rgba($form-feedback-valid-color, 0.25) !default;
|
|
30
38
|
$form-feedback-custom-text: color.$white !default;
|
|
31
39
|
$form-feedback-custom-box-shadow: 0 0 0 0.2rem rgba($form-feedback-custom-color, 0.25) !default;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@forward 'button';
|
|
5
5
|
@forward 'card';
|
|
6
6
|
@forward 'carousel';
|
|
7
|
+
@forward 'chip';
|
|
7
8
|
@forward 'close';
|
|
8
9
|
@forward 'datepicker';
|
|
9
10
|
@forward 'dropdowns';
|
|
@@ -24,5 +25,6 @@
|
|
|
24
25
|
@forward 'spinners';
|
|
25
26
|
@forward 'subnavigation';
|
|
26
27
|
@forward 'tables';
|
|
28
|
+
@forward 'tag';
|
|
27
29
|
@forward 'thumbnails';
|
|
28
30
|
@forward 'tooltips';
|
|
@@ -13,7 +13,7 @@ $list-group-border-radius: 0 !default;
|
|
|
13
13
|
$list-group-item-padding-y: map.get(spacing.$post-sizes, 'small-regular') !default;
|
|
14
14
|
$list-group-item-padding-x: map.get(spacing.$post-sizes, 'large') !default;
|
|
15
15
|
|
|
16
|
-
$list-group-hover-bg: color.$
|
|
16
|
+
$list-group-hover-bg: color.$light !default;
|
|
17
17
|
$list-group-hover-bg-inverted: color.$white !default;
|
|
18
18
|
$list-group-active-color: color.$white !default;
|
|
19
19
|
$list-group-active-bg: color.$gray-80 !default;
|
|
@@ -73,12 +73,13 @@ $notification-variants: () !default;
|
|
|
73
73
|
$notification-variants: list.join(
|
|
74
74
|
$notification-variants,
|
|
75
75
|
(
|
|
76
|
-
|
|
77
|
-
'
|
|
78
|
-
'
|
|
76
|
+
// When changed, check $notification-variants as well in packages/styles/src/variables/_color.scss
|
|
77
|
+
'primary' color.$primary 3134,
|
|
78
|
+
'success' color.$success 2105,
|
|
79
79
|
'warning' color.$warning 2104,
|
|
80
|
+
'danger' color.$error 2104,
|
|
80
81
|
'info' color.$info 2106,
|
|
81
|
-
'gray' color.$gray
|
|
82
|
+
'gray' color.$gray 2201,
|
|
82
83
|
// deprecated
|
|
83
84
|
'notification' color.$gray-80 3134,
|
|
84
85
|
'error' color.$error 2104
|
|
@@ -23,7 +23,7 @@ $pagination-focus-box-shadow: button.$input-btn-focus-box-shadow !default;
|
|
|
23
23
|
$pagination-focus-outline: 0 !default;
|
|
24
24
|
|
|
25
25
|
$pagination-hover-color: color.$black !default;
|
|
26
|
-
$pagination-hover-bg: color.$
|
|
26
|
+
$pagination-hover-bg: color.$light !default;
|
|
27
27
|
$pagination-hover-border-color: color.$gray-10 !default;
|
|
28
28
|
|
|
29
29
|
$pagination-active-color: color.$black !default;
|
|
@@ -31,7 +31,7 @@ $pagination-active-bg: color.$yellow !default;
|
|
|
31
31
|
$pagination-active-border-color: color.$yellow !default;
|
|
32
32
|
|
|
33
33
|
$pagination-disabled-color: color.$gray-40 !default;
|
|
34
|
-
$pagination-disabled-bg: color.$
|
|
34
|
+
$pagination-disabled-bg: color.$light !default;
|
|
35
35
|
$pagination-disabled-border-color: color.$gray-10 !default;
|
|
36
36
|
|
|
37
37
|
$pagination-height-border: $pagination-border-width * 2 !default;
|
|
@@ -1,34 +1,45 @@
|
|
|
1
|
-
@use './forms';
|
|
2
1
|
@use './../type';
|
|
3
2
|
@use './../color';
|
|
4
3
|
@use './../spacing';
|
|
4
|
+
@use './../animation';
|
|
5
5
|
|
|
6
6
|
@use './../../functions/icons' as icon-fn;
|
|
7
7
|
|
|
8
8
|
$stepper-bar-height: spacing.$size-micro;
|
|
9
|
+
$stepper-bar-color: color.$gray-40;
|
|
10
|
+
$stepper-bar-fill-color: color.$yellow;
|
|
9
11
|
|
|
10
|
-
$stepper-indicator-
|
|
12
|
+
$stepper-indicator-size: spacing.$size-bigger-big;
|
|
11
13
|
$stepper-indicator-border-width: spacing.$size-micro;
|
|
12
|
-
$stepper-indicator-border-color:
|
|
13
|
-
$stepper-indicator-font-
|
|
14
|
-
$stepper-indicator-font-weight: type.$font-weight-base;
|
|
14
|
+
$stepper-indicator-border-color: rgb(var(--post-bg-rgb, 255 255 255));
|
|
15
|
+
$stepper-indicator-font-weight: type.$font-weight-bold;
|
|
15
16
|
$stepper-indicator-bg: color.$yellow;
|
|
16
17
|
$stepper-indicator-color: color.$black;
|
|
17
|
-
$stepper-indicator-check-
|
|
18
|
-
$stepper-indicator-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
$stepper-indicator-check-size: spacing.$size-large;
|
|
19
|
+
$stepper-indicator-transition:
|
|
20
|
+
color animation.$transition-base-timing,
|
|
21
|
+
background-color animation.$transition-base-timing;
|
|
22
|
+
|
|
23
|
+
$stepper-indicator-hover-color: var(--post-contrast-color-inverted);
|
|
24
|
+
$stepper-indicator-hover-bg: var(--post-contrast-color);
|
|
25
|
+
|
|
22
26
|
$stepper-indicator-future-bg: color.$gray-60;
|
|
23
27
|
$stepper-indicator-future-color: color.$white;
|
|
24
28
|
|
|
29
|
+
$stepper-link-line-height: type.$line-height-sm;
|
|
25
30
|
$stepper-link-gap: spacing.$size-mini;
|
|
26
|
-
$stepper-link-
|
|
27
|
-
$stepper-link-
|
|
28
|
-
|
|
29
|
-
$stepper-link-current-
|
|
31
|
+
$stepper-link-spacing: spacing.$size-regular;
|
|
32
|
+
$stepper-link-color: var(--post-gray-60);
|
|
33
|
+
|
|
34
|
+
$stepper-link-current-color: var(--post-gray-80);
|
|
30
35
|
$stepper-link-current-font-weight: type.$font-weight-bold;
|
|
31
36
|
|
|
32
37
|
// DEPRECATED
|
|
38
|
+
$stepper-link-hover-color: $stepper-link-color;
|
|
39
|
+
$stepper-indicator-hover-outline: spacing.$size-line solid var(--post-focus-color);
|
|
40
|
+
$stepper-indicator-font-size: type.$font-size-16;
|
|
41
|
+
$stepper-link-current-font-size: type.$font-size-16;
|
|
33
42
|
$stepper-indicator-check-icon: url('#{icon-fn.get-colored-svg-url('2105', $stepper-indicator-color)}');
|
|
34
43
|
$stepper-indicator-hover-check-icon: url('#{icon-fn.get-colored-svg-url('2105',$stepper-indicator-hover-color)}');
|
|
44
|
+
$stepper-indicator-height: $stepper-indicator-size;
|
|
45
|
+
$stepper-indicator-check-icon-size: $stepper-indicator-check-size;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Subnavigation
|
|
8
8
|
|
|
9
9
|
$subnavigation-background-color: color.$white;
|
|
10
|
-
$subnavigation-background-color-alternate: color.$
|
|
10
|
+
$subnavigation-background-color-alternate: color.$light;
|
|
11
11
|
|
|
12
12
|
$subnavigation-border-bottom-width: commons.$border-width;
|
|
13
13
|
$subnavigation-border-bottom-color: color.$gray-10;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use './../color' as color;
|
|
2
|
+
@use './../spacing' as spacing;
|
|
3
|
+
@use './../type' as type;
|
|
4
|
+
@use '../../functions/sizing' as sizing;
|
|
5
|
+
|
|
6
|
+
$tag-gap: spacing.$size-micro;
|
|
7
|
+
$tag-padding-y: 0;
|
|
8
|
+
$tag-padding-x: spacing.$size-mini;
|
|
9
|
+
$tag-max-width: sizing.px-to-rem(296);
|
|
10
|
+
$tag-border-width: spacing.$size-hair;
|
|
11
|
+
$tag-border-radius: spacing.$size-micro;
|
|
12
|
+
$tag-font-size: type.$font-size-16;
|
|
13
|
+
$tag-line-height: spacing.$size-big - (sizing.px-to-rem($tag-border-width) * 2);
|
|
14
|
+
$tag-icon-size: $tag-font-size * 1.25;
|
|
15
|
+
|
|
16
|
+
$tag-sm-line-height: spacing.$size-large;
|
|
17
|
+
$tag-sm-icon-size: $tag-font-size;
|
|
18
|
+
|
|
19
|
+
$tag-default-background: color.$gray-10;
|
|
20
|
+
$tag-backgrounds: (
|
|
21
|
+
'white': color.$white,
|
|
22
|
+
'yellow': color.$yellow,
|
|
23
|
+
'success': color.$success,
|
|
24
|
+
'warning': color.$warning,
|
|
25
|
+
'danger': color.$error,
|
|
26
|
+
'info': color.$info,
|
|
27
|
+
);
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
@use '../variables/color';
|
|
2
|
-
@use '../variables/commons';
|
|
3
|
-
@use '../variables/spacing';
|
|
4
|
-
@use '../mixins/utilities';
|
|
5
|
-
|
|
6
|
-
.radio-button-card,
|
|
7
|
-
.checkbox-button-card {
|
|
8
|
-
--post-card-select--hover-bg: #{color.$gray-10};
|
|
9
|
-
|
|
10
|
-
position: relative;
|
|
11
|
-
display: flex;
|
|
12
|
-
gap: 0 spacing.$size-mini;
|
|
13
|
-
|
|
14
|
-
width: 100%;
|
|
15
|
-
|
|
16
|
-
color: color.$gray-80;
|
|
17
|
-
background-color: color.$white;
|
|
18
|
-
border: 2px solid color.$gray-60;
|
|
19
|
-
border-radius: commons.$border-radius;
|
|
20
|
-
padding: spacing.$size-regular;
|
|
21
|
-
transition:
|
|
22
|
-
color 100ms ease-in-out,
|
|
23
|
-
background-color 100ms ease-in-out,
|
|
24
|
-
border-color 100ms ease-in-out;
|
|
25
|
-
|
|
26
|
-
// Checked
|
|
27
|
-
&:where(:has(input:checked), .checked) {
|
|
28
|
-
--post-card-select--hover-bg: #{color.$yellow};
|
|
29
|
-
background-color: color.$yellow;
|
|
30
|
-
border-color: color.$gray-60;
|
|
31
|
-
|
|
32
|
-
input {
|
|
33
|
-
background-color: color.$white !important;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Focus
|
|
38
|
-
&:where(:has(input:focus-visible), .focused) {
|
|
39
|
-
background-color: var(--post-card-select--hover-bg);
|
|
40
|
-
outline: 2px solid color.$black;
|
|
41
|
-
outline-offset: 2px;
|
|
42
|
-
border-color: color.$black;
|
|
43
|
-
|
|
44
|
-
input {
|
|
45
|
-
border-color: color.$black;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Hover
|
|
50
|
-
&:where(:hover:not(:has(input:disabled)), :hover:not(.disabled)) {
|
|
51
|
-
border-color: color.$black;
|
|
52
|
-
color: color.$black;
|
|
53
|
-
background-color: var(--post-card-select--hover-bg);
|
|
54
|
-
|
|
55
|
-
input {
|
|
56
|
-
border-color: color.$black;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@include utilities.high-contrast-mode() {
|
|
60
|
-
border-color: Highlight;
|
|
61
|
-
transition: none;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Disabled
|
|
66
|
-
&:has(input:disabled),
|
|
67
|
-
&.disabled {
|
|
68
|
-
border-color: color.$gray-20;
|
|
69
|
-
color: color.$gray-40 !important;
|
|
70
|
-
|
|
71
|
-
> * {
|
|
72
|
-
cursor: default;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:has(input:disabled:checked),
|
|
77
|
-
&.disabled.checked {
|
|
78
|
-
background-color: color.$gray-10;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// Error
|
|
82
|
-
&:has(input[aria-invalid]),
|
|
83
|
-
&:has(input.is-invalid),
|
|
84
|
-
&.is-invalid {
|
|
85
|
-
color: color.$error;
|
|
86
|
-
border-color: color.$error;
|
|
87
|
-
|
|
88
|
-
~ .invalid-feedback {
|
|
89
|
-
display: block;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:last-child {
|
|
94
|
-
margin-bottom: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
> * {
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
post-icon {
|
|
102
|
-
width: 2em;
|
|
103
|
-
height: 2em;
|
|
104
|
-
margin-left: spacing.$size-mini;
|
|
105
|
-
pointer-events: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
input {
|
|
109
|
-
border-color: color.$gray-80;
|
|
110
|
-
background-color: color.$white;
|
|
111
|
-
transition: border-color 100ms ease-in-out;
|
|
112
|
-
grid-column: 1 / 2;
|
|
113
|
-
|
|
114
|
-
&:focus {
|
|
115
|
-
box-shadow: none !important;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.form-check-label {
|
|
120
|
-
padding-left: 0;
|
|
121
|
-
|
|
122
|
-
&::before {
|
|
123
|
-
// This spans up the click area of the label to the whole
|
|
124
|
-
// card in order to make it clickable natively.
|
|
125
|
-
content: '';
|
|
126
|
-
position: absolute;
|
|
127
|
-
inset: -2px;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
span {
|
|
131
|
-
// Lift spans above the before element to make them selectable
|
|
132
|
-
position: relative;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
input,
|
|
137
|
-
.form-check-label {
|
|
138
|
-
margin-block: 0.25rem;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Align input and label if there is an icon
|
|
142
|
-
&:has(post-icon) {
|
|
143
|
-
input,
|
|
144
|
-
.form-check-label {
|
|
145
|
-
margin-top: 0.25rem;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
package/mixins/_badge.scss
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@use './../variables/components/badge';
|
|
2
|
-
@use './../mixins/utilities';
|
|
3
|
-
|
|
4
|
-
@mixin badge-hover-state {
|
|
5
|
-
color: badge.$badge-hover-color;
|
|
6
|
-
background-color: badge.$badge-hover-bg-color;
|
|
7
|
-
border-color: transparent;
|
|
8
|
-
|
|
9
|
-
@include utilities.high-contrast-mode() {
|
|
10
|
-
background-color: Highlight;
|
|
11
|
-
border-color: Highlight;
|
|
12
|
-
color: HighlightText;
|
|
13
|
-
forced-color-adjust: none; // Disable "readability backplate" on blink browser that interferes with the colors on this case
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin badge-active-state {
|
|
18
|
-
color: badge.$badge-active-color;
|
|
19
|
-
background-color: badge.$badge-active-bg-color;
|
|
20
|
-
border-color: transparent;
|
|
21
|
-
|
|
22
|
-
> .badge {
|
|
23
|
-
background-color: badge.$badge-nested-active-bg-color;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@include utilities.high-contrast-mode() {
|
|
27
|
-
background-color: SelectedItem;
|
|
28
|
-
color: SelectedItemText;
|
|
29
|
-
forced-color-adjust: none; // Disable "readability backplate" on blink browser that interferes with the colors on this case
|
|
30
|
-
}
|
|
31
|
-
}
|