MediaWiki:Common.css:修订间差异

来自尘月维基
跳转到导航 跳转到搜索
Admin​(留言 | 贡献)
无编辑摘要
Admin​(留言 | 贡献)
排版:放开源码编辑标签 + 工具条样式
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
/* ===== 尘月维基 · Vector 经典皮肤 ===== */
/* ===== 尘月维基 · Vector 经典皮肤(对齐参考站) =====
:root {
  参考站本身几乎没有自定义 CSS,外观全部由首页内联样式表格实现。
--wiki-purple: #6b3fa0;
  这里只做三件事:中文字体、站标尺寸、去点击虚线框。
--wiki-purple-deep: #5a2f8f;
*/
--wiki-border: #e0d5f0;
--bar-h: 3.2em;
--panel-w: 11em;
}


body {
body {
background: #ffffff !important;
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
min-width: 1000px;
}
}


/* ===== 顶部黑条 ===== */
/* 站标:左侧栏顶部,10em 宽、等比不拉伸 */
#mw-page-base { background: #ffffff !important; height: 0 !important; }
#p-logo a.mw-wiki-logo {
#mw-head-base {
display: block;
background: #141414 !important;
width: 10em;
height: var(--bar-h) !important;
height: 8em;
margin-left: var(--panel-w) !important;
background-image: url(/logo.jpg);
border: none !important;
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
}
#mw-head {
 
background: #141414 !important;
/* 内容区最小高度,避免空页面太短 */
height: var(--bar-h) !important;
#content {
min-height: 60vh;
}
}
#mw-head a,
#mw-head a span,
#p-personal a { color: #ffffff !important; }
#p-personal { top: 0.55em !important; }


/* 顶部标签页(首页 / 讨论) */
/* 首页板块表格里的图片不被撑破 */
#left-navigation, #right-navigation { top: 0.55em !important; }
.mw-parser-output table img {
#left-navigation .vector-menu-tabs,
max-width: 100%;
#right-navigation .vector-menu-tabs,
height: auto;
#left-navigation .vector-menu-tabs a,
#right-navigation .vector-menu-tabs a,
.vector-menu-tabs .selected a {
background: none !important;
border: none !important;
color: #ffffff !important;
text-shadow: none !important;
}
}


/* 搜索 */
/* 去掉链接点击后的虚线框 */
#p-search { top: 0.5em !important; }
a:focus {
#searchInput {
outline: none;
background: #ffffff !important;
border: 1px solid #555555 !important;
color: #222222 !important;
}
}


/* ===== 左侧栏 ===== */
/* ===== 板块右上角「编辑内容」按钮 =====
#mw-panel {
  默认 display:none —— 匿名访客从首屏渲染起就看不到,不会闪一下。
width: var(--panel-w) !important;
  body.mw-editable 由 MediaWiki 核心仅在有编辑权限的登录用户身上输出。 */
background: #ffffff !important;
.card-edit {
padding-top: calc(var(--bar-h) + 0.7em) !important;
display: none;
float: right;
margin: 0 14px 0 0;
font-size: 12px;
font-weight: 400;
letter-spacing: 0;
line-height: 1.9;
}
}
#p-logo {
body.mw-editable .card-edit {
position: absolute !important;
display: block;
top: 0 !important;
left: 0 !important;
width: var(--panel-w) !important;
height: var(--bar-h) !important;
background: #141414 !important;
margin: 0 !important;
}
}
#p-logo a.mw-wiki-logo {
.card-edit a {
display: block !important;
display: inline-block;
width: 34px !important;
padding: 0 9px;
height: 34px !important;
color: #ffffff !important;
margin: calc((var(--bar-h) - 34px) / 2) 10px !important;
text-decoration: none;
background-image: url(/logo.jpg) !important;
border: 1px solid rgba(255, 255, 255, 0.55);
background-size: contain !important;
border-radius: 11px;
background-position: center !important;
background: rgba(255, 255, 255, 0.14);
background-repeat: no-repeat !important;
border-radius: 5px !important;
}
}
 
.card-edit a.external {
#mw-panel .portal {
background-image: none !important;
position: static !important;
padding-right: 9px !important;
width: auto !important;
margin: 0 0 0.9em 0 !important;
padding: 0 10px !important;
border: none !important;
}
}
#mw-panel h3.vector-menu-heading {
.card-edit a:hover {
font-size: 12px !important;
background: #ffffff;
font-weight: 700 !important;
border-color: #ffffff;
color: var(--wiki-purple-deep) !important;
color: #510DAB !important;
border-bottom: 1px solid var(--wiki-border) !important;
padding-bottom: 4px !important;
margin: 0 0 6px 0 !important;
}
}
#mw-panel ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
 
