跳转到内容

MediaWiki:Common.css

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

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

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