MediaWiki:Common.css:修订间差异

来自尘月维基
跳转到导航 跳转到搜索
Admin​(留言 | 贡献)
板块标题样式
Admin​(留言 | 贡献)
新建页面入口仅管理员可见
第97行: 第97行:
font-weight: 700;
font-weight: 700;
}
}
/* 新建页面入口:仅登录且有编辑权的管理员可见 */
body:not(.mw-editable) #n-创建新页面{display:none}
#n-创建新页面 a{font-weight:700}

2026年10月31日 (六) 16:09的版本

/* ===== 尘月维基 · 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: none !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}