From 04ced15d8aaaa2925dad8758df7283d35b8dcb07 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sat, 8 Aug 2020 21:14:25 +0800 Subject: [PATCH] Fix darkmode post-gallery image opacity --- source/css/_common/components/post/post-gallery.styl | 2 ++ source/css/_schemes/Gemini/index.styl | 5 ----- source/css/_schemes/Pisces/_layout.styl | 4 ---- source/css/_schemes/Pisces/index.styl | 4 ++++ 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/source/css/_common/components/post/post-gallery.styl b/source/css/_common/components/post/post-gallery.styl index 0f6ca90..a4240d7 100644 --- a/source/css/_common/components/post/post-gallery.styl +++ b/source/css/_common/components/post/post-gallery.styl @@ -17,6 +17,8 @@ img { height: 100%; object-fit: cover; + // Override darkmode image opacity. + opacity: 1; width: 100%; } } diff --git a/source/css/_schemes/Gemini/index.styl b/source/css/_schemes/Gemini/index.styl index 4cf5516..275481e 100644 --- a/source/css/_schemes/Gemini/index.styl +++ b/source/css/_schemes/Gemini/index.styl @@ -59,11 +59,6 @@ margin-top: 1em; } -// Top main padding from header to posts (default 40px). -.post-block:first-of-type { - padding-top: initial; -} - // Post delimiters. .post-eof { display: none; diff --git a/source/css/_schemes/Pisces/_layout.styl b/source/css/_schemes/Pisces/_layout.styl index c11acd2..4ce5448 100644 --- a/source/css/_schemes/Pisces/_layout.styl +++ b/source/css/_schemes/Pisces/_layout.styl @@ -48,10 +48,6 @@ } } -.post-block:first-of-type { - padding-top: 40px; -} - .footer-inner { if (hexo-config('sidebar.position') == 'right') { diff --git a/source/css/_schemes/Pisces/index.styl b/source/css/_schemes/Pisces/index.styl index 959b7ae..df10b18 100644 --- a/source/css/_schemes/Pisces/index.styl +++ b/source/css/_schemes/Pisces/index.styl @@ -3,3 +3,7 @@ @import '_menu'; @import '_sub-menu'; @import '_sidebar'; + +.post-block:first-of-type { + padding-top: 40px; +}