Fix layout and add selection logic
Signed-off-by: trivernis <trivernis@protonmail.com>pull/4/head
parent
1b1451d910
commit
851983c164
@ -0,0 +1,27 @@
|
|||||||
|
@use 'sass:map';
|
||||||
|
@use '~@angular/material' as mat;
|
||||||
|
|
||||||
|
@mixin color($theme) {
|
||||||
|
$color-config: mat.get-color-config($theme);
|
||||||
|
$primary-palette: map.get($color-config, 'primary');
|
||||||
|
$warn-palette: map.get($color-config, 'warn');
|
||||||
|
|
||||||
|
mat-card.selected {
|
||||||
|
background-color: mat.get-color-from-palette($primary-palette);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin typography($theme) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin theme($theme) {
|
||||||
|
$color-config: mat.get-color-config($theme);
|
||||||
|
@if $color-config != null {
|
||||||
|
@include color($theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
$typography-config: mat.get-typography-config($theme);
|
||||||
|
@if $typography-config != null {
|
||||||
|
@include typography($theme);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue