The division operator `/` from Sass is deprecated because `/` is used in CSS for uses other than dividing numbers. That's why we were getting many warnings like: ``` Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div($line-height, 2) or calc($line-height / 2) More info and automated migrator: https://sass-lang.com/d/slash-div margin-top: $line-height / 2; ``` Since using math.div makes the code harder to read and `calc` is universally supported by all browsers (although the implementation in Internet Explorer doesn't work in certain cases), we're using `calc` when assigning the value to a CSS property. However, we're also using divisions when assigning Sass variables, and in those cases using `calc` is trickier because sometimes these variables are used in other operations. We'll handle these cases in the next commit.
40 lines
561 B
SCSS
40 lines
561 B
SCSS
.map-location-remove-marker {
|
|
border-bottom: 1px dotted;
|
|
border-radius: 0;
|
|
color: $delete;
|
|
cursor: pointer;
|
|
margin-bottom: $line-height;
|
|
margin-top: calc(#{$line-height} / 2);
|
|
|
|
&:hover,
|
|
&:active,
|
|
&:focus {
|
|
border-bottom-style: solid;
|
|
color: darken($delete, 10%);
|
|
}
|
|
}
|
|
|
|
.leaflet-bar a {
|
|
|
|
&.leaflet-disabled {
|
|
color: #525252;
|
|
}
|
|
}
|
|
|
|
.leaflet-container {
|
|
|
|
.leaflet-control-attribution {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
a {
|
|
@include link;
|
|
}
|
|
}
|
|
|
|
.leaflet-bottom,
|
|
.leaflet-pane,
|
|
.leaflet-top {
|
|
z-index: 4;
|
|
}
|