From 712efb6d882745ed0a047bb4f4c75d2799bc88d8 Mon Sep 17 00:00:00 2001 From: AwAjie <139576615+ajdgg@users.noreply.github.com> Date: Fri, 18 Oct 2024 21:36:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(SkinCitizen=5FCSS):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=A0=8F=E6=A0=B7=E5=BC=8F=E5=92=8C=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=83=8C=E6=99=AF=E8=89=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复了工具栏样式,防止在无内容时显示 - 优化了图片背景色设置,适应深色模式 - 调整了代码格式,提高了可读性 --- src/SkinCitizen_CSS/SkinCitizen_CSS.less | 2 +- src/SkinCitizen_CSS/modules/fix-toolbar.less | 6 ++---- src/SkinCitizen_CSS/modules/patch-one.less | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/src/SkinCitizen_CSS/SkinCitizen_CSS.less b/src/SkinCitizen_CSS/SkinCitizen_CSS.less index 9513522..1f8afaa 100644 --- a/src/SkinCitizen_CSS/SkinCitizen_CSS.less +++ b/src/SkinCitizen_CSS/SkinCitizen_CSS.less @@ -21,4 +21,4 @@ @import './modules/visualeditor.less'; @import './modules/wikilove.less'; @import './modules/fix-toolbar.less'; -@import './modules/patch-one.less' +@import './modules/patch-one.less'; diff --git a/src/SkinCitizen_CSS/modules/fix-toolbar.less b/src/SkinCitizen_CSS/modules/fix-toolbar.less index 3f8dbe0..21cc49c 100644 --- a/src/SkinCitizen_CSS/modules/fix-toolbar.less +++ b/src/SkinCitizen_CSS/modules/fix-toolbar.less @@ -6,10 +6,8 @@ } // 更新toolbar样式,防止在无内容时显示。 by awajie -#contentSub { - .subpages { - .toolbar-fix(); - } +#mw-content-subtitle { + .toolbar-fix(); &:empty { display: none; } diff --git a/src/SkinCitizen_CSS/modules/patch-one.less b/src/SkinCitizen_CSS/modules/patch-one.less index fb910c2..aabfe64 100644 --- a/src/SkinCitizen_CSS/modules/patch-one.less +++ b/src/SkinCitizen_CSS/modules/patch-one.less @@ -1,13 +1,13 @@ // 修复图片背景色。 by awajie .client-darkmode { - &[typeof~='mw:File'] img, - &[typeof~='mw:File/Thumb'] img, - &[typeof~='mw:File/Frame'] img, - &[typeof~='mw:File/Frameless'] img, - .mw-halign-left img, - .mw-halign-right img, - .mw-halign-center img { - width: auto; - background: rgba(0, 0, 0, 0) !important; - } + [typeof~='mw:File'] img, + [typeof~='mw:File/Thumb'] img, + [typeof~='mw:File/Frame'] img, + [typeof~='mw:File/Frameless'] img, + .mw-halign-left img, + .mw-halign-right img, + .mw-halign-center img { + width: auto; + background: rgba(0, 0, 0, 0) !important; + } }