打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

网站测试中,如需帮助或提出建议
联系维护员 @天明

MediaWiki:Common.css

MediaWiki界面页面
天明留言 | 贡献2026年6月27日 (六) 15:01的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */

/* 为全站配置中英字符间距重置 */
/* 技术细节请参阅 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference/Properties/text-autospace */
:root,
* {
  text-autospace: normal !important;
}

/*字体声明*/
:lang(en) {
    font-family: "Noto Sans", sans-serif;
}

:lang(zh),
:lang(zh-hans),
:lang(zh-cn) {
    font-family: "Noto Sans SC", sans-serif;
}

.serif:lang(en) {
    font-family: "Noto Serif", serif;
}

.serif:lang(zh),
.serif:lang(zh-hans),
.serif:lang(zh-cn) {
    font-family: "Noto Serif SC", serif;
}

/* 加粗站点公告提示 */
#siteNotice { font-weight: bold; }

/* 隐藏首页的两个tab(页面/讨论) */
body.page-Main_Page li#ca-nstab-main { display: none !important; }
body.page-Main_Page li#ca-talk { display: none !important; }
/* 隐藏 Minerva 皮肤在首页的“讨论”按钮 */
body.page-Main_Page #page-secondary-actions { display: none !important; }

/* 隐藏侧边栏的“切换到旧外观”链接 */
.vector-main-menu-action-opt-out { display: none !important; }

/* 隐藏首页的更新日期及浏览计数统计 */
body.page-Main_Page #footer-info { display: none !important; }

/* 优化外部搜索推荐样式 */
.mw-search-external {
    margin-top: 0.7em;
    font-size: 0.9em;
}
.mw-search-external a {
    margin: 0 0.3em;
}

/* 隐藏原版页脚编辑说明 */
#footer-info-credits { display: none; }

/* 隐藏所有的外链箭头 */
.external::after {
    display: none !important;
}

/* 隐藏版本页面无关的版权信息 */
#mw-version-license,
#mw-version-license + div {
    display: none !important;
}

/* 隐藏版本页面无关的许可协议与作者信息 */
#sv-credits-skin th:nth-child(3),
#sv-credits-skin td:nth-child(3),
#sv-credits-skin th:nth-child(5),
#sv-credits-skin td:nth-child(5) {
	display: none;
}

#sv-credits-semantic th:nth-child(3),
#sv-credits-semantic td:nth-child(3),
#sv-credits-semantic th:nth-child(5),
#sv-credits-semantic td:nth-child(5) {
	display: none;
}

#sv-credits-specialpage th:nth-child(3),
#sv-credits-specialpage td:nth-child(3),
#sv-credits-specialpage th:nth-child(5),
#sv-credits-specialpage td:nth-child(5) {
	display: none;
}

#sv-credits-editor th:nth-child(3),
#sv-credits-editor td:nth-child(3),
#sv-credits-editor th:nth-child(5),
#sv-credits-editor td:nth-child(5) {
	display: none;
}

#sv-credits-parserhook th:nth-child(3),
#sv-credits-parserhook td:nth-child(3),
#sv-credits-parserhook th:nth-child(5),
#sv-credits-parserhook td:nth-child(5) {
	display: none;
}

#sv-credits-variable th:nth-child(3),
#sv-credits-variable td:nth-child(3),
#sv-credits-variable th:nth-child(5),
#sv-credits-variable td:nth-child(5) {
	display: none;
}

/*隐藏页脚 SMW 徽标*/
#footer-icons a[href*="semantic-mediawiki.org"] {
	display: none !important;
}

/* 信息框后置源码布局 */
@media screen and (min-width: 721px) {
	.mw-parser-output.acw-has-infobox-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
		column-gap: 1rem;
		align-items: start;
	}

	.mw-parser-output.acw-has-infobox-layout .acw-infobox-layout-side {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		width: 100%;
		margin: 0 0 1rem;
		float: none;
		clear: none;
	}

	.mw-parser-output.acw-has-infobox-layout .acw-infobox-layout-main {
		grid-column: 1;
		min-width: 0;
	}

	.mw-parser-output.acw-has-infobox-layout .acw-infobox-layout-wide {
		grid-column: 1 / -1;
	}
}