#mw-panel li { margin: 0 !important; line-height: 1.9 !important; }
/* 板块正文最小高度:内容为空时框不塌 */
#mw-panel li a {
.cb { min-height: 300px; }
font-size: 12px !important;
.cb-tall { min-height: 380px; }
color: var(--wiki-purple) !important;
 
white-space: nowrap;
/* 两个编辑入口并存:「编辑」=可视化;「排版编辑」=源码+排版工具条 */
#ca-ve-edit ~ #ca-edit {
display: inline-block !important;
}
}


/* ===== 内容区 ===== */
/* 板块正文里的标题:去掉「[编辑]」小链接,字号收敛成清晰的三级层次 */
#content {
.cb .mw-editsection,
margin-left: var(--panel-w) !important;
.cb-tall .mw-editsection { display: none !important; }
border: none !important;
 
background: #ffffff !important;
.cb .mw-heading,
padding: 1em 1.6em 1.5em 1.6em !important;
.cb-tall .mw-heading { margin: 0.5em 0; }
box-shadow: none !important;
color: #222222 !important;
}
#firstHeading,
h1.firstHeading {
border-bottom: 1px solid #e6e6e6 !important;
font-weight: 500 !important;
color: #222222 !important;
margin-bottom: 6px !important;
}
#mw-normal-catlinks { display: none !important; }
#siteSub { display: none !important; }


/* ===== 页脚 ===== */
.cb h1, .cb-tall h1 { font-size: 165%; }
#footer {
.cb h2, .cb-tall h2 { font-size: 135%; }
margin-left: var(--panel-w) !important;
.cb h3, .cb-tall h3 { font-size: 118%; }
background: #ffffff !important;
.cb h4, .cb-tall h4 { font-size: 105%; }
border-top: 1px solid #eeeeee !important;
.cb h1, .cb h2, .cb h3, .cb h4, .cb h5, .cb h6,
color: #777777 !important;
.cb-tall h1, .cb-tall h2, .cb-tall h3, .cb-tall h4, .cb-tall h5, .cb-tall h6 {
border-bottom: none !important;
margin: 0.35em 0;
line-height: 1.45;
color: #222222;
font-weight: 700;
}
}
#footer a { color: var(--wiki-purple) !important; }
#footer-icons { display: none !important; }


/* ===== 隐藏多余入口 ===== */
/* 新建页面入口:仅登录且有编辑权的管理员可见 */
#p-lang,
body:not(.mw-editable) #n-创建新页面{display:none}
.mw-portlet-otherlanguages,
#n-创建新页面 a{font-weight:700}
#p-variants,
#pt-watchlist,
#pt-mycontris { display: none !important; }


/* ===== 首页横幅 ===== */
/* ===== 排版工具条(源代码编辑器) =====
.site-banner {
  工具条按钮由 MediaWiki:Common.js 注入,这里只管外观:
display: flex;
  让「颜色 / 字号 / 对齐 / 插图 / 调图」在灰色工具条里显眼一点。 */
align-items: center;
#wikiEditor-ui-toolbar .group-layout .tool-select > .label {
justify-content: space-between;
background: #6b3fa0;
gap: 16px;
color: #ffffff !important;
background: var(--wiki-purple) !important;
border-radius: 4px;
color: #ffffff;
padding: 2px 10px;
border-radius: 6px !important;
margin: 2px 1px;
padding: 14px 20px;
font-weight: 700;
margin-bottom: 16px;
box-shadow: 0 3px 12px rgba(90, 47, 143, 0.20);
}
.banner-text { flex: 1 1 auto; }
.banner-title { font-size: 22px; font-weight: 700; line-height: 1.3; }
.banner-sub { font-size: 12.5px; opacity: .95; margin-top: 5px; line-height: 1.6; }
.banner-logo {
flex: 0 0 auto;
width: 66px; height: 66px;
background-image: url(/logo.jpg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
}
 
#wikiEditor-ui-toolbar .group-layout .tool-select > .label:hover {
/* ===== 板块卡片 ===== */
background: #8552c2;
.block {
background: #ffffff !important;
border: 1px solid var(--wiki-border) !important;
border-radius: 6px !important;
overflow: hidden;
margin-bottom: 16px;
box-shadow: 0 3px 10px rgba(80, 45, 135, 0.14);
color: #222222;
}
}
.block-title {
#wikiEditor-ui-toolbar .group-layout .tool-button {
background: var(--wiki-purple) !important;
color: #ffffff;
text-align: center;
font-size: 15px;
font-weight: 700;
font-weight: 700;
letter-spacing: 1px;
color: #6b3fa0;
padding: 9px 0;
border-radius: 5px 5px 0 0;
}
}
.block-body {
#wikiEditor-ui-toolbar .group-layout .tool-select .menu .option {
padding: 14px 16px;
padding: 4px 12px;
line-height: 1.8;
white-space: nowrap;
color: #333333;
background: #ffffff;
font-size: 13.5px;
}
}
.mw-parser-output p { margin: 0 0 10px 0; line-height: 1.85; }
.mw-parser-output p:last-child { margin-bottom: 0; }


