Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Update HanSect.css
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoruaFox authored Feb 17, 2024
1 parent 283cf2e commit 6ac6b63
Showing 1 changed file with 40 additions and 29 deletions.
69 changes: 40 additions & 29 deletions src/Gadgets/Interface/HanSect/HanSect.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,63 @@
*
* @source <zh.wikipedia.org/wiki/MediaWiki:Gadget-hantsect.css>
*/
/* 以下页面不进行首行缩进 */
/* 暂无,反正以后可以往这加别的 */

/* 缩进两个字 */
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > p,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > p,
.hansect > p {
text-indent: 2em;
text-indent: 2em;
}

body.ns-subject .mw-parser-output > ul,
body.ns-subject .mw-parser-output > ol,
body.skin-citizen.ns-subject .mw-parser-output > section > ul,
body.skin-citizen.ns-subject .mw-parser-output > section > ol,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > p > *,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > p > *,
.hansect > p > * {
text-indent: 0;
}
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ul,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ul,
.hansect > ul,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ol,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ol,
.hansect > ol {
margin-left: 2em;
}

/* 段落内如有其他元素,则不再缩进 */
body.ns-subject .mw-parser-output > p > *,
body.skin-citizen.ns-subject .mw-parser-output > section > p > *,
.hansect > p > * {
text-indent: 0;
margin-left: 3em;
}

body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ul > *:not(ul):not(ol):not(li),
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ol > *:not(ul):not(ol):not(li),
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ul > *:not(ul):not(ol):not(li),
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ol > *:not(ul):not(ol):not(li),
.hansect > ul > *:not(ul):not(ol):not(li),
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ol > *:not(ul):not(ol):not(li),
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ol > *:not(ul):not(ol):not(li),
.hansect > ol > *:not(ul):not(ol):not(li) {
margin-left: 0;
margin-left: 0;
}
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output ul > li > ul,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section ul > li > ul,
.hansect ul > li > ul,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output ol > li > ul,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section ol > li > ul,
.hansect ol > li > ul,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output ul > li > ol,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section ul > li > ol,
.hansect ul > li > ol,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output ol > li > ol,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section ol > li > ol,
.hansect ol > li > ol {
margin-left: 1em;
}

/* 行距设置 */
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > p,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > p,
body.ns-subject .mw-parser-output > ul,
body.ns-subject .mw-parser-output > ol,
body.skin-citizen.ns-subject .mw-parser-output > section > ul,
body.skin-citizen.ns-subject .mw-parser-output > section > ol,
.hansect > p,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ul,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ul,
.hansect > ul,
body.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > ol,
body.skin-citizen.ns-subject:not(.ext-discussiontools-replytool-enabled):not(.ext-discussiontools-newtopictool-enabled) .mw-parser-output > section > ol,
.hansect > ol {
line-height: 1.75;
line-height: 1.75;
}
.mw-templatedata-doc-wrap p.mw-templatedata-doc-desc {
text-indent: 2em;
}
.mw-templatedata-doc-wrap p.mw-templatedata-doc-desc > * {
text-indent: 0;
}

/* </nowiki> */
/* </nowiki> */

0 comments on commit 6ac6b63

Please sign in to comment.