侧边栏菜单
/* source: http://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;
    }
}

侧边栏

Edit this menu

除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License