查看“︁MediaWiki:Common.css”︁的源代码
←
MediaWiki:Common.css
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
本页面提供本维基软件的界面文本,并受到保护以防止滥用。 要添加或更改所有维基的翻译,请使用MediaWiki的本地化项目
translatewiki.net
。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有网站访客。
您可以查看和复制此页面的源代码。
/* ===== 尘月维基 · 黑顶栏 / 白侧栏 / 白底 / 紫横幅 + 紫标题条(全部直角) ===== */ :root { --wiki-purple: #6b3fa0; --wiki-purple-deep: #5a2f8f; --wiki-border: #e0d5f0; } /* 全站白底 */ body, #mw-wrapper, #mw-content-container, #mw-content-block, #mw-content-wrapper, #content, .mw-body, #mw-data-after-content { background: #ffffff !important; } /* 固定设计宽度 1120:电脑居中显示;手机由 viewport 固定宽度整页等比缩放,两端布局完全一致 */ #mw-wrapper { width: 1120px !important; min-width: 1120px !important; max-width: 1120px !important; margin: 0 auto !important; padding: 0 18px !important; box-sizing: border-box !important; } /* 顶栏黑色 */ #mw-header-container, #mw-header, #mw-header-hack { background: #141414 !important; border-color: #141414 !important; } #mw-header a, #mw-header-container a, #mw-header-hack a, #user-tools a, #p-personal li a, #mw-header .mw-logo-wordmark { color: #ffffff !important; } #mw-header .mw-logo-tagline { color: #c9b8e6 !important; } #searchInput { color: #fff !important; } /* 左侧栏白色 */ #mw-site-navigation, #mw-related-navigation { background: #ffffff !important; border: none !important; } /* 侧栏顶部 logo 隐去(顶栏已显示站点名,与参考图一致) */ #p-logo { display: none !important; } /* 隐藏分类行,保持页面干净 */ #mw-normal-catlinks { display: none !important; } /* 空工具箱块隐藏(p-tb 为空时留下的小空壳) */ #p-tb, #site-tools { display: none !important; } /* 页脚链接加深,避免淡到看不清 */ #mw-footer a, .mw-footer a { color: #6b3fa0 !important; } #mw-footer, .mw-footer { color: #777777 !important; } #mw-site-navigation a, #mw-related-navigation a { color: var(--wiki-purple) !important; } #mw-site-navigation h3, #mw-related-navigation h3 { color: var(--wiki-purple-deep) !important; border-bottom: 1px solid var(--wiki-border) !important; } /* 顶部欢迎横幅:紫色实色、圆角、柔和投影 */ .site-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--wiki-purple) !important; color: #fff; border-radius: 10px !important; padding: 16px 22px; margin-bottom: 16px; box-shadow: 0 3px 12px rgba(90, 47, 143, 0.20); } .banner-text { flex: 1 1 auto; } .banner-title { font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 1.3; } .banner-sub { font-size: 13px; opacity: .95; margin-top: 6px; line-height: 1.6; } .banner-logo { flex: 0 0 auto; width: 78px; height: 78px; background-image: url(/logo.jpg); background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 0 !important; } /* 板块:白底 + 细边框 + 圆角 + 柔和阴影 */ .block { background: #ffffff !important; border: 1px solid var(--wiki-border) !important; border-radius: 8px !important; overflow: hidden; margin-bottom: 16px; box-shadow: 0 3px 10px rgba(80, 45, 135, 0.14); color: #222222; } /* 板块标题条:紫色、白字、居中、顶部圆角(页面上唯一带色的区块之一) */ .block-title { background: var(--wiki-purple) !important; color: #ffffff; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 1px; padding: 10px 0; border-bottom: none; border-radius: 7px 7px 0 0; } .block-body { padding: 16px 18px; line-height: 1.8; color: #333333; background: #ffffff; } /* 两列并排:不做断点重排,手机端靠整页缩放保持同一布局 */ .card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } .card-row .block { margin-bottom: 0; } /* 隐藏「外观/参数设置」等默认菜单,无入口按钮 */ #pt-preferences, #pt-watchlist, #pt-mycontris, #vector-appearance-pinned-container, #vector-appearance-unpinned-container { display: none !important; } /* 固定三栏布局:无视皮肤自身断点(851/1100/1340),手机缩放后与电脑完全一致 */ #mw-content-block { display: flex !important; align-items: flex-start !important; clear: both !important; max-width: none !important; } #mw-site-navigation { order: 1; flex: 0 0 186px !important; width: 186px !important; position: static !important; display: block !important; margin: 0 !important; padding: 14px 10px 14px 0 !important; border-right: 1px solid var(--wiki-border); } #mw-content-wrapper { order: 2; flex: 1 1 auto !important; min-width: 0 !important; } /* 右侧栏(页面工具/更多)隐藏,与参考图一致:只有左栏 + 内容 */ #mw-related-navigation { display: none !important; } #mw-content { margin-top: 0 !important; } /* 侧栏内容常显,不被折叠成下拉 */ #mw-site-navigation .sidebar-inner, #mw-related-navigation .sidebar-inner, #mw-site-navigation .dropdown, #mw-related-navigation .dropdown { display: block !important; position: static !important; box-shadow: none !important; background: #ffffff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; min-width: 0 !important; overflow: visible !important; } /* 隐藏折叠按钮、装饰彩条、页脚 MediaWiki 图标 */ #mw-header-hack, #mw-header-nav-hack, .color-bar, .color-middle-container, .color-left, .color-middle, .color-right, #site-navigation h2, #site-tools h2, #user-tools h2, #footer-icons { display: none !important; } /* 页脚:仅一条浅灰分隔线,无彩色条 */ #mw-content-container { border-bottom: 0 !important; background: #ffffff !important; } #mw-footer, .mw-footer, .mw-footer-container { background: #ffffff !important; border-top: 1px solid #eeeeee !important; box-shadow: none !important; } #footer-poweredbyico { display: none !important; } /* 页面大标题下划线改浅灰 */ #firstHeading, h1.firstHeading { border-bottom: 1px solid #e6e6e6 !important; color: #222222 !important; font-weight: 500 !important; margin-bottom: 6px !important; } /* 左侧栏文字尺寸 */ #mw-site-navigation ul { margin: 0 0 12px 0 !important; padding-left: 0 !important; list-style: none; } #mw-site-navigation li { font-size: 13px; line-height: 1.9; white-space: nowrap; } #mw-site-navigation h3 { font-size: 13px; letter-spacing: 0; margin: 0 0 6px; padding-bottom: 4px; } /* 隐藏页脚 MediaWiki 品牌 */ #footer-poweredby, #f-poweredbyimg { display: none !important; } /* ===== 首页正文排版(贴近参考资料的信息密度) ===== */ .mw-parser-output p { margin: 0 0 10px 0; line-height: 1.85; font-size: 13.5px; color: #333333; } .mw-parser-output p:last-child { margin-bottom: 0; } /* 公告头部大字 */ .notice-head { font-size: 15px; font-weight: 700; color: var(--wiki-purple-deep); text-align: center; margin: 2px 0 14px 0; letter-spacing: .5px; } /* 公告底部链接行 */ .notice-links { margin-top: 12px; font-size: 13px; } .notice-links a { color: var(--wiki-purple) !important; text-decoration: none; } .notice-links a:hover { text-decoration: underline; } .notice-links .sep { color: #c9b8e6; margin: 0 8px; } /* 头像行 */ .avatar-row { display: flex; gap: 8px; margin-bottom: 14px; } .avatar { width: 46px; height: 46px; border-radius: 50%; color: #ffffff; font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(80, 45, 135, .18); flex: 0 0 auto; } /* 条目块 */ .entry { margin-bottom: 16px; } .entry:last-of-type { margin-bottom: 6px; } .entry-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; } .entry-name { font-size: 14px; font-weight: 700; color: var(--wiki-purple-deep); } .entry-date { font-size: 12px; color: #999999; } .entry p { font-size: 13px; line-height: 1.8; } /* 卡片内正文更紧凑 */ .card-row .block-body { padding: 14px 16px; } .card-row .avatar { width: 40px; height: 40px; font-size: 15px; }
返回
MediaWiki:Common.css
。
导航菜单
个人工具
登录
associated-pages
系统消息
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
创建新页面
最近更改
随机页面
特殊页面
社区
帮助
社区专页
工具
上传文件
链入页面
相关更改
个人
登录
工具
链入页面
相关更改
页面信息