跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
槌基百科
搜索
搜索
外观
登录
个人工具
登录
查看“︁MediaWiki:Gadget-ThemeSwitch.css”︁的源代码
系统消息
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
外观
移至侧栏
隐藏
←
MediaWiki:Gadget-ThemeSwitch.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
Superadmin
、editor
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* ThemeSwitch gadget — floating picker */ #theme-picker { position: fixed; bottom: 5.5rem; right: 1.2rem; z-index: 9999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } #theme-toggle-btn { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); box-shadow: 0 3px 12px rgba(0,0,0,0.25); cursor: pointer; font-size: 1.2em; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; outline: none; } #theme-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 5px 18px rgba(0,0,0,0.3); } #theme-picker-menu { position: absolute; bottom: 52px; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); padding: 0.6em; min-width: 130px; display: none; flex-direction: column; gap: 0.3em; border: 1px solid rgba(0,0,0,0.08); } #theme-picker-menu.open { display: flex; } .theme-picker-heading { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.08em; color: #999; padding: 0.2em 0.5em 0.4em; font-weight: 600; } .theme-option { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.7em; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: 0.9em; color: #333; text-align: left; width: 100%; transition: background 0.15s; } .theme-option:hover { background: #f0f4f8; } .theme-swatch { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: inline-block; } /* Dark theme: make the menu itself dark */ html.theme-dark #theme-picker-menu { background: #252836; border-color: #2d3748; color: #e2e8f0; } html.theme-dark .theme-option { color: #e2e8f0; } html.theme-dark .theme-option:hover { background: #2d3748; } html.theme-dark .theme-picker-heading { color: #718096; } /* Warm theme */ html.theme-warm #theme-picker-menu { background: #faf6ef; border-color: #e8dcc8; } html.theme-warm .theme-option { color: #3d2b0f; } html.theme-warm .theme-option:hover { background: #f5ede0; }
返回
MediaWiki:Gadget-ThemeSwitch.css
。