Skip to content

Commit 44bdb32

Browse files
authored
use octicon for menu chevron (PR #69)
1 parent 98ddfda commit 44bdb32

File tree

4 files changed

+43
-95
lines changed

4 files changed

+43
-95
lines changed

src/css/nav.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,14 @@
219219
}
220220

221221
.nav-panel-explore .context .version {
222-
display: flex;
223-
align-items: inherit;
224222
padding-right: 0.25rem;
225223
}
226224

227225
.nav-panel-explore:not(:first-child) .context .version::after {
228226
content: "";
229-
background: url(../img/chevron.svg) no-repeat center right / auto 100%;
230-
width: 1.25em;
231-
height: 0.75em;
227+
background: url(../img/octicons-16.svg#view-chevron-down) no-repeat center right -0.15em / 1em 1em;
228+
filter: invert(36.5%); /* NOTE should match --color-gray-70 */
229+
padding-right: 1.25em;
232230
margin-right: -0.25rem;
233231
}
234232

src/css/page-versions.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,22 @@
1212

1313
.page-versions .version-menu-toggle {
1414
color: inherit;
15-
background: url(../img/chevron.svg) no-repeat;
16-
background-position: right 0.5rem top 50%;
17-
background-size: auto 0.75em;
15+
background-color: transparent;
1816
border: none;
1917
outline: none;
2018
line-height: inherit;
21-
padding: 0.5rem 1.5rem 0.5rem 0.5rem;
19+
padding: 0.5rem;
2220
position: relative;
2321
z-index: var(--z-index-page-version-menu);
2422
}
2523

24+
.page-versions .version-menu-toggle::after {
25+
content: "";
26+
background: url(../img/octicons-16.svg#view-chevron-down) no-repeat center right -0.15em / 1em 1em;
27+
filter: invert(36.5%); /* NOTE should match --color-gray-70 */
28+
padding-right: 1rem;
29+
}
30+
2631
.page-versions .version-menu {
2732
display: flex;
2833
min-width: 100%;

src/img/chevron.svg

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/img/octicons-16.svg

Lines changed: 31 additions & 23 deletions
Loading

0 commit comments

Comments
 (0)