Skip to content

Commit 3427f87

Browse files
committed
fix color of icon in navbar on mobile using CSS filter
1 parent 86e54b9 commit 3427f87

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

src/css/header.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,18 @@ body {
176176

177177
.navbar-item .icon img,
178178
.navbar-item .icon svg {
179-
fill: currentColor;
180179
width: inherit;
181180
height: inherit;
182181
}
183182

183+
.navbar-item .icon img {
184+
filter: invert(10%);
185+
}
186+
187+
.navbar-item .icon svg {
188+
fill: currentColor;
189+
}
190+
184191
.navbar-link {
185192
padding-right: 2.5em;
186193
}
@@ -315,6 +322,10 @@ body {
315322
padding-left: 0;
316323
}
317324

325+
.navbar-item .icon img {
326+
filter: invert(100%);
327+
}
328+
318329
.navbar-dropdown {
319330
background: var(--navbar-menu-background);
320331
border: 1px solid var(--navbar-menu-border-color);

src/img/octicons-16.svg

Lines changed: 0 additions & 3 deletions
Loading

src/partials/header-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
</div>
8787
--}}
8888
<a class="navbar-item" href="https://github.com/asciidoctor" target="_blank" rel="noopener">
89-
<span class="icon"><img src="{{{uiRootPath}}}/img/octicons-16.svg#view-mark-github-w"></span>
89+
<span class="icon"><img src="{{{uiRootPath}}}/img/octicons-16.svg#view-mark-github"></span>
9090
</a>
9191
</div>
9292
</div>

0 commit comments

Comments
 (0)