MediaWiki:Gadget-code-prettify.css

来自萌娘共享
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/**
 * -------------------------------------------------------------------------
 * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
 * -------------------------------------------------------------------------
 */
._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/code-prettify/MediaWiki:Gadget-code-prettify.css|user=[[U:AnnAngela]]|co-authors=|longId=2b957a9748bd20103fa337662c0f27cac182a533|shortId=2b957a9|summary=feat: Remove deprecated media types}}'; } 

/* <pre> */

.pln{
    color:#000;
}

@media screen{
    .str{
        color:#080;
    }

    .kwd{
        color:#008;
    }

    .com{
        color:#800;
    }

    .typ{
        color:#606;
    }

    .lit{
        color:#066;
    }

    .pun,
    .opn,
    .clo{
        color:#660;
    }

    .tag{
        color:#008;
    }

    .atn{
        color:#606;
    }

    .atv{
        color:#080;
    }

    .dec,
    .var{
        color:#606;
    }

    .fun{
        color:red;
    }
}

@media print{
    .str{
        color:#060;
    }

    .kwd{
        color:#006;
        font-weight:bold;
    }

    .com{
        color:#600;
        font-style:italic;
    }

    .typ{
        color:#404;
        font-weight:bold;
    }

    .lit{
        color:#044;
    }

    .pun,
    .opn,
    .clo{
        color:#440;
    }

    .tag{
        color:#006;
        font-weight:bold;
    }

    .atn{
        color:#404;
    }

    .atv{
        color:#060;
    }
}

pre.prettyprint{
    padding:2px;
    border:1px solid #888;
}

ol.linenums{
    margin-top:0;
    margin-bottom:0;
}

li.L1,
li.L3,
li.L5,
li.L7,
li.L9{
    background:#EEE;
}

li.linenums-active{
    background-color:#FFF8C5;
    box-shadow:inset 2px 0 0 #D4A72C66;
}
.skin-minerva pre.prettyprint{
    white-space:pre;
    overflow-x:auto;
}

.skin-minerva pre.prettyprint li{
    margin-bottom:0;
}

.skin-minerva ol.linenums{
    width:-moz-max-content;
    width:max-content;
    min-width:100%;
} 

/* </pre> */