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;
|
||||
}
|
||||
|
||||
nav> :first-child {
|
||||
padding: 0;
|
||||
border: none;
|
||||
nav>:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
nav> :last-child {
|
||||
nav>:last-child {
|
||||
padding-right: 0;
|
||||
border: none;
|
||||
}
|
||||
|
|
@ -91,6 +90,13 @@ nav>.current {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
nav>:first-child img {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
vertical-align: -20%;
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
nav a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
@ -99,12 +105,6 @@ nav a:hover {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
nav img {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
vertical-align: -20%;
|
||||
}
|
||||
|
||||
/* Commit */
|
||||
|
||||
.commit * {
|
||||
|
|
|
|||
|
|
@ -12,9 +12,8 @@
|
|||
|
||||
<body>
|
||||
<nav>
|
||||
<a href="{{ base.root }}/"><img src="{{ base.root }}/logo.svg"></a>
|
||||
<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 href="{{ base.root }}/commit/" {% if base.current=="commit" %} class="current" {% endif %}>
|
||||
commit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue