MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
小无编辑摘要 标签:已被回退 |
小无编辑摘要 标签:已被回退 |
||
| 第117行: | 第117行: | ||
/* 信息框后置源码布局 */ | /* 信息框后置源码布局 */ | ||
@media screen and (min-width: 721px) { | @media screen and (min-width: 721px) { | ||
.mw-parser-output | .mw-parser-output.acw-has-infobox-layout { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); | grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); | ||
| 第124行: | 第124行: | ||
} | } | ||
.mw-parser-output | .mw-parser-output.acw-has-infobox-layout .acw-infobox-layout-side { | ||
grid-column: 2; | grid-column: 2; | ||
grid-row: 1; | grid-row: 1; | ||
| 第134行: | 第134行: | ||
} | } | ||
.mw-parser-output | .mw-parser-output.acw-has-infobox-layout .acw-infobox-layout-main { | ||
grid-column: 1; | grid-column: 1; | ||
min-width: 0; | min-width: 0; | ||
} | } | ||
.mw-parser-output | .mw-parser-output.acw-has-infobox-layout .acw-infobox-layout-wide { | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
} | } | ||
} | } | ||
2026年6月27日 (六) 15:01的版本
/* 这里放置的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;
}
}