查看“︁MediaWiki:Common.css”︁的源代码
←
MediaWiki:Common.css
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 虾仁维基 - 自定义侧边栏导航样式 */ /* 配合 Common.js 使用 */ /* --- 隐藏原生侧边栏 --- */ #mw-panel .portal { display: none !important; } /* --- 自定义侧边栏容器 --- */ #mw-panel { padding: 0 !important; } /* --- 搜索框 --- */ .xn-search { padding: 8px 10px; border-bottom: 1px solid #e0e0e0; } .xn-search-input { width: 100%; padding: 6px 8px; border: 1px solid #c8ccd1; border-radius: 3px; font-size: 12px; outline: none; box-sizing: border-box; transition: border-color 0.15s; } .xn-search-input:focus { border-color: #36c; box-shadow: 0 0 0 1px #36c; } /* --- 当前页面高亮 --- */ .xn-link.xn-active-link { background: #eaf3ff; } .xn-link .xn-active { font-weight: 600; color: #000 !important; } /* --- Section --- */ .xn-section { border-bottom: 1px solid #e0e0e0; margin: 0; padding: 0; } .xn-section:last-child { border-bottom: none; } /* --- Header (Section title) --- */ .xn-header { position: relative; padding: 8px 10px; font-size: 13px; font-weight: 600; color: #333; cursor: pointer; user-select: none; transition: background 0.15s; line-height: 1.4; } .xn-header:hover { background: #f5f5f5; } /* Chevron indicator */ .xn-expandable::before { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #888; margin-right: 6px; vertical-align: middle; transition: transform 0.15s; position: relative; top: -1px; } .xn-expandable.xn-collapsed::before { transform: rotate(-90deg); } /* --- Body (collapsible content) --- */ .xn-body { padding: 0 0 4px 0; } /* --- Links --- */ .xn-link { padding: 3px 10px 3px 20px; font-size: 12px; } .xn-link a { color: #0645ad; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 0; } .xn-link a:hover { text-decoration: underline; color: #0645ad; } .xn-link a:visited { color: #0b0080; } /* Missing page indicator */ .xn-link.xn-missing a { color: #ba0000; } .xn-link.xn-missing a:hover { color: #ba0000; text-decoration: underline; } /* Active page highlight */ .xn-link a[href*="index.php"] { /* MediaWiki will handle active page styling */ } /* --- Sub-section (剧情层, 虾仁论文) --- */ .xn-subsection { padding-left: 8px; } .xn-subheader { padding: 4px 8px 4px 12px; font-size: 12px; font-weight: 500; color: #555; cursor: pointer; user-select: none; transition: background 0.15s; position: relative; } .xn-subheader:hover { background: #f0f0f0; } .xn-subheader.xn-expandable::before { content: ''; display: inline-block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #999; margin-right: 4px; vertical-align: middle; transition: transform 0.15s; } .xn-subheader.xn-expandable.xn-collapsed::before { transform: rotate(-90deg); } .xn-subbody { padding-left: 8px; } .xn-subbody .xn-link { padding-left: 28px; } /* --- Sub-sub-section (金集 within 剧情段) --- */ .xn-subsubsection { padding-left: 4px; } .xn-subsubheader { padding: 2px 6px 2px 16px; font-size: 11px; font-weight: 400; color: #666; cursor: pointer; user-select: none; transition: background 0.15s; position: relative; } .xn-subsubheader:hover { background: #eee; } .xn-subsubheader.xn-expandable::before { content: ''; display: inline-block; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #bbb; margin-right: 4px; vertical-align: middle; transition: transform 0.15s; } .xn-subsubheader.xn-expandable.xn-collapsed::before { transform: rotate(-90deg); } .xn-subsubbody { padding-left: 10px; } .xn-subsubbody .xn-link { padding-left: 36px; } /* --- Single item (共创入口) --- */ .xn-single { padding: 8px 10px; border-bottom: 1px solid #e0e0e0; } .xn-single a { color: #333; font-size: 13px; font-weight: 600; text-decoration: none; } .xn-single a:hover { color: #0645ad; text-decoration: underline; } /* --- Plus button --- */ .xn-plus { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 14px; color: #999; text-decoration: none !important; border-radius: 3px; margin-left: 2px; vertical-align: middle; transition: all 0.15s; float: right; margin-top: 1px; } .xn-plus:hover { color: #0645ad !important; background: #e8f0fe; text-decoration: none !important; } /* --- Work section --- */ .xn-work { margin: 0; padding: 0; } /* --- Add work link --- */ .xn-add-work { padding: 6px 10px 6px 20px; font-size: 12px; border-top: 1px dashed #e0e0e0; margin-top: 2px; } .xn-add-work a { color: #888; text-decoration: none; } .xn-add-work a:hover { color: #0645ad; text-decoration: underline; } /* --- Loading state --- */ .xn-loading { padding: 8px 10px 8px 20px; font-size: 12px; color: #999; font-style: italic; } /* --- Special pages: show minimal sidebar --- */ body.ns-special .xn-section, body.ns-special .xn-work, body.ns-special .xn-single { /* Keep sidebar visible on special pages for navigation */ } /* --- Responsive / narrow sidebar tweaks --- */ @media (max-width: 600px) { #mw-panel { width: 100% !important; } .xn-header { font-size: 14px; padding: 10px; } .xn-link { font-size: 13px; } } /* --- Transition for smooth toggle --- */ .xn-body, .xn-subbody, .xn-subsubbody { overflow: hidden; }
返回
MediaWiki:Common.css
。
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
associated-pages
系统消息
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
虾仁维基
首页
作品总录
三部奠基作品
我在大明那些年
彼岸轮回
一品布衣
文献典藏
虾仁六章
虾仁·传播史
共创入口
工具
最近更改
随机页面
搜索
工具
链入页面
相关更改
页面信息