Skip to content

Commit

Permalink
fix(wikieditor-highlight): 适配MoeSkin
Browse files Browse the repository at this point in the history
为了方便以后管理和添加更多样式,还是单独建了个CSS页面
  • Loading branch information
bhsd-harry committed Jan 19, 2024
1 parent 05f2bdb commit e43e8d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* TODO: MW升级后WikiEditor扩展自带这条样式 */
.wikiEditor-ui-toolbar {
z-index: 7;
}

/* 修复MoeSkin */
#mw-content-text .cm-panel-lint > ul {
margin-left: 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
if (!["edit", "submit"].includes(mw.config.get("wgAction")) || mw.config.get("wgPageContentModel") !== "wikitext") {
return;
}
mw.loader.addStyleTag(".wikiEditor-ui-toolbar{z-index:7}");
await $.ready;

const localObjectStorage = new LocalObjectStorage("wikieditor-highlight");
Expand Down
1 change: 1 addition & 0 deletions src/gadgets/wikieditor-highlight/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ _section: editing

_files:
- MediaWiki:Gadget-wikieditor-highlight.js
- MediaWiki:Gadget-wikieditor-highlight.css

0 comments on commit e43e8d9

Please sign in to comment.