From 91fc203b0a35bd4de45ce9f99751f7e8b0296bbc Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Fri, 6 Aug 2021 11:37:45 +0700 Subject: [PATCH] added zoom icons --- src/styles/map.scss | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/styles/map.scss b/src/styles/map.scss index 38d93f8..a541f8f 100644 --- a/src/styles/map.scss +++ b/src/styles/map.scss @@ -12,7 +12,28 @@ } .leaflet-control-zoom { - display: none; + width: 32px; + opacity: 0.5; + transition: opacity 0.1s; + + &:hover { + opacity: 1; + } +} + +a.leaflet-control-zoom-in, a.leaflet-control-zoom-out { + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + + &:hover { + width: 32px; + height: 32px; + display: flex; + opacity: 1; + } } .leaflet-touch .leaflet-bar a {