_cate.css 3.3 KB
.cate-page {
    font-size: 36px;
    font-family: helvetica, Arial, "黑体";

    ul {
        margin: 0;
        padding: 0;

        li {
            margin: 0;
            padding: 0;
            list-style: none;
        }
    }

    .search-input {
        position: relative;
        background-color: #f8f8f8;
        padding: 13px 20px;

        p {
            box-sizing: border-box;
            width: 100%;
            height: 60px;
            line-height: 60px;
            border: none;
            padding-left: 66px;
            border-radius: 60px;
            font-size: 26px;
            background: #fff;
            color: #999;
        }
    }

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

    .cate-nav {
        height: 120px;
        border-bottom: 1px solid #e6e6e6;

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

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

            &.focus {
                color: #000;

                span {
                    border-bottom: 4px solid #000;
                    font-weight: bold;
                }
            }

            &.bytouch {
                background: #eee;
            }
        }

        span {
            line-height: 80px;
            padding-bottom: 10px;
        }

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

    .content {
        &.hide {
            display: none;
        }
    }

    .primary-level {
        float: left;
        box-sizing: border-box;
        width: 45%;

        > li {
            height: 120px;
            line-height: 120px;
            padding: 0 32px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-bottom: 1px solid #e6e6e6;

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

            &.highlight {
                background-color: #eee;
            }
        }
    }

    .sub-level-container {
        float: left;
        box-sizing: border-box;
        background: #fff;
        width: 55%;
        height: 100%;
    }

    .sub-level {
        width: 100%;
        background-color: #f6f6f6;

        &:before {
            content: "";
            width: 0;
            height: 0;
            border-top: 20px solid transparent;
            border-bottom: 20px solid transparent;
            border-right: 20px solid #efefef;
            position: absolute;
            margin-top: 32px;
            margin-left: -16px;
        }

        &.hide {
            display: none;
        }

        > li {
            box-sizing: border-box;
            height: 110px;
            line-height: 110px;
            border-bottom: 1px solid #e6e6e6;
            padding-left: 20px;

            &.highlight {
                background: #eee;
            }

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

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