MediaWiki:Common.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* ========== 全局固定背景图 ========== */
body {
background-image: url("https://tc.alcy.cc/tc/20260429/0250621d810c416de209f19d011ae10e.webp");
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
background-size: cover;
}
/* ========== 主内容白色框完全透明 ========== */
#content {
background-color: transparent !important;
border: none !important;
}
/* ========== 左侧侧边栏背景清除 ========== */
#mw-panel {
background: transparent !important;
}
#mw-panel div.portal {
background: transparent !important;
border: none !important;
}
/* ========== 顶部头部区域全透明 ========== */
#mw-head {
background-color: transparent !important;
}
#p-logo {
background: transparent !important;
}
/* ========== 顶部标签栏(阅读 / 讨论)透明 ========== */
div.vectorTabs ul li {
background-color: transparent !important;
}
div.vectorTabs span {
background: transparent !important;
}
div.vectorTabs li.selected span {
background-color: rgba(255,255,255,0.1) !important;
}
/* ========== 右上角工具下拉菜单透明 ========== */
#p-cactions li {
background-color: transparent !important;
}
#p-cactions li a {
background: transparent !important;
}
/* ========== 页面底部页脚透明 ========== */
#footer {
background-color: transparent !important;
border: none !important;
}
/* ========== 优化文字可读性(轻微外发光,不遮挡背景) ========== */
#content p, #content li, #content h1, #content h2, #content h3, #content h4 {
text-shadow: 0 0 4px rgba(0,0,0,0.6);
color: #ffffff;
}
/* 链接文字高亮样式 */
#content a {
color: #88ccff;
text-shadow: 0 0 4px rgba(0,0,0,0.7);
}
#content a:visited {
color: #b89cff;
}