diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-01-19 00:22:32 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-01-19 00:34:09 +0100 |
commit | 47c0acada856eaa92f474ff0e87c5f4c5578aad3 (patch) | |
tree | 829d36840029c614c1943024da5dffd45043cc4e | |
parent | 85b125b35c5b5489ec153fd29324965eb1b3ef85 (diff) |
CSS: Improve handling of small viewports.
-rw-r--r-- | main.js | 1 | ||||
-rw-r--r-- | style.css | 8 |
2 files changed, 4 insertions, 5 deletions
@@ -208,7 +208,6 @@ const TRAILING_ZEROES = /\.?0*$/; if (window.location !== window.parent.location) { const div = document.createElement('div'); menu.appendChild(div); - div.id = 'newtab-button'; div.classList.add('ol-unselectable', 'ol-control'); const btn = document.createElement('button'); @@ -114,7 +114,7 @@ html, body { #map-menu, #zoom-control { position: relative; } -@media screen and (min-width: 577px) { +@media screen and (min-width: 768px) { #map-menu > .ol-control > button { font-size: 200%; } @@ -123,7 +123,7 @@ html, body { margin-top: .5rem; pointer-events: auto; } -@media screen and (max-width: 576px) { +@media screen and (max-width: 767px) { #map-menu > * { margin-top: .25rem; } @@ -209,7 +209,7 @@ html, body { display: block; } -@media screen and (max-width: 576px) { +@media screen and (max-width: 767px) { #layer-selection-panel, #map-legend-panel { max-width: 100%; @@ -237,7 +237,7 @@ html, body { display: none; } } -@media screen and (max-width: 768px) { +@media screen and (max-width: 900px) { #map-legend-panel, #layer-selection-panel { max-width: 60%; } |