Files
perfdb/pdb-js/src/styles.scss

205 lines
4.2 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-legacy-typography-config());`
@include mat.all-legacy-component-typographies();
@include mat.legacy-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,
)
));
// 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.
@include mat.all-legacy-component-themes($candy-app-theme);
/*
blue
#CBD7F4
#B6C1DB
#96A0B5
#636A78
#2C2F36
grey
0123456789abcdef
^ ^ ^ ^ ^^
#000
#444
#888
#bbb
#eee
#fff
*/
$background-color: #CBD7F4;
*, 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;
}
.mat-button .mat-button-wrapper .icon-inline {
vertical-align: text-top;
}
button[disabled] .icon-inline {
opacity: 0.5;
}
.icon-small {
width: 1.5em;
height: 1.5em;
margin: 0.2em;
}
.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;
}
.mat-option-disabled .icon-select {
opacity: 0.25;
}
mat-option.mat-option {
height: 2em;
line-height: 2em;
}
mat-option.mat-option.mat-active {
background-color: #ccc;
}
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;
}
body .mat-select-panel, body .mat-autocomplete-panel {
max-height: 300px;
}
mat-form-field {
width: 100%;
margin-right: 1ex;
}
mat-form-field:last-child {
margin-right: 0ex;
}
mat-form-field.pdb-form-number {
width: 3.5em;
}
mat-form-field.pdb-form-number-long {
width: 7em;
}
.pdb-form-icon-small {
display: inline-block;
width: 2em;
vertical-align: middle;
}
mat-form-field.pdb-form-mid {
width: 7.5em;
}
mat-form-field.pdb-form-wide {
width: 10em;
}
.errorPanel {
padding: 1ex;
background-color: map-get(mat.$red-palette, 100);
border-radius: 5px;
}