打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
秋绘君留言 | 贡献
无编辑摘要
秋绘君留言 | 贡献
无编辑摘要
第252行: 第252行:
/* 1. 铺满全站的固定背景图 */
/* 1. 铺满全站的固定背景图 */
/* ================================== */
/* ================================== */
body {
html, body {
     background-image: url('https://gf-ogas.wiki/images/7/7e/RC_CG_xian_2.png') !important;
     background-image: url('https://gf-ogas.wiki/images/7/7e/RC_CG_xian_2.png') !important;
     background-size: cover !important;       /* 让图片铺满整个屏幕 */
     background-size: cover !important;
     background-attachment: fixed !important; /* 网页上下滑动时,背景图固定不动 */
     background-attachment: fixed !important;
     background-position: center !important;   /* 确保图片居中 */
     background-position: center !important;
    background-color: transparent !important; /* 去除系统自带的纯色大背景 */
}
}


/* ================================== */
/* ================================== */
/* 2. 主体阅读区的半透明“悬浮卡片”效果 */
/* 2. 剥掉 Citizen 皮肤内部的纯色“洋葱皮” */
/* ================================== */
/* ================================== */
.mw-page-container {
#content, .mw-body, .citizen-body {
     background-color: rgba(255, 255, 255, 0.85) !important;  
    background: transparent !important;
     backdrop-filter: blur(10px) !important;  
    border: none !important;
}
 
/* ================================== */
/* 3. 主体阅读区的半透明“悬浮卡片”效果 */
/* ================================== */
.citizen-page {
     background-color: rgba(255, 255, 255, 0.85) !important; /* 浅色模式毛玻璃。如果以后用夜间模式,可以改成 rgba(0,0,0,0.7) */
     backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important; /* 兼容部分手机和苹果浏览器 */
      
      
    /* --- 按照你的要求重新调整排版 --- */
     max-width: 900px !important;         
     max-width: 900px !important;        /* 正文区域进一步收缩,显得更紧凑 */
     margin: 120px auto 40px !important;  
     margin: 120px auto 40px !important; /* 核心:顶部留出120px的超大空隙,左右居中,底部留40px */
     border-radius: 20px !important;        
     border-radius: 20px !important;    
     box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;  
     box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;  
     padding: 30px 40px !important;      /* 卡片内部的留白 */
     padding: 30px 40px !important;       
}
}


/* ================================== */
/* ================================== */
/* 3. 隐藏不必要的系统元素 */
/* 4. 隐藏不必要的系统元素(针对 Citizen 专属类名) */
/* ================================== */
/* ================================== */
/* 隐藏最后修改时间、右侧目录和相关的按钮 */
.citizen-page-info,          /* 最后修改时间区域 */
.page-info,  
.citizen-page-header-info,   /* 标题下方的额外信息 */
.citizen-page-info,  
#citizen-toc,               /* 侧边栏目录 */
.citizen-drawer--toc,  
.citizen-header__button--toc,/* 顶部的目录呼出按钮 */
#toc,
#footer-info-lastmod {       /* 页脚的最后修改时间 */
.citizen-ui-toc {
     display: none !important;
     display: none !important;
}
}

2026年2月24日 (二) 14:17的版本

/* ==================================================
   OGAS 协议架构 - 智能隐身模式 (修正版)
   ================================================== */

/* 1. 【核心】隐藏针对路人的“入口”
   解释:#pt-login 是登录连接,#pt-createaccount 是注册。
   只要隐藏这两个,路人就找不到门了。
   注意:千万不要在这里隐藏 #pt-logout 或 #pt-preferences!
*/
#pt-login, #pt-createaccount {
    display: none !important;
}

/* 2. 隐藏普通用户不需要关心的“页面工具”
   解释:隐藏历史记录、查看源码、讨论页等
*/
#ca-viewsource, #ca-history, #ca-talk {
    display: none !important;
}

/* 3. 隐藏侧边栏的杂项 */
#t-permalink, #t-info, #t-specialpages, #t-print, #n-help {
    display: none !important;
}

/* 4. 隐藏底部版权图标 (为了更像独立网站) */
#footer-poweredbyico {
    display: none !important;
}

/* 【逻辑说明】
   你不需要写“登录后显示 xxx”。
   因为当你登录成功后,MediaWiki 会自动生成 #pt-logout (退出)、
   #pt-userpage (用户页)、#pt-preferences (设置)。
   
   因为上面的第1条代码里没有隐藏这些 ID,
   所以一旦你登录,它们自然会显示出来给指挥官你看!
*/



/* 一点样式代码测试 */

/* ==========================================================================
   1. 萌百特色:黑幕 (Heimu)
   用法:<span class="heimu">这里是剧透内容</span>
   ========================================================================== */
