Skip to content

Commit

Permalink
更新样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdgg committed Oct 18, 2024
1 parent 286b120 commit 26fb5d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/SkinCitizen_CSS/SkinCitizen_CSS.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
@import './modules/visualeditor.less';
@import './modules/wikilove.less';
@import './modules/fix-toolbar.less';
@import './modules/patch-one.less'
5 changes: 4 additions & 1 deletion src/SkinCitizen_CSS/modules/fix-toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
padding: 5px;
}

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

0 comments on commit 26fb5d3

Please sign in to comment.