Add media queries to fix overlap at smaller heights
This commit is contained in:
parent
c20a8aa97a
commit
03f6667d9e
@ -33,11 +33,30 @@
|
|||||||
margin: 0.25rem 0 0.5rem;
|
margin: 0.25rem 0 0.5rem;
|
||||||
}
|
}
|
||||||
.data-legend {
|
.data-legend {
|
||||||
max-height: 50vh;
|
max-height: 80px;
|
||||||
|
max-height: 20vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@media (min-height: 470px) {
|
||||||
|
.data-legend {
|
||||||
|
max-height: 150px;
|
||||||
|
max-height: 30vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-height: 550px) {
|
||||||
|
.data-legend {
|
||||||
|
max-height: 220px;
|
||||||
|
max-height: 40vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-height: 670px) {
|
||||||
|
.data-legend {
|
||||||
|
max-height: 330px;
|
||||||
|
max-height: 50vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
.data-legend .key {
|
.data-legend .key {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 1.3rem;
|
width: 1.3rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user