MediaWiki:Common.css:修订间差异
来自神国反恶俗
跳到导航跳到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第36行: | 第36行: | ||
max-height: 100vh; | max-height: 100vh; | ||
overflow-y: auto; | overflow-y: auto; | ||
} | |||
/* 顶部标签栏:滚动时吸在视口顶部 */ | |||
#p-personal { | |||
position: sticky; | |||
top: 0; | |||
z-index: 200; | |||
background: #ffffff; | |||
padding: 4px 8px; | |||
} | |||
#p-cactions { | |||
position: sticky; | |||
top: 32px; /* 贴着上面那排用户链接的下方 */ | |||
z-index: 199; | |||
background: #ffffff; | |||
padding: 4px 8px; | |||
} | } | ||
2026年10月10日 (六) 13:28的版本
/* 这里放置的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;
}
/* 左侧导航栏随屏幕滚动固定 */
#column-one {
position: sticky;
top: 0;
max-height: 100vh;
overflow-y: auto;
}
/* 顶部标签栏:滚动时吸在视口顶部 */
#p-personal {
position: sticky;
top: 0;
z-index: 200;
background: #ffffff;
padding: 4px 8px;
}
#p-cactions {
position: sticky;
top: 32px; /* 贴着上面那排用户链接的下方 */
z-index: 199;
background: #ffffff;
padding: 4px 8px;
}