MediaWiki:Common.css:修订间差异
来自神国维基
跳到导航跳到搜索
创建页面,内容为“→这里放置的CSS将应用于所有皮肤: →===== 目录:移到左侧,做成小方框 =====: .mw-table-of-contents-container, #toc, .toc { float: left; clear: left; width: 18em; max-width: 45%; margin: 0 1.5em 1em 0; padding: 0.6em 1em; background: #f8f9fa; border: 1px solid #c8ccd1; border-radius: 3px; box-sizing: border-box; font-size: 0.95em; line-height: 1.7; } →内层不要重复加框: .mw-table-of-contents { float: none;…” |
无编辑摘要 |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
/* 这里放置的CSS将应用于所有皮肤 */ | /* 这里放置的CSS将应用于所有皮肤 */ | ||
.mw-table-of-contents-container, | .mw-table-of-contents-container, | ||
.mw-table-of-contents, | |||
#toc, | #toc, | ||
.toc { | .toc { | ||
float: none; | float: none; | ||
width: auto; | width: auto; | ||
max-width: none; | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
border: none; | border: none; | ||
background: none; | background: none; | ||
font-size: 1em; | |||
} | |||
#p-toc .pBody { | |||
max-height: 70vh; | |||
overflow-y: auto; | |||
font-size: 0.9em; | |||
line-height: 1.6; | |||
} | |||
#p-toc ul { | |||
margin: 0; | |||
padding-left: 1.6em; | |||
} | |||
#p-toc .toctitle, | |||
#p-toc .mw-table-of-contents__heading, | |||
#p-toc .mw-table-of-contents-header { | |||
display: none; | |||
} | } | ||
2026年10月5日 (一) 19:13的最新版本
/* 这里放置的CSS将应用于所有皮肤 */
.mw-table-of-contents-container,
.mw-table-of-contents,
#toc,
.toc {
float: none;
width: auto;
max-width: none;
margin: 0;
padding: 0;
border: none;
background: none;
font-size: 1em;
}
#p-toc .pBody {
max-height: 70vh;
overflow-y: auto;
font-size: 0.9em;
line-height: 1.6;
}
#p-toc ul {
margin: 0;
padding-left: 1.6em;
}
#p-toc .toctitle,
#p-toc .mw-table-of-contents__heading,
#p-toc .mw-table-of-contents-header {
display: none;
}