From 8d5596996cd7d27ba315004cb8aa39b17c51a4bc Mon Sep 17 00:00:00 2001 From: Kirikaze Chiyuki Date: Sun, 24 Dec 2023 16:58:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[style]=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/css/_layout/list.styl | 13 ++++++++++++- source/css/_layout/tag-plugins/bvideo.styl | 6 ++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/source/css/_layout/list.styl b/source/css/_layout/list.styl index c1635a5..45ee7a9 100644 --- a/source/css/_layout/list.styl +++ b/source/css/_layout/list.styl @@ -108,7 +108,18 @@ position: absolute line-height: 1.2 width: 'calc(100% - %s * 2)' % 1rem - color: var(--text-p0) + color: var(--text-revert) + &:not(.cover-no-shadow) + text-shadow: 1px 1px 2px var(--text-p0) + if hexo-config('style.darkmode') == 'auto' + @media (prefers-color-scheme: dark) + color: var(--text-p0) + &:not(.cover-no-shadow) + text-shadow: 1px 1px 2px var(--theme-bg) + if hexo-config('style.darkmode') == 'always' + color: var(--text-p0) + &:not(.cover-no-shadow) + text-shadow: 1px 1px 2px var(--theme-bg) &[position=top] top: 0 &:not(.cover-no-shadow) diff --git a/source/css/_layout/tag-plugins/bvideo.styl b/source/css/_layout/tag-plugins/bvideo.styl index 93224b7..67e4544 100644 --- a/source/css/_layout/tag-plugins/bvideo.styl +++ b/source/css/_layout/tag-plugins/bvideo.styl @@ -70,8 +70,6 @@ background-position: 50% background-repeat: no-repeat - @media (max-width: 768px) - display: none @css { .tag_plugin.bvideo .bvideo-info { @@ -144,8 +142,8 @@ padding-left: 35px top: 73px - @media (max-width: 768px) - display: none + @media (max-width: 768px) + max-width: inherit .tag_plugin.bvideo .icon-video