MediaWiki:Common.css:修订间差异
外观
无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
| 第284行: | 第284行: | ||
border-top-color: #ab47bc !important; | border-top-color: #ab47bc !important; | ||
} | } | ||
} | |||
.spoiler-text { | |||
transition: background 0.2s, color 0.2s; | |||
} | |||
.spoiler-text.revealed { | |||
background: transparent !important; | |||
color: inherit !important; | |||
} | } | ||
2026年5月23日 (六) 10:08的版本
/* 简中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;
}
}
/* ========== 系统暗色模式(暗紫色版) ========== */
@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;
}
}
.spoiler-text {
transition: background 0.2s, color 0.2s;
}
.spoiler-text.revealed {
background: transparent !important;
color: inherit !important;
}