“MediaWiki:Gadget-prism-coy.css”的版本间的差异

来自萌娘共享
跳转至: 导航搜索
(代码变动:2d5d0ae3 - feat(Gadget/prism): 新的代码高亮工具 (#443) by U:AnnAngela, co-authored-by: GH:github-actions[bot],U:Bhsd
1个标签由机器人或全自动脚本执行的操作
 
1个标签由机器人或全自动脚本执行的操作
 
(未显示同一用户的3个中间版本)
第4行: 第4行:
 
  * -------------------------------------------------------------------------
 
  * -------------------------------------------------------------------------
 
  */
 
  */
._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/prism-core/MediaWiki:Gadget-prism-coy.css|user=[[U:AnnAngela]]|co-authors=GH:github-actions[bot]、[[U:Bhsd]]|longId=2d5d0ae30421796cfa323a02a78713c0ed261417|shortId=2d5d0ae3|summary=feat(Gadget/prism): 新的代码 高亮工具 (#443)|body=<nowiki>Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com>↩Co-authored-by: Bhsd <55071315+bhsd-harry📧users.noreply.github.com></nowiki>}}'; }  
+
._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;
+
    color:black;
background:none;
+
    background:none;
font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
+
    font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size:1em;
+
    font-size:1em;
text-align:left;
+
    text-align:left;
white-space:pre;
+
    white-space:pre;
word-spacing:normal;
+
    word-spacing:normal;
word-break:normal;
+
    word-break:normal;
word-wrap:normal;
+
    word-wrap:normal;
line-height:1.5;
+
    line-height:1.5;
  
-moz-tab-size:4;
+
    -moz-tab-size:4;
-o-tab-size:4;
+
    -o-tab-size:4;
tab-size:4;
+
    tab-size:4;
  
-webkit-hyphens:none;
+
    -webkit-hyphens:none;
hyphens:none;
+
    hyphens:none;
 
}
 
}
pre[class*="language-"]{
+
div#mw-content-text pre[class*="language-"]{
position:relative;
+
    position:relative;
margin:.5em 0;
+
    margin:.5em 0;
overflow:visible;
+
    overflow:visible;
padding:1px;
+
    padding:1px;
 +
    border:none;
 
}
 
}
  
pre[class*="language-"] > code{
+
#mw-content-text pre[class*="language-"]>code{
position:relative;
+
    position:relative;
z-index:1;
+
    z-index:1;
border-left:10px solid #358ccb;
+
    border:none;
box-shadow:-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
+
    border-left:10px solid #358ccb;
background-color:#fdfdfd;
+
    box-shadow:-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
background-image:linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
+
    background-color:#fdfdfd;
background-size:3em 3em;
+
    background-image:linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
background-origin:content-box;
+
    background-size:3em 3em;
background-attachment:local;
+
    background-origin:content-box;
 +
    background-attachment:local;
 
}
 
}
  
code[class*="language-"]{
+
#mw-content-text code[class*="language-"]{
max-height:inherit;
+
    max-height:inherit;
height:inherit;
+
    height:inherit;
padding:0 1em;
+
    padding:0 1em;
display:block;
+
    display:block;
overflow:auto;
+
    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;
+
    background-color:#fdfdfd;
box-sizing:border-box;
+
    box-sizing:border-box;
margin-bottom:1em;
+
    margin-bottom:1em;
 
}
 
}
:not(pre) > code[class*="language-"]{
+
#mw-content-text :not(pre)>code[class*="language-"]{
position:relative;
+
    position:relative;
padding:.2em;
+
    padding:.2em;
border-radius:0.3em;
+
    border-radius:0.3em;
color:#c92c2c;
+
    color:#c92c2c;
border:1px solid rgba(0, 0, 0, 0.1);
+
    border:1px solid rgba(0, 0, 0, 0.1);
display:inline;
+
    display:inline;
white-space:normal;
+
    white-space:normal;
 
}
 
}
  
 
pre[class*="language-"]:before,
 
