_index.scss 5.06 KB
.index-page {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    #yohood {
        background-color: transparent;
        background-image: image-url('yohood.png');
        background-size: 40%;
        background-repeat: no-repeat;
        background-position-x: 26%;
        background-position-y: 36%;
        border: none;
        border-bottom: 4px solid #fff;
    }
    .index-header {
        box-sizing: border-box;
        padding: 0 20rem / $pxConvertRem;
        width: 100%;
        height: 96rem / $pxConvertRem;
        line-height: 96rem / $pxConvertRem;

        .index-logo {
            float: left;
            width: 216rem / $pxConvertRem;
            height: 96rem / $pxConvertRem;
            background: image-url("yohologo.png") left center no-repeat;
            background-size: 104px 25px;
            opacity: 1;
            transition: all 400ms;

            img {
                display: inline;
                vertical-align: middle;
                width: 207rem / $pxConvertRem;
                height: 49rem / $pxConvertRem;
            }

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

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

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

                .search-box {
                    // margin-left: 80rem / $pxConvertRem;
                }
            }
        }

        .index-search {
            height: 96rem / $pxConvertRem;
            background: #fff;
            overflow: hidden;
            @include transition(width .4s);

            .search-box {
                position: relative;
                top: 20rem / $pxConvertRem;
                height: 56rem / $pxConvertRem;
                padding-right: 80rem / $pxConvertRem;
                transition: width 400ms;
                box-sizing: border-box;
                border: 1px solid #ccc;
                overflow: hidden;

                @include transition(margin-left 0.4s);
            }
            input {
                float: left;
                width: 96%;
                font-size: 28rem / $pxConvertRem;
                padding: 10rem / $pxConvertRem;
                color: #999;
                overflow: hidden;
                border: none;
                -webkit-appearance: none;
            }
            .iconfont {
                position: absolute;
                top: 8rem / $pxConvertRem;
                width: 40rem / $pxConvertRem;
                font-size: 28rem / $pxConvertRem;
                z-index: 1;
                line-height: 40rem / $pxConvertRem;
            }
            .clear-text {
                display: none;
                right: 50rem / $pxConvertRem;
                color: #ccc;
            }
            .search-icon {
                right: 10rem / $pxConvertRem;
                color: #666;

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

        .no-search {
            display: none;
            float: left;
            margin-right: 10rem / $pxConvertRem;
            color: #999;
            font-size: 28rem / $pxConvertRem;
        }
    }
    .index-container {
        position: relative;
        @include transition(transform 0.5s);
        background-color: white;

        .index_header {
            height: 80rem / $pxConvertRem;
            line-height: 80rem / $pxConvertRem;
            overflow: hidden;
            padding: 0 10rem / $pxConvertRem;;


        }

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

           .index-channel-list {
                margin-top: -300rem / $pxConvertRem;
                width: 100%;
                position: absolute;
                top: 50%;

                .list-item {
                    display: block;
                    position: relative;
                    margin: 0 auto 40rem / $pxConvertRem;
                    width: 216px;
                    height: 52px;
                    text-align: center;
                    font-size: 16px;
                    line-height: 52px;
                    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: 10rem / $pxConvertRem;
                    top: 0;
                    font-weight: bold;
                }
                .homestyle {
                  margin-bottom: 50rem / $pxConvertRem;
                  width: 287.3rem / $pxConvertRem;
                }
           }
        }
    }

}

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