跳转到内容

MediaWiki:Common.css:修订间差异

来自简中Robloxian Wiki
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 简中Robloxian Wiki 全局样式 */
/* 简中Robloxian Wiki 全局样式 */
/* 强制全站淡绿色背景 */
/* 构成主义重构版 / Constructivism Reloaded */
 
html {
    background-color: #d4d4d4;
}
 
body,
body,
#content,
#content,
第6行: 第11行:
.mw-page-container,
.mw-page-container,
#bodyContent {
#bodyContent {
     background-color: #e6f5e6 !important;
     background-color: #d4d4d4 !important;
    color: #0a0a0a !important;
    font-family: 'Helvetica Neue', 'Arial', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
}


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


.mw-parser-output {
/* 强制全局文字色 */
     background: transparent;
.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: #0a0a0a;
}
}


body {
/* 链接:工业红 */
     background-color: #e6f5e6;
a {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px solid transparent;
    transition: all 0.15s;
}
a:hover {
     color: #000;
    border-bottom-color: #c41e3a;
}
a:visited {
    color: #8b1329;
}
}


/* ========== 核心布局 ========== */
.chanmoegrid {
.chanmoegrid {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 20px;
     gap: 24px;
     max-width: 1200px;
     max-width: 1200px;
     margin: 0 auto;
     margin: 0 auto;
     padding: 20px;
     padding: 24px;
}
}


/* ========== 卡片系统:黑框 + 红色应力线 ========== */
.chanmoecard {
.chanmoecard {
     background: #ffffff;
     background: #fff;
     border-radius: 20px;
     border-radius: 0;
     box-shadow: 0 6px 16px rgba(0,0,0,0.05);
     box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
     padding: 25px;
     padding: 24px;
     border: 2px solid transparent;
     border: 2px solid #000;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
 
.chanmoecard::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: #c41e3a;
    z-index: 1;
}
}


.chanmoecard:hover {
.chanmoecard:hover {
     border-color: #a5d6a7;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(196, 30, 58, 0.25);
     border-color: #c41e3a;
}
}


/* ========== 欢迎区:红黑宣言 ========== */
.chanmoe-welcome {
.chanmoe-welcome {
     flex: 1 1 100%;
     flex: 1 1 100%;
     background: linear-gradient(135deg, #c8e6c9, #dcedc1);
     background: #000;
     color: #1f3b1f;
     color: #fff;
     text-align: center;
     text-align: center;
     border-radius: 24px;
     border-radius: 0;
     padding: 35px 20px;
     padding: 44px 28px;
    border: 3px solid #c41e3a;
    position: relative;
    overflow: hidden;
}
 
.chanmoe-welcome::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(196, 30, 58, 0.12) 8px,
        rgba(196, 30, 58, 0.12) 16px
    );
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}
}


.chanmoe-welcome .ascii-divider {
    color: #c41e3a;
    font-weight: 900;
    letter-spacing: 0.2em;
    font-size: 1em;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 10px 0;
    margin: 24px auto;
    max-width: 640px;
}
/* ========== 主侧栏 ========== */
.chanmoe-main {
.chanmoe-main {
     flex: 2;
     flex: 2;
第61行: 第145行:
}
}


/* ========== 标题:粗野主义 ========== */
.chanmoe-title {
.chanmoe-title {
     font-size: 1.4em;
     font-size: 1.25em;
     font-weight: bold;
     font-weight: 900;
     margin-bottom: 15px;
     margin-bottom: 16px;
     padding-bottom: 8px;
     padding: 0 0 10px 18px;
     border-bottom: 3px dashed #80cbc4;
     border-bottom: 3px solid #c41e3a;
     color: #0066cc;
     color: #000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
}
}


.chanmoe-title::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: -2px;
    color: #c41e3a;
    font-size: 1.1em;
}
/* ========== 板块按钮:斜切工业风 ========== */
.chanboard-grid {
.chanboard-grid {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 10px;
     gap: 12px;
}
}


.chanboard-btn {
.chanboard-btn {
     background: #e8f5e9;
     background: transparent;
     padding: 10px 18px;
     padding: 10px 22px;
     border-radius: 30px;
     border-radius: 0;
     color: #0066cc;
     color: #000;
     text-decoration: none;
     text-decoration: none;
     font-weight: bold;
     font-weight: 900;
     font-family: "Courier New", monospace;
     font-family: 'Helvetica Neue', 'Arial', sans-serif;
     box-shadow: 0 2px 6px rgba(0,0,0,0.05);
     box-shadow: none;
    border: 2px solid #000;
    transform: skewX(-10deg);
    display: inline-block;
    transition: all 0.15s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.04em;
}
 
.chanboard-btn a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transform: skewX(10deg);
}
}


.chanboard-btn:hover {
.chanboard-btn:hover {
     background: #b9f6ca;
     background: #c41e3a;
     color: #000;
     color: #fff;
    border-color: #c41e3a;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    transform: skewX(-10deg) translateY(-2px);
}
}


