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

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

@import "home";