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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
秋绘君留言 | 贡献
无编辑摘要
标签已被回退
秋绘君留言 | 贡献
撤销秋绘君讨论)的修订版本2009
标签撤销
第250行: 第250行:


/* ================================== */
/* ================================== */
/* 2. 主体阅读区的半透明“悬浮卡片”效果 */
/* 1. 铺满全站的固定背景图 */
/* ================================== */
/* ================================== */
/* 这里的 .mw-page-container 是Citizen皮肤的主体容器 */
body {
.mw-page-container {
     background-image: url('https://gf-ogas.wiki/images/7/7e/RC_CG_xian_2.png') !important;
     background-color: rgba(255, 255, 255, 0.85) !important; /* 保持你的透明度设置 */
     background-size: cover !important;       /* 让图片铺满整个屏幕 */
    backdrop-filter: blur(10px) !important; /* 保持毛玻璃模糊度 */
     background-attachment: fixed !important; /* 网页上下滑动时,背景图固定不动 */
   
     background-position: center !important;   /* 确保图片居中 */
    /* --- 新增的核心改动 --- */
    max-width: 1200px !important; /* 限制最大宽度,让两边留空。数字可调,比如 1000px 或 1400px */
     margin: 40px auto !important; /* 上下留 40px 空隙,左右自动居中 */
     border-radius: 20px !important; /* 圆角稍微加大一点,更像卡片 */
     box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; /* 加重一点阴影,提升悬浮感 */
    padding: 20px !important;      /* 给卡片内部加点内边距,让内容不贴边 */
    /* ----------------------- */
}
}


/* 可选:让底下的 footer 也跟着变透明,保持一致性(如果不需要可以删掉这段) */
/* ================================== */
footer {
/* 2. 主体阅读区的半透明“毛玻璃”效果 */
     background: transparent !important;
/* ================================== */
     border: none !important;
#content, .mw-page-container {
     background-color: rgba(255, 255, 255, 0.65) !important; /* 这里的 0.85 是透明度,你可以随便改。1是不透明,0是完全透明 */
    backdrop-filter: blur(10px) !important; /* 毛玻璃的模糊程度,数字越大越模糊 */
     border-radius: 16px !important;         /* 给大白框加个圆角,更像现代 App */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; /* 加一层淡淡的阴影,让阅读区浮在背景上 */
}
}

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

/* ==================================================
   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. 铺满全站的固定背景图 */
/* ================================== */
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;   /* 确保图片居中 */
}

/* ================================== */
/* 2. 主体阅读区的半透明“毛玻璃”效果 */
/* ================================== */
#content, .mw-page-container {
    background-color: rgba(255, 255, 255, 0.65) !important; /* 这里的 0.85 是透明度,你可以随便改。1是不透明,0是完全透明 */
    backdrop-filter: blur(10px) !important; /* 毛玻璃的模糊程度,数字越大越模糊 */
    border-radius: 16px !important;         /* 给大白框加个圆角,更像现代 App */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important; /* 加一层淡淡的阴影,让阅读区浮在背景上 */
}