344 lines
7.7 KiB
SCSS
344 lines
7.7 KiB
SCSS
// Import theming functions
|
|
@import '~@angular/material/theming';
|
|
@import 'theme.scss';
|
|
@import 'fonts.scss';
|
|
@import 'weather.scss';
|
|
@import 'jam.scss';
|
|
@import '~leaflet/dist/leaflet.css';
|
|
|
|
|
|
// sizes for paddings and margins
|
|
$size-z: 0px;
|
|
$size-sm: 10px;
|
|
$size-md: 20px;
|
|
$size-lg: 40px;
|
|
|
|
// maximum size for the main content
|
|
$size-content: 1200px;
|
|
$size-main: 700px;
|
|
$size-side: 500px;
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: $size-z;
|
|
padding: $size-z;
|
|
}
|
|
|
|
// page reset and font configuration
|
|
html {
|
|
margin: $size-z;
|
|
padding: $size-z;
|
|
font-family: Montserrat
|
|
}
|
|
|
|
body {
|
|
height: 100vh;
|
|
margin: $size-z;
|
|
padding: $size-z;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
/* font sizes, alignment and style */
|
|
.fs-avatar { font-size: 48px; }
|
|
.fs-sm { font-size: 12px; }
|
|
.fs-md { font-size: 16px; }
|
|
.fs-lg { font-size: 18px; }
|
|
|
|
|
|
.fw-b { font-weight: bold;}
|
|
|
|
.ta-c { text-align: center; }
|
|
.ta-l { text-align: left; }
|
|
.ta-r { text-align: right; }
|
|
.tt-c { text-transform: capitalize; };
|
|
|
|
/* flexbox layouts */
|
|
.fx-fill { flex: 1 1 100%; justify-self: stretch; align-self: stretch; }
|
|
.fx-mh100 { min-height: 100%;}
|
|
.fx-h100 { height: 100%; }
|
|
.fx-w100 { width: 100%; }
|
|
.fx-center { justify-content: center; align-items: center; }
|
|
.fx-content { flex: 0 1 $size-content; justify-self: stretch; @include mat-elevation(2); z-index: 10; }
|
|
.fx-main { flex: 0 1 $size-main; @include mat-elevation(2); z-index: 10;}
|
|
.fx-side { flex: 0 1 $size-side; }
|
|
.fx-compact { flex: 1 1 100%; align-self: stretch; justify-self: stretch;}
|
|
.fx-auto { flex: 1 1 auto; }
|
|
.fx-row { display: flex; flex-flow: row nowrap; }
|
|
.fx-wrap { flex-wrap: wrap; }
|
|
.fx-column { display: flex; flex-flow: column nowrap; }
|
|
.fx-stretch { justify-content: stretch; align-items: stretch; }
|
|
.fx-even { justify-content: space-evenly; }
|
|
|
|
/* padding styling */
|
|
.p-z { padding: $size-z; }
|
|
.p-sm { padding: $size-sm; }
|
|
.p-md { padding: $size-md; }
|
|
.p-lg { padding: $size-lg; }
|
|
.pl-sm { padding-left: $size-sm; }
|
|
.pr-sm { padding-right: $size-sm; }
|
|
.pt-sm { padding-top: $size-sm; }
|
|
.pb-sm { padding-bottom: $size-sm; }
|
|
.pl-md { padding-left: $size-md; }
|
|
.pr-md { padding-right: $size-md; }
|
|
.pt-md { padding-top: $size-md; }
|
|
.pb-md { padding-bottom: $size-md; }
|
|
.pl-lg { padding-left: $size-lg; }
|
|
.pr-lg { padding-right: $size-lg; }
|
|
.pt-lg { padding-top: $size-lg; }
|
|
.pb-lg { padding-bottom: $size-lg; }
|
|
|
|
/* margin styling */
|
|
.m-z { margin: $size-z; }
|
|
.m-sm { margin: $size-sm; }
|
|
.m-md { margin: $size-md; }
|
|
.m-lg { margin: $size-lg; }
|
|
.ml-sm { margin-left: $size-sm; }
|
|
.mr-sm { margin-right: $size-sm; }
|
|
.mt-sm { margin-top: $size-sm; }
|
|
.mb-sm { margin-bottom: $size-sm; }
|
|
.ml-md { margin-left: $size-md; }
|
|
.mr-md { margin-right: $size-md; }
|
|
.mt-md { margin-top: $size-md; }
|
|
.mb-md { margin-bottom: $size-md; }
|
|
.ml-lg { margin-left: $size-lg; }
|
|
.mr-lg { margin-right: $size-lg; }
|
|
.mt-lg { margin-top: $size-lg; }
|
|
.mb-lg { margin-bottom: $size-lg; }
|
|
|
|
/* background colors */
|
|
.bg-default { background-color: $app-background-default; }
|
|
.bg-white { background-color: white; }
|
|
.bg-lighter { background:rgba(255,255,255,0.1); }
|
|
.bg-accent { background-color: mat-color($app-accent); }
|
|
.bg-primary { background-color: mat-color($app-primary); }
|
|
.bg-world {
|
|
background-image: url('assets/images/world.svg');
|
|
background-repeat: no-repeat;
|
|
background-position: top;
|
|
background-size: contain;
|
|
background-attachment: scroll;
|
|
background-position-y: 20px;
|
|
min-height: 350px;
|
|
}
|
|
|
|
/* foreground colors */
|
|
.fg-white { color: white; }
|
|
.fg-gray { color: rgba($color: #000000, $alpha: 0.4) }
|
|
.fg-accent { color: mat-color($app-accent); }
|
|
.fg-primary { color: mat-color($app-primary); }
|
|
|
|
/* rotation for wind direction icons */
|
|
.rotate-45 { transform: rotate(45deg); }
|
|
.rotate-90 { transform: rotate(90deg); }
|
|
.rotate-135 { transform: rotate(135deg); }
|
|
.rotate-180 { transform: rotate(180deg); }
|
|
.rotate-225 { transform: rotate(225deg); }
|
|
.rotate-270 { transform: rotate(270deg); }
|
|
.rotate-315 { transform: rotate(315deg); }
|
|
|
|
|
|
|
|
/* gradient in column layouts on the right */
|
|
.gradient-right {
|
|
background-color: mat-color($app-primary);
|
|
// background-image: radial-gradient(circle at top left, mat-color($app-primary) 10%, mat-color($app-primary-light) 75%, mat-color($app-primary) 100%);
|
|
align-self: stretch;
|
|
}
|
|
|
|
/* gradient in column layouts on the left */
|
|
.gradient-left {
|
|
background-color: mat-color($app-primary);
|
|
// background-image: radial-gradient(circle at bottom right, mat-color($app-primary) 10%, mat-color($app-primary-light) 75%, mat-color($app-primary) 100%);
|
|
align-self: stretch;
|
|
}
|
|
|
|
/* sets the cursor to indicate something clickable */
|
|
.clickable { cursor: pointer; }
|
|
.hov-accent:hover { background-color: mat-color($app-accent);}
|
|
|
|
/* cuts of the text, for this to work, you need to set the width */
|
|
.ellipsis {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.app-title {
|
|
font-size: x-small;
|
|
}
|
|
|
|
/** green toolbar at the top */
|
|
.app-bar {
|
|
@include mat-elevation(4);
|
|
z-index: 100;
|
|
position:relative;
|
|
min-height: 64px;
|
|
}
|
|
|
|
/* yellow toolbar at the top */
|
|
.view-bar {
|
|
@include mat-elevation(1);
|
|
z-index: 50;
|
|
position:relative;
|
|
background-color: mat-color($app-accent);
|
|
min-height: 64px;
|
|
}
|
|
|
|
/* the icon in the yellow toolbar */
|
|
.view-bar > mat-icon {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
/* fix mat-icon size in buttons */
|
|
.icon-button { font-size: 18px; height: auto !important; vertical-align: text-bottom !important; }
|
|
|
|
/* bugfix for paginator in edge */
|
|
.mat-paginator-container .mat-icon-button {
|
|
height: auto !important;
|
|
}
|
|
|
|
/* remove the padding around the conditions dialog */
|
|
.conditions-dialog .mat-dialog-container {
|
|
padding: 0px;
|
|
}
|
|
|
|
.snackbar-accent {
|
|
background-color: mat-color($app-accent);
|
|
color: black;
|
|
}
|
|
|
|
.snackbar-primary {
|
|
background-color: mat-color($app-primary);
|
|
color: white;
|
|
}
|
|
.snackbar-primary > .mat-simple-snackbar {
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.snackbar-accent > .mat-simple-snackbar {
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.video-overlay {
|
|
background-color: rgba(mat-color($app-accent), 0.8);
|
|
justify-content: center;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
width: 110px;
|
|
box-sizing: border-box;
|
|
border-radius: round(5px);
|
|
border: 3px solid rgba(mat-color($app-primary), 0.8);
|
|
color: black;
|
|
}
|
|
|
|
.video-overlay-date {
|
|
font-size: small;
|
|
font-family: Montserrat;
|
|
}
|
|
|
|
.video-overlay-time {
|
|
font-size: large;
|
|
font-family: Montserrat;
|
|
}
|
|
|
|
|
|
|
|
/** unused ? */
|
|
|
|
.detail-row {
|
|
flex: 1;
|
|
display: flex;
|
|
}
|
|
|
|
.detail-label {
|
|
@extend .mat-caption;
|
|
min-width: 90px;
|
|
}
|
|
|
|
.detail-value {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
word-break:break-all;
|
|
}
|
|
|
|
|
|
// narrow lists, tables and panels (for visits)
|
|
.narrow-label {
|
|
@extend .mat-caption;
|
|
min-width: 40px;
|
|
}
|
|
|
|
.narrow-value {
|
|
flex: 1;
|
|
font-size: 10px;
|
|
word-break:break-all;
|
|
}
|
|
|
|
.narrow-row {
|
|
margin: 0px !important;
|
|
padding: 0px !important;
|
|
}
|
|
|
|
.narrow-header {
|
|
margin: 0px !important;
|
|
padding: 0px !important;
|
|
padding-left: 15px !important;
|
|
}
|
|
|
|
|
|
.narrow-card {
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.narrow-panel .mat-expansion-panel-body {
|
|
padding: 0px !important;
|
|
margin: 0px !important;
|
|
}
|
|
|
|
|
|
|
|
|
|
.register-link {
|
|
color: mat-color($app-accent-dark);
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
// table stuff
|
|
.action-cell {
|
|
text-align: center;
|
|
}
|
|
|
|
.long-checkbox .mat-checkbox-layout {
|
|
padding-top: 20px;
|
|
white-space: normal;
|
|
}
|
|
|
|
.search-field {
|
|
width: 100px;
|
|
transition: ease-in-out, width .35s ease-in-out;
|
|
}
|
|
|
|
.search-field:focus-within {
|
|
width: 250px;
|
|
}
|
|
|
|
.search-result {
|
|
width: 280px;
|
|
}
|
|
|
|
/* Forecast Map Styles */
|
|
div.forecast-tooltip {
|
|
border-color: mat-color($app-primary);
|
|
}
|
|
div.leaflet-tooltip-top:before {
|
|
bottom: 0;
|
|
margin-bottom: -12px;
|
|
border-top-color: transparent;
|
|
}
|