.heimu, .heimu rt {
    background-color: #252525;
    transition: color 0.13s linear;
    color: #252525; /* 初始颜色与背景一致 */
    text-shadow: none;
}
.heimu a, a .heimu, .new .heimu {
    transition: color 0.13s linear;
    color: #252525;
}
/* 鼠标悬停显示 */
span.heimu:hover, span.heimu:active { color: #ffffff !important; }
span.heimu:hover a, a:hover span.heimu { color: #add8e6 !important; }
span.heimu:hover a:visited { color: #c5cae9 !important; }

/* ==========================================================================
   2. 选项卡组件 (Tabs)
   用于切换“立绘/重创/心智升级”
   ========================================================================== */
/* 容器 */
.Tabs { display: block; margin: 1em 0; clear: both; }

/* 标签栏 */
.TabLabel { display: flex; flex-wrap: wrap; border-bottom: 2px solid #aaa; }

/* 标签:让它看起来像个按钮 */
.TabLabelText {
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid #aaa;
    border-bottom: none;
    margin-right: 4px;
    background: #f8f9fa;
}

/* 选中状态 */
.TabLabelText.selected {
    background: #fff;
    font-weight: bold;
    margin-bottom: -2px;
    border-bottom: 2px solid #fff;
    /* 这里的颜色你可以通过模板参数控制,或者手动加个 border-top */
}

/* 内容显示控制 */
.TabContent { border: 1px solid #aaa; border-top: none; padding: 15px; }
.TabContentText { display: none; }
.TabContentText.selected { display: block; }


.TabContent {
    min-height: 50px; /* 根据你少前立绘的平均高度设置 */
    transition: min-height 0.3s ease; /* 增加平滑过渡 */
} 



/* ==========================================================================
   2. 导航箱 (Navbox) - 仅保留布局,颜色交给模板
   ========================================================================== */
table.navbox {
    border: 1px solid #aaa;
    width: 100%;
    margin: auto;
    clear: both;
    font-size: 88%;
    text-align: center;
    border-collapse: collapse;
}

/* 移除原本固定的 background 设置,允许模板参数生效 */
.navbox-title,
table.navbox th {
    padding-left: 1em; /* [cite: 82] */
    padding-right: 1em; /* [cite: 82] */
    text-align: center; /* [cite: 82] */
}

.navbox-group {
    font-weight: bold; /* [cite: 82] */
    white-space: nowrap; /* [cite: 82] */
    padding: 0 10px;
}

.navbox-list {
    border-color: #fdfdfd; /* [cite: 83] */
}
/* ==========================================================================
   4. 侧边信息栏 (InfoBox)
   角色属性、数值面板基础
   ========================================================================== */
.infotemplatebox {
    float: right;
    width: 280px;
    font-size: 90%;
    margin: 0 0 1em 1em;
    background: #f9f9f9;
    border: 1px solid #999;
    border-collapse: collapse;
    clear: right;
}
.infoBoxTitle {
    background: #deede0;
    color: #228b22;
    text-align: center;
    font-weight: bold;
    padding: 5px;
}

/* ==========================================================================
   5. 通用修正
   防止图片溢出、强制换行等运维小优化
   ========================================================================== */
pre {
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
.wikitable {
    max-width: 100%;
    margin: 1em 0;
}

/* 隐藏单选框本身 */
.tab-container input[type="radio"] {
    display: none;
}

/* 标签栏容器 */
.tab-labels {
    display: flex;
    border-bottom: 2px solid #36c;
    margin-bottom: 10px;
}

/* 单个标签样式 */
.tab-labels label {
    padding: 10px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    transition: 0.3s;
}

.tab-labels label:hover {
    background: #eaecf0;
}

/* 选中状态的样式 */
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"] {
    background: #36c;
    color: white;
    font-weight: bold;
}

/* 内容区域默认隐藏 */
.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
}

/* 根据选中的 radio 显示对应的内容 */
#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
    display: block;
}
/* 1. 隐藏系统默认的黑三角,并让鼠标放上去变成小手 */
.home-game-fold summary {
    list-style: none; /* 隐藏标准浏览器的三角 */
    cursor: pointer;
    margin-bottom: 10px; /* 图标之间留点空隙 */
}
.home-game-fold summary::-webkit-details-marker {
    display: none; /* 隐藏苹果/谷歌浏览器的三角 */
}

/* 2. 给展开的内容加上丝滑的浮现动画 */
.home-game-fold[open] .fold-content {
    animation: slideDownFade 0.3s ease-out; /* 0.3秒的动画时间 */
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.03); /* 给展开的区域加个极淡的背景色,区分层次(不需要可删除) */
    border-radius: 8px; /* 加个圆角更像 App */
}

/* 3. 定义具体的动画过程:从上面稍微滑下来,并从透明变清晰 */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================== */
/* 1. 铺满全站的固定背景图 */
/* ================================== */
html, body {
    background-image: url('https://gf-ogas.wiki/images/7/7e/RC_CG_xian_2.png') !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center !important;
    background-color: transparent !important; /* 去除系统自带的纯色大背景 */
}

/* ================================== */
/* 2. 剥掉 Citizen 皮肤内部的纯色“洋葱皮” */
/* ================================== */
#content, .mw-body, .citizen-body {
    background: transparent !important;
    border: none !important;
}

/* ================================== */
/* 3. 主体阅读区的半透明“悬浮卡片”效果 */
/* ================================== */
.citizen-page {
    background-color: rgba(255, 255, 255, 0.85) !important; /* 浅色模式毛玻璃。如果以后用夜间模式,可以改成 rgba(0,0,0,0.7) */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important; /* 兼容部分手机和苹果浏览器 */
    
    max-width: 900px !important;        
    margin: 120px auto 40px !important; 
    border-radius: 20px !important;         
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; 
    padding: 30px 40px !important;      
}

/* ================================== */
/* 4. 隐藏不必要的系统元素(针对 Citizen 专属类名) */
/* ================================== */
.citizen-page-info,          /* 最后修改时间区域 */
.citizen-page-header-info,   /* 标题下方的额外信息 */
#citizen-toc,                /* 侧边栏目录 */
.citizen-header__button--toc,/* 顶部的目录呼出按钮 */
#footer-info-lastmod {       /* 页脚的最后修改时间 */
    display: none !important;
}