website/Website/wwwroot/css/style.less

426 lines
No EOL
5 KiB
Text

@import "colours.less";
@import "animations.less";
@import "contextMenu.less";
@import url(//fonts.googleapis.com/css?family=Roboto);
* {
box-sizing: border-box;
outline: none;
transition: all 0.2s ease;
}
html{
width:100%;
height:100%;
}
html,body,h1,h2, button {
padding:0;
margin:0;
}
html, button, input, textarea{
font-family: 'Roboto', sans-serif;
}
body{
width:100%;
height:100%;
background:@background;
display:flex;
}
a {
color:@accent;
}
nav {
img{
vertical-align: middle;
margin-right: 5px;
}
dt, dd{
&:hover, &.active{
background: @control;
cursor: pointer;
cursor: hand;
}
}
dt {
padding: 10px 10px;
}
dd {
margin: 0;
padding: 10px 10px 10px 40px;
}
a{
color: black;
text-decoration: none;
}
}
h2{
margin-bottom:10px;
a{
color:inherit;
}
}
h3{
margin-bottom: 10px;
&:first-child{
margin-top: 0px;
}
}
hr{
border: 1px solid @control;
}
table{
border-collapse: collapse;
input[type=text], textarea{
width: 100%;
}
}
th{
text-align: left;
}
td, th{
padding:0 10px 5px 0;
vertical-align: top;
}
button{
border:none;
background:@control;
}
form{
button, input[type=submit]{
border:none;
background:@control;
&:hover{
background: @control2;
}
}
}
button:hover{
cursor: pointer;
cursor: hand;
}
img{
max-width: 100%;
}
p{
&:first-child{
margin-top: 0;
}
&:last-child{
margin-bottom:0;
}
}
#menu{
background:@background;
width:280px;
flex: 0 0 auto;
display:flex;
flex-direction: column;
box-shadow: -2px 0px 0px 0px @control inset;
z-index: 400;
overflow-x: hidden;
#nav-container{
overflow: auto;
width:100%;
flex:1 1 auto;
dl {
margin: 5px 0 0 0;
}
}
.header{
z-index: 401;
flex: 0 0 auto;
overflow: auto;
}
}
#main{
flex: 1 1 auto;
display:flex;
flex-direction: column;
overflow:hidden;
height:100%;
position:relative;
.header{
flex: 0 0 auto;
z-index:1;
#menu-button{
display:none;
}
>*{
padding-left: 20px !important;
}
}
#content{
flex: 1 1 auto;
overflow:auto;
z-index:0;
height:100%;
display:flex;
flex-direction: column;
#body{
padding:20px;
//height:100%;
flex: 1;
}
}
}
#buttons-left,#buttons-right{
position:absolute;
padding: 10px;
bottom: 0px;
button{
margin:10px;
border-radius: 50%;
display: inline-block;
text-align: center;
box-shadow: 0px 2px 3px 0px rgba(0,0,0,0.25);
vertical-align: middle;
border:none;
background:@accent;
width:40px;
height:40px;
color: white;
font-size: 24px;
line-height: 24px;
}
}
#buttons-left{
left: 0px;
}
#buttons-right{
right: 0px;
}
#cookiePopup{
position:absolute;
background:black;
top:50%;
left:50%;
padding:20px;
border-radius: 30px;
width:230px;
height:230px;
margin-top:-115px;
margin-left:-115px;
color:white;
> div{
margin-top:40px;
text-align: center;
}
}
#spinner{
position:absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
align-items: center;
text-align: center;
display: flex;
z-index: 1000;
transition: all ease-in-out 0.5s;
&.ng-hide{
opacity: 0;
}
>img{
margin: auto;
}
}
.scrollLock{
overflow:hidden;
}
.header {
height:64px;
background:@primary;
color:white;
white-space:nowrap;
padding:0 !important;
overflow: hidden;
box-shadow: 0 -9px 5px 10px rgba(50, 50, 50, 0.8);
>*{
line-height:64px;
font-size:24px;
font-weight:400;
padding-left: 10px;
white-space: nowrap;
display: inline;
vertical-align: middle;
}
>h2>span{
display: inline-block;
}
>img{
height:50%;
}
span{
display: inline-block;
&:not(:first-child):before{
margin:2px 10px 0 10px;
width:6px;
float:left;
height:62px;
background: url("/images/chevron.png") no-repeat scroll right center / contain rgba(0, 0, 0, 0);
content:"";
}
}
}
.circle{
border-radius: 50%;
display: inline-block;
text-align: center;
vertical-align: middle;
overflow: hidden;
}
.go, .expand{
display:none;
float:right;
}
.backdrop{
background: rgba(0,0,0,0.5);
width: 100%;
height:100%;
position:absolute;
top:0;
left:0;
z-index:100;
display:none;
transition:all ease-in-out 0.5s;
&.ng-hide{
opacity: 0;
}
}
.errors{
background: url(/images/error.svg) no-repeat scroll 10px 10px @Grey-800;
padding:10px;
padding-left:40px;
color:#fff;
ul{
margin: 0;
list-style: square;
}
}
.row{
width:100%;
clear:both;
>.col {
width:100%;
float:left;
}
&.col-lg-1, &.col-md-1, &.col-sm-1{
>.col{
width:100%;
}
}
&.col-lg-2, &.col-md-2, &.col-sm-2{
>.col{
width:50%;
}
}
&.col-lg-3, &.col-md-3, &.col-sm-3{
>.col{
width:33.3333%;
}
}
&.col-lg-4, &.col-md-4, &.col-sm-4{
>.col{
width:25%;
}
}
}
table.alternatingRows{
tr{
&:nth-child(1n){
background:@control;
}
&:nth-child(2n){
background:@control2;
}
}
}
td, th{
padding:3px;
&.number{
text-align: right;
}
}
div.percentageBar{
width:100%;
height:20px;
background:@LightGreen-400;
overflow:hidden;
>div{
background:@Red-400;
height:100%;
transition: all 500ms ease-in-out;
}
}