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

143 lines
2.3 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 {
position: absolute;
2019-10-03 09:55:54 -04:00
bottom: 3.5rem;
2018-12-03 04:35:14 -05:00
right: 10px;
2019-09-04 15:47:29 -04:00
z-index: 1000;
2020-02-10 18:38:46 -05:00
min-width: 14rem;
max-width: 14rem;
max-height: 60%;
2020-02-03 16:16:49 -05:00
2019-09-04 15:47:29 -04:00
display: flex;
flex-direction: column;
2018-12-03 04:35:14 -05:00
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
}
2019-09-04 15:47:29 -04:00
.map-legend * {
flex: 0;
}
.map-legend .logo {
display: none;
}
2020-02-03 16:16:49 -05:00
@media (min-width: 990px) {
2019-09-04 15:47:29 -04:00
.map-legend .logo {
display: block;
}
}
/* Prevent legend from overlapping with attribution */
2019-10-03 09:55:54 -04:00
@media(min-width: 392px) {
.map-legend {
bottom: 2.5rem;
}
}
@media (min-width: 760px){
2019-09-04 15:47:29 -04:00
.map-legend {
bottom: 1.5rem;
}
}
2020-02-03 16:16:49 -05:00
@media (min-width: 990px) {
2018-12-03 05:21:00 -05:00
.map-legend {
2019-09-04 15:47:29 -04:00
bottom: 2.5rem;
2018-12-03 05:21:00 -05:00
}
}
2019-10-03 09:55:54 -04:00
@media (min-width: 1129px){
2018-12-03 05:21:00 -05:00
.map-legend {
2019-09-04 15:47:29 -04:00
bottom: 1.5rem;
2018-12-03 05:21:00 -05:00
}
}
2019-09-04 15:47:29 -04:00
.map-legend .style-select {
background-color: inherit;
padding: 0.5rem 0.25rem;
margin: 0.25rem 0.5rem;
width: auto;
font-size: 18px;
border: 1px solid;
border-radius: 4px;
}
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;
}
2020-02-10 18:38:46 -05:00
.map-legend .legend-disclaimer {
font-size: 0.8em;
padding:0;
}
2018-12-03 05:21:00 -05:00
.data-legend {
2019-09-18 07:38:11 -04:00
overflow: auto;
2018-10-02 16:47:59 -04:00
list-style: none;
2018-12-03 05:21:00 -05:00
margin-bottom: 0;
2019-09-04 15:47:29 -04:00
flex: 1;
2018-10-02 16:47:59 -04:00
}
2019-09-04 15:47:29 -04:00
.data-legend li {
white-space: nowrap;
}
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;
margin-right: 0.3rem;
2018-10-02 16:47:59 -04:00
vertical-align: middle;
overflow: hidden;
border: solid 1px #ddd;
}
.data-legend h6 {
margin-top: 5px;
2018-10-02 16:47:59 -04:00
}
2018-12-03 05:21:00 -05:00
.map-legend .data-intro {
padding: 0 0.5rem;
opacity: 0.5;
}
.expander-button {
2019-09-04 15:47:29 -04:00
display: inline-block;
position: absolute;
bottom: 1rem;
2019-09-18 09:52:21 -04:00
right: 0.5rem;
2020-02-03 16:16:49 -05:00
2019-09-04 15:47:29 -04:00
height: 1rem;
width: 1rem;
line-height: 0.5;
padding: 0;
}
.expander-button:focus,
.expander-button:active,
.expander-button:hover {
box-shadow: none;
}
2019-09-05 08:33:20 -04:00
@media (min-height: 670px) and (min-width: 880px) {
.expander-button {
visibility: hidden;
}
}
2019-09-05 08:33:20 -04:00
.map-legend .logo {
padding: 0 0.5rem 0.5rem;
}
.map-legend .logo .logotype {
font-size: 1.9rem;
margin-bottom: -2px;
}
.map-legend .logo .cell {
height: 12px;
width: 12px;
2020-02-03 16:16:49 -05:00
}