_index.scss 2.67 KB
@import "brand";

.category-page {
    font-size: 30rem / $pxConvertRem;

    .search-input {
        position: relative;
        background-color: #f8f8f8;
        padding: 13rem / $pxConvertRem 20rem / $pxConvertRem;

        p {
            box-sizing: border-box;
            width: 100%;
            height: 60rem / $pxConvertRem;
            line-height: 60rem / $pxConvertRem;
            border: none;
            padding-left: 53rem / $pxConvertRem;
            border-radius: 60rem / $pxConvertRem;
            font-size: 30rem / $pxConvertRem;
            background: #fff;
            color: #999;
        }
    }

    .search-icon {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 43rem / $pxConvertRem;
        line-height: 86rem / $pxConvertRem;
        color: #999;
    }

    .category-nav {
        height: 70rem / $pxConvertRem;
        border-bottom: 1px solid #e6e6e6;

        li {
            display: block;
            box-sizing: border-box;
            float: left;
            height: 100%;
            padding: 20rem / $pxConvertRem 0;
            width: 25%;
            text-align: center;
            color: #999;

            &:last-child {
                border-right: none;
            }

            &.focus {
                color: #000;
            }
        }

        span {
            display: block;
            width: 100%;
            height: 30rem / $pxConvertRem;
            line-height: 30rem / $pxConvertRem;
            font-size: 30rem / $pxConvertRem;
            border-right: 1px solid #e6e6e6;
        }

        li:last-child span {
            border-right: 0;
        }
    }

    .content.hide {
        display: none;
    }

    .primary-level {
        float: left;
        box-sizing: border-box;
        width: 40%;
        background: #f8f8f8;

        > li {
            height: 69rem / $pxConvertRem;
            line-height: 69rem / $pxConvertRem;
            padding-left: 32rem / $pxConvertRem;

            &.focus {
                background-color: #fff;
            }
        }
    }

    .sub-level-container {
        float: left;
        box-sizing: border-box;
        padding-left: 20rem / $pxConvertRem;
        background: #fff;
        width: 60%;
    }

    .sub-level {
        width: 100%;

        &.hide {
            display: none;
        }

        > li {
            height: 71rem / $pxConvertRem;
            line-height: 71rem / $pxConvertRem;
            border-bottom: 1px solid #e6e6e6;

            &:last-child {
                border-bottom: none;
            }
        }

        a {
            display: block;
            height: 100%;
            width: 100%;
            color: #000;
        }
    }
}