跳转到内容

MediaWiki:Common.css

来自简中Robloxian Wiki
Alice留言 | 贡献2026年5月2日 (六) 18:07的版本

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 简中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 {
        background-color: #1a231a !important;
        color: #d4dcd4;
    }

    .mw-parser-output {
        background: transparent;
        color: #d4dcd4;
    }

    /* 卡片容器 */
    .chanmoecard {
        background: #263026;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        border-color: #3a4a3a;
    }

    .chanmoecard:hover {
        border-color: #66bb6a;
    }

    /* 欢迎横幅 */
    .chanmoe-welcome {
        background: linear-gradient(135deg, #2b412b, #334a2e);
        color: #dcedc1;
    }

    /* 标题 */
    .chanmoe-title {
        color: #80cbc4;
        border-bottom-color: #4caf50;
    }

    /* 按钮网格 */
    .chanboard-btn {
        background: #2b402b;
        color: #80cbc4;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .chanboard-btn:hover {
        background: #3a5a3a;
        color: #ffffff;
    }

    /* 列表 */
    .chanlist li {
        border-bottom-color: #3a4a3a;
    }

    .chanlist a {
        color: #80cbc4;
    }

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

    /* 帖子卡片 */
    .chanpost {
        background: #223022;
        border-left-color: #4caf50;
        color: #d4dcd4;
    }

    .chanpost .post-no {
        color: #9e9e9e;
    }

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