122 lines
3.1 KiB
SCSS
122 lines
3.1 KiB
SCSS
// Custom Theming for Angular Material
|
|
// For more information: https://material.angular.io/guide/theming
|
|
@use '@angular/material' as mat;
|
|
@use 'm3-theme' as m3;
|
|
|
|
@include mat.core();
|
|
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Montserrat';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/montserrat-v26-latin-regular.woff2') format('woff2');
|
|
}
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Montserrat';
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/montserrat-v26-latin-italic.woff2') format('woff2');
|
|
}
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/open-sans-v40-latin-regular.woff2') format('woff2');
|
|
}
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Open Sans';
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/open-sans-v40-latin-italic.woff2') format('woff2');
|
|
}
|
|
@font-face {
|
|
font-display: swap;
|
|
font-family: 'Material Icons';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('assets/fonts/material-icons-v142-latin-regular.woff2') format('woff2');
|
|
}
|
|
.material-icons {
|
|
font-family: 'Material Icons';
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
letter-spacing: normal;
|
|
text-transform: none;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
word-wrap: normal;
|
|
direction: ltr;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
html {
|
|
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
|
|
height: 100%;
|
|
@include mat.all-component-themes(m3.$light-theme);
|
|
@include mat.typography-hierarchy(m3.$light-theme);
|
|
}
|
|
body {
|
|
height: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
|
|
.primary-button {
|
|
@include mat.button-color(m3.$light-theme, $color-variant: primary);
|
|
}
|
|
.secondary-button {
|
|
@include mat.button-color(m3.$light-theme, $color-variant: secondary);
|
|
}
|
|
.tertiary-button {
|
|
@include mat.button-color(m3.$light-theme, $color-variant: tertiary);
|
|
}
|
|
.primary-icon {
|
|
@include mat.icon-color(m3.$light-theme, $color-variant: primary);
|
|
}
|
|
.secondary-icon {
|
|
@include mat.icon-color(m3.$light-theme, $color-variant: secondary);
|
|
}
|
|
.tertiary-icon {
|
|
@include mat.icon-color(m3.$light-theme, $color-variant: tertiary);
|
|
}
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
@include mat.all-component-colors(m3.$dark-theme);
|
|
}
|
|
.primary-button {
|
|
@include mat.button-color(m3.$dark-theme, $color-variant: primary);
|
|
}
|
|
.secondary-button {
|
|
@include mat.button-color(m3.$dark-theme, $color-variant: secondary);
|
|
}
|
|
.tertiary-button {
|
|
@include mat.button-color(m3.$dark-theme, $color-variant: tertiary);
|
|
}
|
|
.primary-icon {
|
|
@include mat.icon-color(m3.$dark-theme, $color-variant: primary);
|
|
}
|
|
.secondary-icon {
|
|
@include mat.icon-color(m3.$dark-theme, $color-variant: secondary);
|
|
}
|
|
.tertiary-icon {
|
|
@include mat.icon-color(m3.$dark-theme, $color-variant: tertiary);
|
|
}
|
|
}
|
|
|
|
.menu button {
|
|
--mdc-icon-button-disabled-icon-color: rgba(255,255,255,0.35);
|
|
--mdc-icon-button-icon-color: #ffffff;
|
|
}
|
|
|
|
|