diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-01-18 13:32:48 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-01-18 13:32:48 +0100 |
commit | f2028df4895ed1cf9095f2e94d032964336c9f57 (patch) | |
tree | 184dd0c801dda848f035668ffc280fa9f660b6c8 | |
parent | 6653aa40997d5daed2f8e10a69e7bb52477a99d2 (diff) |
CSS: Fade-in layer selection and legend panels.
-rw-r--r-- | style.css | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -186,7 +186,6 @@ html, body { #layer-selection-panel, #map-legend-panel { position: relative; - display: block; min-width: min-content; max-width: 35%; width: revert; @@ -196,6 +195,20 @@ html, body { --bs-modal-color: var(--bs-body-color); --bs-modal-padding: .75rem; } +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +#layer-selection-panel[aria-hidden="false"], +#map-legend-panel[aria-hidden="false"] { + animation: fade-in .25s ease-in-out both; + display: block; +} + @media screen and (max-width: 576px) { #layer-selection-panel, #map-legend-panel { |