<p></p>
<p><b>@CommanderStorm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2499170817">app/assets/stylesheets/common.scss</a>:</p>
<pre style='color:#555'>> +.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23ffffff' viewBox='0 0 20 20'%3E%3Cpath d='M16 8H12V4L11 3H10L9 4V8H5L4 9v1l1 1H9v4l1 1h1l1-1V11h4l1-1V9z'/%3E%3C/svg%3E") !important;
+}
+.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23ffffff' viewBox='0 0 20 20'%3E%3Cpath d='M4 9v1l1 1H16l1-1V9L16 8H5Z'/%3E%3C/svg%3E") !important;
+}
+.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23ffffff' viewBox='0 0 20 20'%3E%3Cpath d='M10 10v6h2L16 6V4H14L4 8v2Z'/%3E%3C/svg%3E") !important;
+}
+.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon {
+ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2376c551' viewBox='0 0 20 20'%3E%3Cpath d='M10 10v6h2L16 6V4H14L4 8v2Z'/%3E%3C/svg%3E") !important;
+}
</pre>
<p dir="auto">Not sure which alternative you are suggesting.</p>
<p dir="auto">I tried to do the following, but the ruby part does not seem to allow this, at least the <code class="notranslate">inline-image</code> does not seem to do anything.</p>
<div class="highlight highlight-source-css" dir="auto"><pre class="notranslate"> <span class="pl-c1">background-image</span><span class="pl-kos">:</span> <span class="pl-en">inline-image</span>(<span class="pl-s">'app/assets/images/map-controls/zoomin.svg'</span>) <span class="pl-k">!important</span>;</pre></div>
<p dir="auto"><a href="https://stackoverflow.com/questions/33299453/inline-svg-from-a-file-with-sass/33302941#33302941" rel="nofollow">https://stackoverflow.com/questions/33299453/inline-svg-from-a-file-with-sass/33302941#33302941</a></p>
<p dir="auto">How do I enable this functionality in the asset pipeline?</p>
<p dir="auto">As I said previusly, I know JS but ruby is not taught in school, so I would need help with the magic there.</p>
<p dir="auto">I ruled out <a href="https://github.com/zemax/node-sass-svg">https://github.com/zemax/node-sass-svg</a> as it does not seem very active.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2499170817">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMRJARGCMMY65EH5J333NLZNAVCNFSM6AAAAACLKBT5BCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTIMRYGQ3DENJRGQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLQOVDFTJDN7VEILFL33NLZNA5CNFSM6AAAAACLKBT5BCWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTWMLIX3E.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6504/review/3428462514</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2499170817",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2499170817",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>