Логотип, фон, исправление мигания шрифта

This commit is contained in:
MultiMote 2023-01-01 21:11:39 +03:00
parent 82981887ea
commit 69b2c381bb
4 changed files with 19 additions and 4 deletions

View File

@ -7,9 +7,11 @@
body { body {
font-size: 16px; font-size: 16px;
font-family: $main_font, Helvetica, sans-serif; font-family: $main_font, Helvetica, sans-serif;
font-display: swap;
line-height: normal; line-height: normal;
color: $font-color; color: $font-color;
background: url($page-bg-image) repeat scroll 0 0 $page-bg-color; background-color: $page-bg-color;
// background: url($page-bg-image) repeat scroll 0 0 $page-bg-color;
} }
h1, h1,

View File

@ -3,13 +3,14 @@ $tablet-width: 768px;
$font-color: #333333; $font-color: #333333;
$navbar-color: #2262b1; $navbar-color: #404c5e;
// $navbar-color: #2262b1;
$navbar-text-color: white; $navbar-text-color: white;
$link-color: #00465c; $link-color: #00465c;
$link-hover-color: #0096c4; $link-hover-color: #0096c4;
$tag-color: #728fb6; $tag-color: #728fb6;
$page-bg-color: #784323; $page-bg-color: #dfdfdf;
$page-bg-image: "/images/bg.jpg"; $page-bg-image: "/images/bg.jpg";
$post-bg-color: white; $post-bg-color: white;

View File

@ -16,10 +16,19 @@ nav.navbar {
font-size: 1.5rem; font-size: 1.5rem;
padding: 10px 0; padding: 10px 0;
margin-bottom: 1rem; margin-bottom: 1rem;
}
.logo {
width: 1.5em;
height: 1.5em;
margin-right: 0.5em;
} }
.container { .container {
padding: 0 24px; padding: 0 24px;
display: flex;
align-items: center;
} }
a:link, a:link,

View File

@ -1,7 +1,10 @@
<header> <header>
<nav class="navbar"> <nav class="navbar">
<div class="container"> <div class="container">
<a href="/">Главная</a> <img src="/images/favicon.png" alt="logo" class="logo">
{{if not (eq .RelPermalink "/") }}
<a href="/">На главную</a>
{{end}}
</div> </div>
</nav> </nav>
</header> </header>