From c319ac0e4e222c431533315ffcf21c421bb4f7a0 Mon Sep 17 00:00:00 2001 From: violette Date: Tue, 14 May 2024 01:19:54 -0400 Subject: [PATCH] update css & rules ; footer + favicon work --- .../violette/assets => static}/favicon.ico | Bin themes/violette/assets/css/main.css | 44 +++++++++++++----- themes/violette/assets/js/main.js | 1 - themes/violette/layouts/_default/baseof.html | 2 +- .../violette/layouts/partials/head/css.html | 12 ++--- 5 files changed, 36 insertions(+), 23 deletions(-) rename {themes/violette/assets => static}/favicon.ico (100%) delete mode 100644 themes/violette/assets/js/main.js diff --git a/themes/violette/assets/favicon.ico b/static/favicon.ico similarity index 100% rename from themes/violette/assets/favicon.ico rename to static/favicon.ico diff --git a/themes/violette/assets/css/main.css b/themes/violette/assets/css/main.css index ba99036..ef0145e 100644 --- a/themes/violette/assets/css/main.css +++ b/themes/violette/assets/css/main.css @@ -39,15 +39,19 @@ } .color-scheme-wrapper { - min-height:100vh; - background:var(--bg); + min-height: 100vh; + background-color: var(--bg); transition: 1s all; color:var(--text); } .margin { + min-height: 100vh; padding-left: 20px; padding-right: 20px; + + display: flex; + flex-direction: column; } #color-mode { @@ -58,6 +62,9 @@ body { font-family: sans-serif; line-height: 1.5; margin: 0; + + display: flex; + flex-direction: column; } header { @@ -95,34 +102,36 @@ h3 { footer { border-top: 1px solid #222; - margin-top: 0; + margin-top: auto; + margin-bottom: 5pt; padding-top: 0; width: 100%; - display: flex; - position: sticky; + min-height: 42pt; } .footer { - color: var(--text); - align-items: center; - width: 100%; display: flex; + align-items: center; justify-content: center; + width: 100%; gap: 10px; } .nav { - display: flex; list-style-type: none; margin: 5pt; + + display: flex; + align-items: center; } .nav-right { - display: flex; - align-items:flex-end; - justify-content: flex-end; list-style-type: none; width: 100%; + + display: flex; + align-items: center; + justify-content: flex-end; } li { @@ -132,6 +141,7 @@ li { ul { padding-right: 5pt; + padding-left: 5pt; margin-left: 5pt; } @@ -151,3 +161,13 @@ a, label { width: 100%; display: block; } + +/* resize image that are in main, and center them */ +main img { + max-width: 512pt;; + margin-left:auto; + margin-right:auto; + + display:flex; + float:none; +} diff --git a/themes/violette/assets/js/main.js b/themes/violette/assets/js/main.js deleted file mode 100644 index e2aac52..0000000 --- a/themes/violette/assets/js/main.js +++ /dev/null @@ -1 +0,0 @@ -console.log('This site was generated by Hugo.'); diff --git a/themes/violette/layouts/_default/baseof.html b/themes/violette/layouts/_default/baseof.html index f92650c..a090f76 100644 --- a/themes/violette/layouts/_default/baseof.html +++ b/themes/violette/layouts/_default/baseof.html @@ -7,7 +7,7 @@ {{ end }} - +
diff --git a/themes/violette/layouts/partials/head/css.html b/themes/violette/layouts/partials/head/css.html index 91b928d..6d58395 100644 --- a/themes/violette/layouts/partials/head/css.html +++ b/themes/violette/layouts/partials/head/css.html @@ -1,9 +1,3 @@ -{{- with resources.Get "css/main.css" }} - {{- if eq hugo.Environment "development" }} - - {{- else }} - {{- with . | minify | fingerprint }} - - {{- end }} - {{- end }} -{{- end }} +{{ with resources.Get "css/main.css" }} + +{{ end }}