MediaWiki:Common.css:修订间差异

来自尘月维基
跳转到导航 跳转到搜索
Maintenance script​(留言 | 贡献)
Timeless深紫玻璃
Admin​(留言 | 贡献)
排版:放开源码编辑标签 + 工具条样式
 
(未显示2个用户的24个中间版本)
第1行: 第1行:
/* ===== 尘月维基 · Timeless:黑顶栏 / 白侧栏 / 淡紫内容区 / 板块深紫玻璃 ===== */
/* ===== 尘月维基 · Vector 经典皮肤(对齐参考站) =====
:root {
  参考站本身几乎没有自定义 CSS,外观全部由首页内联样式表格实现。
--wiki-purple: #4b2e83;
  这里只做三件事:中文字体、站标尺寸、去点击虚线框。
*/
 
body {
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
}


/* 整体背景淡紫 */
/* 站标:左侧栏顶部,10em 宽、等比不拉伸 */
body,
#p-logo a.mw-wiki-logo {
#mw-wrapper,
display: block;
#mw-content-container,
width: 10em;
#mw-content-block,
height: 8em;
#content,
background-image: url(/logo.jpg);
.mw-body {
background-repeat: no-repeat;
background: #f3eefb !important;
background-position: center center;
background-size: contain;
}
}


/* 顶栏黑色 */
/* 内容区最小高度,避免空页面太短 */
#mw-header-container,
#content {
#mw-header {
min-height: 60vh;
background: #1b1b1b !important;
border-color: #1b1b1b !important;
}
}
#mw-header a,
#mw-header-container a,
#mw-header .mw-logo-wordmark { color: #fff !important; }
#mw-header .mw-logo-tagline { color: #cfc3ec !important; }


/* 搜索框 */
/* 首页板块表格里的图片不被撑破 */
#searchInput,
.mw-parser-output table img {
.cdx-text-input__input { color: #fff !important; }
max-width: 100%;
height: auto;
}


/* 左侧栏白色(Timeless 宽屏原生固定在左侧,无需点汉堡) */
/* 去掉链接点击后的虚线框 */
#mw-site-navigation,
a:focus {
#mw-related-navigation {
outline: none;
background: #ffffff !important;
border: none !important;
}
}
#mw-site-navigation a,
#mw-related-navigation a { color: var(--wiki-purple) !important; }


/* 顶部欢迎横幅:紫色实色渐变 */
/* ===== 板块右上角「编辑内容」按钮 =====
.site-banner {
  默认 display:none —— 匿名访客从首屏渲染起就看不到,不会闪一下。
display: flex;
  body.mw-editable 由 MediaWiki 核心仅在有编辑权限的登录用户身上输出。 */
align-items: center;
.card-edit {
justify-content: space-between;
display: none;
gap: 18px;
float: right;
background: linear-gradient(135deg, #4b2e83, #6b4ea8) !important;
margin: 0 14px 0 0;
color: #fff;
font-size: 12px;
border-radius: 12px;
font-weight: 400;
padding: 20px 26px;
letter-spacing: 0;
margin-bottom: 20px;
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);
}
}
.banner-text { flex: 1 1 auto; }
.card-edit a.external {
.banner-title { font-size: 28px; font-weight: 800; letter-spacing: 2px; }
background-image: none !important;
.banner-sub { font-size: 14px; opacity: .92; margin-top: 8px; line-height: 1.7; }
padding-right: 9px !important;
.banner-logo {
}
flex: 0 0 auto;
.card-edit a:hover {
width: 96px; height: 96px;
background: #ffffff;
background-image: url(/logo.jpg);
border-color: #ffffff;
background-size: contain;
color: #510DAB !important;
background-repeat: no-repeat;
background-position: center;
border-radius: 50%;
}
}


/* 板块:唯一玻璃拟态处,深紫色半透明毛玻璃 */
/* 板块正文最小高度:内容为空时框不塌 */
.block {
.cb { min-height: 300px; }
background: rgba(58, 32, 105, 0.62) !important;
.cb-tall { min-height: 380px; }
-webkit-backdrop-filter: blur(14px) saturate(140%);
 
backdrop-filter: blur(14px) saturate(140%);
/* 两个编辑入口并存:「编辑」=可视化;「排版编辑」=源码+排版工具条 */
border: 1px solid rgba(150, 120, 215, 0.35) !important;
#ca-ve-edit ~ #ca-edit {
border-radius: 12px !important;
display: inline-block !important;
overflow: hidden;
margin-bottom: 20px;
box-shadow: 0 6px 24px rgba(40, 20, 80, 0.25);
color: #ffffff;
}
}
.block-title {
 
background: rgba(35, 16, 68, 0.9) !important;
/* 板块正文里的标题:去掉「[编辑]」小链接,字号收敛成清晰的三级层次 */
color: #fff;
.cb .mw-editsection,
text-align: center;
.cb-tall .mw-editsection { display: none !important; }
font-size: 18px;
 
.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;
font-weight: 700;
letter-spacing: 2px;
padding: 12px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
}
.block-body { padding: 18px 20px; line-height: 1.85; color: #eee7ff; }


/* 两列并排 */
/* 新建页面入口:仅登录且有编辑权的管理员可见 */
.card-row {
body:not(.mw-editable) #n-创建新页面{display:none}
display: grid;
#n-创建新页面 a{font-weight:700}
grid-template-columns: 1fr 1fr;
 
gap: 20px;
/* ===== 排版工具条(源代码编辑器) =====
margin-bottom: 20px;
  工具条按钮由 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;
}
}
.card-row .block { margin-bottom: 0; }
#wikiEditor-ui-toolbar .group-layout .tool-select .menu .option {
@media (max-width: 700px) {
padding: 4px 12px;
.card-row { grid-template-columns: 1fr; }
white-space: nowrap;
}
}


/* 外观/参数设置等默认菜单:彻底隐藏,无入口按钮 */
/* 图片对话框里的「去上传」提示 */
#pt-preferences,
.chenyue-img-hint {
#pt-watchlist,
margin: 14px 0 0;
#pt-mycontris,
font-size: 92%;
#vector-appearance-pinned-container,
}
#vector-appearance-unpinned-container { display: none !important; }
.chenyue-img-hint a {
 
color: #6b3fa0;
/* 隐藏页脚 MediaWiki 品牌 */
font-weight: 700;
#footer-poweredby,
}
#f-poweredbyimg { display: none !important; }

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;
}