style adaptions, some style fixes

This commit is contained in:
Norman Köhring 2023-02-06 12:09:29 +01:00
parent 78c676bbda
commit ea3d1d2f11
9 changed files with 101 additions and 124 deletions

View file

@ -68,10 +68,10 @@ body{
} }
.content { .content {
max-width: var(--max-layout-width); max-width: var(--max-layout-width);
margin: 0 auto; margin: 3rem auto 1rem;
padding: 0 24px; padding: 0 24px;
word-wrap: break-word; word-wrap: break-word;
min-height: 80vh; min-height: calc(100vh - 10rem - 1px);
} }
@media only screen and (max-width:1000px) { @media only screen and (max-width:1000px) {
.content{ .content{

View file

@ -1,19 +1,8 @@
footer { footer {
background-color: var(--navbar-color); height: 3rem;
border-top: 1px solid var(--light-border-color); border-top: 1px solid var(--light-border-color);
padding: 3rem 0; background-color: var(--navbar-color);
font-family: var(--post-font-family); font-family: var(--post-font-family);
margin-top: 1rem; text-align: center;
} line-height: 3;
footer section {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.25rem;
}
footer nav {
display: flex;
gap: 0.25rem;
margin: 0 1rem;
} }

View file

@ -1,8 +1,8 @@
.page-header { .page-header {
margin: 4rem 0px 1rem 0px;
font-size: 3em; font-size: 3em;
line-height: 100%; line-height: 100%;
font-family: var(--header-font); font-family: var(--header-font);
margin: 4rem 0px 1rem 0px;
} }
.centered-header { .centered-header {
@ -16,8 +16,9 @@
font-size: 1em; font-size: 1em;
} }
header { body > header {
width: 100%; width: 100%;
height: 3rem;
background-color: var(--navbar-color); background-color: var(--navbar-color);
} }
.navbar{ .navbar{
@ -55,11 +56,12 @@ header {
color: var(--text-color); color: var(--text-color);
padding: 5px; padding: 5px;
border-radius: 5px; border-radius: 5px;
transition:100ms; transition: transform .2s ease-out, background .3s ease, color .3s ease;
} }
.nav-links:hover { .nav-links:hover {
color: var(--links); color: var(--links);
background-color: var(--secondary-color); background-color: var(--secondary-color);
transform: translateY(.5em);
} }
header .main { header .main {
display: flex; display: flex;
@ -77,6 +79,8 @@ header .main {
border: none; border: none;
} }
.home-title { .home-title {
display: inline-block;
padding: .25em 1em;
font-size: 1.6em; font-size: 1.6em;
color: var(--links); color: var(--links);
background-color: var(--secondary-color); background-color: var(--secondary-color);
@ -91,6 +95,7 @@ header .main {
justify-content: flex-start; justify-content: flex-start;
align-items: flex-end; align-items: flex-end;
gap: 6px; gap: 6px;
height: 2em;
} }
.social { .social {
@ -111,8 +116,6 @@ header .main {
letter-spacing: -0.5px; letter-spacing: -0.5px;
} }
@media (prefers-color-scheme: dark) { [data-theme="dark"] .social > img {
.social>img {
filter: invert(1); filter: invert(1);
} }
}

View file

@ -42,7 +42,7 @@ blockquote {
a { a {
color: var(--text-color); color: var(--text-color);
text-decoration-color: var(--links); text-decoration-color: var(--links);
font-weight:1000; font-weight: 600;
} }
a:hover { a:hover {

View file

@ -2,7 +2,7 @@
{% block main_content %} {% block main_content %}
<main class="centered-header"> <main class="centered-header">
{{ post_macros::page_header(title="404")}} <h2>404</h2>
<span>You have reached somewhere I do not know, or I knew and I have hidden it to preserve my sanity</span> <span>You have reached somewhere I do not know, or I knew and I have hidden it to preserve my sanity</span>
</main> </main>
{% endblock main_content %} {% endblock main_content %}

View file

@ -5,7 +5,7 @@
{% set section = get_section(path=section.extra.section_path) %} {% set section = get_section(path=section.extra.section_path) %}
{% endif -%} {% endif -%}
{{ post_macros::page_header(title=section.title) }} <h2>{{ section.title }}</h2>
<main> <main>
{%- if paginator %} {%- if paginator %}

View file

@ -56,13 +56,6 @@
{% endif -%} {% endif -%}
{% endmacro tags %} {% endmacro tags %}
{% macro page_header(title) %}
<h2>
{{ title }}
</h2>
{% endmacro content %}
{% macro page_desc(desc) %} {% macro page_desc(desc) %}
<div id="banner-container-home"> <div id="banner-container-home">
<div id="home-banner-text"> <div id="home-banner-text">
@ -80,19 +73,10 @@
{% macro content(page) %} {% macro content(page) %}
<main> <main>
<article> <article>
<div class="title"> <header class="title">
{#<h1 class="title">{{ page.title }}</h1>#} <h1>{{ page.title }}</h1>
{{ post_macros::page_header(title=page.title) }}
<div class="meta"> <div class="meta">
{% if page.date %}
Posted on <time>{{ page.date | date(format="%Y-%m-%d") }}</time>
{% endif %}
{% if page.draft %}
<span class="draft-label">DRAFT</span>
{% endif %}
{% if page.taxonomies and page.taxonomies.tags %} {% if page.taxonomies and page.taxonomies.tags %}
<div class="post-tags"> <div class="post-tags">
<nav class="nav tags"> <nav class="nav tags">
@ -102,9 +86,15 @@
</nav> </nav>
</div> </div>
{% endif %} {% endif %}
||<span> {{ page.reading_time }} minute read</span> <span>
</div> {% if page.draft %}
<span class="draft-label">DRAFT</span>
{% endif %}
{{ page.word_count }} words ({{ page.reading_time }} minute read)
{% if page.date %}posted on <time>{{ page.date | date(format="%Y-%m-%d") }}</time>{% endif %}
</span>
</div> </div>
</header>
{% if page.extra.tldr %} {% if page.extra.tldr %}
<div class="tldr"> <div class="tldr">

View file

@ -1,10 +1,5 @@
<footer> <footer>
<section> ©2023 Dan Tiskifer | Powered by
<nav> <a href = "https://getzola.org/" rel="noopener noreferrer" target="_blank">Zola</a>
<span className="desktop-only">Made by
<a href = "https://syedzayyan.com/" rel="noopener noreferrer" target="_blank">SZM</a> and powered by
<a href = "https://getzola.org/" rel="noopener noreferrer" target="_blank">Zola</a></span>
</nav>
</section>
<script src="{{ get_url(path='js/main.js', trailing_slash=false) | safe }}"/></script> <script src="{{ get_url(path='js/main.js', trailing_slash=false) | safe }}"/></script>
</footer> </footer>

View file

@ -9,7 +9,7 @@
{{ post_macros::page_desc(desc=section.extra.desc) }} {{ post_macros::page_desc(desc=section.extra.desc) }}
{% endif -%} {% endif -%}
{{ post_macros::page_header(title=section.title) }} <h2>{{ section.title }}</h2>
<main class="list"> <main class="list">
{%- if paginator %} {%- if paginator %}