318 lines
5.5 KiB
SCSS
318 lines
5.5 KiB
SCSS
// Import theming functions
|
|
@import '~@angular/material/theming';
|
|
@import 'theme.scss';
|
|
@import 'fonts.scss';
|
|
@import '~leaflet/dist/leaflet.css';
|
|
|
|
// fix bug in paginator rendering on MS Edge
|
|
.mat-paginator-container .mat-icon-button {
|
|
height: auto !important;
|
|
}
|
|
|
|
// debug view hierarch
|
|
.debug {
|
|
border-style: dashed;
|
|
border-width: 2px;
|
|
border-color: black;
|
|
}
|
|
|
|
|
|
// remove spacing
|
|
html {
|
|
margin:0px;
|
|
padding:0px;
|
|
}
|
|
|
|
// body must be 100vh for fxFlexFill to work
|
|
body {
|
|
height:100vh;
|
|
margin:0px;
|
|
padding:0px;
|
|
font-family: Roboto, sans-serif
|
|
}
|
|
|
|
.app-bar {
|
|
@include mat-elevation(4);
|
|
z-index: 10;
|
|
position:relative;
|
|
min-height:56px;
|
|
}
|
|
|
|
// mat icon is too large for toolbar buttons
|
|
.icon-button {
|
|
font-size: 18px;
|
|
height: auto !important;
|
|
vertical-align: text-bottom !important;
|
|
}
|
|
|
|
// removes the visited, etc. colors of links
|
|
.link-white {
|
|
color: white;
|
|
}
|
|
|
|
.link-primary {
|
|
color: mat-color($app-primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.spinner-small {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
|
|
// applies a match parent size styling
|
|
.match-parent {
|
|
flex: 1 1 100%;
|
|
min-width: 100%;
|
|
max-width: 100%;
|
|
min-height: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
|
|
// add more space between form fields
|
|
mat-form-field {
|
|
margin-bottom:10px;
|
|
}
|
|
|
|
.notice-card {
|
|
position: relative;
|
|
padding: 10px;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
.notice-card-element {
|
|
width: 100%;
|
|
min-height: 380px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.system-card,.register-card {
|
|
flex:1;
|
|
min-height:230px;
|
|
max-width:500px;
|
|
margin: 10px;
|
|
}
|
|
|
|
.register-link {
|
|
color: mat-color($app-accent-dark);
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
// basic grid configuration
|
|
.grid-layout {
|
|
margin-left:0px;
|
|
margin-right:0px;
|
|
margin-top:10px;
|
|
margin-bottom:10px;
|
|
}
|
|
|
|
.user-card {
|
|
flex:1;
|
|
max-width:500px;
|
|
min-height:280px;
|
|
margin:10px;
|
|
}
|
|
|
|
// fab position on marker map
|
|
.fab {
|
|
position:absolute;
|
|
bottom:20px;
|
|
top:auto;
|
|
left:20px;
|
|
right:auto;
|
|
z-index: 10000000;
|
|
}
|
|
|
|
// table stuff
|
|
.action-cell {
|
|
text-align: center;
|
|
}
|
|
|
|
.long-checkbox .mat-checkbox-layout {
|
|
padding-top: 20px;
|
|
white-space: normal;
|
|
}
|
|
|
|
|
|
// Basic layout styles
|
|
.header-transparent {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.flex-spacer {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.flex {
|
|
display: flex !important;
|
|
&-row {
|
|
@extend .flex;
|
|
flex-direction: row !important;
|
|
&-wrap {
|
|
@extend .flex-row;
|
|
flex-wrap: wrap !important;
|
|
}
|
|
&-nowrap {
|
|
@extend .flex-row;
|
|
flex-wrap: nowrap !important;
|
|
}
|
|
}
|
|
&-row-reverse {
|
|
@extend .flex;
|
|
flex-direction: row-reverse !important;
|
|
&-wrap {
|
|
@extend .flex-row-reverse;
|
|
flex-wrap: wrap !important;
|
|
}
|
|
&-nowrap {
|
|
@extend .flex-row;
|
|
flex-wrap: nowrap !important;
|
|
}
|
|
}
|
|
&-col {
|
|
@extend .flex;
|
|
flex-direction: column !important;
|
|
&-wrap {
|
|
@extend .flex-col;
|
|
flex-wrap: wrap !important;
|
|
}
|
|
&-nowrap {
|
|
@extend .flex-col;
|
|
flex-wrap: nowrap !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.justify-space-evenly {
|
|
justify-content: space-evenly !important;
|
|
}
|
|
|
|
.flex-notice-card {
|
|
@extend .flex;
|
|
flex: 1 1 400px !important;
|
|
max-height: 30% !important;
|
|
padding: 8px !important;
|
|
}
|
|
|
|
.flex-vrt-center {
|
|
@extend .flex-col-nowrap;
|
|
align-items: center !important;
|
|
}
|
|
|
|
app-content-layout {
|
|
div.outer-container {
|
|
@extend .flex;
|
|
@extend .flex-col-nowrap;
|
|
justify-content: flex-start;
|
|
overflow: hidden;
|
|
header {
|
|
flex: 1 1 auto;
|
|
}
|
|
div.inner-container {
|
|
@extend .flex;
|
|
@extend .flex-row-reverse-wrap;
|
|
height: auto;
|
|
justify-content: space-evenly;
|
|
align-items: flex-start;
|
|
overflow: hidden;
|
|
main {
|
|
flex: 1 1 600px;
|
|
}
|
|
aside {
|
|
flex: 0 1 350px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
app-content-header {
|
|
mat-toolbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-top: 20px !important;
|
|
}
|
|
.header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
> * {
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
.header-buttons > * {
|
|
margin-right: 8px;
|
|
}
|
|
}
|