Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SkinCitizen_CSS): 修复工具栏样式和图片背景色问题 #38

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}