Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMD09LEAFL-27: More css for leaflet maps #1007

Merged
merged 10 commits into from
Jul 18, 2024
49 changes: 42 additions & 7 deletions source/sass/31-molecules/map/_leaflet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
line-height: 55px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-shadow: 0 8px 12px 0 rgba(0, 125, 179, .06);
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
orabina marked this conversation as resolved.
Show resolved Hide resolved
}
}

.leaflet-control-fullscreen {
a {
@include theme('background-color', 'color-none', 'leaflet-map-open-fullscreen-icon-background-color');

background-image:url('#{$styleguide-dir}/img/svg/fullscreen-enter.svg');
background-position:10px 10px;
background-image: url('#{$styleguide-dir}/img/svg/fullscreen-enter.svg');
background-position: 10px 10px;
background-repeat: no-repeat;
background-size: auto;
}
Expand All @@ -30,7 +30,7 @@
@include theme('background-color', 'color-none', 'leaflet-map-close-fullscreen-icon-background-color');

background-image: url('#{$styleguide-dir}/img/svg/fullscreen-exit.svg');
background-position:10px 10px;
background-position: 10px 10px;
background-repeat: no-repeat;
}
}
Expand All @@ -42,7 +42,7 @@
@include theme('background-color', 'color-none', 'leaflet-map-location-icon-background-color');

background-image: url('#{$styleguide-dir}/img/svg/target.svg');
background-position:10px 10px;
background-position: 10px 10px;
background-repeat: no-repeat;
width: 50px;
height: 50px;
Expand All @@ -56,7 +56,7 @@
@include theme('background-color', 'color-none', 'leaflet-map-layers-icon-background-color');

background-image: url('#{$styleguide-dir}/img/svg/layers.svg');
background-position:10px 10px;
background-position: 10px 10px;
background-repeat: no-repeat;
border: 0;
background-size: auto;
Expand All @@ -65,7 +65,7 @@

.leaflet-control-zoom {
a {
box-shadow: 0 8px 12px 0 rgba(0, 125, 179, .06);
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
orabina marked this conversation as resolved.
Show resolved Hide resolved
orabina marked this conversation as resolved.
Show resolved Hide resolved

span {
@include theme('color', 'color-zero', 'leaflet-map-zoom-icon-color');
Expand Down Expand Up @@ -105,4 +105,39 @@
border-style: solid;
border-width: 1px;
}

.gent-leaflet-location-icon {
@include theme('background-color', 'color-none', 'leaflet-map-location-icon-background-color');

border-radius: 30px;
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
orabina marked this conversation as resolved.
Show resolved Hide resolved
padding: 5px;
}

.leaflet-popup-content-wrapper {
border-radius: 0
}

a.leaflet-popup-close-button {
top: 10px;
right: 10px;
}

.marker-cluster {
span {
@include theme('color', 'color-none', 'leaflet-map-marker-cluster-text-color');

font-size: 15px;
font-weight: bold;
}
}

.marker-cluster-small {
background-color: rgba(0, 91, 169, 0.3);
orabina marked this conversation as resolved.
Show resolved Hide resolved

div {
background-color: rgba(0, 91, 169, 0.8);
orabina marked this conversation as resolved.
Show resolved Hide resolved
}
}

}