_index.css 4.75 KB
.index-page {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    #yohood {
        background-color: transparent;
        background-image: resolve('yohood.png');
        background-size: 40%;
        background-repeat: no-repeat;
        background-position-x: 26%;
        background-position-y: 36%;
        border: none;
        border-bottom: 4px solid #fff;
    }

    #yohood:active {
        background-image: resolve('yohood-tapped.png');
        background-color: rgba(255,255,255,.4);
        border-bottom-color: #000;
        .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: 216px;
            height: 96px;
            background: resolve("yohologo.png") left center no-repeat;
            background-size: 208px 50px;
            opacity: 1;
            transition: all 400ms;

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

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

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

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

                .search-box {
                    /* margin-left: 80px;*/
                }
            }
        }

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

            .search-box {
                position: relative;
                top: 20px;
                height: 56px;
                padding-right: 80px;
                transition: width 400ms;
                box-sizing: border-box;
                border: 1px solid #ccc;
                overflow: hidden;
                transition: margin-left 0.4s;
            }
            input {
                float: left;
                width: 96%;
                font-size: 28px;
                padding: 10px;
                color: #999;
                overflow: hidden;
                border: none;
                -webkit-appearance: none;
            }
            .iconfont {
                position: absolute;
                top: 8px;
                width: 40px;
                font-size: 28px;
                z-index: 1;
                line-height: 40px;
            }
            .clear-text {
                display: none;
                right: 50px;
                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;
        transition: transform 0.5s;
        background-color: white;

        .index_header {
            height: 80px;
            line-height: 80px;
            overflow: hidden;
            padding: 0 10px;;


        }

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

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

                .list-item {
                    display: block;
                    position: relative;
                    margin: 0 auto 40px;
                    width: 432px;
                    height: 104px;
                    text-align: center;
                    font-size: 32px;
                    line-height: 104px;
                    color: #fff;
                    background-color: #000;
                    border: 4px solid #fff;
                    font-weight: bold;
                    &:last-child {
                        margin-bottom: 0;
                    }
                }
                .lighter {
                    font-weight: lighter;
                }
                .right-icon {
                    position: absolute;
                    right: 10px;
                    top: 0;
                    font-weight: bold;
                }
                .homestyle {
                  margin-bottom: 50px;
                  width: 287.3px;
                }
           }
        }
    }

}

@import "search";
@import "footer";
@import "error";