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

91 lines
1.4 KiB
CSS
Raw Normal View History

.leaflet-popup-content {
width: auto !important;
}
h2.device-name { text-align: center; }
.device-name::after {
content: "#" attr(data-id);
float: right; margin-right: 1em;
font-size: 80%;
color: hsl(230, 45%, 65%);
}
.tab-panes .tab-pane {
display: none
}
.tab-panes .active {
display: block
}
.tabs {
list-style-type: none;
margin: 0; padding: 0;
2019-01-26 17:06:30 +00:00
min-width: 40em;
display: flex;
flex-direction: row;
}
.tabs li {
flex: 1;
2019-01-26 17:06:30 +00:00
padding: 0 0.25em;
text-align: center;
font-size: 120%;
}
.tabs li a {
display: inline-block; width: 100%;
box-sizing: border-box;
padding: 0.45em;
opacity: 0.5;
background: hsla(252, 82%, 66%, 0.53);
2019-01-26 17:06:30 +00:00
border-radius: 0.25em;
color: hsl(252, 100%, 59%);
text-decoration: none;
}
2019-02-01 18:40:00 +00:00
.tabs li a.active { opacity: 1; }
2019-02-01 18:40:00 +00:00
.tab-panes {
2019-01-26 17:06:30 +00:00
display: flex; justify-content: center;
min-height: 20em;
2019-01-26 17:06:30 +00:00
padding-top: 1em;
}
2019-01-26 17:06:30 +00:00
.device-params { margin: 0 auto; }
.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;
}
.button-array {
2019-01-26 17:06:30 +00:00
list-style-type: none;
padding: 0;
display: flex;
flex-direction: row;
2019-01-26 17:06:30 +00:00
}
.button-array button {
2019-01-26 17:06:30 +00:00
margin: 0.25em;
background: hsla(252, 82%, 66%, 0.53);
border-radius: 0.25em;
border: none;
color: hsl(252, 100%, 59%);
}