MediaWiki:Common.css:修订间差异
外观
小 已还原Alice(讨论)的编辑至最后由NoooOneLoveMe修订的版本 标签:回退 已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第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 全局样式 */ | ||
/* 强制全站淡绿色背景 */ | /* 强制全站淡绿色背景 */ | ||
/* —— 木质留言板(亮色)—— */ | |||
.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, | ||
| 第9行: | 第99行: | ||
} | } | ||
html { | html { | ||
background-color: #e6f5e6; | background-color: #e6f5e6; | ||
| 第21行: | 第110行: | ||
background-color: #e6f5e6; | background-color: #e6f5e6; | ||
} | } | ||
.chanmoegrid { | .chanmoegrid { | ||
display: flex; | display: flex; | ||
| 第29行: | 第119行: | ||
padding: 20px; | padding: 20px; | ||
} | } | ||
.chanmoecard { | .chanmoecard { | ||
background: #ffffff; | background: #ffffff; | ||
| 第36行: | 第127行: | ||
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%; | ||
| 第47行: | 第140行: | ||
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; | ||
| 第63行: | 第159行: | ||
color: #0066cc; | color: #0066cc; | ||
} | } | ||
.chanboard-grid { | .chanboard-grid { | ||
display: flex; | display: flex; | ||
| 第68行: | 第165行: | ||
gap: 10px; | gap: 10px; | ||
} | } | ||
.chanboard-btn { | .chanboard-btn { | ||
background: #e8f5e9; | background: #e8f5e9; | ||
| 第78行: | 第176行: | ||
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; | ||
| 第87行: | 第187行: | ||
padding: 0; | padding: 0; | ||
} | } | ||
.chanlist li { | .chanlist li { | ||
padding: 6px 0; | padding: 6px 0; | ||
| 第92行: | 第193行: | ||
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; | ||
| 第98行: | 第203行: | ||
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; | ||
| 第109行: | 第216行: | ||
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; | ||
| 第120行: | 第229行: | ||
margin: 10px 0; | margin: 10px 0; | ||
} | } | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.chanmoegrid { flex-direction: column; } | .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; | |||
} | |||
} | } | ||
2026年5月2日 (六) 18:39的版本
切换到旧外观
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 全局样式 */
/* 强制全站淡绿色背景 */
/* —— 木质留言板(亮色)—— */
.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;
}
}