跳转到内容

MediaWiki:Common.css:修订间差异

来自简中Robloxian Wiki
无编辑摘要
标签已被回退
已还原Alice讨论)的编辑至最后由NoooOneLoveMe修订的版本
标签回退 已被回退
第1行: 第1行:
/* 简中Robloxian Wiki 全局样式 */
/* 简中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,
body,
#content,
#content,
第52行: 第9行:
}
}


/* 如果上面还不能完全覆盖,加上这个 */
html {
html {
     background-color: #e6f5e6;
     background-color: #e6f5e6;
第63行: 第21行:
     background-color: #e6f5e6;
     background-color: #e6f5e6;
}
}
.chanmoegrid {
.chanmoegrid {
     display: flex;
     display: flex;
第72行: 第29行:
     padding: 20px;
     padding: 20px;
}
}
.chanmoecard {
.chanmoecard {
     background: #ffffff;
     background: #ffffff;
第80行: 第36行:
     border: 2px solid transparent;
     border: 2px solid transparent;
}
}
.chanmoecard:hover {
.chanmoecard:hover {
     border-color: #a5d6a7;
     border-color: #a5d6a7;
}
}
.chanmoe-welcome {
.chanmoe-welcome {
     flex: 1 1 100%;
     flex: 1 1 100%;
第93行: 第47行:
     padding: 35px 20px;
     padding: 35px 20px;
}
}
.chanmoe-main {
.chanmoe-main {
     flex: 2;
     flex: 2;
     min-width: 280px;
     min-width: 280px;
}
}
.chanmoe-side {
.chanmoe-side {
     flex: 1;
     flex: 1;
     min-width: 250px;
     min-width: 250px;
}
}
.chanmoe-title {
.chanmoe-title {
     font-size: 1.4em;
     font-size: 1.4em;
第112行: 第63行:
     color: #0066cc;
     color: #0066cc;
}
}
.chanboard-grid {
.chanboard-grid {
     display: flex;
     display: flex;
第118行: 第68行:
     gap: 10px;
     gap: 10px;
}
}
.chanboard-btn {
.chanboard-btn {
     background: #e8f5e9;
     background: #e8f5e9;
第129行: 第78行:
     box-shadow: 0 2px 6px rgba(0,0,0,0.05);
     box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
}
.chanboard-btn:hover {
.chanboard-btn:hover {
     background: #b9f6ca;
     background: #b9f6ca;
     color: #000;
     color: #000;
}
}
.chanlist {
.chanlist {
     list-style: none;
     list-style: none;
第140行: 第87行:
     padding: 0;
     padding: 0;
}
}
.chanlist li {
.chanlist li {
     padding: 6px 0;
     padding: 6px 0;
第146行: 第92行:
     font-size: 0.95em;
     font-size: 0.95em;
}
}
 
.chanlist li:last-child { border-bottom: none; }
.chanlist li:last-child {
    border-bottom: none;
}
 
.chanlist a {
.chanlist a {
     color: #0066cc;
     color: #0066cc;
第156行: 第98行:
     font-weight: bold;
     font-weight: bold;
}
}
.chanlist a:hover {
.chanlist a:hover {
     color: #003c8f;
     color: #003c8f;
     text-decoration: underline;
     text-decoration: underline;
}
}
.chanpost {
.chanpost {
     background: #f1f8e9;
     background: #f1f8e9;
第169行: 第109行:
     border-left: 4px solid #66bb6a;
     border-left: 4px solid #66bb6a;
}
}
.chanpost .post-no {
.chanpost .post-no {
     color: #757575;
     color: #757575;
     font-size: 0.8em;
     font-size: 0.8em;
}
}
.ascii-divider {
.ascii-divider {
     color: #a5d6a7;
     color: #a5d6a7;
第182行: 第120行:
     margin: 10px 0;
     margin: 10px 0;
}
}
@media (max-width: 768px) {
@media (max-width: 768px) {
     .chanmoegrid {
     .chanmoegrid { flex-direction: column; }
        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;
    }
}
}

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

/* 简中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; }
}