210 lines
4.6 KiB
SCSS
210 lines
4.6 KiB
SCSS
// Custom Theming for Angular Material
|
|
// For more information: https://material.angular.io/guide/theming
|
|
@use '@angular/material' as mat;
|
|
// Plus imports for other components in your app.
|
|
|
|
// Include the common styles for Angular Material. We include this here so that you only
|
|
// have to load a single css file for Angular Material in your app.
|
|
// Be sure that you only ever include this mixin once!
|
|
// TODO(v15): As of v15 mat.legacy-core no longer includes default typography styles.
|
|
// The following line adds:
|
|
// 1. Default typography styles for all components
|
|
// 2. Styles for typography hierarchy classes (e.g. .mat-headline-1)
|
|
// If you specify typography styles for the components you use elsewhere, you should delete this line.
|
|
// If you don't need the default component typographies but still want the hierarchy styles,
|
|
// you can delete this line and instead use:
|
|
// `@include mat.legacy-typography-hierarchy(mat.define-typography-config());`
|
|
/* TODO(mdc-migration): Remove all-legacy-component-typographies once all legacy components are migrated*/
|
|
@include mat.all-legacy-component-typographies();
|
|
@include mat.all-component-typographies();
|
|
/* TODO(mdc-migration): Remove legacy-core once all legacy components are migrated*/
|
|
@include mat.legacy-core();
|
|
@include mat.core();
|
|
|
|
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
|
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
|
// hue. Available color palettes: https://material.io/design/color/
|
|
$candy-app-primary: mat.define-palette(mat.$blue-palette);
|
|
$candy-app-accent: mat.define-palette(mat.$blue-palette, A200, A100, A400);
|
|
|
|
// The warn palette is optional (defaults to red).
|
|
$candy-app-warn: mat.define-palette(mat.$red-palette);
|
|
|
|
// Create the theme object. A theme consists of configurations for individual
|
|
// theming systems such as "color" or "typography".
|
|
$candy-app-theme: mat.define-light-theme((
|
|
color: (
|
|
primary: $candy-app-primary,
|
|
accent: $candy-app-accent,
|
|
warn: $candy-app-warn,
|
|
),
|
|
//typography: mat.define-typography-config(),
|
|
density: -1,
|
|
));
|
|
|
|
// Include theme styles for core and each component used in your app.
|
|
// Alternatively, you can import and @include the theme mixins for each component
|
|
// that you are using.
|
|
/* TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated*/
|
|
@include mat.all-legacy-component-themes($candy-app-theme);
|
|
@include mat.all-component-themes($candy-app-theme);
|
|
|
|
|
|
|
|
/*
|
|
blue
|
|
#CBD7F4
|
|
#B6C1DB
|
|
#96A0B5
|
|
#636A78
|
|
#2C2F36
|
|
|
|
grey
|
|
0123456789abcdef
|
|
^ ^ ^ ^ ^^
|
|
#000
|
|
#444
|
|
#888
|
|
#bbb
|
|
#eee
|
|
#fff
|
|
*/
|
|
$background-color: #CBD7F4;
|
|
|
|
.mat-mdc-option span.mdc-list-item__primary-text,
|
|
.mdc-list-item__primary-text {
|
|
font-size: 1rem;
|
|
}
|
|
mat-form-field .mat-mdc-option span.mdc-list-item__primary-text{
|
|
--mdc-typography-subtitle1-font-size: 14px;
|
|
}
|
|
|
|
*, body {
|
|
font-family: Arial;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
margin-block-start: 0.67rem;
|
|
margin-block-end: 0.67rem;
|
|
}
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
margin-block-start: 0.83rem;
|
|
margin-block-end: 0.83rem;
|
|
}
|
|
|
|
.icon-inline {
|
|
width: 1em;
|
|
height: 1em;
|
|
vertical-align: text-bottom;
|
|
}
|
|
|
|
button[disabled] .icon-inline {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
button.save-button {
|
|
background-color: #ff9900;
|
|
}
|
|
|
|
.icon-small {
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
}
|
|
.icon-small:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.icon-middle {
|
|
width: 2.5em;
|
|
height: 2.5em;
|
|
margin: 0.2em;
|
|
}
|
|
.icon-middle:hover {
|
|
background-color: #eee;
|
|
}
|
|
|
|
.icon-large {
|
|
width: 8em;
|
|
height: 8em;
|
|
margin: 1em;
|
|
}
|
|
.icon-huge {
|
|
width: 12em;
|
|
height: 12em;
|
|
margin: 1em;
|
|
}
|
|
|
|
.icon-select {
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
vertical-align: text-bottom;
|
|
}
|
|
|
|
|
|
|
|
a ,a:visited {
|
|
color: blue;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a.external-link:after {
|
|
background: transparent url('/assets/img/external-link.svg') no-repeat center bottom;
|
|
background-size: 0.8em;
|
|
display: inline-block;
|
|
width: 1.1em;
|
|
height: 1em;
|
|
content: "";
|
|
}
|
|
|
|
.inline {
|
|
display: inline-block;
|
|
}
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.top-right {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
mat-form-field.pdb-form-full-width {
|
|
width: 100%;
|
|
}
|
|
mat-form-field.pdb-form-number {
|
|
width: 5.5em;
|
|
}
|
|
mat-form-field.pdb-form-number-long {
|
|
width: 7em;
|
|
}
|
|
mat-form-field.pdb-form-mid {
|
|
width: 9.5em;
|
|
}
|
|
mat-form-field.pdb-form-wide {
|
|
width: 10em;
|
|
}
|
|
.mat-mdc-form-field-subscript-wrapper {
|
|
display: none;
|
|
}
|
|
|
|
.errorPanel {
|
|
padding: 1ex;
|
|
background-color: map-get(mat.$red-palette, 100);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.super-badge {
|
|
position: absolute;
|
|
font-size: 0.8em;
|
|
color: #0051c2;
|
|
top: 0.2em;
|
|
line-height: 1em;
|
|
}
|