From ddc4aa92e68a01b9bcbfa74d0a9e96b95249a1f7 Mon Sep 17 00:00:00 2001 From: teldra Date: Thu, 16 Jun 2022 01:00:58 +0200 Subject: [PATCH] small fixes --- themes/buha/assets/scss/footer.scss | 18 +++++----- .../layouts/partials/snippets/footer.html | 34 +++++++++++-------- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/themes/buha/assets/scss/footer.scss b/themes/buha/assets/scss/footer.scss index f1c4e256..0b852d02 100644 --- a/themes/buha/assets/scss/footer.scss +++ b/themes/buha/assets/scss/footer.scss @@ -1,32 +1,34 @@ .footer { - flex-grow: 0; display: flex; - justify-content: space-between; - flex-wrap: wrap; - margin-top: 1rem; + flex-direction: column; width: 98vw; margin-left: auto; margin-right: auto; - flex-direction: column-reverse; .infobox { display: flex; flex-direction: column; text-align: center; - a { - margin-top: 1em; - } } + a { + margin-top: .8em; + } } + @media (min-width: 640px) { .footer { max-width: 89%; margin-left: auto; margin-right: auto; flex-direction: row; + justify-content: space-between; .infobox { text-align: left; + flex-direction: column; } + .a { order: 2;} + .b { order: 3;} + .c { order: 1;} } } diff --git a/themes/buha/layouts/partials/snippets/footer.html b/themes/buha/layouts/partials/snippets/footer.html index 228d15cf..69ba02e0 100644 --- a/themes/buha/layouts/partials/snippets/footer.html +++ b/themes/buha/layouts/partials/snippets/footer.html @@ -1,15 +1,5 @@ -{{- if eq site.Params.contact true }} -
- {{ $contact := "Contact" }} - {{ if i18n "contact" }} - {{ $contact = i18n "contact" }} - {{ end }} - {{- $contact | strings.FirstUpper -}}: - {{- partial "snippets/contact" -}} -
-{{- end -}} -
+
{{- if eq site.Params.archive true -}} {{ $archive := "Archive" }} {{ if i18n "archive" }} @@ -40,16 +30,32 @@ {{- end -}}
-
+
Misc {{- if or (in .Site.Params.mainMenu .Section) -}} {{- with .OutputFormats.Get "rss" -}} {{- if .Permalink -}} {{- printf `` .Permalink | safeHTML -}} {{- end -}} - RSS - {{- end -}} + RSS + {{- if .Permalink -}} + + {{- end -}} + {{- end -}} {{ end }} Sourcecode
+ +{{- if eq site.Params.contact true }} +
+ {{ $contact := "Contact" }} + {{ if i18n "contact" }} + {{ $contact = i18n "contact" }} + {{ end }} + {{- $contact | strings.FirstUpper -}}: +
+ {{- partial "snippets/contact" -}} +
+
+{{- end -}}