Merge remote-tracking branch 'origin/klima'

This commit is contained in:
Dan Percic 2022-07-28 19:57:04 +03:00
commit eddaed2b56
7 changed files with 17 additions and 49 deletions

View File

@ -1,4 +1,5 @@
@use 'sass:meta';
@use 'sass:map';
body {
--iqser-primary: lightblue;
@ -45,10 +46,22 @@ body {
--iqser-button-radius: 17px;
--iqser-button-font-size: 13px;
--iqser-button-height: 34px;
--iqser-font-family: Inter, sans-serif;
--iqser-font-family: 'some placeholder value that should be overridden when configuring a theme';
}
$required-variables: 'iqser-font-family' 'iqser-primary';
@mixin checkRequiredVariables($args, $theme) {
@each $var in $required-variables {
@if map.get(meta.keywords($args), $var) == null {
@error "Missing #{$var} in #{$theme} theme";
}
}
}
@mixin configureLight($args...) {
@include checkRequiredVariables($args, 'light');
body.light {
@each $name, $value in meta.keywords($args) {
--#{$name}: #{$value};
@ -57,6 +70,8 @@ body {
}
@mixin configureDark($args...) {
@include checkRequiredVariables($args, 'dark');
body.dark {
@each $name, $value in meta.keywords($args) {
--#{$name}: #{$value};

View File

@ -32,51 +32,3 @@
font-weight: 700;
src: url('../font/Inter-VariableFont.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-weight: 300;
src: url('../font/Nunito-VariableFont.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-weight: 400;
src: url('../font/Nunito-VariableFont.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-weight: 500;
src: url('../font/Nunito-VariableFont.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-weight: 600;
src: url('../font/Nunito-VariableFont.ttf') format('truetype');
}
@font-face {
font-family: 'Nunito';
font-weight: 700;
src: url('../font/Nunito-VariableFont.ttf') format('truetype');
}
@font-face {
font-family: 'D-DIN-PRO';
font-weight: 400;
src: url('../font/D-DIN-PRO/D-DIN-PRO-400-Regular.otf') format('opentype');
}
@font-face {
font-family: 'D-DIN-PRO';
font-weight: 500;
src: url('../font/D-DIN-PRO/D-DIN-PRO-500-Medium.otf') format('opentype');
}
@font-face {
font-family: 'D-DIN-PRO';
font-weight: 600;
src: url('../font/D-DIN-PRO/D-DIN-PRO-600-SemiBold.otf') format('opentype');
}

View File

@ -24,6 +24,7 @@ const atLeastOneIsExpandable = pipe(
styleUrls: ['./filter-card.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [
SearchService,
{
provide: MAT_CHECKBOX_DEFAULT_OPTIONS,
useValue: {