MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
板块标题样式 |
排版:放开源码编辑标签 + 工具条样式 |
||
| (未显示同一用户的1个中间版本) | |||
| 第73行: | 第73行: | ||
.cb-tall { min-height: 380px; } | .cb-tall { min-height: 380px; } | ||
/* | /* 两个编辑入口并存:「编辑」=可视化;「排版编辑」=源码+排版工具条 */ | ||
#ca-ve-edit ~ #ca-edit { | #ca-ve-edit ~ #ca-edit { | ||
display: | display: inline-block !important; | ||
} | } | ||
| 第95行: | 第95行: | ||
line-height: 1.45; | line-height: 1.45; | ||
color: #222222; | 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; | font-weight: 700; | ||
} | } | ||
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;
}