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

51 lines
902 B
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: 55px;
right: 10px;
2018-12-03 05:21:00 -05:00
min-width: 7rem;
2018-12-03 04:35:14 -05:00
float: right;
background: white;
border-radius: 4px;
2019-01-19 14:06:26 -05:00
padding: 0.5rem 0 0.25rem;
border: 1px solid #fff;
box-shadow: 0px 0px 1px 1px #222222;
2018-12-03 04:35:14 -05:00
}
2018-12-03 05:21:00 -05:00
@media (min-width: 380px){
.map-legend {
bottom: 40px;
}
}
@media (min-width: 1020px){
.map-legend {
bottom: 24px;
}
}
.map-legend h3,
.map-legend h4,
2018-10-02 16:47:59 -04:00
.data-legend {
2018-12-03 05:21:00 -05:00
padding: 0 0.5rem;
}
.data-legend {
2019-01-22 14:43:53 -05:00
max-height: 30rem;
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
}
.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;
}