/* ========== 列表:红色箭头 ========== */
.chanlist {
.chanlist {
     list-style: none;
     list-style: none;
第99行: 第215行:


.chanlist li {
.chanlist li {
     padding: 6px 0;
     padding: 10px 0 10px 22px;
     border-bottom: 1px solid #e0e0e0;
     border-bottom: 1px solid #bbb;
     font-size: 0.95em;
     font-size: 0.95em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    transition: all 0.15s;
}
.chanlist li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-size: 1.3em;
    line-height: 1;
    top: 8px;
}
}


第109行: 第240行:


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


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


.chanpost {
.chanlist li:hover {
    background: #f1f8e9;
     padding-left: 26px;
    border-radius: 12px;
     background: rgba(196, 30, 58, 0.04);
     padding: 12px 15px;
    margin-top: 10px;
     border-left: 4px solid #66bb6a;
}
}


.chanpost .post-no {
.chanlist li:hover::before {
     color: #757575;
     content: "▶";
    font-size: 0.8em;
}
}


.ascii-divider {
/* ========== 留言卡片 ========== */
    color: #a5d6a7;
.chanpost {
    font-family: monospace;
     background: #f0f0f0;
    text-align: center;
     border-radius: 0;
    font-size: 0.9em;
     padding: 16px;
    margin: 10px 0;
     margin-top: 12px;
}
 
@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;
    }
 
    /* ---------- 黑幕效果暗色适配 ---------- */
    .heimu,
    .heimu a,
    a .heimu,
    .heimu a.new {
        background-color: #3d2c4a;
        color: #3d2c4a;
    }
 
    .heimu:hover,
    .heimu:active {
        color: #f3e5f5 !important;
    }
 
} /* 这个花括号是暗色模式的结束 */
 
/* ---------- 剧透文字样式 ---------- */
.spoiler-text {
    transition: background 0.2s, color 0.2s;
}
 
.spoiler-text.revealed {
    background: transparent !important;
    color: inherit !important;
}
 
/* ---------- 黑幕效果(全局) ---------- */
.heimu,
.heimu a,
a .heimu,
.heimu a.new {
    background-color: #252525;
    color: #252525;
    text-shadow: none;
    cursor: pointer;
}
 
.heimu:hover,
.heimu:active {
    color: white !important;
}
 
.heimu:hover a,
a:hover .heimu,
.heimu:active a,
a:active .heimu {
    color: lightblue !important;
}

2026年5月29日 (五) 20:07的版本

/* 简中Robloxian Wiki 全局样式 */
/* 构成主义重构版 / Constructivism Reloaded */

html {
    background-color: #d4d4d4;
}

body,
#content,
.mw-body,
.mw-page-container,
#bodyContent {
    background-color: #d4d4d4 !important;
    color: #0a0a0a !important;
    font-family: 'Helvetica Neue', 'Arial', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

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

/* 强制全局文字色 */
.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: #0a0a0a;
}

/* 链接:工业红 */
a {
    color: #c41e3a;
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px solid transparent;
    transition: all 0.15s;
}
a:hover {
    color: #000;
    border-bottom-color: #c41e3a;
}
a:visited {
    color: #8b1329;
}

/* ========== 核心布局 ========== */
.chanmoegrid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ========== 卡片系统:黑框 + 红色应力线 ========== */
.chanmoecard {
    background: #fff;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
    padding: 24px;
    border: 2px solid #000;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.chanmoecard::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: #c41e3a;
    z-index: 1;
}

.chanmoecard:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(196, 30, 58, 0.25);
    border-color: #c41e3a;
}

/* ========== 欢迎区:红黑宣言 ========== */
.chanmoe-welcome {
    flex: 1 1 100%;
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 0;
    padding: 44px 28px;
    border: 3px solid #c41e3a;
    position: relative;
    overflow: hidden;
}

.chanmoe-welcome::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(196, 30, 58, 0.12) 8px,
        rgba(196, 30, 58, 0.12) 16px
    );
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    pointer-events: none;
}

.chanmoe-welcome .ascii-divider {
    color: #c41e3a;
    font-weight: 900;
    letter-spacing: 0.2em;
    font-size: 1em;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 10px 0;
    margin: 24px auto;
    max-width: 640px;
}

/* ========== 主侧栏 ========== */
.chanmoe-main {
    flex: 2;
    min-width: 280px;
}

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

/* ========== 标题:粗野主义 ========== */
.chanmoe-title {
    font-size: 1.25em;
    font-weight: 900;
    margin-bottom: 16px;
    padding: 0 0 10px 18px;
    border-bottom: 3px solid #c41e3a;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
}

.chanmoe-title::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: -2px;
    color: #c41e3a;
    font-size: 1.1em;
}

/* ========== 板块按钮:斜切工业风 ========== */
.chanboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chanboard-btn {
    background: transparent;
    padding: 10px 22px;
    border-radius: 0;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    box-shadow: none;
    border: 2px solid #000;
    transform: skewX(-10deg);
    display: inline-block;
    transition: all 0.15s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.04em;
}

.chanboard-btn a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transform: skewX(10deg);
}

.chanboard-btn:hover {
    background: #c41e3a;
    color: #fff;
    border-color: #c41e3a;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    transform: skewX(-10deg) translateY(-2px);
}

/* ========== 列表:红色箭头 ========== */
.chanlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chanlist li {
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid #bbb;
    font-size: 0.95em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
    transition: all 0.15s;
}

.chanlist li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-size: 1.3em;
    line-height: 1;
    top: 8px;
}

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

.chanlist a {
    color: #000;
    text-decoration: none;
    font-weight: 900;
    border-bottom: none;
}

.chanlist a:hover {
    color: #c41e3a;
}

.chanlist li:hover {
    padding-left: 26px;
    background: rgba(196, 30, 58, 0.04);
}

.chanlist li:hover::before {
    content: "▶";
}

/* ========== 留言卡片 ========== */
.chanpost {
    background: #f0f0f0;
    border-radius: 0;
    padding: 16px;
    margin-top: 12px;