pre[class*="language-"]:before,
 
pre[class*="language-"]:after{
 
pre[class*="language-"]:after{
content:'';
+
    content:'';
display:block;
+
    display:block;
position:absolute;
+
    position:absolute;
bottom:0.75em;
+
    bottom:0.75em;
left:0.18em;
+
    left:0.18em;
width:40%;
+
    width:40%;
height:20%;
+
    height:20%;
max-height:13em;
+
    max-height:13em;
box-shadow:0px 13px 8px #979797;
+
    box-shadow:0px 13px 8px #979797;
transform:rotate(-2deg);
+
    transform:rotate(-2deg);
 
}
 
}
  
 
pre[class*="language-"]:after{
 
pre[class*="language-"]:after{
right:0.75em;
+
    right:0.75em;
left:auto;
+
    left:auto;
transform:rotate(2deg);
+
    transform:rotate(2deg);
 
}
 
}
  
第95行: 第97行:
 
.token.doctype,
 
.token.doctype,
 
.token.cdata{
 
.token.cdata{
color:#7D8B99;
+
    color:#7D8B99;
 
}
 
}
  
 
.token.punctuation{
 
.token.punctuation{
color:#5F6364;
+
    color:#5F6364;
 
}
 
}
  
第110行: 第112行:
 
.token.symbol,
 
.token.symbol,
 
.token.deleted{
 
.token.deleted{
color:#c92c2c;
+
    color:#c92c2c;
 
}
 
}
  
第120行: 第122行:
 
.token.builtin,
 
.token.builtin,
 
.token.inserted{
 
.token.inserted{
color:#2f9c0a;
+
    color:#2f9c0a;
 
}
 
}
  
第127行: 第129行:
 
.token.url,
 
.token.url,
 
.token.variable{
 
.token.variable{
color:#a67f59;
+
    color:#a67f59;
background:rgba(255, 255, 255, 0.5);
+
    background:rgba(255, 255, 255, 0.5);
 
}
 
}
  
第135行: 第137行:
 
.token.keyword,
 
.token.keyword,
 
.token.class-name{
 
.token.class-name{
color:#1990b8;
+
    color:#1990b8;
 
}
 
}
  
 
.token.regex,
 
.token.regex,
 
.token.important{
 
.token.important{
color:#e90;
+
    color:#e90;
 
}
 
}
  
 
.language-css .token.string,
 
.language-css .token.string,
 
.style .token.string{
 
.style .token.string{
color:#a67f59;
+
    color:#a67f59;
background:rgba(255, 255, 255, 0.5);
+
    background:rgba(255, 255, 255, 0.5);
 
}
 
}
  
 
.token.important{
 
.token.important{
font-weight:normal;
+
    font-weight:normal;
 
}
 
}
  
 
.token.bold{
 
.token.bold{
font-weight:bold;
+
    font-weight:bold;
 
}
 
}
 +
 
.token.italic{
 
.token.italic{
font-style:italic;
+
    font-style:italic;
 
}
 
}
  
 
.token.entity{
 
.token.entity{
cursor:help;
+
    cursor:help;
 
}
 
}
  
 
.token.namespace{
 
.token.namespace{
opacity:.7;
+
    opacity:.7;
 
}
 
}
  
 
@media screen and (max-width: 767px){
 
@media screen and (max-width: 767px){
pre[class*="language-"]:before,
+
 
pre[class*="language-"]:after{
+
    pre[class*="language-"]:before,
bottom:14px;
+
    pre[class*="language-"]:after{
box-shadow:none;
+
        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;
+
    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;
+
    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;
+
    left:0;
}
 
pre[class*="language-"][data-line]{
 
padding-top:0;
 
padding-bottom:0;
 
padding-left:0;
 
}
 
pre[data-line] code{
 
position:relative;
 
padding-left:4em;
 
}
 
pre .line-highlight{
 
margin-top: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> */