Skip to content

Commit f14075d

Browse files
Merge pull request #324 from Aloso/fix-rust-link
Fix width of nav link to homepage
2 parents e6989da + ce437a2 commit f14075d

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/styles/app.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ section .container {
6363
padding-top: 20px;
6464
}
6565

66-
a.brand {
66+
div.brand {
6767
$v-top: 3px; // for getting the vertical rhythm just right
6868

6969
color: black;
@@ -72,6 +72,11 @@ a.brand {
7272
text-decoration: none;
7373
margin-top: $v-top;
7474

75+
& a {
76+
color: black;
77+
text-decoration: none;
78+
}
79+
7580
img {
7681
width: 80px;
7782
margin-top: -$v-top;

templates/nav.hbs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<nav class="flex flex-row justify-center justify-end-l items-center flex-wrap ph2 pl3-ns pr4-ns">
2-
<a href="https://www.rust-lang.org" class="brand flex-auto w-100 w-auto-l self-start tc tl-l">
3-
<img class="v-mid ml0-l" alt="Rust Logo" src="/images/rust-logo-blk.svg">
4-
<span class="dib ml1 ml0-l">Rust</span>
5-
</a>
2+
<div class="brand flex-auto w-100 w-auto-l self-start tc tl-l">
3+
<a href="https://www.rust-lang.org">
4+
<img class="v-mid ml0-l" alt="Rust Logo" src="/images/rust-logo-blk.svg">
5+
<span class="dib ml1 ml0-l">Rust</span>
6+
</a>
7+
</div>
8+
69
<ul class="nav list w-100 w-auto-l flex flex-none flex-row flex-wrap justify-center justify-end-l items-center pv2 ph0 ph4-ns">
710
<li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/tools/install">Install</a></li>
811
<li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/learn">Learn</a></li>

0 commit comments

Comments
 (0)