跳转到内容

MediaWiki:Common.css:修订间差异

来自简中Robloxian Wiki
无编辑摘要
标签已被回退
无编辑摘要
标签手工回退 已被回退
第1行: 第1行:
切换到旧外观
MediaWiki:Common.css
系统消息
讨论
阅读
编辑
查看历史
取消监视
工具 隐藏
操作
删除
移动
保护
常规
链入页面
相关更改
上传文件
特殊页面
打印版本
固定链接
页面信息
外观 隐藏
文本
标准
宽度
标准
颜色 (测试版)
自动
浅色
深色
报告深色模式问题
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 简中Robloxian Wiki 全局样式 */
/* 简中Robloxian Wiki 全局样式 */
/* 强制全站淡绿色背景 */
/* 强制全站淡绿色背景 */

2026年5月2日 (六) 18:39的版本

/* 简中Robloxian Wiki 全局样式 */
/* 强制全站淡绿色背景 */
/* —— 木质留言板(亮色)—— */
.chanmoe-noticeboard {
    position: relative;
    margin: 0.8em 0;
    padding: 0;                 /* 内边距由表格控制 */
    border: 3px solid #8b5a2b;  /* 木框 */
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15), inset 0 0 0 2px #f5deb3;
    background:
        /* 木纹纹理(横向条纹模拟木板拼接) */
        repeating-linear-gradient(
            to bottom,
            #d2b48c 0px,
            #d2b48c 1px,
            #c4a47c 1px,
            #c4a47c 2px
        ),
        /* 木板底色 */
        #deb887;
    background-blend-mode: multiply;
}

/* 四角钉子装饰 */
.chanmoe-noticeboard::before,
.chanmoe-noticeboard::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 30%, #ddd, #888);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
    z-index: 2;
}
.chanmoe-noticeboard::before {
    top: 6px;
    left: 6px;
}
.chanmoe-noticeboard::after {
    top: 6px;
    right: 6px;
}
/* 下方两角可以由伪元素不够用,如果不需要可以省略,或用额外元素 */
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) {
/* —— 木质留言板(暗色)—— */
.chanmoe-noticeboard {
    border-color: #5d4037;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 0 0 2px #4e342e;
    background:
        repeating-linear-gradient(
            to bottom,
            #5d4037 0px,
            #5d4037 1px,
            #4e342e 1px,
            #4e342e 2px
        ),
        #3e2723;
    background-blend-mode: multiply;
    color: #f0e6d2;           /* 让模板内文字变成暖白 */
}

/* 暗色钉子颜色微调 */
.chanmoe-noticeboard::before,
.chanmoe-noticeboard::after {
    background: radial-gradient(circle at 30% 30%, #777, #333);
}
    /* 全局背景与基础文字 */
    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;
    }
}