diff --git a/index.html b/index.html index 0c26bc8..d369ab6 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,9 @@
diff --git a/style.css b/style.css index 0916467..a2e1f4b 100644 --- a/style.css +++ b/style.css @@ -1,10 +1,5 @@ @import "node_modules/ol/ol.css"; -html, body { - margin: 0; - height: 100%; -} - #map { position: absolute; top: 0; @@ -41,3 +36,28 @@ aside ul li { h1 { text-align: center; } + +aside .close { + display: none; +} + +@media (max-width: 400px) { + .nav-open #map { + left: 100%; + } + + aside { + margin-left: calc(-100% + 2em); + width: calc(100% - 2em); + } + + aside .close { + display: initial; + } + + .nav-open aside .close { + position: absolute; + top: 0.5em; + right: 0.5em; + } +}