Move logo inside first nav <a>

This commit is contained in:
Joscha 2023-08-10 17:08:27 +02:00
parent 7338de98a5
commit 5c8c037417
2 changed files with 11 additions and 12 deletions

View file

@ -78,8 +78,7 @@ nav>* {
} }
nav>:first-child { nav>:first-child {
padding: 0; padding-left: 0;
border: none;
} }
nav>:last-child { nav>:last-child {
@ -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 * {

View file

@ -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