From bccd3bedfa251fb050fa7690b7dc7ec581d9c9b1 Mon Sep 17 00:00:00 2001 From: kogeletey <kg@re128.org> Date: Thu, 19 May 2022 14:12:54 +0300 Subject: [PATCH] sass: change font-sixe and padding footer. templates: slightly corrected after formatting --- sass/layouts/_footer.scss | 5 +++++ templates/404.html | 10 ++++++---- templates/page.html | 19 ++++++++++++------- templates/section.html | 12 ++++++------ 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/sass/layouts/_footer.scss b/sass/layouts/_footer.scss index 82d35ce..f66e317 100644 --- a/sass/layouts/_footer.scss +++ b/sass/layouts/_footer.scss @@ -1,8 +1,13 @@ footer { width: 100%; + position: relative; + bottom: 0; + padding-top: 0.25rem; + padding-bottom: 0.25rem; background-color: var(--white); border-top: 1px solid; border-color: $dark1; + font-size: 16px; color: var(--black); ul { display: flex; diff --git a/templates/404.html b/templates/404.html index b6e7e09..29058c9 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,7 +1,9 @@ -{% extends 'base.html' %} {% block styles %} {{ -macros::styles(file='section.css') }} {% endblock styles %} {% block htmltitle -%} 404 Page Not Found {% endblock htmltitle %} {% block header %} -{{macros::header(current_url="/")}} {% endblock header %} {% block content %} +{% extends 'base.html' %} +{% block styles %} {{macros::styles(file='section.css') }} {% endblock styles %} +{% block htmltitle%} 404 Page Not Found {% endblock htmltitle %} +{# set specifically so that there are no problems #} +{% block header %} {{macros::header(current_url="/")}} {% endblock header %} +{% block content %} <div class="error"> <h1>404</h1> <h2>Page Not Found</h2> diff --git a/templates/page.html b/templates/page.html index ef88b69..7c449a0 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,6 +1,8 @@ -{% extends "base.html" %} {% block styles %} {{ macros::styles(file='page.css') -}} {% endblock styles %} {% block htmltitle %} {{ page.title }} {% endblock -htmltitle %} {% block content %} +{% extends "base.html" %} +{# import styles for page #} +{% block styles %} {{ macros::styles(file='page.css')}} {% endblock styles %} +{% block htmltitle %} {{ page.title }} {% endblock htmltitle %} +{% block content %} <main> <div class="show-bar"> <a href="#sidebar" class="sidebar" role="button" x-data="{ open:false}"> @@ -37,11 +39,14 @@ htmltitle %} {% block content %} <h1 class="title">{{ page.title }}</h1> {% block sections %} <ul class="sections"> - {{ page_macros::relative_path() }} {{ page_macros::word_count() }} {{ - page_macros::reading_time() }} {{ page_macros::date() }} {{ - page_macros::taxonomies_authors() }} + {{ page_macros::relative_path() }} + {{ page_macros::word_count() }} + {{ page_macros::reading_time() }} + {{ page_macros::date() }} + {{ page_macros::taxonomies_authors() }} </ul> - {% endblock sections %} {{ page.content | safe }} + {% endblock sections %} + {{ page.content | safe }} </article> {{ page_macros::toc(page=page) }} </main> diff --git a/templates/section.html b/templates/section.html index 9848490..dfb11dc 100644 --- a/templates/section.html +++ b/templates/section.html @@ -1,9 +1,9 @@ -{% extends "base.html" %} {% block styles %} {{ -macros::styles(file='section.css') }} {% endblock styles %} {% block htmltitle -%} {{ macros::title_or_last(component=section) }} - {{ config.title }} {% -endblock htmltitle %} {% block title %} {{ -macros::title_or_last(component=section) }} {% endblock title %} {% block math -%} {{ macros::math() }} {% endblock math %} {% block content %} +{% extends "base.html" %} +{% block styles %} {{macros::styles(file='section.css') }} {% endblock styles %} +{% block htmltitle%} {{ macros::title_or_last(component=section) }} - {{ config.title }} {%endblock htmltitle %} +{% block title %} {{macros::title_or_last(component=section) }} {% endblock title %} +{% block math%} {{ macros::math() }} {% endblock math %} +{% block content %} <section> {% for page in section.pages %} <a href="{{ page.permalink }}"> -- GitLab