aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-01-18 13:32:48 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-01-18 13:32:48 +0100
commitf2028df4895ed1cf9095f2e94d032964336c9f57 (patch)
tree184dd0c801dda848f035668ffc280fa9f660b6c8
parent6653aa40997d5daed2f8e10a69e7bb52477a99d2 (diff)
CSS: Fade-in layer selection and legend panels.
-rw-r--r--style.css15
1 files changed, 14 insertions, 1 deletions
diff --git a/style.css b/style.css
index 1189fa1..9a8002d 100644
--- a/style.css
+++ b/style.css
@@ -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 {