Files
cms_thermo_active/Step/wwwroot/assets/styles/base/header.less
T
Nicola Carminati b40503b28d Fix ui Styles
2018-04-12 12:41:26 +02:00

154 lines
3.8 KiB
Plaintext

// out: false, sourceMap: false, main: ../style.less
@import "colors.less";
@header-height: 80px;
@header-button-size: 44px;
#app>header {
display: flex;
flex-flow: row nowrap;
align-items: center;
height: @header-height;
width: calc(~"100% - 152px");
position: absolute;
z-index: 200;
top: 0;
right: 0;
left: 0;
button {
font-size: 28px;
justify-content: center;
display: flex;
margin: 0 9px;
background-color: @color-header-button-background-color;
box-shadow: @color-header-button-box-shadow;
border-radius: @header-button-size /2;
border: none;
height: @header-button-size;
min-width: @header-button-size;
cursor: pointer;
color: @color-darkish-blue;
}
button:disabled {
background-color: @color-user-softkey-disabled;
filter: grayscale(100%);
}
button>img {
margin: auto;
height: @header-button-size/2;
margin: auto;
display: block;
}
button>img.h-20 {
height: 20px;
}
button>img.h-24 {
height: 24px;
}
button .machine-info small {
display: block;
text-align: left;
margin-left: 5px;
font-family: 'Work Sans', sans-serif;
font-size: 11px;
}
button.red {
background-color: @color-scarlet;
color: white;
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.4), inset 0 1px 3px 0 rgba(0, 0, 0, 0.5);
}
button.blue {
background-color: @color-clear-blue;
color: white;
}
button.dark-blue {
background-color: @color-darkish-blue;
color: white;
}
button.dark-blue:active {
background-color: @color-clear-blue;
}
button.gray {
background-color: @color-greyish-brown;
color: white;
}
button.profile {
width: @header-button-size; // background-image: url(../profile.png);
// background-size: cover;
}
button.unclickable {
cursor: default;
}
&.turn-up .user-info time {
color: #fff;
}
.user-info {
display: flex; // position: absolute;
// right: 12px;
font-size: 25px;
color: @color-input-light;
flex-grow: 1;
justify-content: flex-end;
.window-buttons,
time {
transition: color 200ms ease-in-out;
margin-left: 10px;
padding: 0 18px;
border-left: 2px solid #bbbcbc;
border-right: 2px solid #bbbcbc;
display: flex;
justify-content: center;
align-items: center;
i {
margin-right: 10px;
}
}
}
.machine-info {
min-width: 60px;
margin-left: 5px;
margin-right: 5px;
}
}
.window-buttons {
height: 80px;
display: flex;
flex-flow: row nowrap;
align-items: center;
-webkit-user-select: none;
button {
font-size: 28px;
justify-content: center;
display: flex;
margin: 0 9px;
background-color: @color-header-button-background-color;
box-shadow: @color-header-button-box-shadow;
border-radius: @header-button-size /2;
border: none;
height: @header-button-size;
min-width: @header-button-size;
cursor: pointer;
color: @color-darkish-blue;
}
button.gray {
background-color: @color-greyish-brown;
color: white;
}
position: fixed;
z-index: 1000;
top: 0;
right: 0;
display: flex;
padding-right: 8px !important;
i {
margin: auto !important;
font-size: 16px;
font-weight: normal;
}
.close {
font-size: 32px;
}
.close:hover {
background-color: @button-success-color-to;
}
}