Move logo inside first nav <a>
This commit is contained in:
parent
7338de98a5
commit
5c8c037417
2 changed files with 11 additions and 12 deletions
|
|
@ -77,12 +77,11 @@ nav>* {
|
||||||
border-right: 0.1em solid black;
|
border-right: 0.1em solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav> :first-child {
|
nav>:first-child {
|
||||||
padding: 0;
|
padding-left: 0;
|
||||||
border: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nav> :last-child {
|
nav>:last-child {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
@ -91,6 +90,13 @@ nav>.current {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav>:first-child img {
|
||||||
|
width: 1.2em;
|
||||||
|
height: 1.2em;
|
||||||
|
vertical-align: -20%;
|
||||||
|
padding-right: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
nav a {
|
nav a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
@ -99,12 +105,6 @@ nav a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav img {
|
|
||||||
width: 1.2em;
|
|
||||||
height: 1.2em;
|
|
||||||
vertical-align: -20%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Commit */
|
/* Commit */
|
||||||
|
|
||||||
.commit * {
|
.commit * {
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,8 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="{{ base.root }}/"><img src="{{ base.root }}/logo.svg"></a>
|
|
||||||
<a href="{{ base.root }}/" {% if base.current=="index" %} class="current" {% endif %}>
|
<a href="{{ base.root }}/" {% if base.current=="index" %} class="current" {% endif %}>
|
||||||
{{ base.repo_name }}
|
<img src="{{ base.root }}/logo.svg" alt="">{{ base.repo_name }}
|
||||||
</a>
|
</a>
|
||||||
<a href="{{ base.root }}/commit/" {% if base.current=="commit" %} class="current" {% endif %}>
|
<a href="{{ base.root }}/commit/" {% if base.current=="commit" %} class="current" {% endif %}>
|
||||||
commit
|
commit
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue