MediaWiki:Gadget-stickyToc.css
跳转到导航
跳转到搜索
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
#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; } } /* [[Category:stylesheets]] */