打开/关闭搜索
搜索
打开/关闭菜单
30
8
13
1.6K
陋室
导航
首页
最近更改
随机页面
特殊页面
社群首页
新闻动态
帮助
上传文件
内容
分类树
所有页面
导入页面
活跃用户列表
界面
侧边栏
站点公告
匿名用户通知
公共样式表
公共脚本
系统消息
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
中文(简体)
个人工具
登录
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
←
MediaWiki:Common.css
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
自动确认用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* =========================== 全局字体设置 =========================== */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP", "Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei", "Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic"; background-color: #f8f9fa; line-height: 1.6; color: #333; margin: 0; padding: 0; } /* =========================== 横幅标语样式 =========================== */ .banner { background: #2c3e50; color: white; border-radius: 8px; padding: 20px; text-align: center; margin: 20px 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .banner .chinese-text { font-size: 24px; font-weight: 600; margin-bottom: 8px; } .banner .english-text { font-size: 16px; opacity: 0.9; } /* =========================== 基础内容块样式 =========================== */ .content-box { margin: 12px 0; padding: 20px; border-radius: 8px; background: white; border: 1px solid #e1e5e9; transition: all 0.2s ease; } .content-box h2 { font-size: 1.25rem; font-weight: 600; color: #2c3e50; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #ecf0f1; } .content-box p { color: #555; font-size: 0.95rem; margin: 0 0 12px 0; } .content-box:hover { border-color: #bdc3c7; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } /* =========================== 布局样式 =========================== */ .content-section { margin: 20px 0; } .wide-box { width: 100%; box-sizing: border-box; } .two-column-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; } .highlight-box { background: #f8f9fa; border-left: 4px solid #2ecc71; } .highlight-box h2 { border-bottom-color: #d5f4e6; } /* 导航容器 */ .nav-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; } .nav-column { padding: 15px; background: rgba(0,0,0,0.02); border-radius: 6px; border: 1px solid #f1f2f6; } .nav-column strong { color: #2c3e50; margin-bottom: 8px; display: block; font-size: 0.95rem; } /* 子分类布局 */ .sub-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; } .sub-categories > div { padding: 12px; background: rgba(0,0,0,0.02); border-radius: 6px; border: 1px solid #f1f2f6; } .sub-categories strong { color: #2c3e50; display: block; margin-bottom: 6px; font-size: 0.9rem; } /* 三栏内容 */ .three-column-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; text-align: center; margin-top: 15px; } .three-column-content > div { padding: 15px; background: white; border-radius: 6px; border: 1px solid #e1e5e9; transition: all 0.2s ease; } .three-column-content > div:hover { border-color: #3498db; } .three-column-content strong { color: #2c3e50; display: block; margin-bottom: 8px; } /* 两栏内容 */ .two-column-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; } .two-column-content > div { padding: 15px; background: rgba(0,0,0,0.02); border-radius: 6px; border: 1px solid #f1f2f6; } .two-column-content strong { color: #2c3e50; display: block; margin-bottom: 8px; } /* 站点链接 */ .site-links { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; margin-top: 15px; text-align: center; } .site-links > div { padding: 12px; background: white; border: 1px solid #e1e5e9; border-radius: 6px; transition: all 0.2s ease; } .site-links > div:hover { border-color: #3498db; } .site-links strong { color: #2c3e50; display: block; margin-bottom: 6px; font-size: 0.9rem; } /* =========================== 特殊区域样式 =========================== */ .content-section.main-focus .content-box { border-left: 4px solid #3498db; background: #f8fbfd; } .two-column-section .content-box:nth-child(1) { border-left: 4px solid #9b59b6; } .two-column-section .content-box:nth-child(2) { border-left: 4px solid #e67e22; } .content-box:nth-last-child(3) { border-left: 4px solid #34495e; } .content-box:nth-last-child(2) { border-left: 4px solid #7f8c8d; } .content-box:last-of-type { border-left: 4px solid #e74c3c; } /* =========================== 链接样式 =========================== */ .content-box a { color: #2980b9; text-decoration: none; transition: color 0.2s ease; } .content-box a:hover { color: #1a5276; text-decoration: underline; } .mw-redirect { color: #27ae60; font-weight: 500; } /* =========================== 响应式设计 =========================== */ @media screen and (max-width: 1024px) { .two-column-section { grid-template-columns: 1fr; } .nav-container, .two-column-content { grid-template-columns: 1fr; } .three-column-content, .site-links { grid-template-columns: 1fr 1fr; } .sub-categories { grid-template-columns: 1fr; } } @media screen and (max-width: 768px) { .content-box { padding: 16px; margin: 8px 0; } .banner { padding: 16px; margin: 16px 0; } .banner .chinese-text { font-size: 20px; } .banner .english-text { font-size: 14px; } .three-column-content, .site-links { grid-template-columns: 1fr; } .three-column-content > div, .site-links > div { margin-bottom: 10px; } .nav-column, .sub-categories > div { padding: 12px; } } @media screen and (max-width: 480px) { .content-box { padding: 14px; } .content-box h2 { font-size: 1.1rem; } .banner .chinese-text { font-size: 18px; } .nav-container, .two-column-content, .three-column-content, .site-links, .sub-categories { grid-template-columns: 1fr; gap: 12px; } .nav-column, .two-column-content > div, .three-column-content > div, .site-links > div, .sub-categories > div { padding: 12px; } } /* =========================== 打印样式 =========================== */ @media print { .banner { background: #fff !important; color: #000 !important; border: 1px solid #000; } .content-box { border: 1px solid #000; box-shadow: none !important; } .nav-column, .two-column-content > div, .three-column-content > div, .site-links > div, .sub-categories > div { background: #fff !important; border: 1px solid #ddd; } }
返回
MediaWiki:Common.css
。
查看“︁MediaWiki:Common.css”︁的源代码
MediaWiki界面页面