Skip to content

Commit 14c7543

Browse files
GuillaumeGomezsyphar
authored andcommitted
Align icons and text in about pages menu
1 parent 8f99033 commit 14c7543

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

templates/header/topbar_end.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
The docs.rs dropdown menu
1010
#}<li class="pure-menu-item pure-menu-has-children">
1111
<a href="#" class="pure-menu-link" aria-label="docs.rs">docs.rs</a>
12-
<ul class="pure-menu-children">
12+
<ul class="pure-menu-children aligned-icons">
1313
{%- call macros::menu_link_with_icon_solid(
1414
href="/about",
1515
text="About docs.rs",

templates/style/style.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@ div.container {
215215
}
216216
}
217217

218+
ul.aligned-icons .fa {
219+
width: 1.5em;
220+
display: inline-flex;
221+
}
222+
223+
ul.aligned-icons .fa::before {
224+
margin: 0 auto;
225+
}
226+
218227
body.centered div.container {
219228
margin: 0 auto;
220229
}

0 commit comments

Comments
 (0)