diff --git a/app/src/frontend/legend.css b/app/src/frontend/legend.css index 728eef13..3c41c9ef 100644 --- a/app/src/frontend/legend.css +++ b/app/src/frontend/legend.css @@ -6,14 +6,32 @@ position: absolute; bottom: 55px; right: 10px; + min-width: 7rem; float: right; background: white; border-radius: 4px; - padding: 0.25rem 0.5rem; + padding: 0.25rem 0; +} +@media (min-width: 380px){ + .map-legend { + bottom: 40px; + } +} +@media (min-width: 1020px){ + .map-legend { + bottom: 24px; + } +} +.map-legend h3, +.map-legend h4, +.data-legend { + padding: 0 0.5rem; } .data-legend { + max-height: 20rem; + overflow-y: auto; list-style: none; - padding: 0; + margin-bottom: 0; } .data-legend .key { display: inline-block; @@ -24,3 +42,7 @@ vertical-align: middle; overflow: hidden; } +.map-legend .data-intro { + padding: 0 0.5rem; + opacity: 0.5; +} diff --git a/app/src/frontend/legend.js b/app/src/frontend/legend.js index 9626147c..2e253fa8 100644 --- a/app/src/frontend/legend.js +++ b/app/src/frontend/legend.js @@ -55,7 +55,7 @@ const LEGEND_CONFIG = { like: { title: "Like Me", elements: [ - { color: '#f65400', text: 'We like these buildings π π +1' }, + { color: '#f65400', text: 'π π +1' }, ] }, use: { @@ -98,14 +98,19 @@ const Legend = (props) => { const elements = details.elements; return (
Coming soonβ¦
) } -