Files
happy-app/client/dev/styles/shared-styles.scss
2017-08-28 18:06:52 +01:00

73 lines
1.6 KiB
SCSS

/**
This file contains reusable styles for common elements
that are performed throughout the application.
*/
//@import "../../node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css";
@import "constants.scss"; // All hardcoded reused values, must be defined as a constant
/* Common properties */
.overflow-hidden{ overflow: hidden; }
.no-padding{ padding: 0 !important; }
.no-margin{ margin: 0;}
.pull-right{ float: right; }
.pull-left{ float: left; }
.hide{ display: none; }
.show{ display: block; }
.full-height{ height: 100%; }
.full-width{ width: 100%; }
.small-grey-text{
font-size: $font-small;
color: $med-grey;
}
/* Styles specific for printing */
@media print {
.dont-print {
display: none;
}
}
/* The div displaying the no data error message*/
.no-data-message{
background: $super-light-grey;
padding: 1em 0.5em;
border-radius: 3px;
h3, p{ text-align: center; color: $med-grey; }
h3{ font-size: $font-medium; }
p{ }
}
/* The card that each chart sits in */
.chart-card{
margin: $top-margin-home-tile 0;
@include tablet-landscape-and-up{ min-height: $min-height-home-tile; }
}
/* Global adjustments */
body{
overflow-x: hidden;
overflow-y: scroll;
@include desktop-and-up{ overflow-y: hidden; }
}
.page-container{
margin: 1em;
div{ margin-top: 1em; } // So that cards have gaps between them, on mobile/ stacked view
}
.loading-spinner{
width: 100px;
display: block;
margin: 1em auto;
}
.mat-dialog-container { @extend .no-padding; }
md-card-actions{
padding: 1em;
min-height: 3em;
}