Air-Quality-Web/client_src/css/main.css

90 lines
1.8 KiB
CSS
Raw Normal View History

2019-01-17 12:48:09 +00:00
@import "../../node_modules/leaflet/dist/leaflet.css";
2019-01-17 14:07:31 +00:00
@import "../../node_modules/leaflet-fullscreen/dist/leaflet.fullscreen.css";
@import "../../node_modules/leaflet.markercluster/dist/MarkerCluster.css";
@import "../../node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css";
/** Ensure that some assets are copied that aren't by default **/
.non-existent {
background: url(../../node_modules/leaflet/dist/images/marker-icon-2x.png),
url(../../node_modules/leaflet/dist/images/marker-shadow.png);
}
2019-01-17 14:13:22 +00:00
html, body { font-size: 100%; }
body {
display: grid;
grid-template-columns: 10em auto 10em;
grid-template-rows: auto auto;
grid-template-areas: ". header ."
". . .";
2019-01-17 14:13:22 +00:00
font-family: sans-serif;
margin: 0; padding: 0;
}
h1 {
grid-area: header;
justify-self: center;
align-self: start;
margin: 0;
padding: 0.25em 0.45em;
2019-01-17 14:13:22 +00:00
background: rgba(255, 255, 255, 0.5);
border-radius: 0 0 0.25em 0.25em;
2019-01-17 16:39:47 +00:00
z-index: 100;
2019-01-17 14:13:22 +00:00
}
main {
position: absolute;
top: 0; bottom: 0; left: 0; right: 0;
2019-01-17 14:13:22 +00:00
2019-01-17 16:39:47 +00:00
z-index: 50;
}
2019-01-18 21:25:30 +00:00
.sms-panel {
top: initial !important; bottom: 0;
z-index: 100 !important;
}
h2.device-name { text-align: center; }
2019-01-18 22:59:57 +00:00
.device-name::after {
content: "#" attr(data-id);
float: right; margin-right: 1em;
font-size: 80%;
color: hsl(230, 45%, 65%);
}
.device-data {
display: flex;
flex-direction: row;
}
.device-property-table {
border-collapse: collapse;
}
.device-property-table tr:nth-child(odd) {
background: hsla(222, 100%, 70%, 0.25);
}
.device-property-table th {
padding-right: 2em;
}
.device-property-table td:nth-child(2) {
border-left: 0.2em solid hsl(222, 100%, 59%);
padding-left: 0.5em;
}
2019-01-20 20:53:12 +00:00
.reading-types {
display: flex;
flex-direction: row;
list-style-type: none;
}
button.selected {
font-weight: bolder;
}