3
0

Standardize map buttons

This commit is contained in:
Mumbi Francis
2024-01-24 14:24:44 +03:00
parent 08081a9b12
commit e62c4a6600
2 changed files with 24 additions and 1 deletions
+21 -1
View File
@@ -87,7 +87,6 @@
>
<font-awesome-icon
:icon="['fas', 'location-arrow']"
class="text-primary"
/>
</a>
</l-control>
@@ -294,6 +293,27 @@ export default {
}
</script>
<style lang="scss">
.leaflet-touch .leaflet-bar {
border: 1px solid transparent;
border-radius: 0.3rem;
}
.leaflet-bar a {
background-color: var(--primary);
color: var(--white);
&:hover {
background-color: var(--primary-dark);
transition: background-color 0.15s ease;
}
}
[data-color-mode="dark"] .leaflet-bar a {
color: var(--black);
}
</style>
<style scoped>
.geosearch-container {
position: absolute;
@@ -38,6 +38,8 @@ $gray-700: if(lightness($black) < lightness($white), mix($black, $white, 70%), m
$gray-800: if(lightness($black) < lightness($white), mix($black, $white, 80%), mix($white, $black, 80%));
$gray-900: if(lightness($black) < lightness($white), mix($black, $white, 90%), mix($white, $black, 90%));
$primary-dark: darken($primary, 7.5%) !default;
$yiq-contrasted-threshold: 45; // Our magic number, we can pretend its 42..
$yiq-text-dark: $black !default;
$yiq-text-light: $white !default;
@@ -48,6 +50,7 @@ $theme-colors: map-merge(
"white": $white,
"black": $black,
"extra-light": $extra-light,
"primary-dark": $primary-dark,
),
$theme-colors
);