_side-nav.scss 2.49 KB
.side-nav {
    background: #fff;
    position: absolute;
    top: 0;
    right: 100rem / $pxConvertRem;
    bottom: 0;
    left: 0;
    padding: 0 (30rem / $pxConvertRem);
    z-index: 1;
    li {
        position: relative;
        height: 110rem / $pxConvertRem;
        line-height: 110rem / $pxConvertRem;
        a {
            display: block;
            height: 100%;
            padding-left: 48rem / $pxConvertRem;
            color: #444;
            font-size: 34rem / $pxConvertRem;
            border-bottom: 1px solid #e0e0e0;
        }
        .nav-point {
            position: absolute;
            left: 0;
            color: #f0f0f0;
            font-size: 18rem / $pxConvertRem;
            height: 100%;
        }
        .enter-btn {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            font-size: 32rem / $pxConvertRem;
            color: #b2b2b2;
            font-weight: lighter;
        }
        em {
            margin-right: 20rem / $pxConvertRem;
            font-weight: bold;
        }
    }
    li.current {
        .nav-point {
            color: #444;
        }
    }
}

.sub-nav {
    position: fixed;
    top: 0;
    right: 100rem / $pxConvertRem;
    left: 0;
    bottom: 0;
    background: #fff;
    z-index: 2;
    transform: translate3d(100%, 0, 0);
    transition: transform .3s ease-out;
    li {
        a {
            display: flex;
            display: -webkit-flex;
            margin: 0 (30rem / $pxConvertRem) 0 (112rem / $pxConvertRem);
            padding-left: 0;
            border-bottom: 1px solid #e0e0e0;
            align-items: center;
        }
        /* img{
            position: absolute;
            max-width: 50rem / $pxConvertRem;
            max-height: 50rem / $pxConvertRem;
            left: 32rem / $pxConvertRem;
            top: 50%;
            margin-top: -25rem / $pxConvertRem;
            border: none;
        } */
        img {
            max-width: 50rem / $pxConvertRem;
            max-height: 50rem / $pxConvertRem;
            margin-left: -70rem / $pxConvertRem;
            margin-right: 16rem / $pxConvertRem;
        }
        em {
            font-weight: normal;
        }
    }
    li:first-child {
        height: 80rem / $pxConvertRem;
        line-height: 80rem / $pxConvertRem;
        background: #3e3e3e;
        a {
            color: #fff;
            border-bottom: none;
        }
    }
}

.sub-nav.show {
    transform: translate3d(0, 0, 0);
    transition: transform .3s ease-out;
}