colouring-montreal/app/src/frontend/map/legend.css

81 lines
1.4 KiB
CSS
Raw Normal View History

2018-10-02 16:47:59 -04:00
/**
* Map legend
*/
2018-12-03 04:35:14 -05:00
.map-legend {
z-index: 1000;
position: absolute;
bottom: 50%;
2018-12-03 04:35:14 -05:00
right: 10px;
2019-01-22 16:55:03 -05:00
min-width: 12rem;
2018-12-03 04:35:14 -05:00
float: right;
background: white;
border-radius: 4px;
2019-01-22 16:23:35 -05:00
padding: 0.5rem 0rem 0.25rem;
2019-01-19 14:06:26 -05:00
border: 1px solid #fff;
box-shadow: 0px 0px 1px 1px #222222;
2018-12-03 04:35:14 -05:00
}
@media (min-width: 768px){
2018-12-03 05:21:00 -05:00
.map-legend {
bottom: 40px;
}
}
@media (min-width: 1020px){
.map-legend {
bottom: 24px;
}
}
2019-01-22 16:55:03 -05:00
.map-legend .h4,
.map-legend p,
2018-10-02 16:47:59 -04:00
.data-legend {
2018-12-03 05:21:00 -05:00
padding: 0 0.5rem;
}
2019-01-22 16:55:03 -05:00
.map-legend p {
margin: 0.25rem 0 0.5rem;
}
2018-12-03 05:21:00 -05:00
.data-legend {
max-height: 80px;
max-height: 20vh;
2018-12-03 05:21:00 -05:00
overflow-y: auto;
2018-10-02 16:47:59 -04:00
list-style: none;
2018-12-03 05:21:00 -05:00
margin-bottom: 0;
2018-10-02 16:47:59 -04:00
}
@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;
}
}
2018-10-02 16:47:59 -04:00
.data-legend .key {
display: inline-block;
2019-01-22 14:43:53 -05:00
width: 1.3rem;
height: 1.3rem;
2018-10-02 16:47:59 -04:00
text-indent: -30px;
margin: 0.125rem 0.5rem 0.125rem 0;
vertical-align: middle;
overflow: hidden;
}
2018-12-03 05:21:00 -05:00
.map-legend .data-intro {
padding: 0 0.5rem;
opacity: 0.5;
}
.expander-button {
float: right;
}
@media (min-height: 670px) and (min-width: 768px) {
.expander-button {
visibility: hidden;
}
}