MediaWiki:Common.css

来自圣洛神教
圣洛管理员留言 | 贡献2026年9月3日 (四) 06:29的版本
跳转到导航 跳转到搜索

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

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-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;
}