@tilde-nlp/ngx-common 3.0.1 → 3.0.2
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,9 +1,6 @@
|
|
|
1
1
|
@mixin mat-button-overrides($color-map) {
|
|
2
|
-
|
|
3
2
|
// goes through all color map and adds option to add every color from map in html. You can use <button mat-button color="my-color"> as long as my-color is in color map.
|
|
4
|
-
@each $key,
|
|
5
|
-
$value in $color-map {
|
|
6
|
-
|
|
3
|
+
@each $key, $value in $color-map {
|
|
7
4
|
.mat-mdc-button.mat-#{$key},
|
|
8
5
|
.mat-mdc-outlined-button.mat-#{$key} {
|
|
9
6
|
color: var(--#{$key}) !important;
|
|
@@ -15,17 +12,18 @@
|
|
|
15
12
|
|
|
16
13
|
.mat-mdc-raised-button.mat-#{$key},
|
|
17
14
|
.mat-mdc-unelevated-button.mat-#{$key},
|
|
18
|
-
a.mat-mdc-raised-button[color
|
|
15
|
+
a.mat-mdc-raised-button[color="#{$key}"],
|
|
19
16
|
.mat-mdc-fab.mat-#{$key},
|
|
20
17
|
.mat-mdc-mini-fab.mat-#{$key} {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
background-color: var(--#{$key}) !important;
|
|
24
|
-
|
|
25
|
-
&:hover {
|
|
18
|
+
&:not([disabled]) {
|
|
19
|
+
$white: #f0fff3;
|
|
26
20
|
color: $white !important;
|
|
21
|
+
background-color: var(--#{$key}) !important;
|
|
22
|
+
|
|
23
|
+
&:hover {
|
|
24
|
+
color: $white !important;
|
|
25
|
+
}
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
}
|
|
31
29
|
}
|