@igo2/sdg-theme 2.0.0-next.12 → 2.0.0-next.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/sdg-theme",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.13",
|
|
4
4
|
"license": "LiLiQ-R",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@angular/material": "^21.0.0",
|
|
25
|
-
"@igo2/sdg-core": "^2.0.0-next.
|
|
25
|
+
"@igo2/sdg-core": "^2.0.0-next.13"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"tslib": "^2.6.0"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@mixin overrides() {
|
|
4
|
+
.mat-mdc-autocomplete-panel {
|
|
5
|
+
@include mat.autocomplete-overrides(
|
|
6
|
+
(
|
|
7
|
+
background-color: var(--sdg-color-background),
|
|
8
|
+
container-shape: 0,
|
|
9
|
+
container-elevation-shadow: none
|
|
10
|
+
)
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
padding: 0 !important;
|
|
14
|
+
border: 1px solid var(--sdg-color-grey-medium);
|
|
15
|
+
|
|
16
|
+
&::-webkit-scrollbar {
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
width: 8px;
|
|
19
|
+
height: auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&::-webkit-scrollbar-thumb {
|
|
23
|
+
background: var(--sdg-color-blue-piv);
|
|
24
|
+
border-radius: 4px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
$text-line-height: var(--sdg-line-height-md);
|
|
11
11
|
$text-size: var(--sdg-font-size-md);
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
width: 100%;
|
|
14
14
|
|
|
15
15
|
@include mat.form-field-density(-4);
|
|
16
16
|
|
|
@@ -44,23 +44,21 @@
|
|
|
44
44
|
)
|
|
45
45
|
);
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
background-color: var(--sdg-color-grey-pale);
|
|
50
|
-
}
|
|
47
|
+
&-icon-prefix {
|
|
48
|
+
padding: 0;
|
|
51
49
|
|
|
52
|
-
mat-
|
|
53
|
-
|
|
50
|
+
mat-icon {
|
|
51
|
+
padding: 0 var(--sdg-spacer-xs) 0 0 !important;
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
|
|
55
|
+
&.mat-focused {
|
|
56
|
+
outline: 2px solid var(--sdg-color-blue-light);
|
|
57
|
+
}
|
|
58
|
+
|
|
57
59
|
.mdc-text-field {
|
|
58
60
|
background-color: var(--sdg-color-background);
|
|
59
|
-
padding: 0
|
|
60
|
-
|
|
61
|
-
&--focused {
|
|
62
|
-
outline: 2px solid var(--sdg-color-blue-light);
|
|
63
|
-
}
|
|
61
|
+
padding: 0 var(--sdg-spacer-xs);
|
|
64
62
|
|
|
65
63
|
&--disabled {
|
|
66
64
|
background-color: var(--sdg-color-grey-pale);
|
|
@@ -68,24 +66,24 @@
|
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
&[xl] {
|
|
71
|
-
width: 825px;
|
|
69
|
+
max-width: 825px;
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
&[lg],
|
|
75
73
|
&[multi] {
|
|
76
|
-
width: 528px;
|
|
74
|
+
max-width: 528px;
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
&[md] {
|
|
80
|
-
width: 249px;
|
|
78
|
+
max-width: 249px;
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
&[sm] {
|
|
84
|
-
width: 156px;
|
|
82
|
+
max-width: 156px;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
&[xs] {
|
|
88
|
-
width: 63px;
|
|
86
|
+
max-width: 63px;
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
.mat-mdc-form-field-subscript-wrapper {
|
package/src/material/_index.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use './autocomplete';
|
|
1
2
|
@use './button';
|
|
2
3
|
@use './checkbox';
|
|
3
4
|
@use './chip';
|
|
@@ -6,6 +7,7 @@
|
|
|
6
7
|
@use './expansion-panel';
|
|
7
8
|
@use './form-field';
|
|
8
9
|
@use './icon';
|
|
10
|
+
@use './option';
|
|
9
11
|
@use './select';
|
|
10
12
|
@use './sidenav';
|
|
11
13
|
@use './radio-button';
|
|
@@ -20,6 +22,7 @@ $primary-palette: theme-def.$primary-palette;
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
@mixin overrides() {
|
|
25
|
+
@include autocomplete.overrides();
|
|
23
26
|
@include button.overrides();
|
|
24
27
|
@include checkbox.overrides();
|
|
25
28
|
@include chip.overrides();
|
|
@@ -29,6 +32,7 @@ $primary-palette: theme-def.$primary-palette;
|
|
|
29
32
|
@include select.overrides();
|
|
30
33
|
@include form-field.overrides();
|
|
31
34
|
@include icon.overrides();
|
|
35
|
+
@include option.overrides();
|
|
32
36
|
@include sidenav.overrides();
|
|
33
37
|
@include radio-button.overrides();
|
|
34
38
|
@include tab.overrides();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@mixin overrides() {
|
|
2
|
+
.mat-mdc-option {
|
|
3
|
+
min-height: 0;
|
|
4
|
+
padding: var(--sdg-spacer-xs);
|
|
5
|
+
|
|
6
|
+
.mdc-list-item__primary-text {
|
|
7
|
+
color: var(--sdg-color-blue-dark);
|
|
8
|
+
font-family: var(--sdg-font-family-text);
|
|
9
|
+
font-size: var(--sdg-font-size-md);
|
|
10
|
+
line-height: var(--sdg-line-height-md);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background-color: var(--sdg-color-grey-pale);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-active {
|
|
18
|
+
background-color: var(--sdg-color-blue-pale) !important;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,74 +1,49 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
2
|
|
|
3
3
|
@mixin overrides() {
|
|
4
|
-
$blue-dark: var(--sdg-color-blue-dark);
|
|
5
4
|
$blue-piv: var(--sdg-color-blue-piv);
|
|
6
5
|
$grey-medium: var(--sdg-color-grey-medium);
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
$text-line-height: var(--sdg-line-height-md);
|
|
10
|
-
$text-size: var(--sdg-font-size-md);
|
|
11
|
-
|
|
12
|
-
.mat-mdc-form-field {
|
|
7
|
+
.mat-mdc-select {
|
|
13
8
|
@include mat.select-overrides(
|
|
14
9
|
(
|
|
15
|
-
enabled-trigger-text-color:
|
|
16
|
-
enabled-arrow-color:
|
|
10
|
+
enabled-trigger-text-color: var(--sdg-color-blue-dark),
|
|
11
|
+
enabled-arrow-color: var(--sdg-color-blue-piv),
|
|
17
12
|
//
|
|
18
13
|
disabled-trigger-text-color: $grey-medium,
|
|
19
14
|
disabled-arrow-color: var(--sdg-color-grey-normal),
|
|
20
15
|
//
|
|
21
16
|
placeholder-text-color: $grey-medium,
|
|
22
17
|
//
|
|
23
|
-
trigger-text-font:
|
|
24
|
-
trigger-text-line-height:
|
|
25
|
-
trigger-text-size:
|
|
26
|
-
)
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.mat-mdc-select-panel {
|
|
31
|
-
@include mat.select-overrides(
|
|
32
|
-
(
|
|
33
|
-
container-elevation-shadow: none,
|
|
34
|
-
//
|
|
35
|
-
panel-background-color: var(--sdg-color-background)
|
|
18
|
+
trigger-text-font: var(--sdg-font-family-text),
|
|
19
|
+
trigger-text-line-height: var(--sdg-line-height-md),
|
|
20
|
+
trigger-text-size: var(--sdg-font-size-md)
|
|
36
21
|
)
|
|
37
22
|
);
|
|
38
23
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
24
|
+
&-panel {
|
|
25
|
+
@include mat.select-overrides(
|
|
26
|
+
(
|
|
27
|
+
container-elevation-shadow: none,
|
|
28
|
+
//
|
|
29
|
+
panel-background-color: var(--sdg-color-background)
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
padding: 0 !important;
|
|
34
|
+
border: 1px solid $grey-medium;
|
|
35
|
+
border-radius: 0 !important;
|
|
36
|
+
|
|
37
|
+
&::-webkit-scrollbar {
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
width: 8px;
|
|
40
|
+
height: auto;
|
|
56
41
|
}
|
|
57
42
|
|
|
58
|
-
|
|
59
|
-
background
|
|
43
|
+
&::-webkit-scrollbar-thumb {
|
|
44
|
+
background: $blue-piv;
|
|
45
|
+
border-radius: 4px;
|
|
60
46
|
}
|
|
61
47
|
}
|
|
62
|
-
|
|
63
|
-
&::-webkit-scrollbar {
|
|
64
|
-
background-color: transparent;
|
|
65
|
-
width: 8px;
|
|
66
|
-
height: auto;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&::-webkit-scrollbar-thumb {
|
|
70
|
-
background: $blue-piv;
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
}
|
|
73
48
|
}
|
|
74
49
|
}
|