更好的折叠侧边栏
我和我的小伙伴们都惊呆了!!
此页为于此维基内部使用的组件页。
在未经同意的情况下
请不要动这页里面的东西
源代码
/* source: https://scpko.wikidot.com/theme:minimal-scp-foundation-by-cocoonist */ #top-bar .open-menu a { position: fixed; top: 0.5em; left: 0.5em; z-index: 5; font-family: 'Nanum Gothic', san-serif; font-size: 30px; font-weight: 700; width: 30px; height: 30px; line-height: 0.9em; text-align: center; border: 0.2em solid #888; background-color: #fff; border-radius: 3em; color: #888; pointer-events: none; } div#side-bar { position: fixed; left: -19em; height: 100%; overflow-y: auto; top: 0; width: 17em; padding: 0.45em; display: block; z-index: 10; transition: left 0.5s ease-in-out; } div#side-bar:hover { left: 0; } div#side-bar:before { content: '≡'; position: fixed; top: 0.5em; left: 0.5em; font-size: 30px; width: 36px; height: 36px; text-align: center; z-index: 6; transition: left 0.5s ease-in-out; opacity: 0; cursor: pointer; } div#side-bar:hover:before { transition-delay: 0.1s; } @media (min-width: 768px) { #main-content { max-width: 708px; margin: 0 auto; padding: 0; transition: max-width 0.2s ease-in-out; } .mobile-top-bar { display: block; } .mobile-top-bar li { display: none; } }
页面版本: 3, 最后编辑于: 23 Mar 2024 05:25


