MediaWiki:Common.css:修订间差异

来自尘月维基
跳转到导航 跳转到搜索
Admin​(留言 | 贡献)
编辑按钮样式
Admin​(留言 | 贡献)
编辑按钮样式
第66行: 第66行:
.cb { min-height: 300px; }
.cb { min-height: 300px; }
.cb-tall { min-height: 380px; }
.cb-tall { min-height: 380px; }
/* 有可视化「编辑」时,隐藏「编辑源代码」标签,只留一个编辑入口 */
#ca-ve-edit ~ #ca-edit {
display: none !important;
}

2026年10月31日 (六) 15:02的版本

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

/* ===== 板块右上角「编辑内容」按钮 ===== */
.card-edit {
	float: right;
	margin: 0 14px 0 0;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.9;
}
.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;
}