+ @use "sass:map";
@import "parameters";
+ @import "browse";
@import "bootstrap";
@import "rails_bootstrap_forms";
}
}
+@include color-mode(dark) {
+ .leaflet-tile-container,
+ .mapkey-table-entry td:first-child > * {
+ filter: brightness(.8);
+ }
+}
+
/* Rules for attribution text under the main map shown on printouts */
.donate-attr { color: darken($green, 10%) !important; }
}
}
- @import 'browse';
+ /* Rules for map sidebar icons */
+
+ .browse-section {
+ .node::before,
+ .way::before,
+ .relation::before {
+ display: inline-block;
+ width: 25px;
+ margin-left: -25px;
+ }
+
+ .node, .way, .relation {
+ margin-left: 25px;
+ }
+ }
+
+ @each $class, $item in $map-sidebar-icons {
+ .browse-section #{$class}::before {
+ content: image-url('browse/#{map.get($item, "filename")}');
+ }
+
+ @if map.get($item, "invert") {
+ @include color-mode(dark) {
+ .browse-section #{$class}::before {
+ filter: invert(.8) hue-rotate(180deg);
+ }
+ }
+ }
+ }