跳转到内容

MediaWiki:Common.css:修订间差异

来自简中Robloxian Wiki
无编辑摘要
标签:已被回退
无编辑摘要
标签:已被回退
第1行: 第1行:
/* ========================================
/* 简中Robloxian Wiki 全局样式 */
  RSCA — Roblox Simplified Chinese Archives
/* 强制全站淡绿色背景 */
  ROBLOX 简中档案 · 全局样式表
body,
  ======================================== */
#content,
.mw-body,
.mw-page-container,
#bodyContent {
    background-color: #e6f5e6 !important;
}


:root {
html {
  --bg: #0e0e0e;
    background-color: #e6f5e6;
  --bg-panel: #141414;
  --bg-header: #1a1a1a;
  --border: #333;
  --border-light: #444;
  --text: #d8d8d8;
  --text-dim: #999;
  --text-faint: #666;
  --red: #c41e3a;
  --gold: #d4a017;
  --blue: #4a90d9;
  --max-w: 960px;
  --radius: 4px;
  --gap: 20px;
}
}


*, *::before, *::after { box-sizing: border-box; }
.mw-parser-output {
    background: transparent;
}


html, body, #content, .mw-body, .mw-page-container, #bodyContent, .mw-parser-output {
body {
  background: var(--bg) !important;
    background-color: #e6f5e6;
  color: var(--text) !important;
  font-family: 'Helvetica Neue', 'Arial', 'Microsoft YaHei', sans-serif;
  line-height: 1.65;
}
}


