MediaWiki:Common.css:修订间差异

Plmxs42​(留言 | 贡献)
无编辑摘要
标签:移动版编辑 移动版网页编辑 高级移动版编辑
Plmxs42​(留言 | 贡献)
无编辑摘要
标签:移动版编辑 移动版网页编辑 高级移动版编辑
第33行: 第33行:
html.skin-theme-clientpref-night .tl-head{background:#3c4043}
html.skin-theme-clientpref-night .tl-head{background:#3c4043}
.tl-same{color:#72777d}
.tl-same{color:#72777d}
/* ===== 提示框(Template:提示框)开始 ===== */
.tipbox {
    border: 1px solid #a2a9b1;
    border-left: 4px solid #54595d;
    border-radius: 3px;
    padding: 0.5em 0.9em 0.6em;
    margin: 0.6em 0;
    clear: both;
    overflow-wrap: break-word;
}
.tipbox-title {
    font-weight: 700;
    margin: 0 0 0.3em;
    overflow-wrap: break-word;
}
.tipbox-body {
    line-height: 1.65;
    overflow-wrap: break-word;
}
.tipbox-notice {
    border-left-color: #3366cc;
    background-color: #eaf3fb;
}
.tipbox-warn {
    border-left-color: #ffcc33;
    background-color: #fdf6e3;
}
/* 强制夜间模式 */
html.skin-theme-clientpref-night .tipbox {
    border-color: #54595d;
    background-color: #1c1f24;
}
html.skin-theme-clientpref-night .tipbox-title,
html.skin-theme-clientpref-night .tipbox-body {
    color: #eaecf0;
}
html.skin-theme-clientpref-night .tipbox-notice {
    border-left-color: #5e96dc;
    background-color: #1a2430;
}
html.skin-theme-clientpref-night .tipbox-warn {
    border-left-color: #d9b036;
    background-color: #2b2617;
}
/* 跟随系统夜间模式 */
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .tipbox {
        border-color: #54595d;
        background-color: #1c1f24;
    }
    html.skin-theme-clientpref-os .tipbox-title,
    html.skin-theme-clientpref-os .tipbox-body {
        color: #eaecf0;
    }
    html.skin-theme-clientpref-os .tipbox-notice {
        border-left-color: #5e96dc;
        background-color: #1a2430;
    }
    html.skin-theme-clientpref-os .tipbox-warn {
        border-left-color: #d9b036;
        background-color: #2b2617;
    }
}
/* ===== 提示框(Template:提示框)结束 ===== */