_index.css 7.62 KB
.index-page {
    overflow: hidden;
    margin: 0 auto;
    width: 100%;

    #double11 {
        display: block;
        width: 432px;
        height: 100px;
        margin: 0 auto;
        background-color: transparent;
        background-image: resolve("channel/11.11.png");
        background-size: 100%;

        &:active {
            background-image: resolve("channel/11.11-touch.png");
        }
    }

    #yohood {
        border: none;
        border-bottom: 8px solid #fff;
        background-color: transparent;
        background-image: resolve("channel/yohood.png");
        background-position-x: 26%;
        background-position-y: 36%;
        background-size: 40%;
        background-repeat: no-repeat;
    }

    #yohood:active {
        border-bottom-color: #000;
        background-color: rgba(255, 255, 255, 0.4);
        background-image: resolve("channel/yohood-tapped.png");

        .right-icon {
            color: #000;
        }
    }

    .index-header {
        box-sizing: border-box;
        padding: 0 20px;
        width: 100%;
        height: 96px;
        line-height: 96px;

        .index-logo {
            float: left;
            width: 288px;
            height: 96px;
            background: resolve("channel/yohologo.png") left center no-repeat;
            background-size: 280px 60px;
            opacity: 1;
            transition: all 400ms;

            img {
                width: 207px;
                height: 49px;
                vertical-align: middle;
            }

            &.action {
                width: 0;
                opacity: 0;
            }
        }

        .box {
            position: relative;
            z-index: 1;
            overflow: hidden;

            &.action {
                .no-search,
                .clear-text {
                    display: block;
                }
            }
        }

        .index-search {
            overflow: hidden;
            height: 96px;
            background: #fff;
            transition: width 0.4s;

            .search-box {
                position: relative;
                top: 20px;
                overflow: hidden;
                box-sizing: border-box;
                padding-right: 80px;
                height: 56px;
                border: 1px solid #ccc;
                transition: width 400ms;
                transition: margin-left 0.4s;
            }

            input {
                float: left;
                overflow: hidden;
                padding: 10px;
                width: 96%;
                border: none;
                color: #999;
                font-size: 28px;
                -webkit-appearance: none;
            }

            .iconfont {
                position: absolute;
                top: 8px;
                z-index: 1;
                width: 40px;
                font-size: 28px;
                line-height: 40px;
            }

            .clear-text {
                right: 50px;
                display: none;
                color: #ccc;
            }

            .search-icon {
                right: 10px;
                color: #666;

                &.empty {
                    color: #e6e6e6;
                }
            }
        }

        .no-search {
            display: none;
            float: left;
            margin-right: 10px;
            color: #999;
            font-size: 28px;
        }
    }

    .index-container {
        position: relative;
        background-color: white;
        transition: transform 0.5s;

        .index-channel {
            position: relative;
            min-height: 800px;
            background-color: #000;
            color: #fff;
            text-align: center;

            img {
                width: 100%;
            }

            .index-channel-list {
                position: absolute;
                top: 50%;
                margin-top: -300px;
                width: 100%;

                .list-item {
                    position: relative;
                    display: block;
                    margin: 0 auto 40px;
                    width: 432px;
                    height: 100px;
                    border: 8px solid #fff;
                    background-color: #000;
                    color: #fff;
                    text-align: center;
                    font-weight: bold;
                    font-size: 32px;
                    line-height: 82px;
                }

                .list-item:last-child {
                    margin-bottom: 0;
                }

                .lighter {
                    font-weight: lighter;
                }

                .right-icon {
                    position: absolute;
                    top: 0;
                    right: 10px;
                    font-weight: bold;
                }

                .homestyle {
                    margin-bottom: 50px;
                    width: 287.3px;
                }
            }
        }
    }
}

.category-page {
    font-size: 30px;

    .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;
    }

    .category-nav {
        height: 70px;
        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;
            }

            &.bytouch {
                background: #eee;
            }
        }

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

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

    .content {
        background: #f8f8f8;

        &.hide {
            display: none;
        }
    }

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

        > li {
            height: 89px;
            line-height: 89px;
            padding: 0 32px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            &.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%;

        &.hide {
            display: none;
        }

        > li {
            box-sizing: border-box;
            height: 89px;
            line-height: 89px;
            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;
        }
    }
}

@import "brand";
@import "home";