From 8deaaf2d048facf4fe8e8f8c5927af2a1a169b5d Mon Sep 17 00:00:00 2001 From: Reorx Date: Fri, 22 Apr 2022 15:00:00 +0800 Subject: [PATCH] update meta style in home page --- assets/css/common/main.css | 34 +++++++++++++++++++++++++++++++ assets/css/common/post-single.css | 32 +++-------------------------- layouts/partials/post_meta.html | 12 +++++------ 3 files changed, 43 insertions(+), 35 deletions(-) diff --git a/assets/css/common/main.css b/assets/css/common/main.css index 30efab6..c5417e2 100644 --- a/assets/css/common/main.css +++ b/assets/css/common/main.css @@ -82,3 +82,37 @@ div.highlight:hover .copy-code, pre:hover .copy-code { display: block; } + +.meta-item * { + color: var(--secondary); +} + +.meta-item:not(:last-of-type):after { + content: "·"; + margin-inline-start: .3em; + margin-inline-end: .3em; +} + +.meta-item svg { + width: 1em; + height: 1em; + display: inline-block; + vertical-align: -0.15em; +} + +.meta-item a { + transition: var(--link-transition); +} +.meta-item a:hover { + color: var(--primary); + box-shadow: 0 1px 0 var(--secondary); +} +.meta-item .post-tags a:not(:last-of-type) { + margin-inline-end: .3em; +} +.meta-item .post-tags a:not(:last-of-type):after { + content: ","; +} +.meta-item .post-tags a:before { + content: "#"; +} diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 55689f1..8e44c39 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -20,35 +20,6 @@ .breadcrumbs { font-size: 15px; } -.post-meta * { - color: var(--secondary); -} - -.post-meta .item:not(:last-of-type):after { - content: "·"; - margin-inline-start: .3em; - margin-inline-end: .3em; -} - -.post-meta svg { - width: 1em; - height: 1em; - display: inline-block; - vertical-align: -0.15em; -} - -.post-tags a:hover { - color: var(--primary); -} -.post-tags a:not(:last-of-type) { - margin-inline-end: .3em; -} -.post-tags a:not(:last-of-type):after { - content: ","; -} -.post-tags a:before { - content: "#"; -} .breadcrumbs { display: flex; @@ -467,6 +438,9 @@ h6:hover .anchor { width: 50%; } +.paginav a span { + transition: var(--link-transition); +} .paginav a:hover span:not(.title) { box-shadow: 0 1px 0; } diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index b7eed17..776ecf8 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -1,6 +1,6 @@ {{- if not .Date.IsZero -}} - + {{ .Date | time.Format (default "January 2, 2006" site.Params.DateFormat) }} @@ -8,7 +8,7 @@ {{- if .Params.tags }} - +