@igo2/sdg-core 2.0.0-next.1 → 2.0.0-next.3
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/README.md +62 -4
- package/fesm2022/igo2-sdg-core.mjs +0 -97
- package/fesm2022/igo2-sdg-core.mjs.map +1 -1
- package/package.json +3 -9
- package/src/_index.scss +0 -1
- package/src/style/_index.scss +0 -1
- package/src/tokens/_system.scss +4 -22
- package/types/igo2-sdg-core.d.ts +1 -52
- package/src/style/overrides/_index.scss +0 -2
- package/src/style/overrides/igo2-lib/_index.scss +0 -9
- package/src/style/overrides/igo2-lib/_list.scss +0 -22
- package/src/style/overrides/igo2-lib/_panel.scss +0 -7
- package/src/style/overrides/igo2-lib/_search-bar.scss +0 -72
- package/src/style/overrides/material/_button.scss +0 -137
- package/src/style/overrides/material/_checkbox.scss +0 -120
- package/src/style/overrides/material/_chip.scss +0 -122
- package/src/style/overrides/material/_dialog.scss +0 -37
- package/src/style/overrides/material/_divider.scss +0 -11
- package/src/style/overrides/material/_expansion-panel.scss +0 -62
- package/src/style/overrides/material/_form-field.scss +0 -140
- package/src/style/overrides/material/_icon.scss +0 -34
- package/src/style/overrides/material/_index.scss +0 -27
- package/src/style/overrides/material/_radio-button.scss +0 -124
- package/src/style/overrides/material/_select.scss +0 -74
- package/src/style/overrides/material/_sidenav.scss +0 -9
- package/src/style/overrides/material/_tab.scss +0 -95
- package/src/theme/_index.scss +0 -1
- package/src/theme/material/_index.scss +0 -1
- package/src/theme/material/_theme.scss +0 -241
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
.mat-mdc-checkbox {
|
|
5
|
-
$disabled-color: var(--sdg-color-grey-light);
|
|
6
|
-
$unselected-color: var(--sdg-color-blue-dark);
|
|
7
|
-
$selected-color: var(--sdg-color-blue-normal);
|
|
8
|
-
|
|
9
|
-
$base-size: 8px;
|
|
10
|
-
$checkbox-size: calc($base-size * 3);
|
|
11
|
-
$size-with-padding: var(--mat-checkbox-state-layer-size);
|
|
12
|
-
|
|
13
|
-
@include mat.checkbox-overrides(
|
|
14
|
-
(
|
|
15
|
-
label-text-size: var(--sdg-font-size-md),
|
|
16
|
-
label-text-line-height: var(--sdg-font-size-md),
|
|
17
|
-
// same as font size to avoid extra space above and below
|
|
18
|
-
label-text-color: $unselected-color,
|
|
19
|
-
|
|
20
|
-
disabled-label-color: $disabled-color,
|
|
21
|
-
disabled-unselected-icon-color: $disabled-color,
|
|
22
|
-
disabled-selected-checkmark-color: var(--sdg-color-grey-pale),
|
|
23
|
-
disabled-selected-icon-color: $disabled-color,
|
|
24
|
-
|
|
25
|
-
unselected-icon-color: $unselected-color,
|
|
26
|
-
unselected-hover-icon-color: $unselected-color,
|
|
27
|
-
unselected-focus-icon-color: $selected-color,
|
|
28
|
-
|
|
29
|
-
unselected-hover-state-layer-opacity: 0,
|
|
30
|
-
unselected-focus-state-layer-opacity: 0,
|
|
31
|
-
unselected-pressed-state-layer-opacity: 0,
|
|
32
|
-
|
|
33
|
-
unselected-hover-state-layer-color: transparent,
|
|
34
|
-
unselected-focus-state-layer-color: transparent,
|
|
35
|
-
unselected-pressed-state-layer-color: transparent,
|
|
36
|
-
|
|
37
|
-
selected-icon-color: $selected-color,
|
|
38
|
-
selected-hover-icon-color: $selected-color,
|
|
39
|
-
selected-focus-icon-color: $selected-color,
|
|
40
|
-
selected-pressed-icon-color: $selected-color,
|
|
41
|
-
|
|
42
|
-
selected-hover-state-layer-opacity: 0,
|
|
43
|
-
selected-focus-state-layer-opacity: 0,
|
|
44
|
-
selected-pressed-state-layer-opacity: 0,
|
|
45
|
-
|
|
46
|
-
selected-hover-state-layer-color: transparent,
|
|
47
|
-
selected-focus-state-layer-color: transparent,
|
|
48
|
-
selected-pressed-state-layer-color: transparent
|
|
49
|
-
)
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
.mdc-checkbox__native-control {
|
|
53
|
-
top: calc($base-size / 2);
|
|
54
|
-
left: calc($base-size / 2);
|
|
55
|
-
right: calc($base-size / 2);
|
|
56
|
-
|
|
57
|
-
&:focus:checked ~ .mdc-checkbox__background {
|
|
58
|
-
border-color: $unselected-color;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.mdc-checkbox {
|
|
63
|
-
height: $checkbox-size;
|
|
64
|
-
width: $checkbox-size;
|
|
65
|
-
flex-basis: $checkbox-size;
|
|
66
|
-
|
|
67
|
-
.mdc-checkbox__background {
|
|
68
|
-
height: $checkbox-size;
|
|
69
|
-
width: $checkbox-size;
|
|
70
|
-
border-radius: 0px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.mat-mdc-checkbox-touch-target {
|
|
75
|
-
height: $size-with-padding;
|
|
76
|
-
width: $size-with-padding;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.mdc-label {
|
|
80
|
-
padding-left: 0;
|
|
81
|
-
transform: translateY(
|
|
82
|
-
1px
|
|
83
|
-
); // visually center the label with the radio button
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&[compact] {
|
|
87
|
-
$checkbox-size: calc($base-size * 2);
|
|
88
|
-
$size-with-padding: calc($checkbox-size + ($base-size * 2));
|
|
89
|
-
|
|
90
|
-
@include mat.checkbox-overrides(
|
|
91
|
-
(
|
|
92
|
-
state-layer-size: $size-with-padding
|
|
93
|
-
)
|
|
94
|
-
);
|
|
95
|
-
|
|
96
|
-
.mdc-checkbox__native-control {
|
|
97
|
-
top: 0;
|
|
98
|
-
left: 0;
|
|
99
|
-
right: 0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.mdc-checkbox {
|
|
103
|
-
height: $checkbox-size;
|
|
104
|
-
width: $checkbox-size;
|
|
105
|
-
flex-basis: $checkbox-size;
|
|
106
|
-
|
|
107
|
-
.mdc-checkbox__background {
|
|
108
|
-
height: $checkbox-size;
|
|
109
|
-
width: $checkbox-size;
|
|
110
|
-
border-width: 1px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.mat-mdc-checkbox-touch-target {
|
|
115
|
-
height: $size-with-padding;
|
|
116
|
-
width: $size-with-padding;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
$focus-color: var(--sdg-color-blue-light);
|
|
4
|
-
$white: var(--sdg-color-white);
|
|
5
|
-
|
|
6
|
-
@mixin overrides() {
|
|
7
|
-
$border-outline-width: 2px;
|
|
8
|
-
|
|
9
|
-
.mat-mdc-chip-set {
|
|
10
|
-
.mdc-evolution-chip {
|
|
11
|
-
margin: 0;
|
|
12
|
-
min-height: 40px;
|
|
13
|
-
max-height: 60px;
|
|
14
|
-
min-width: 56px;
|
|
15
|
-
|
|
16
|
-
&-set__chips {
|
|
17
|
-
margin: 0;
|
|
18
|
-
gap: 8px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__action-primary {
|
|
22
|
-
padding-left: 4px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:focus-visible {
|
|
26
|
-
border: $border-outline-width solid $white;
|
|
27
|
-
outline: $border-outline-width solid $focus-color;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.mdc-evolution-chip__action {
|
|
33
|
-
&--presentational {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&--primary:hover::before {
|
|
38
|
-
border-color: $focus-color !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&--primary:focus::before {
|
|
42
|
-
border-width: $border-outline-width;
|
|
43
|
-
outline: $border-outline-width solid $focus-color;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.mat-mdc-standard-chip {
|
|
48
|
-
&.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action {
|
|
49
|
-
&--primary {
|
|
50
|
-
padding-left: 8px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--trailing {
|
|
54
|
-
padding-left: 4px;
|
|
55
|
-
padding-right: 6px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
& .mdc-evolution-chip__action {
|
|
60
|
-
&--primary {
|
|
61
|
-
padding-left: 8px;
|
|
62
|
-
padding-right: 8px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.mat-mdc-chip-remove {
|
|
68
|
-
&::after {
|
|
69
|
-
left: 2px;
|
|
70
|
-
right: 4px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.mat-icon {
|
|
74
|
-
z-index: 1;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.mat-mdc-chip {
|
|
79
|
-
$background-color: var(--sdg-color-blue-pale);
|
|
80
|
-
$text-color: var(--sdg-color-blue-piv);
|
|
81
|
-
$disabled-background-color: var(--sdg-color-grey-pale);
|
|
82
|
-
$disabled-color: var(--sdg-color-grey-normal);
|
|
83
|
-
|
|
84
|
-
@include mat.chips-overrides(
|
|
85
|
-
(
|
|
86
|
-
container-shape-radius: 0,
|
|
87
|
-
|
|
88
|
-
outline-width: 1px,
|
|
89
|
-
outline-color: $background-color,
|
|
90
|
-
|
|
91
|
-
focus-outline-color: $white,
|
|
92
|
-
focus-state-layer-color: transparent,
|
|
93
|
-
focus-state-layer-opacity: 0,
|
|
94
|
-
|
|
95
|
-
disabled-outline-color: $disabled-background-color,
|
|
96
|
-
disabled-label-text-color: $disabled-color,
|
|
97
|
-
disabled-container-opacity: 1,
|
|
98
|
-
|
|
99
|
-
hover-state-layer-opacity: 0,
|
|
100
|
-
hover-state-layer-color: transparent,
|
|
101
|
-
|
|
102
|
-
elevated-container-color: $background-color,
|
|
103
|
-
elevated-selected-container-color: $background-color,
|
|
104
|
-
elevated-disabled-container-color: $disabled-background-color,
|
|
105
|
-
|
|
106
|
-
with-trailing-icon-disabled-trailing-icon-opacity: 1,
|
|
107
|
-
with-trailing-icon-disabled-trailing-icon-color: $disabled-color,
|
|
108
|
-
with-trailing-icon-trailing-icon-color: $text-color,
|
|
109
|
-
|
|
110
|
-
label-text-color: $text-color,
|
|
111
|
-
label-text-weight: 600,
|
|
112
|
-
label-text-line-height: var(--sdg-line-height-sm),
|
|
113
|
-
label-text-size: var(--sdg-font-size-sm),
|
|
114
|
-
trailing-action-focus-state-layer-opacity: 1,
|
|
115
|
-
trailing-action-hover-state-layer-opacity: 1,
|
|
116
|
-
trailing-action-state-layer-color: var(--sdg-color-grey-light),
|
|
117
|
-
trailing-action-focus-opacity: 1,
|
|
118
|
-
trailing-action-opacity: 1
|
|
119
|
-
)
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@use '../../../style/typography-utils';
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
.mdc-dialog {
|
|
5
|
-
max-width: 600px;
|
|
6
|
-
|
|
7
|
-
&__surface {
|
|
8
|
-
border-radius: 0 !important;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&__title {
|
|
12
|
-
padding-top: 8px !important; // Workaround, this should be 32px but Material apply a default height for the title.
|
|
13
|
-
padding-bottom: 24px !important;
|
|
14
|
-
|
|
15
|
-
@include typography-utils.title-border;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&__tile,
|
|
19
|
-
&__content,
|
|
20
|
-
&__actions {
|
|
21
|
-
padding-left: 32px !important;
|
|
22
|
-
padding-right: 32px !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__actions {
|
|
26
|
-
padding-top: 24px !important;
|
|
27
|
-
padding-bottom: 32px !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.close-button {
|
|
31
|
-
$iconButtonPadding: 8px;
|
|
32
|
-
position: absolute;
|
|
33
|
-
top: 16px - $iconButtonPadding;
|
|
34
|
-
right: 16px - $iconButtonPadding;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
.mat-expansion-panel {
|
|
5
|
-
$grey-pale: var(--sdg-color-grey-pale);
|
|
6
|
-
$grey-hover: var(#e7e7ea);
|
|
7
|
-
|
|
8
|
-
$blue-dark: var(--sdg-color-blue-dark);
|
|
9
|
-
|
|
10
|
-
@include mat.expansion-overrides(
|
|
11
|
-
(
|
|
12
|
-
container-shape: 0,
|
|
13
|
-
container-elevation-shadow: none,
|
|
14
|
-
container-text-color: none,
|
|
15
|
-
container-text-tracking: none,
|
|
16
|
-
|
|
17
|
-
header-description-color: var(--sdg-color-grey-medium),
|
|
18
|
-
header-focus-state-layer-color: $grey-pale,
|
|
19
|
-
header-hover-state-layer-color: $grey-hover,
|
|
20
|
-
header-indicator-color: $blue-dark,
|
|
21
|
-
header-text-color: $blue-dark,
|
|
22
|
-
header-text-weight: 600,
|
|
23
|
-
header-text-size: var(--sdg-font-size-md),
|
|
24
|
-
header-text-line-height: var(--sdg-line-height-md),
|
|
25
|
-
header-text-font: var(--sdg-font-family-text),
|
|
26
|
-
header-text-tracking: none,
|
|
27
|
-
header-collapsed-state-height: 56px,
|
|
28
|
-
header-expanded-state-height: 56px
|
|
29
|
-
)
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
&.mat-expanded {
|
|
33
|
-
outline: 1px solid var(--sdg-color-grey-light);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.mat-expansion-panel-header {
|
|
37
|
-
background-color: $grey-pale;
|
|
38
|
-
padding: 0 16px;
|
|
39
|
-
|
|
40
|
-
&-description {
|
|
41
|
-
justify-content: flex-end;
|
|
42
|
-
font-weight: normal;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.cdk-keyboard-focused {
|
|
46
|
-
border: 2px solid var(--sdg-color-blue-light);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.mat-expanded {
|
|
50
|
-
background-color: $grey-pale;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.mat-expansion-panel-body {
|
|
55
|
-
padding: 24px 16px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover {
|
|
59
|
-
outline: 1px solid var(--sdg-color-grey-light) !important;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
.mat-mdc-form-field {
|
|
5
|
-
$blue-dark: var(--sdg-color-blue-dark);
|
|
6
|
-
$grey-medium: var(--sdg-color-grey-medium);
|
|
7
|
-
$red-normal: var(--sdg-color-red-normal);
|
|
8
|
-
|
|
9
|
-
$text-font: var(--sdg-font-family-text);
|
|
10
|
-
$text-line-height: var(--sdg-line-height-md);
|
|
11
|
-
$text-size: var(--sdg-font-size-md);
|
|
12
|
-
|
|
13
|
-
max-width: 100%;
|
|
14
|
-
|
|
15
|
-
@include mat.form-field-density(-4);
|
|
16
|
-
|
|
17
|
-
@include mat.form-field-overrides(
|
|
18
|
-
(
|
|
19
|
-
outlined-outline-width: 1px,
|
|
20
|
-
outlined-outline-color: $grey-medium,
|
|
21
|
-
outlined-disabled-input-text-color: $grey-medium,
|
|
22
|
-
outlined-disabled-outline-color: $grey-medium,
|
|
23
|
-
outlined-error-hover-outline-color: $red-normal,
|
|
24
|
-
outlined-focus-outline-width: 2px,
|
|
25
|
-
outlined-focus-outline-color: $blue-dark,
|
|
26
|
-
outlined-hover-outline-color: $grey-medium,
|
|
27
|
-
outlined-input-text-color: $blue-dark,
|
|
28
|
-
outlined-input-text-placeholder-color: $grey-medium,
|
|
29
|
-
outlined-container-shape: 0,
|
|
30
|
-
//
|
|
31
|
-
disabled-input-text-placeholder-color: $grey-medium,
|
|
32
|
-
//
|
|
33
|
-
error-text-color: $red-normal,
|
|
34
|
-
//
|
|
35
|
-
focus-state-layer-opacity: 0,
|
|
36
|
-
//
|
|
37
|
-
hover-state-layer-opacity: 0,
|
|
38
|
-
//
|
|
39
|
-
state-layer-color: transparent,
|
|
40
|
-
//
|
|
41
|
-
container-text-font: $text-font,
|
|
42
|
-
container-text-line-height: $text-line-height,
|
|
43
|
-
container-text-size: $text-size
|
|
44
|
-
)
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
&.mat-form-field-disabled {
|
|
48
|
-
.mdc-text-field {
|
|
49
|
-
background-color: var(--sdg-color-grey-pale);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
mat-hint {
|
|
53
|
-
color: var(--sdg-color-grey-normal) !important;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mdc-text-field {
|
|
58
|
-
background-color: var(--sdg-color-background);
|
|
59
|
-
padding: 0 8px;
|
|
60
|
-
|
|
61
|
-
&--focused {
|
|
62
|
-
outline: 2px solid var(--sdg-color-blue-light);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&--disabled {
|
|
66
|
-
background-color: var(--sdg-color-grey-pale);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&[xl] {
|
|
71
|
-
width: 825px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&[lg],
|
|
75
|
-
&[multi] {
|
|
76
|
-
width: 528px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&[md] {
|
|
80
|
-
width: 249px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&[sm] {
|
|
84
|
-
width: 156px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&[xs] {
|
|
88
|
-
width: 63px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.mat-mdc-form-field-subscript-wrapper {
|
|
92
|
-
.mat-mdc-form-field-hint-wrapper {
|
|
93
|
-
padding: 0;
|
|
94
|
-
|
|
95
|
-
mat-hint {
|
|
96
|
-
padding-top: 4px;
|
|
97
|
-
font-family: $text-font;
|
|
98
|
-
font-weight: 400;
|
|
99
|
-
font-size: var(--sdg-font-size-sm);
|
|
100
|
-
line-height: var(--sdg-line-height-sm);
|
|
101
|
-
color: var(--sdg-color-grey-dark);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.mat-mdc-form-field-error-wrapper {
|
|
107
|
-
padding: 0;
|
|
108
|
-
|
|
109
|
-
mat-error {
|
|
110
|
-
display: flex;
|
|
111
|
-
align-items: center;
|
|
112
|
-
column-gap: 8px;
|
|
113
|
-
padding-top: 8px;
|
|
114
|
-
font-family: $text-font;
|
|
115
|
-
font-weight: 600;
|
|
116
|
-
font-size: $text-size;
|
|
117
|
-
line-height: $text-line-height;
|
|
118
|
-
|
|
119
|
-
mat-icon {
|
|
120
|
-
font-size: 24px;
|
|
121
|
-
width: 24px;
|
|
122
|
-
height: 24px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.mat-mdc-input-element {
|
|
129
|
-
&::-webkit-scrollbar {
|
|
130
|
-
background-color: transparent;
|
|
131
|
-
width: 8px;
|
|
132
|
-
height: auto;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&::-webkit-scrollbar-thumb {
|
|
136
|
-
background: var(--sdg-color-blue-piv);
|
|
137
|
-
border-radius: 4px;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
@include color-variants-backwards-compatibility();
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// Material custom color variants backwards compatibility
|
|
8
|
-
@mixin color-variants-backwards-compatibility() {
|
|
9
|
-
.mat-icon {
|
|
10
|
-
&.mat-accent {
|
|
11
|
-
@include mat.icon-overrides(
|
|
12
|
-
(
|
|
13
|
-
color: var(--sdg-color-pink-normal)
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&.mat-primary {
|
|
19
|
-
@include mat.icon-overrides(
|
|
20
|
-
(
|
|
21
|
-
color: var(--sdg-color-blue-piv)
|
|
22
|
-
)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.mat-warn {
|
|
27
|
-
@include mat.icon-overrides(
|
|
28
|
-
(
|
|
29
|
-
color: var(--sdg-color-red-normal)
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use './button';
|
|
2
|
-
@use './checkbox';
|
|
3
|
-
@use './chip';
|
|
4
|
-
@use './dialog';
|
|
5
|
-
@use './divider';
|
|
6
|
-
@use './expansion-panel';
|
|
7
|
-
@use './form-field';
|
|
8
|
-
@use './icon';
|
|
9
|
-
@use './select';
|
|
10
|
-
@use './sidenav';
|
|
11
|
-
@use './radio-button';
|
|
12
|
-
@use './tab';
|
|
13
|
-
|
|
14
|
-
@mixin overrides() {
|
|
15
|
-
@include button.overrides();
|
|
16
|
-
@include checkbox.overrides();
|
|
17
|
-
@include chip.overrides();
|
|
18
|
-
@include dialog.overrides();
|
|
19
|
-
@include divider.overrides();
|
|
20
|
-
@include expansion-panel.overrides();
|
|
21
|
-
@include select.overrides();
|
|
22
|
-
@include form-field.overrides();
|
|
23
|
-
@include icon.overrides();
|
|
24
|
-
@include sidenav.overrides();
|
|
25
|
-
@include radio-button.overrides();
|
|
26
|
-
@include tab.overrides();
|
|
27
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
@use '@angular/material' as mat;
|
|
2
|
-
|
|
3
|
-
@mixin overrides() {
|
|
4
|
-
.mat-mdc-radio-group {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-flow: column;
|
|
7
|
-
row-gap: 16px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.mat-mdc-radio-button {
|
|
11
|
-
$disabled-color: var(--sdg-color-grey-light);
|
|
12
|
-
$unselected-color: var(--sdg-color-blue-dark);
|
|
13
|
-
$selected-color: var(--sdg-color-blue-normal);
|
|
14
|
-
|
|
15
|
-
$radio-button-size: 24px;
|
|
16
|
-
$size-with-padding: calc($radio-button-size + 4px);
|
|
17
|
-
|
|
18
|
-
@include mat.radio-overrides(
|
|
19
|
-
(
|
|
20
|
-
label-text-size: var(--sdg-font-size-md),
|
|
21
|
-
label-text-line-height: var(--sdg-font-size-md),
|
|
22
|
-
// same as font size to avoid extra space above and below
|
|
23
|
-
label-text-color: $unselected-color,
|
|
24
|
-
|
|
25
|
-
ripple-color: transparent,
|
|
26
|
-
checked-ripple-color: transparent,
|
|
27
|
-
|
|
28
|
-
disabled-label-color: $disabled-color,
|
|
29
|
-
disabled-unselected-icon-color: $disabled-color,
|
|
30
|
-
disabled-unselected-icon-opacity: 1,
|
|
31
|
-
disabled-selected-icon-color: $disabled-color,
|
|
32
|
-
disabled-selected-icon-opacity: 1,
|
|
33
|
-
|
|
34
|
-
unselected-icon-color: $unselected-color,
|
|
35
|
-
unselected-hover-icon-color: $unselected-color,
|
|
36
|
-
unselected-focus-icon-color: $selected-color,
|
|
37
|
-
unselected-pressed-icon-color: $selected-color,
|
|
38
|
-
|
|
39
|
-
selected-icon-color: $selected-color,
|
|
40
|
-
selected-hover-icon-color: $selected-color,
|
|
41
|
-
selected-focus-icon-color: $selected-color,
|
|
42
|
-
selected-pressed-icon-color: $selected-color,
|
|
43
|
-
|
|
44
|
-
state-layer-size: $size-with-padding
|
|
45
|
-
)
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
.mdc-radio {
|
|
49
|
-
height: $radio-button-size;
|
|
50
|
-
width: $radio-button-size;
|
|
51
|
-
padding: calc(
|
|
52
|
-
(var(--mat-radio-state-layer-size, 40px) - $radio-button-size) / 2
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
.mdc-radio__native-control:checked
|
|
56
|
-
+ .mdc-radio__background
|
|
57
|
-
> .mdc-radio__inner-circle {
|
|
58
|
-
transform: scale(0.6);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.mdc-radio__background {
|
|
62
|
-
height: $radio-button-size;
|
|
63
|
-
width: $radio-button-size;
|
|
64
|
-
|
|
65
|
-
.mdc-radio__inner-circle {
|
|
66
|
-
border-width: calc($radio-button-size / 2);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.mat-mdc-radio-touch-target {
|
|
72
|
-
height: $size-with-padding;
|
|
73
|
-
width: $size-with-padding;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mdc-form-field {
|
|
77
|
-
column-gap: 8px;
|
|
78
|
-
|
|
79
|
-
.mdc-label {
|
|
80
|
-
padding: 0;
|
|
81
|
-
transform: translateY(
|
|
82
|
-
1px
|
|
83
|
-
); // visually center the label with the radio button
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&[compact] {
|
|
88
|
-
$radio-button-size: 16px;
|
|
89
|
-
$size-with-padding: calc($radio-button-size + 4px);
|
|
90
|
-
|
|
91
|
-
@include mat.radio-overrides(
|
|
92
|
-
(
|
|
93
|
-
state-layer-size: $size-with-padding
|
|
94
|
-
)
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
.mdc-radio {
|
|
98
|
-
height: $radio-button-size;
|
|
99
|
-
width: $radio-button-size;
|
|
100
|
-
padding: calc(
|
|
101
|
-
(var(--mat-radio-state-layer-size, 40px) - $radio-button-size) / 2
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
.mdc-radio__background {
|
|
105
|
-
height: $radio-button-size;
|
|
106
|
-
width: $radio-button-size;
|
|
107
|
-
|
|
108
|
-
.mdc-radio__inner-circle {
|
|
109
|
-
border-width: calc($radio-button-size / 2);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.mdc-radio__outer-circle {
|
|
113
|
-
border-width: 1px;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.mat-mdc-radio-touch-target {
|
|
119
|
-
height: $size-with-padding;
|
|
120
|
-
width: $size-with-padding;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|