MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
小无编辑摘要 |
小无编辑摘要 |
||
| (未显示同一用户的2个中间版本) | |||
| 第74行: | 第74行: | ||
/* 隐藏原版页脚编辑说明 */ | /* 隐藏原版页脚编辑说明 */ | ||
#footer-info-credits { display: none; } | #footer-info-credits { display: none; } | ||
/* “公民”皮肤会额外增加一些内容 */ | |||
#footer-info-custom-lastmod .page-info__label { | |||
display: none; | |||
} | |||
/* 仅在 Special:Version 页面隐藏那块版权说明 */ | /* 仅在 Special:Version 页面隐藏那块版权说明 */ | ||
| 第79行: | 第83行: | ||
display: none !important; | display: none !important; | ||
} | } | ||
body.mw-special-Version .plainlinks { | body.mw-special-Version #mw-version-license + .plainlinks { | ||
display: none !important; | display: none !important; | ||
} | } | ||
2026年2月13日 (五) 09:42的最新版本
/* 这里放置的CSS将应用于所有皮肤 */
/*.image-container {*/
/* display: flex;*/
/* flex-wrap: wrap;*/
/* gap: 10px; /* 图片之间的间距
justify-content: space-around; /* 图片均匀分布 */
/*}*/
/*.image-container img {*/
/* width: 200px; /* 强制规定图片宽度 */
/* height: auto; /* 保持纵横比 */
/* object-fit: contain; /* 保持图片的纵横比 */
/* box-sizing: border-box; /* 包括内边距和边框在内计算宽度 */
/*}*/
/* 当屏幕宽度小于1200px时,调整图片宽度 */
/*@media (max-width: 1200px) {*/
/* .image-container img {*/
/* width: 150px;*/
/* }*/
/*}*/
/* 当屏幕宽度小于768px时,调整图片宽度 */
/*@media (max-width: 768px) {*/
/* .image-container img {*/
/* width: 100px;*/
/* }*/
/*}*/
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
pre, code {
font-family: "Fira Code", "Sarasa Mono SC", "Microsoft Yahei Consolas", "PingFang SC", "Noto Sans Mono CJK SC", monospace;
}
body.page-Main_Page li#ca-talk { display: none !important; }
body.page-Main_Page li#ca-delete { display: none !important; }
.vector-main-menu-action-opt-out {
display: none !important;
}
#footer-icons a.cdx-button {
background-color: transparent !important;
}
/* 首页整体容器 */
.mainpage-container {
display: flex;
flex-direction: row;
}
/* 移动端时上下堆叠 */
@media (max-width: 768px) {
.mainpage-container {
flex-direction: column;
}
}
.mw-body h1, .mw-body .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1, .mw-body-content h2, .mw-body-content .mw-heading2 {
font-family: 'Source Han Serif SC VF', 'Georgia', 'Times', 'Source Serif Pro', serif;
}
:root,
* {
text-autospace: normal !important;
}
/* 隐藏首页的更新日期及浏览计数统计 */
body.page-Main_Page #footer-info { display: none !important; }
/* 隐藏原版页脚编辑说明 */
#footer-info-credits { display: none; }
/* “公民”皮肤会额外增加一些内容 */
#footer-info-custom-lastmod .page-info__label {
display: none;
}
/* 仅在 Special:Version 页面隐藏那块版权说明 */
#mw-version-license {
display: none !important;
}
body.mw-special-Version #mw-version-license + .plainlinks {
display: none !important;
}