nav.scss 1.6 KB
.outlet-nav {
    width: 100%;
    height: 88px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    position: relative;
    background: #fff;
    overflow: hidden;

    .nav-main {
        width: 100%;
        height: 98px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    ul {
        padding: 0 20px;
        margin: 0;
        display: table;
        table-layout: fixed;
        white-space: nowrap;
        width: auto;
    }

    li {
        -webkit-box-flex: 1;
        display: inline-block;
        -webkit-box-align: center;
        -webkit-box-pack: center;
        vertical-align: top;
        margin-right: 10px;
        height: 88px;

        a {
            display: inline-block;
            width: auto;
            height: 86px;
            padding: 0 20px;
            line-height: 88px;
            color: #b0b0b0;
            font-size: 28px;
            border-bottom: 6px solid #fff;
        }

        &.active {
            a {
                border-color: #3d3d3d;
                color: #444;
            }
        }

        &:last-child {
            margin-right: 0;
        }
    }

    &.outlet-category-nav {
        height: 68px;

        li {
            height: 68px;
        }

        a {
            height: 38px;
            line-height: 70px;

            &.active {
                color: #444;
            }
        }

        span {
            color: #b0b0b0;
            font-size: 28px;
        }
    }
}

.nav-fix {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}