fix(navbar): Correct the look of navigation links

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-12-16 17:22:26 +04:00
parent 543fb8d259
commit 0645f56405
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 10 additions and 13 deletions

View File

@ -4,7 +4,9 @@
<ul class="nav-pills"> <ul class="nav-pills">
{% unless page.url == "/index.html" %} {% unless page.url == "/index.html" %}
<li role="presentation"> <li role="presentation">
<strong>
<a class="nav-link" href="/">Home</a> <a class="nav-link" href="/">Home</a>
</strong>
</li> </li>
{% endunless %} {% endunless %}
@ -12,9 +14,11 @@
<ul class="nav-pills nav-right"> <ul class="nav-pills nav-right">
{% for page in pages %} {% for page in pages %}
<li role="presentation"> <li role="presentation">
<strong>
<a class="nav-link" href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}"> <a class="nav-link" href="{{ page.url | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
{{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }} {{ page.title | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape }}
</a> </a>
</strong>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@ -8,26 +8,19 @@
li { li {
float: left; float: left;
padding: .5em; padding: .5em;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
} }
} }
.nav-link { .nav-link {
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-transform: uppercase;
&:active, &:active,
&:focus, &:focus,
&:hover { &:hover {
border: 0; border: 0;
text-decoration: underline; text-decoration: none;
} }
} }