“MediaWiki:Common.css”的版本间的差异

来自个人维基
跳转至: 导航搜索
第6行: 第6行:
  
 
body,
 
body,
#firstHeading {
+
#firstHeading,
     font-family: sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+
:lang(cmn) {
 +
     font-family: '思源黑体 CN',
 +
        '苹方-简',
 +
        '微软雅黑',
 +
        system-ui,
 +
        -apple-system,
 +
        BlinkMacSystemFont,
 +
        "Segoe UI",
 +
        Roboto,
 +
        "Helvetica Neue",
 +
        Arial,
 +
        "Noto Sans",
 +
        "Liberation Sans",
 +
        sans-serif,
 +
        "Apple Color Emoji",
 +
        "Segoe UI Emoji",
 +
        "Segoe UI Symbol",
 +
        "Noto Color Emoji";
 +
}
 +
 
 +
*[lang]:not(:lang(cmn)) {
 +
    font-family: system-ui,
 +
        -apple-system,
 +
        BlinkMacSystemFont,
 +
        "Segoe UI",
 +
        Roboto,
 +
        "Helvetica Neue",
 +
        Arial,
 +
        "Noto Sans",
 +
        "Liberation Sans",
 +
        sans-serif,
 +
        "Apple Color Emoji",
 +
        "Segoe UI Emoji",
 +
        "Segoe UI Symbol",
 +
        "Noto Color Emoji";
 
}
 
}
  

2021年6月14日 (一) 12:24的版本

 
/**
 * 版权协定:知识共享 署名-非商业性使用-相同方式共享 3.0
 * 部分代码来自萌娘百科,原文:http://zh.moegirl.org/MediaWiki:Common.css
 */
 
body,
#firstHeading,
:lang(cmn) {
    font-family: '思源黑体 CN',
        '苹方-简',
        '微软雅黑',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        "Liberation Sans",
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
}
 
*[lang]:not(:lang(cmn)) {
    font-family: system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        "Liberation Sans",
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        "Segoe UI Symbol",
        "Noto Color Emoji";
}
 
#bodyContent {
    font-size: unset;
    font-family: unset;
}
 
#mw-page-base,
#mw-page-base-master {
    background: linear-gradient(#398, #f6f6f6 50%);
}
 
#searchform input[type=submit] {
    background: linear-gradient(#f0f0f0, #e0e0e0);
    border-radius: 3px;
    border: 1px solid #c0c0c0;
    padding: 2px 5px;
}
 
#wpTextbox1 {
    font-family: SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace !important;
}
 
#wpSave,
.lnnblog-button-blue {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(#4060ff, #3040ff);
    color: white;
    border-radius: 3px;
    border: 2px solid #1c2880;
}
#wpPreview,
#wpDiff,
.lnnblog-button-white {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(#f0f0f0, #e0e0e0);
    color: black;
    border-radius: 3px;
    border: 2px solid #c0c0c0;
}
.lnnblog-button-red {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(#ff6040, #ff4030);
    color: black;
    border-radius: 3px;
    border: 2px solid #c0c0c0;
}
 
pre {
    overflow-x: auto;
    overflow-y: hidden;
}