打开/关闭搜索
搜索
打开/关闭菜单
549
7
12
2051
OGAS数据中枢
导航
首页
最近更改
随机页面
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* ================================================== 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; }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面