MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
MJ Hamster(留言 | 贡献) 小无编辑摘要 标签:已被回退 |
MJ Hamster(留言 | 贡献) 小无编辑摘要 标签:已被回退 |
||
第2行: | 第2行: | ||
/* == 浮动目录 == */ | /* == 浮动目录 == */ | ||
# | #p-toc { | ||
position: sticky; | |||
position: | top: 0.5em; | ||
top: | |||
} | } | ||
overflow: auto; | #p-toc .vector-menu-content-list { | ||
max-height: calc(100vh - 3.75em - 12px - var(--sticky-bottom, 0px)); | |||
overflow-y: auto; | |||
scrollbar-width: thin; | |||
overscroll-behavior: none; | |||
} | } | ||
@media (prefers-reduced-motion: no-preference) { | |||
#p-toc .vector-menu-content-list { | |||
max- | scroll-behavior: smooth; | ||
} | |||
} | |||
#p-toc .vector-menu-content-list ul { | |||
margin-left: 10px; | |||
} | |||
#p-toc .vector-menu-content-list ul li { | |||
font-size: inherit; | |||
} | |||
#p-toc .tocsection-current > a { | |||
font-weight: bold; | |||
text-decoration: underline; | |||
} | |||
#p-toc .tocnumber { | |||
color: white; | |||
display: none; /* they take up too much space */ | |||
} | |||
@media screen and (max-width: 720px) { | |||
#p-toc { | |||
display: none; | |||
} | |||
} | } | ||
2025年7月19日 (六) 08:42的版本
/* 这里放置的CSS将应用于所有皮肤 */ /* == 浮动目录 == */ #p-toc { position: sticky; top: 0.5em; } #p-toc .vector-menu-content-list { max-height: calc(100vh - 3.75em - 12px - var(--sticky-bottom, 0px)); overflow-y: auto; scrollbar-width: thin; overscroll-behavior: none; } @media (prefers-reduced-motion: no-preference) { #p-toc .vector-menu-content-list { scroll-behavior: smooth; } } #p-toc .vector-menu-content-list ul { margin-left: 10px; } #p-toc .vector-menu-content-list ul li { font-size: inherit; } #p-toc .tocsection-current > a { font-weight: bold; text-decoration: underline; } #p-toc .tocnumber { color: white; display: none; /* they take up too much space */ } @media screen and (max-width: 720px) { #p-toc { display: none; } }