From d241c4378f4a28a7fac7d0ef966357a5c73cde8d Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 7 Sep 2021 12:20:17 +0800 Subject: [PATCH] Code style update --- layout/_partials/post/post-footer.njk | 2 +- source/css/_common/components/post/post-followme.styl | 2 +- source/css/_common/components/post/post-header.styl | 1 - source/css/_common/components/post/post-widgets.styl | 2 +- source/css/_common/components/third-party/math.styl | 4 ++-- source/css/_common/scaffolding/tags/blockquote-center.styl | 2 +- source/css/_common/scaffolding/tags/link-grid.styl | 4 ++-- 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/layout/_partials/post/post-footer.njk b/layout/_partials/post/post-footer.njk index 5c92957..55e51e7 100644 --- a/layout/_partials/post/post-footer.njk +++ b/layout/_partials/post/post-footer.njk @@ -1,6 +1,6 @@ {%- if theme.rating.enable %}
-
+
diff --git a/source/css/_common/components/post/post-followme.styl b/source/css/_common/components/post/post-followme.styl index 6b5ad28..825d976 100644 --- a/source/css/_common/components/post/post-followme.styl +++ b/source/css/_common/components/post/post-followme.styl @@ -18,7 +18,7 @@ if (hexo-config('follow_me')) { .social-link { border: 0; - display:inline-block; + display: inline-block; text-align: center; .icon { diff --git a/source/css/_common/components/post/post-header.styl b/source/css/_common/components/post/post-header.styl index 882010e..2bcbe6f 100644 --- a/source/css/_common/components/post/post-header.styl +++ b/source/css/_common/components/post/post-header.styl @@ -14,7 +14,6 @@ .post-edit-link { border-bottom: 0; color: $grey; - display: inline-block; float: right; font-size: $font-size-larger; margin-left: -1.2em; diff --git a/source/css/_common/components/post/post-widgets.styl b/source/css/_common/components/post/post-widgets.styl index 8b64bcd..eea67c8 100644 --- a/source/css/_common/components/post/post-widgets.styl +++ b/source/css/_common/components/post/post-widgets.styl @@ -4,7 +4,7 @@ text-align: center; } -.wp_rating { +.wpac-rating-container { height: 20px; line-height: 20px; margin-top: 10px; diff --git a/source/css/_common/components/third-party/math.styl b/source/css/_common/components/third-party/math.styl index a58f384..7837b3d 100644 --- a/source/css/_common/components/third-party/math.styl +++ b/source/css/_common/components/third-party/math.styl @@ -1,9 +1,9 @@ if (hexo-config('math.mathjax.enable')) { - mjx-container[jax="CHTML"][display="true"], .has-jax { + mjx-container[jax='CHTML'][display='true'], .has-jax { overflow: auto hidden; } - mjx-container[display="true"] + br { + mjx-container[display='true'] + br { display: none; } } diff --git a/source/css/_common/scaffolding/tags/blockquote-center.styl b/source/css/_common/scaffolding/tags/blockquote-center.styl index 0982647..f391a6b 100644 --- a/source/css/_common/scaffolding/tags/blockquote-center.styl +++ b/source/css/_common/scaffolding/tags/blockquote-center.styl @@ -1,6 +1,6 @@ // Blockquote with all children centered. .blockquote-center { - border-left: none; + border-left: 0; margin: 40px 0; padding: 0; position: relative; diff --git a/source/css/_common/scaffolding/tags/link-grid.styl b/source/css/_common/scaffolding/tags/link-grid.styl index ef5033b..1c736af 100644 --- a/source/css/_common/scaffolding/tags/link-grid.styl +++ b/source/css/_common/scaffolding/tags/link-grid.styl @@ -1,8 +1,8 @@ .post-body .link-grid { display: grid; // https://caniuse.com/mdn-css_properties_gap_grid_context - grid-gap: 1.5rem 1.5rem; - gap: 1.5rem 1.5rem; + grid-gap: 1.5rem; + gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-bottom: 20px; padding: 1rem;