graphicek/client/src/assets/style.css

252 lines
3.7 KiB
CSS

body, html {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
body {
background: #eee;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
button, input, select {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
button {
background: #3988FF;
color: #fff;
cursor: pointer;
border: none;
padding: 0.25rem 1rem;
border-radius: 0.25rem;
}
button:hover {
background-color: #0F6FFF;
}
input, select {
padding: 0.15rem 0.4rem;
box-sizing: border-box;
}
.login {
width: 300px;
margin: 2rem auto;
}
.login .box {
padding: 1rem;
}
#application {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
}
.sensors {
display: grid;
grid-template-columns: 1fr 1fr;
overflow: auto;
min-height: 0;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
@media only screen and (max-width: 1200px) {
.sensors {
grid-template-columns: 1fr;
}
}
.box {
box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
background-color: #fff;
border-radius: 0.5rem;
}
.sensor {
background: #fff;
border-radius: 0.5rem;
margin: 0.5rem;
box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
overflow: hidden;
min-height: 350px;
height: 350px;
}
.sensor .header {
display: flex;
align-items: center;
padding: 0.5rem;
}
.sensor .header .actions {
margin-left: auto;
display: flex;
}
.sensor .header .actions button {
margin-left: 0.4rem;
}
.settings-modal {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
overflow: auto;
display: none;
justify-content: center;
align-items: flex-start;
background-color: rgba(0,0,0,0.2);
z-index: 5;
}
.settings-modal.show {
display: flex;
}
.settings-modal .inner {
background: #fff;
margin-top: 5%;
box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
border-radius: 0.5rem;
width: 20rem;
}
.settings-modal .inner .body {
padding: 0.75rem 1rem;
}
form {
display: flex;
flex-direction: column;
}
form .input {
display: flex;
flex-direction: column;
margin-bottom: 0.5rem;
}
form .actions {
text-align: right;
margin-top: 1rem;
}
form .actions button {
padding: 0.5rem 1rem;
}
form .actions button.cancel {
background-color: transparent;
color: #000;
}
form.horizontal {
flex-direction: row;
align-items: center;
}
form.horizontal .input {
flex-direction: row;
margin-bottom: 0;
margin-right: 0.5rem;
align-items: baseline;
}
form.horizontal .input label {
margin-right: 0.25rem;
}
.filters .inner {
display: flex;
align-items: center;
padding: 0.5rem 0.5rem;
background-color: #fff;
}
.filters .shadow {
position: absolute;
background: linear-gradient(0deg, rgba(255,255,255,0) 5%, rgba(190,190,190,1) 100%);
width: 100%;
height: 12px;
z-index: 1;
}
.filters .actions {
margin-left: auto;
display: flex;
align-items: center;
}
.checkbox-label {
display: inline-flex;
align-items: center;
}
.checkbox-label input[type=checkbox] {
margin-top: 6px;
}
.grid-sensors {
position: relative;
margin: 0.25rem;
}
.grid-sensors .grid-box {
position: absolute;
transition: all 0.2s;
padding: 0.25rem;
box-sizing: border-box;
}
.grid-sensors .grid-box.dragging {
transition: none;
}
.grid-sensors .grid-box .box {
position: relative;
}
.grid-sensors .grid-box .box .resize-h {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 10px;
cursor: e-resize;
}
.grid-sensors .grid-box .box .resize-v {
position: absolute;
right: 0;
left: 0;
bottom: 0;
height: 10px;
cursor: s-resize;
}
.grid-sensors .grid-box .box .resize {
position: absolute;
right: 0;;
bottom: 0;
width: 10px;
height: 10px;
cursor: se-resize;
}
.grid-sensors .box-preview {
position: absolute;
background-color: #3988FF;
opacity: 0.5;
transition: all 0.2s;
z-index: 1;
border-radius: 0.5rem;
}