2gis-maps
Version:
Interactive 2GIS maps API, based on Leaflet
139 lines (122 loc) • 2.73 kB
text/less
.dg-zoom {
width: 40px;
height: 74px;
}
.dg-zoom__in {
position: absolute;
top: 0;
left: 0;
.leaflet-touch &:before {
position: absolute;
top: -5px;
right: -10px;
bottom: 0;
left: -10px;
content: '';
}
&:after {
position: absolute;
right: 0;
bottom: -1px;
left: 0;
z-index: -1;
margin: auto;
width: 12px;
height: 2px;
box-shadow: 0 0 3px 2px rgba(0, 0, 0, .3);
content: '';
}
}
.dg-zoom__button_type_in {
&:before,
.leaflet-touch &:before,
&:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 14px;
height: 2px;
background-color: #7a7a7a; // 48%
box-shadow: 0 1px #fff;
content: '';
}
&:after {
width: 2px;
height: 14px;
}
.no-touch &:hover:before,
.no-touch &:hover:after {
background-color: #616161; // 38%
}
&:active:before,
&:active:after,
.no-touch &:active:before,
.no-touch &:active:after {
background-color: #575757; // 34%
}
.leaflet-disabled &:before,
.leaflet-disabled &:after,
.no-touch .leaflet-disabled &:hover:before,
.no-touch .leaflet-disabled &:hover:after,
.leaflet-disabled &:active:before,
.leaflet-disabled &:active:after {
box-shadow: none;
}
}
.dg-zoom__out {
position: absolute;
top: 40px;
right: 0;
left: 0;
margin: auto;
width: 22px;
height: 22px;
&:after {
position: absolute;
top: -1px;
right: 0;
left: 0;
margin: auto;
width: 12px;
height: 2px;
content: '';
}
}
.dg-zoom__button_type_out {
width: 22px;
height: 22px;
.leaflet-touch &:before {
top: -5px;
right: -19px;
bottom: -19px;
left: -19px;
}
&:after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
width: 10px;
height: 2px;
background: #7a7a7a; // 48%
box-shadow: 0 1px #fff;
content: '';
}
.no-touch &:hover:after {
background: #616161; // 38%
}
&:active:after,
.no-touch &:active:after {
background: #575757; // 34%
}
.leaflet-disabled &:after,
.no-touch .leaflet-disabled &:hover:after,
.leaflet-disabled &:active:after {
box-shadow: none;
}
}