Skip to content

Commit

Permalink
fix(SkinCitizen_CSS): 修复工具栏样式和图片背景色问题
Browse files Browse the repository at this point in the history
- 修复了工具栏样式,防止在无内容时显示
- 优化了图片背景色设置,适应深色模式
- 调整了代码格式,提高了可读性
  • Loading branch information
ajdgg committed Oct 18, 2024
1 parent 3339520 commit 712efb6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/SkinCitizen_CSS/SkinCitizen_CSS.less
Original file line number Diff line number Diff line change
Expand Up @@ -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';
6 changes: 2 additions & 4 deletions src/SkinCitizen_CSS/modules/fix-toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
}

// 更新toolbar样式,防止在无内容时显示。 by awajie
#contentSub {
.subpages {
.toolbar-fix();
}
#mw-content-subtitle {
.toolbar-fix();
&:empty {
display: none;
}
Expand Down
20 changes: 10 additions & 10 deletions src/SkinCitizen_CSS/modules/patch-one.less
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 712efb6

Please sign in to comment.