你现在正在访问的是萌娘百科用于保存和管理图片、音频等媒体文件的子项目萌娘共享,想要回到萌娘百科,请使用浏览器上的返回按钮、或点击这里
“MediaWiki:Gadget-prism-coy.css”的版本间的差异
AnnAngela-dbot(讨论 | 贡献) (代码变动:2d5d0ae3 - feat(Gadget/prism): 新的代码高亮工具 (#443) by U:AnnAngela, co-authored-by: GH:github-actions[bot],U:Bhsd) (1个标签:由机器人或全自动脚本执行的操作) |
AnnAngela-dbot(讨论 | 贡献) (1个标签:由机器人或全自动脚本执行的操作) |
||
(未显示同一用户的3个中间版本) | |||
第4行: | 第4行: | ||
* ------------------------------------------------------------------------- | * ------------------------------------------------------------------------- | ||
*/ | */ | ||
− | ._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/prism-core/MediaWiki:Gadget-prism-coy.css|user=[[U: | + | ._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/prism-core/MediaWiki:Gadget-prism-coy.css|user=[[U:Bhsd]]|co-authors=|longId=09e5757a861eb9ac888d45d60c80224cda03c83a|shortId=09e5757a|summary= 修复Prism 高亮工具 的依赖项和Moeskin样式 (#554)|body=<nowiki>* fix(gadget-prism): missing dependency↩↩* fix(gadget-prism-core): styles for Moeskin</nowiki>}}'; } |
/* <pre> */ | /* <pre> */ | ||
− | code[class*="language-"], | + | #mw-content-text code[class*="language-"], |
− | pre[class*="language-"]{ | + | #mw-content-text pre[class*="language-"]{ |
− | + | color:black; | |
− | + | background:none; | |
− | + | font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | |
− | + | font-size:1em; | |
− | + | text-align:left; | |
− | + | white-space:pre; | |
− | + | word-spacing:normal; | |
− | + | word-break:normal; | |
− | + | word-wrap:normal; | |
− | + | line-height:1.5; | |
− | + | -moz-tab-size:4; | |
− | + | -o-tab-size:4; | |
− | + | tab-size:4; | |
− | + | -webkit-hyphens:none; | |
− | + | hyphens:none; | |
} | } | ||
− | pre[class*="language-"]{ | + | div#mw-content-text pre[class*="language-"]{ |
− | + | position:relative; | |
− | + | margin:.5em 0; | |
− | + | overflow:visible; | |
− | + | padding:1px; | |
+ | border:none; | ||
} | } | ||
− | pre[class*="language-"] > code{ | + | #mw-content-text pre[class*="language-"]>code{ |
− | + | position:relative; | |
− | + | z-index:1; | |
− | + | border:none; | |
− | + | border-left:10px solid #358ccb; | |
− | + | box-shadow:-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf; | |
− | + | background-color:#fdfdfd; | |
− | + | background-image:linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%); | |
− | + | background-size:3em 3em; | |
− | + | background-origin:content-box; | |
+ | background-attachment:local; | ||
} | } | ||
− | code[class*="language-"]{ | + | #mw-content-text code[class*="language-"]{ |
− | + | max-height:inherit; | |
− | + | height:inherit; | |
− | + | padding:0 1em; | |
− | + | display:block; | |
− | + | overflow:auto; | |
} | } | ||
− | :not(pre) > code[class*="language-"], | + | #mw-content-text :not(pre)>code[class*="language-"], |
− | pre[class*="language-"]{ | + | #mw-content-text pre[class*="language-"]{ |
− | + | background-color:#fdfdfd; | |
− | + | box-sizing:border-box; | |
− | + | margin-bottom:1em; | |
} | } | ||
− | :not(pre) > code[class*="language-"]{ | + | #mw-content-text :not(pre)>code[class*="language-"]{ |
− | + | position:relative; | |
− | + | padding:.2em; | |
− | + | border-radius:0.3em; | |
− | + | color:#c92c2c; | |
− | + | border:1px solid rgba(0, 0, 0, 0.1); | |
− | + | display:inline; | |
− | + | white-space:normal; | |
} | } | ||
pre[class*="language-"]:before, | pre[class*="language-"]:before, | ||
pre[class*="language-"]:after{ | pre[class*="language-"]:after{ | ||
− | + | content:''; | |
− | + | display:block; | |
− | + | position:absolute; | |
− | + | bottom:0.75em; | |
− | + | left:0.18em; | |
− | + | width:40%; | |
− | + | height:20%; | |
− | + | max-height:13em; | |
− | + | box-shadow:0px 13px 8px #979797; | |
− | + | transform:rotate(-2deg); | |
} | } | ||
pre[class*="language-"]:after{ | pre[class*="language-"]:after{ | ||
− | + | right:0.75em; | |
− | + | left:auto; | |
− | + | transform:rotate(2deg); | |
} | } | ||
第95行: | 第97行: | ||
.token.doctype, | .token.doctype, | ||
.token.cdata{ | .token.cdata{ | ||
− | + | color:#7D8B99; | |
} | } | ||
.token.punctuation{ | .token.punctuation{ | ||
− | + | color:#5F6364; | |
} | } | ||
第110行: | 第112行: | ||
.token.symbol, | .token.symbol, | ||
.token.deleted{ | .token.deleted{ | ||
− | + | color:#c92c2c; | |
} | } | ||
第120行: | 第122行: | ||
.token.builtin, | .token.builtin, | ||
.token.inserted{ | .token.inserted{ | ||
− | + | color:#2f9c0a; | |
} | } | ||
第127行: | 第129行: | ||
.token.url, | .token.url, | ||
.token.variable{ | .token.variable{ | ||
− | + | color:#a67f59; | |
− | + | background:rgba(255, 255, 255, 0.5); | |
} | } | ||
第135行: | 第137行: | ||
.token.keyword, | .token.keyword, | ||
.token.class-name{ | .token.class-name{ | ||
− | + | color:#1990b8; | |
} | } | ||
.token.regex, | .token.regex, | ||
.token.important{ | .token.important{ | ||
− | + | color:#e90; | |
} | } | ||
.language-css .token.string, | .language-css .token.string, | ||
.style .token.string{ | .style .token.string{ | ||
− | + | color:#a67f59; | |
− | + | background:rgba(255, 255, 255, 0.5); | |
} | } | ||
.token.important{ | .token.important{ | ||
− | + | font-weight:normal; | |
} | } | ||
.token.bold{ | .token.bold{ | ||
− | + | font-weight:bold; | |
} | } | ||
+ | |||
.token.italic{ | .token.italic{ | ||
− | + | font-style:italic; | |
} | } | ||
.token.entity{ | .token.entity{ | ||
− | + | cursor:help; | |
} | } | ||
.token.namespace{ | .token.namespace{ | ||
− | + | opacity:.7; | |
} | } | ||
@media screen and (max-width: 767px){ | @media screen and (max-width: 767px){ | ||
− | + | ||
− | + | pre[class*="language-"]:before, | |
− | + | pre[class*="language-"]:after{ | |
− | + | bottom:14px; | |
− | + | box-shadow:none; | |
+ | } | ||
} | } | ||
− | pre[class*="language-"].line-numbers.line-numbers{ | + | #mw-content-text pre[class*="language-"].line-numbers.line-numbers{ |
− | + | padding-left:0; | |
} | } | ||
− | pre[class*="language-"].line-numbers.line-numbers code{ | + | #mw-content-text pre[class*="language-"].line-numbers.line-numbers code{ |
− | + | padding-left:3.8em; | |
} | } | ||
pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows{ | pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows{ | ||
− | + | left:0; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
/* </pre> */ | /* </pre> */ |
2024年10月27日 (日) 08:06的最新版本
/** * ------------------------------------------------------------------------- * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!! * ------------------------------------------------------------------------- */ ._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/prism-core/MediaWiki:Gadget-prism-coy.css|user=[[U:Bhsd]]|co-authors=|longId=09e5757a861eb9ac888d45d60c80224cda03c83a|shortId=09e5757a|summary=修复Prism高亮工具的依赖项和Moeskin样式 (#554)|body=<nowiki>* fix(gadget-prism): missing dependency↩↩* fix(gadget-prism-core): styles for Moeskin</nowiki>}}'; } /* <pre> */ #mw-content-text code[class*="language-"], #mw-content-text pre[class*="language-"]{ color:black; background:none; font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-size:1em; text-align:left; white-space:pre; word-spacing:normal; word-break:normal; word-wrap:normal; line-height:1.5; -moz-tab-size:4; -o-tab-size:4; tab-size:4; -webkit-hyphens:none; hyphens:none; } div#mw-content-text pre[class*="language-"]{ position:relative; margin:.5em 0; overflow:visible; padding:1px; border:none; } #mw-content-text pre[class*="language-"]>code{ position:relative; z-index:1; border:none; border-left:10px solid #358ccb; box-shadow:-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf; background-color:#fdfdfd; background-image:linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%); background-size:3em 3em; background-origin:content-box; background-attachment:local; } #mw-content-text code[class*="language-"]{ max-height:inherit; height:inherit; padding:0 1em; display:block; overflow:auto; } #mw-content-text :not(pre)>code[class*="language-"], #mw-content-text pre[class*="language-"]{ background-color:#fdfdfd; box-sizing:border-box; margin-bottom:1em; } #mw-content-text :not(pre)>code[class*="language-"]{ position:relative; padding:.2em; border-radius:0.3em; color:#c92c2c; border:1px solid rgba(0, 0, 0, 0.1); display:inline; white-space:normal; } pre[class*="language-"]:before, pre[class*="language-"]:after{ content:''; display:block; position:absolute; bottom:0.75em; left:0.18em; width:40%; height:20%; max-height:13em; box-shadow:0px 13px 8px #979797; transform:rotate(-2deg); } pre[class*="language-"]:after{ right:0.75em; left:auto; transform:rotate(2deg); } .token.comment, .token.block-comment, .token.prolog, .token.doctype, .token.cdata{ color:#7D8B99; } .token.punctuation{ color:#5F6364; } .token.property, .token.tag, .token.boolean, .token.number, .token.function-name, .token.constant, .token.symbol, .token.deleted{ color:#c92c2c; } .token.selector, .token.attr-name, .token.string, .token.char, .token.function, .token.builtin, .token.inserted{ color:#2f9c0a; } .token.operator, .token.entity, .token.url, .token.variable{ color:#a67f59; background:rgba(255, 255, 255, 0.5); } .token.atrule, .token.attr-value, .token.keyword, .token.class-name{ color:#1990b8; } .token.regex, .token.important{ color:#e90; } .language-css .token.string, .style .token.string{ color:#a67f59; background:rgba(255, 255, 255, 0.5); } .token.important{ font-weight:normal; } .token.bold{ font-weight:bold; } .token.italic{ font-style:italic; } .token.entity{ cursor:help; } .token.namespace{ opacity:.7; } @media screen and (max-width: 767px){ pre[class*="language-"]:before, pre[class*="language-"]:after{ bottom:14px; box-shadow:none; } } #mw-content-text pre[class*="language-"].line-numbers.line-numbers{ padding-left:0; } #mw-content-text pre[class*="language-"].line-numbers.line-numbers code{ padding-left:3.8em; } pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows{ left:0; } /* </pre> */