/* 两列并排 */
/* 图片对话框里的「去上传」提示 */
.card-row {
.chenyue-img-hint {
display: grid;
margin: 14px 0 0;
grid-template-columns: 1fr 1fr;
font-size: 92%;
gap: 16px;
}
margin-bottom: 16px;
.chenyue-img-hint a {
color: #6b3fa0;
font-weight: 700;
}
}
.card-row .block { margin-bottom: 0; }

2026年10月31日 (六) 17:48的最新版本

/* ===== 尘月维基 · Vector 经典皮肤(对齐参考站) =====
   参考站本身几乎没有自定义 CSS,外观全部由首页内联样式表格实现。
   这里只做三件事:中文字体、站标尺寸、去点击虚线框。
*/

body {
	font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* 站标:左侧栏顶部,10em 宽、等比不拉伸 */
#p-logo a.mw-wiki-logo {
	display: block;
	width: 10em;
	height: 8em;
	background-image: url(/logo.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}

/* 内容区最小高度,避免空页面太短 */
#content {
	min-height: 60vh;
}

/* 首页板块表格里的图片不被撑破 */
.mw-parser-output table img {
	max-width: 100%;
	height: auto;
}

/* 去掉链接点击后的虚线框 */
a:focus {
	outline: none;
}

/* ===== 板块右上角「编辑内容」按钮 =====
   默认 display:none —— 匿名访客从首屏渲染起就看不到,不会闪一下。
   body.mw-editable 由 MediaWiki 核心仅在有编辑权限的登录用户身上输出。 */
.card-edit {
	display: none;
	float: right;
	margin: 0 14px 0 0;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.9;
}
body.mw-editable .card-edit {
	display: block;
}
.card-edit a {
	display: inline-block;
	padding: 0 9px;
	color: #ffffff !important;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.14);
}
.card-edit a.external {
	background-image: none !important;
	padding-right: 9px !important;
}
.card-edit a:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #510DAB !important;
}

/* 板块正文最小高度:内容为空时框不塌 */
.cb { min-height: 300px; }
.cb-tall { min-height: 380px; }

/* 两个编辑入口并存:「编辑」=可视化;「排版编辑」=源码+排版工具条 */
#ca-ve-edit ~ #ca-edit {
	display: inline-block !important;
}

/* 板块正文里的标题:去掉「[编辑]」小链接,字号收敛成清晰的三级层次 */
.cb .mw-editsection,
.cb-tall .mw-editsection { display: none !important; }

.cb .mw-heading,
.cb-tall .mw-heading { margin: 0.5em 0; }

.cb h1, .cb-tall h1 { font-size: 165%; }
.cb h2, .cb-tall h2 { font-size: 135%; }
.cb h3, .cb-tall h3 { font-size: 118%; }
.cb h4, .cb-tall h4 { font-size: 105%; }
.cb h1, .cb h2, .cb h3, .cb h4, .cb h5, .cb h6,
.cb-tall h1, .cb-tall h2, .cb-tall h3, .cb-tall h4, .cb-tall h5, .cb-tall h6 {
	border-bottom: none !important;
	margin: 0.35em 0;
	line-height: 1.45;
	color: #222222;
	font-weight: 700;
}

/* 新建页面入口:仅登录且有编辑权的管理员可见 */
body:not(.mw-editable) #n-创建新页面{display:none}
#n-创建新页面 a{font-weight:700}

/* ===== 排版工具条(源代码编辑器) =====
   工具条按钮由 MediaWiki:Common.js 注入,这里只管外观:
   让「颜色 / 字号 / 对齐 / 插图 / 调图」在灰色工具条里显眼一点。 */
#wikiEditor-ui-toolbar .group-layout .tool-select > .label {
	background: #6b3fa0;
	color: #ffffff !important;
	border-radius: 4px;
	padding: 2px 10px;
	margin: 2px 1px;
	font-weight: 700;
}
#wikiEditor-ui-toolbar .group-layout .tool-select > .label:hover {
	background: #8552c2;
}
#wikiEditor-ui-toolbar .group-layout .tool-button {
	font-weight: 700;
	color: #6b3fa0;
}
#wikiEditor-ui-toolbar .group-layout .tool-select .menu .option {
	padding: 4px 12px;
	white-space: nowrap;
}

/* 图片对话框里的「去上传」提示 */
.chenyue-img-hint {
	margin: 14px 0 0;
	font-size: 92%;
}
.chenyue-img-hint a {
	color: #6b3fa0;
	font-weight: 700;
}