a { color: var(--text-dim); text-decoration: none; }
.chanmoegrid {
a:hover { color: #fff; }
    display: flex;
.mw-parser-output { background: transparent; }
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* ---------- 隐藏 Vector 默认元素 ---------- */
.chanmoecard {
 
    background: #ffffff;
#p-logo, #p-navigation, #p-search, #p-personal, #p-tb, #p-lang,
    border-radius: 20px;
.vector-menu, .vector-menu-tabs, .vector-menu-content,
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
.vector-menu-content-list, .vector-menu-heading,
    padding: 25px;
.vector-user-links, .vector-user-menu,
    border: 2px solid transparent;
#mw-panel, #mw-head-base, #mw-page-base, #mw-navigation,
#p-banner, #siteNotice, #centralNotice,
#catlinks, .catlinks, .mw-indicators,
.mw-editsection, .mw-editsection-like,
#pagehistory, #contentSub, #contentSub2, #jump-to-nav,
#footer, .breadcrumb, .subpages,
.toc, .toctoggle, .toctogglesearch,
#p-cactions, .searchButton, #mw-search-top-table,
#mw-navigation-toggle, .vector-search-box,
.vector-search-box-input, .vector-search-box-button,
.vector-user-menu-anon-editor, .vector-user-menu-legacy,
.vector-user-menu-legacy .mw-list-item,
.vector-menu-tabs-legacy .mw-list-item,
.vector-menu-content-list .mw-list-item {
  display: none !important;
}
}


#mw-head, #mw-navigation {
.chanmoecard:hover {
  display: block !important;
    border-color: #a5d6a7;
  background: var(--bg-header) !important;
  border-bottom: 2px solid var(--red) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}
}


#mw-content-text {
.chanmoe-welcome {
  max-width: var(--max-w) !important;
    flex: 1 1 100%;
  margin: 0 auto !important;
    background: linear-gradient(135deg, #c8e6c9, #dcedc1);
  padding: 0 var(--gap) !important;
    color: #1f3b1f;
    text-align: center;
    border-radius: 24px;
    padding: 35px 20px;
}
}


.mw-parser-output { max-width: 100% !important; }
.chanmoe-main {
 
    flex: 2;
/* ---------- 面板系统 ---------- */
    min-width: 280px;
 
.rsca-panel {
  border: 1px solid var(--border);
  margin-bottom: var(--gap);
  background: var(--bg-panel);
  border-radius: var(--radius);
}
}


.rsca-panel-header {
.chanmoe-side {
  background: var(--bg-header);
    flex: 1;
  color: #ccc;
    min-width: 250px;
  padding: 10px 14px;
  font-weight: bold;
  font-size: 0.95em;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
}


.rsca-panel-header .label {
.chanmoe-title {
  font-family: 'Courier New', monospace;
    font-size: 1.4em;
  color: var(--text-dim);
    font-weight: bold;
  font-size: 0.8em;
    margin-bottom: 15px;
  letter-spacing: 0.1em;
    padding-bottom: 8px;
  font-weight: normal;
    border-bottom: 3px dashed #80cbc4;
    color: #0066cc;
}
}


.rsca-panel-body { padding: 14px; }
.chanboard-grid {
.rsca-panel-body p { margin: 0 0 10px 0; }
    display: flex;
.rsca-panel-body ul { margin: 0; padding-left: 18px; }
    flex-wrap: wrap;
.rsca-panel-body li { margin-bottom: 4px; font-size: 0.9em; }
    gap: 10px;
 
/* ---------- 强调块 ---------- */
 
.rsca-rec {
  border-left: 3px solid var(--border-light);
  background: var(--bg-header);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.9em;
  line-height: 1.65;
  border-radius: 0 var(--radius) var(--radius) 0;
}
}


.rsca-rec.warn { border-left-color: var(--red); }
.chanboard-btn {
.rsca-rec.note { border-left-color: var(--blue); }
    background: #e8f5e9;
.rsca-rec .label {
    padding: 10px 18px;
  font-weight: bold;
    border-radius: 30px;
  color: var(--text-dim);
    color: #0066cc;
  margin-bottom: 4px;
    text-decoration: none;
  display: block;
    font-weight: bold;
    font-family: "Courier New", monospace;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
}


/* ---------- 信息卡 ---------- */
.chanboard-btn:hover {
 
    background: #b9f6ca;
.rsca-infocard {
    color: #000;
  float: right;
  width: 280px;
  margin: 0 0 14px 18px;
  border: 1px solid var(--border-light);
  font-size: 0.85em;
  background: var(--bg-panel);
  border-radius: var(--radius);
}
}


.rsca-infocard-header {
.chanlist {
  background: var(--bg-header);
    list-style: none;
  color: #ccc;
    margin: 0;
  padding: 6px 10px;
    padding: 0;
  font-weight: bold;
  font-size: 0.9em;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.05em;
  border-radius: var(--radius) var(--radius) 0 0;
}
}


.rsca-infocard table { width: 100%; border-collapse: collapse; }
.chanlist li {
.rsca-infocard td, .rsca-infocard th {
    padding: 6px 0;
  padding: 4px 8px;
    border-bottom: 1px solid #e0e0e0;
  border-bottom: 1px solid var(--bg-header);
    font-size: 0.95em;
  vertical-align: top;
  font-size: 0.92em;
}
}


.rsca-infocard td.k { color: var(--text-dim); font-weight: bold; width: 30%; white-space: nowrap; }
.chanlist li:last-child {
.rsca-infocard-img { text-align: center; padding: 8px; border-bottom: 1px solid var(--border); }
    border-bottom: none;
.rsca-infocard-img img { max-width: 120px; height: auto; filter: grayscale(100%); border-radius: var(--radius); }
.rsca-infocard-img .cap { display: block; font-size: 0.75em; color: var(--text-dim); margin-top: 4px; }
 
/* ---------- 涂黑 ---------- */
 
.rsca-redact, .rsca-redact a, a .rsca-redact, .rsca-redact a.new {
  background: #000; color: #000; text-shadow: none; padding: 0 4px; cursor: default;
}
}
.rsca-redact:hover, .rsca-redact:active, .rsca-redact.reveal {
  color: var(--text) !important; background: #000;
}
.rsca-redact:hover a, a:hover .rsca-redact, .rsca-redact:active a, a:active .rsca-redact,
.rsca-redact.reveal a, a.rsca-redact.reveal { color: #8ab4f8 !important; }


/* ---------- 折叠块 ---------- */
.chanlist a {
 
    color: #0066cc;
.rsca-collapse {
    text-decoration: none;
  border: 1px solid var(--border);
    font-weight: bold;
  margin: 14px 0;
  background: var(--bg-panel);
  border-radius: var(--radius);
}
}


.rsca-collapse-header {
.chanlist a:hover {
  background: var(--bg-header);
    color: #003c8f;
  color: var(--text-dim);
    text-decoration: underline;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.85em;
  border-bottom: 1px solid var(--border);
  user-select: none;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
}


.rsca-collapse-header:hover { background: #222; color: #ccc; }
.chanpost {
.rsca-collapse-header::after { content: "▼"; font-size: 0.7em; color: var(--text-dim); }
    background: #f1f8e9;
.rsca-collapse-body { padding: 12px; }
    border-radius: 12px;
 
    padding: 12px 15px;
/* ---------- 实体标题 ---------- */
    margin-top: 10px;
 
    border-left: 4px solid #66bb6a;
.rsca-entity-title {
  font-size: 1.8em;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ccc;
  border-bottom: 3px solid var(--red);
  padding-bottom: 8px;
  margin: 0 0 16px 0;
}
}


.rsca-section {
.chanpost .post-no {
  border-left: 2px solid var(--border);
    color: #757575;
  padding-left: 14px;
    font-size: 0.8em;
  margin: 18px 0;
}
}


.rsca-section h3 {
.ascii-divider {
  font-size: 1.05em;
    color: #a5d6a7;
  color: var(--text-dim);
    font-family: monospace;
  margin: 0 0 8px 0;
    text-align: center;
  letter-spacing: 0.05em;
    font-size: 0.9em;
    margin: 10px 0;
}
}


.rsca-section h3 .num { color: var(--text-faint); font-weight: bold; margin-right: 6px; }
@media (max-width: 768px) {
 
    .chanmoegrid {
/* ---------- 引用 ---------- */
        flex-direction: column;
 
    }
.rsca-quote {
  border-left: 3px solid var(--border-light);
  background: var(--bg-panel);
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.88em;
  color: var(--text-dim);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
}


.rsca-quote cite {
/* ========== 系统暗色模式(暗紫色版) ========== */
  display: block;
@media (prefers-color-scheme: dark) {
  margin-top: 6px;
    /* 全局背景与基础文字 */
  font-size: 0.8em;
    html,
  color: var(--text-dim);
    body,
  font-style: normal;
    #content,
}
    .mw-body,
    .mw-page-container,
    #bodyContent,
    .mw-parser-output {
        background-color: #1e1a2f !important;
        color: #e0d6e0 !important;
    }


/* ---------- 时间线 ---------- */
    /* 覆盖所有常见文本元素,避免残存黑色 */
    .mw-body p,
    .mw-body li,
    .mw-body td,
    .mw-body th,
    .mw-body h1,
    .mw-body h2,
    .mw-body h3,
    .mw-body h4,
    .mw-body h5,
    .mw-body h6,
    #firstHeading,
    .mw-page-title-main,
    .mw-parser-output p,
    .mw-parser-output li,
    .mw-parser-output h2,
    .mw-parser-output h3 {
        color: #e0d6e0;
    }


.rsca-timeline {
    /* 通用链接 */
  border-left: 2px solid var(--border);
    a {
  padding-left: 14px;
        color: #ce93d8;
  margin: 16px 0;
    }
}
    a:hover {
        color: #f3e5f5;
    }
    a:visited {
        color: #b39ddb;
    }


.rsca-timeline .t-event {
    /* 卡片容器 */
  margin-bottom: 12px;
    .chanmoecard {
  padding-bottom: 12px;
        background: #2b2438;
  border-bottom: 1px solid var(--bg-header);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
        border-color: #4a3b5c;
    }
    .chanmoecard:hover {
        border-color: #ab47bc;
    }


.rsca-timeline .t-event:last-child { border-bottom: none; margin-bottom: 0; }
    /* 欢迎横幅 */
.rsca-timeline .t-date { font-family: 'Courier New', monospace; font-size: 0.85em; color: var(--text-dim); font-weight: bold; margin-bottom: 3px; }
    .chanmoe-welcome {
.rsca-timeline .t-title { color: var(--text-dim); font-weight: bold; margin-bottom: 4px; }
        background: linear-gradient(135deg, #3d2c4a, #5c3f6b);
.rsca-timeline .t-body { font-size: 0.9em; color: var(--text-dim); line-height: 1.65; }
        color: #f3e5f5;
    }


/* ---------- 标签 ---------- */
    /* 区块标题 */
    .chanmoe-title {
        color: #ce93d8;
        border-bottom-color: #ab47bc;
    }


.rsca-tag {
    /* 按钮网格 */
  display: inline-block;
    .chanboard-btn {
  background: var(--bg-header);
        background: #3d2c4a;
  border: 1px solid var(--border);
        color: #d1c4e9;
  color: var(--text-dim);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
    }
  font-size: 0.75em;
    .chanboard-btn:hover {
  letter-spacing: 0.04em;
        background: #5c3f6b;
  margin: 1px;
        color: #ffffff;
  border-radius: var(--radius);
    }
}


.rsca-tag.red { border-color: var(--red); color: var(--red); }
    /* 列表 */
.rsca-tag.yellow { border-color: var(--gold); color: var(--gold); }
    .chanlist li {
.rsca-tag.blue { border-color: var(--blue); color: var(--blue); }
        border-bottom-color: #4a3b5c;
.rsca-tag.grey { border-color: var(--border-light); color: var(--text-dim); }
    }
    .chanlist a {
        color: #d1c4e9;
    }
    .chanlist a:hover {
        color: #f3e5f5;
    }


/* ---------- 模板角标 ---------- */
    /* 帖子卡片 */
    .chanpost {
        background: #332940;
        border-left-color: #ab47bc;
        color: #e0d6e0;
    }
    .chanpost .post-no {
        color: #bdbdbd;
    }


.rsca-badge {
    /* ASCII 分隔线 */
  border: 1px solid var(--border-light);
    .ascii-divider {
  background: var(--bg-panel);
        color: #ce93d8;
  padding: 7px 12px;
    }
  margin: 8px 0;
  font-size: 0.82em;
  color: var(--text-dim);
  border-radius: var(--radius);
}


.rsca-badge .tb-header { font-weight: bold; color: #ccc; font-size: 0.9em; letter-spacing: 0.05em; margin-bottom: 6px; }
    /* ---------- 新闻区暗色适配 ---------- */
.rsca-badge ul { margin: 0; padding-left: 16px; }
    /* 新闻框整体容器 */
.rsca-badge li { margin-bottom: 3px; }
    .chanmoe-main div[style*="border-radius:16px"][style*="box-shadow:0 2px 8px"] {
.rsca-badge.in-progress { border-color: var(--gold); }
        background: #2b2438 !important;
.rsca-badge.in-progress .tb-header { color: var(--gold); }
        box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
.rsca-badge.exposed { border-color: var(--border-light); }
    }
.rsca-badge.exposed .tb-header { color: var(--text-dim); }
.rsca-badge.wanted { border-color: var(--red); }
.rsca-badge.wanted .tb-header { color: var(--red); }
.rsca-badge.under-invest { border-color: var(--text-dim); }
.rsca-badge.under-invest .tb-header { color: var(--text-dim); }
.rsca-badge.record-complete { border-color: var(--border-light); }
.rsca-badge.record-complete .tb-header { color: var(--text-dim); }


/* ---------- 页脚 ---------- */
    /* 新闻顶部标题栏 */
    .chanmoe-main div[style*="border-radius:16px"] > div:first-child {
        background: #3d2c4a !important;
        color: #ce93d8 !important;
        border-bottom-color: #ab47bc !important;
    }


.rsca-footer {
    /* 新闻内容区整体 */
  max-width: var(--max-w);
    .chanmoe-main div[style*="line-height:1.6"] {
  margin: 30px auto 0;
        color: #e0d6e0;
  padding: 16px var(--gap);
    }
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75em;
  color: var(--text-faint);
}


.rsca-footer a { color: var(--text-dim); }
    /* 新闻条目标题(红色文字 #662222) */
    .chanmoe-main div[style*="font-weight:bold"][style*="color:#662222"] {
        color: #f3e5f5 !important;
    }


/* ---------- 移动端 ---------- */
    /* 新闻条目之间的分隔线 */
    .chanmoe-main div[style*="border-bottom:1px solid #e6f4e6"] {
        border-bottom-color: #4a3b5c !important;
    }


@media (max-width: 768px) {
    /* 底部归档栏 */
  html { font-size: 13px; }
    .chanmoe-main div[style*="text-align:right"][style*="background:#e6f4e6"] {
  .rsca-layout { flex-direction: column; gap: 12px; }
        background: #3d2c4a !important;
  .rsca-infocard { float: none; width: 100%; margin: 10px 0; }
        border-top-color: #ab47bc !important;
  .rsca-entity-title { font-size: 1.4em; }
    }
}
}

2026年9月12日 (六) 05:56的版本

/* 简中Robloxian Wiki 全局样式 */
/* 强制全站淡绿色背景 */
body,
#content,
.mw-body,
.mw-page-container,
#bodyContent {
    background-color: #e6f5e6 !important;
}

html {
    background-color: #e6f5e6;
}

.mw-parser-output {
    background: transparent;
}

body {
    background-color: #e6f5e6;
}

.chanmoegrid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.chanmoecard {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    padding: 25px;
    border: 2px solid transparent;
}

.chanmoecard:hover {
    border-color: #a5d6a7;
}

.chanmoe-welcome {
    flex: 1 1 100%;
    background: linear-gradient(135deg, #c8e6c9, #dcedc1);
    color: #1f3b1f;
    text-align: center;
    border-radius: 24px;
    padding: 35px 20px;
}

.chanmoe-main {
    flex: 2;
    min-width: 280px;
}

.chanmoe-side {
    flex: 1;
    min-width: 250px;
}

.chanmoe-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px dashed #80cbc4;
    color: #0066cc;
}

.chanboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chanboard-btn {
    background: #e8f5e9;
    padding: 10px 18px;
    border-radius: 30px;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    font-family: "Courier New", monospace;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.chanboard-btn:hover {
    background: #b9f6ca;
    color: #000;
}

.chanlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chanlist li {
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.chanlist li:last-child {
    border-bottom: none;
}

.chanlist a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.chanlist a:hover {
    color: #003c8f;
    text-decoration: underline;
}

.chanpost {
    background: #f1f8e9;
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 10px;
    border-left: 4px solid #66bb6a;
}

.chanpost .post-no {
    color: #757575;
    font-size: 0.8em;
}

.ascii-divider {
    color: #a5d6a7;
    font-family: monospace;
    text-align: center;
    font-size: 0.9em;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .chanmoegrid {
        flex-direction: column;
    }
}

/* ========== 系统暗色模式(暗紫色版) ========== */
@media (prefers-color-scheme: dark) {
    /* 全局背景与基础文字 */
    html,
    body,
    #content,
    .mw-body,
    .mw-page-container,
    #bodyContent,
    .mw-parser-output {
        background-color: #1e1a2f !important;
        color: #e0d6e0 !important;
    }

    /* 覆盖所有常见文本元素,避免残存黑色 */
    .mw-body p,
    .mw-body li,
    .mw-body td,
    .mw-body th,
    .mw-body h1,
    .mw-body h2,
    .mw-body h3,
    .mw-body h4,
    .mw-body h5,
    .mw-body h6,
    #firstHeading,
    .mw-page-title-main,
    .mw-parser-output p,
    .mw-parser-output li,
    .mw-parser-output h2,
    .mw-parser-output h3 {
        color: #e0d6e0;
    }

    /* 通用链接 */
    a {
        color: #ce93d8;
    }
    a:hover {
        color: #f3e5f5;
    }
    a:visited {
        color: #b39ddb;
    }

    /* 卡片容器 */
    .chanmoecard {
        background: #2b2438;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
        border-color: #4a3b5c;
    }
    .chanmoecard:hover {
        border-color: #ab47bc;
    }

    /* 欢迎横幅 */
    .chanmoe-welcome {
        background: linear-gradient(135deg, #3d2c4a, #5c3f6b);
        color: #f3e5f5;
    }

    /* 区块标题 */
    .chanmoe-title {
        color: #ce93d8;
        border-bottom-color: #ab47bc;
    }

    /* 按钮网格 */
    .chanboard-btn {
        background: #3d2c4a;
        color: #d1c4e9;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }
    .chanboard-btn:hover {
        background: #5c3f6b;
        color: #ffffff;
    }

    /* 列表 */
    .chanlist li {
        border-bottom-color: #4a3b5c;
    }
    .chanlist a {
        color: #d1c4e9;
    }
    .chanlist a:hover {
        color: #f3e5f5;
    }

    /* 帖子卡片 */
    .chanpost {
        background: #332940;
        border-left-color: #ab47bc;
        color: #e0d6e0;
    }
    .chanpost .post-no {
        color: #bdbdbd;
    }

    /* ASCII 分隔线 */
    .ascii-divider {
        color: #ce93d8;
    }

    /* ---------- 新闻区暗色适配 ---------- */
    /* 新闻框整体容器 */
    .chanmoe-main div[style*="border-radius:16px"][style*="box-shadow:0 2px 8px"] {
        background: #2b2438 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }

    /* 新闻顶部标题栏 */
    .chanmoe-main div[style*="border-radius:16px"] > div:first-child {
        background: #3d2c4a !important;
        color: #ce93d8 !important;
        border-bottom-color: #ab47bc !important;
    }

    /* 新闻内容区整体 */
    .chanmoe-main div[style*="line-height:1.6"] {
        color: #e0d6e0;
    }

    /* 新闻条目标题(红色文字 #662222) */
    .chanmoe-main div[style*="font-weight:bold"][style*="color:#662222"] {
        color: #f3e5f5 !important;
    }

    /* 新闻条目之间的分隔线 */
    .chanmoe-main div[style*="border-bottom:1px solid #e6f4e6"] {
        border-bottom-color: #4a3b5c !important;
    }

    /* 底部归档栏 */
    .chanmoe-main div[style*="text-align:right"][style*="background:#e6f4e6"] {
        background: #3d2c4a !important;
        border-top-color: #ab47bc !important;
    }
}