From ce015c11b324733f3277cdf21bf3a8b472029bba Mon Sep 17 00:00:00 2001 From: Morgan Date: Tue, 7 Nov 2023 19:59:46 +0900 Subject: [PATCH] Fix --- themes/oldtheme/assets/css/common/footer.css | 37 +++++++++---------- .../oldtheme/assets/css/common/post-entry.css | 13 ++++--- .../oldtheme/assets/css/core/theme-vars.css | 2 +- themes/oldtheme/layouts/partials/footer.html | 8 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/themes/oldtheme/assets/css/common/footer.css b/themes/oldtheme/assets/css/common/footer.css index 5addb1e..4bc3178 100644 --- a/themes/oldtheme/assets/css/common/footer.css +++ b/themes/oldtheme/assets/css/common/footer.css @@ -22,31 +22,28 @@ } .footer a { - color: inherit; - border-bottom: 1px solid var(--secondary); + color: var(--primary); } .footer a:hover { - border-bottom: 1px solid var(--primary); + text-decoration: underline; } .top-link { - visibility: hidden; - position: fixed; - bottom: 60px; - right: 30px; - z-index: 99; - background: var(--tertiary); - width: 42px; - height: 42px; - padding: 12px; - border-radius: 64px; - transition: visibility 0.5s, opacity 0.8s linear; -} - -.top-link, -.top-link svg { - filter: drop-shadow(0px 0px 0px var(--theme)); + visibility: hidden; + position: fixed; + bottom: 60px; + right: 30px; + z-index: 99; + border: none; + outline: none; + background-color: var(--tertiary); + color: black; + cursor: pointer; + padding: 10px; + border-radius: 5px; + font-size: 18px; + transition: visibility 0.5s, opacity 0.8s linear; } .footer a:hover, @@ -57,4 +54,4 @@ .top-link:focus, #theme-toggle:focus { outline: 0; -} +} \ No newline at end of file diff --git a/themes/oldtheme/assets/css/common/post-entry.css b/themes/oldtheme/assets/css/common/post-entry.css index 99bda23..6b75407 100644 --- a/themes/oldtheme/assets/css/common/post-entry.css +++ b/themes/oldtheme/assets/css/common/post-entry.css @@ -6,8 +6,8 @@ align-items: center; min-height: 320px; height: calc(100vh - var(--header-height) * 2 - var(--gap) * 1); - margin: 0 0 calc(var(--header-height) + var(--gap) * 3) 0; - border-bottom: solid 1px #EFEFEF; + margin: 0 0 calc(var(--header-height) + var(--gap) * 2) 0; + border-bottom: solid 2px var(--entry); } .first-entry .entry-header { @@ -33,15 +33,16 @@ width: 80%; padding: 4px 0; margin: 0 auto; - border-radius: 32px; display: flex; justify-content: center; - border-top: solid 1px #DDD; - bottom: 0; + bottom: var(--gap); font-size: 14px; } -.posts-entry-div { +.post-entry-title { + + padding: var(--gap); + } .home-info .entry-content { diff --git a/themes/oldtheme/assets/css/core/theme-vars.css b/themes/oldtheme/assets/css/core/theme-vars.css index 3b50d40..f05f6b4 100644 --- a/themes/oldtheme/assets/css/core/theme-vars.css +++ b/themes/oldtheme/assets/css/core/theme-vars.css @@ -7,7 +7,7 @@ --footer-height: 60px; --radius: 8px; --theme: white; - --entry: white; + --entry: #EEE; --primary: #242424; --secondary: rgb(108, 108, 108); --tertiary: rgb(214, 214, 214); diff --git a/themes/oldtheme/layouts/partials/footer.html b/themes/oldtheme/layouts/partials/footer.html index 4609245..ed0dd00 100644 --- a/themes/oldtheme/layouts/partials/footer.html +++ b/themes/oldtheme/layouts/partials/footer.html @@ -4,14 +4,16 @@ {{ site.Copyright | markdownify }} {{- else }} © {{ now.Year }} {{ site.Title }} -
- Build date: {{ site.Params.buildDate }} +
+ Build date: {{ site.Params.buildDate }} + Toggle Theme +
{{- end }} {{- end }} {{- if (not site.Params.disableScrollToTop) }} -^ + {{- end }} {{- partial "extend_footer.html" . }}