MediaWiki:Common.css:修订间差异
外观
无编辑摘要 标签:已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第9行: | 第9行: | ||
background-color: #e6f5e6 !important; | background-color: #e6f5e6 !important; | ||
} | } | ||
html { | html { | ||
background-color: #e6f5e6; | background-color: #e6f5e6; | ||
} | } | ||
.mw-parser-output { | .mw-parser-output { | ||
background: transparent; | background: transparent; | ||
} | } | ||
/* ---------- 版块布局 ---------- */ | |||
.chanmoegrid { | .chanmoegrid { | ||
display: flex; | display: flex; | ||
| 第29行: | 第24行: | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 20px; | padding: 20px; | ||
} | |||
.chanmoe-main { | |||
flex: 2; | |||
min-width: 280px; | |||
} | |||
.chanmoe-side { | |||
flex: 1; | |||
min-width: 250px; | |||
} | } | ||
/* ---------- 卡片基类 ---------- */ | |||
.chanmoecard { | .chanmoecard { | ||
background: #ffffff; | background: #ffffff; | ||
| 第38行: | 第42行: | ||
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%; | ||
| 第52行: | 第56行: | ||
} | } | ||
/* ---------- 版块标题 ---------- */ | |||
.chanmoe-title { | .chanmoe-title { | ||
font-size: 1.4em; | font-size: 1.4em; | ||
| 第71行: | 第66行: | ||
} | } | ||
/* ---------- 按钮网格 ---------- */ | |||
.chanboard-grid { | .chanboard-grid { | ||
display: flex; | display: flex; | ||
| 第76行: | 第72行: | ||
gap: 10px; | gap: 10px; | ||
} | } | ||
.chanboard-btn { | .chanboard-btn { | ||
background: #e8f5e9; | background: #e8f5e9; | ||
| 第87行: | 第82行: | ||
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; | ||
| 第93行: | 第87行: | ||
} | } | ||
/* ---------- 工具列表 ---------- */ | |||
.chanlist { | .chanlist { | ||
list-style: none; | list-style: none; | ||
| 第98行: | 第93行: | ||
padding: 0; | padding: 0; | ||
} | } | ||
.chanlist li { | .chanlist li { | ||
padding: 6px 0; | padding: 6px 0; | ||
| 第104行: | 第98行: | ||
font-size: 0.95em; | font-size: 0.95em; | ||
} | } | ||
.chanlist li:last-child { | .chanlist li:last-child { | ||
border-bottom: none; | border-bottom: none; | ||
} | } | ||
.chanlist a { | .chanlist a { | ||
color: #0066cc; | color: #0066cc; | ||
| 第114行: | 第106行: | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
.chanlist a:hover { | .chanlist a:hover { | ||
color: #003c8f; | color: #003c8f; | ||
| 第120行: | 第111行: | ||
} | } | ||
/* ---------- 帖子卡片(留言、推荐条目等) ---------- */ | |||
.chanpost { | .chanpost { | ||
background: #f1f8e9; | background: #f1f8e9; | ||
| 第127行: | 第119行: | ||
border-left: 4px solid #66bb6a; | border-left: 4px solid #66bb6a; | ||
} | } | ||
.chanpost .post-no { | .chanpost .post-no { | ||
color: #757575; | color: #757575; | ||
| 第133行: | 第124行: | ||
} | } | ||
/* ASCII 分隔线 */ | |||
.ascii-divider { | .ascii-divider { | ||
color: #a5d6a7; | color: #a5d6a7; | ||
| 第141行: | 第133行: | ||
} | } | ||
/* | /* 冒犯提示条 */ | ||
.chanmoe-offense-bar { | .chanmoe-offense-bar { | ||
color: #2e5a2e; | color: #2e5a2e; | ||
| 第150行: | 第142行: | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
/* ---------- 新闻区专用类(亮色默认样式已在 HTML 内联,这里只做暗色覆盖) ---------- */ | |||
.chanmoe-news-box { /* 仅用于暗色覆盖,不写默认值 */ } | |||
.chanmoe-news-header { } | |||
.chanmoe-news-body { } | |||
.chanmoe-news-footer { } | |||
.chanmoe-news-date { } | |||
.chanmoe-news-item { } | |||
/* 推荐条目、工具、留言辅助类(同样只用于暗色) */ | |||
.chanmoe-featured { } | |||
.chanmoe-toolcard { } | |||
.chanmoe-messagecard { } | |||
/* 响应式 */ | /* 响应式 */ | ||
| 第158行: | 第163行: | ||
} | } | ||
/* ========== 系统暗色模式(暗紫色版) ========== */ | /* ========== 系统暗色模式(暗紫色版)========== */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
/* | /* --- 全局背景与文字 --- */ | ||
html, | html, body, #content, .mw-body, .mw-page-container, #bodyContent, .mw-parser-output { | ||
background-color: #1e1a2f !important; | background-color: #1e1a2f !important; | ||
color: #e0d6e0 !important; | color: #e0d6e0 !important; | ||
} | } | ||
/* | /* 覆盖 MediaWiki 常见文字元素 */ | ||
.mw-body p, | .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 { | |||
.mw-body h1, | |||
#firstHeading, | |||
.mw-parser-output p, | |||
color: #e0d6e0; | color: #e0d6e0; | ||
} | } | ||
/* 通用链接 */ | /* 通用链接 */ | ||
a { | a { color: #ce93d8; } | ||
a:hover { color: #f3e5f5; } | |||
a:visited { color: #b39ddb; } | |||
a:hover { | |||
a:visited { | |||
/* | /* --- 卡片基类 --- */ | ||
.chanmoecard { | .chanmoecard, | ||
.chanmoe-featured, | |||
.chanmoe-toolcard, | |||
.chanmoe-messagecard { | |||
background: #2b2438 !important; | background: #2b2438 !important; | ||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); | box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); | ||
| 第214行: | 第198行: | ||
} | } | ||
/* 欢迎横幅 */ | /* --- 欢迎横幅 --- */ | ||
.chanmoe-welcome { | .chanmoe-welcome { | ||
background: linear-gradient(135deg, #3d2c4a, #5c3f6b); | background: linear-gradient(135deg, #3d2c4a, #5c3f6b); | ||
| 第220行: | 第204行: | ||
} | } | ||
/* 区块标题 */ | /* --- 区块标题 --- */ | ||
.chanmoe-title { | .chanmoe-title { | ||
color: #ce93d8; | color: #ce93d8; | ||
| 第226行: | 第210行: | ||
} | } | ||
/* 按钮网格 */ | /* --- 按钮网格 --- */ | ||
.chanboard-btn { | .chanboard-btn { | ||
background: #3d2c4a; | background: #3d2c4a; | ||
color: #d1c4e9; | color: #d1c4e9; | ||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); | box-shadow: 0 2px 6px rgba(0,0,0,0.4); | ||
} | } | ||
.chanboard-btn:hover { | .chanboard-btn:hover { | ||
background: #5c3f6b; | background: #5c3f6b; | ||
color: # | color: #fff; | ||
} | } | ||
/* | /* --- 工具列表 --- */ | ||
.chanlist li { | .chanlist li { border-bottom-color: #4a3b5c; } | ||
.chanlist a { color: #d1c4e9; } | |||
.chanlist a:hover { color: #f3e5f5; } | |||
.chanlist a { | |||
.chanlist a:hover { | |||
/* 帖子卡片 */ | /* --- 帖子卡片 --- */ | ||
.chanpost { | .chanpost { | ||
background: #332940; | background: #332940; | ||
| 第254行: | 第232行: | ||
color: #e0d6e0; | color: #e0d6e0; | ||
} | } | ||
.chanpost .post-no { | .chanpost .post-no { color: #bdbdbd; } | ||
/* ASCII 分隔线 */ | /* --- ASCII 分隔线 --- */ | ||
.ascii-divider { | .ascii-divider { color: #ce93d8; } | ||
/* ------ | /* --- 新闻区(基于类名)--- */ | ||
.chanmoe-news-box { | |||
.chanmoe- | |||
background: #2b2438 !important; | background: #2b2438 !important; | ||
box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important; | box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important; | ||
} | } | ||
.chanmoe-news-header { | |||
.chanmoe- | |||
background: linear-gradient(180deg, #3d2c4a, #4e3a5c) !important; | background: linear-gradient(180deg, #3d2c4a, #4e3a5c) !important; | ||
color: #ce93d8 !important; | color: #ce93d8 !important; | ||
border-bottom-color: #ab47bc !important; | border-bottom-color: #ab47bc !important; | ||
} | } | ||
.chanmoe-news-body { | |||
.chanmoe- | |||
background: #2b2438 !important; | background: #2b2438 !important; | ||
color: #e0d6e0; | color: #e0d6e0; | ||
} | } | ||
.chanmoe-news-footer { | |||
.chanmoe- | |||
background: #3d2c4a !important; | background: #3d2c4a !important; | ||
border-top-color: #ab47bc !important; | border-top-color: #ab47bc !important; | ||
color: #ce93d8; | color: #ce93d8; | ||
} | } | ||
.chanmoe- | .chanmoe-news-date { | ||
color: #f3e5f5; | color: #f3e5f5 !important; | ||
} | } | ||
.chanmoe-news-item { | |||
border-bottom-color: #4a3b5c !important; | |||
.chanmoe- | |||
border- | |||
} | } | ||
/* 留言区 Anonymous | /* --- 留言区 Anonymous 徽章暗色重绘 --- */ | ||
.chanpost span[style*="background:#88cccc"] { | .chanpost span[style*="background:#88cccc"] { | ||
background: #ab47bc !important; | background: #ab47bc !important; | ||
color: | color: white; | ||
} | } | ||
/* | /* --- 冒犯提示条 --- */ | ||
.chanmoe-offense-bar { | .chanmoe-offense-bar { | ||
background: rgba(60, 40, 70, 0.4) !important; | background: rgba(60, 40, 70, 0.4) !important; | ||
| 第334行: | 第275行: | ||
color: #cfc3d6; | color: #cfc3d6; | ||
} | } | ||
.chanmoe-offense-bar a { | .chanmoe-offense-bar a { color: #f48fb1; } | ||
} | } | ||
2026年5月12日 (二) 15:15的版本
/* ========== 简中Robloxian Wiki 全局样式 ========== */
/* 强制全站淡绿色背景 */
body,
#content,
.mw-body,
.mw-page-container,
#bodyContent {
background-color: #e6f5e6 !important;
}
html {
background-color: #e6f5e6;
}
.mw-parser-output {
background: transparent;
}
/* ---------- 版块布局 ---------- */
.chanmoegrid {
display: flex;
flex-wrap: wrap;
gap: 20px;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.chanmoe-main {
flex: 2;
min-width: 280px;
}
.chanmoe-side {
flex: 1;
min-width: 250px;
}
/* ---------- 卡片基类 ---------- */
.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-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 分隔线 */
.ascii-divider {
color: #a5d6a7;
font-family: monospace;
text-align: center;
font-size: 0.9em;
margin: 10px 0;
}
/* 冒犯提示条 */
.chanmoe-offense-bar {
color: #2e5a2e;
background: rgba(200, 230, 200, 0.15);
}
.chanmoe-offense-bar a {
color: #c7254e;
font-weight: bold;
}
/* ---------- 新闻区专用类(亮色默认样式已在 HTML 内联,这里只做暗色覆盖) ---------- */
.chanmoe-news-box { /* 仅用于暗色覆盖,不写默认值 */ }
.chanmoe-news-header { }
.chanmoe-news-body { }
.chanmoe-news-footer { }
.chanmoe-news-date { }
.chanmoe-news-item { }
/* 推荐条目、工具、留言辅助类(同样只用于暗色) */
.chanmoe-featured { }
.chanmoe-toolcard { }
.chanmoe-messagecard { }
/* 响应式 */
@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;
}
/* 覆盖 MediaWiki 常见文字元素 */
.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,
.chanmoe-featured,
.chanmoe-toolcard,
.chanmoe-messagecard {
background: #2b2438 !important;
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: #fff;
}
/* --- 工具列表 --- */
.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-news-box {
background: #2b2438 !important;
box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important;
}
.chanmoe-news-header {
background: linear-gradient(180deg, #3d2c4a, #4e3a5c) !important;
color: #ce93d8 !important;
border-bottom-color: #ab47bc !important;
}
.chanmoe-news-body {
background: #2b2438 !important;
color: #e0d6e0;
}
.chanmoe-news-footer {
background: #3d2c4a !important;
border-top-color: #ab47bc !important;
color: #ce93d8;
}
.chanmoe-news-date {
color: #f3e5f5 !important;
}
.chanmoe-news-item {
border-bottom-color: #4a3b5c !important;
}
/* --- 留言区 Anonymous 徽章暗色重绘 --- */
.chanpost span[style*="background:#88cccc"] {
background: #ab47bc !important;
color: white;
}
/* --- 冒犯提示条 --- */
.chanmoe-offense-bar {
background: rgba(60, 40, 70, 0.4) !important;
border-color: #5c3f6b !important;
color: #cfc3d6;
}
.chanmoe-offense-bar a { color: #f48fb1; }
}