_home-header.scss 2.34 KB
/* @include keyframes(turn) {
    1% {
        @include rotateX(90deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100%
    }
    2% {
        @include rotateX(180deg);
        background: image-url('yohologo01.png') no-repeat center center;
        background-size: 100% 
    }

    3% {
        @include rotateX(90deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
        
    }
    4% {
        @include rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
        
    }
    100% {
        @include rotateX(0deg);
        background: image-url('yohologo02.png') no-repeat center center;
        background-size: 100% 
    }   
} */
.home-header {
    height: 90rem / $pxConvertRem;
    line-height: 90rem / $pxConvertRem;
    @include background-image(linear-gradient(#323232, #414141));
    position: relative;
    .iconfont {
        color: #fff;
    }

    .nav-btn {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 2;
        padding: 0 32rem / $pxConvertRem;
    }

    .logo {
        display: block;
        margin: 0 auto;
        width: 208rem / $pxConvertRem;
        height: 87rem / $pxConvertRem;
        background: image-url("yohologo02.png") no-repeat center center;
        background-size: 100%;
        /*@include animation(60s turn infinite);*/

         &.animate{
            background: image-url("yohologo01.png") no-repeat center center;
            background-size: 100%;
         }
    } 

    .search-btn {
        position: absolute;
        right: 0;
        top: 0;
        width: 90rem / $pxConvertRem;
        height: 90rem / $pxConvertRem;
        text-align: center;

        a {
            display: block;
            color: #fff;
            font-size: 40rem / $pxConvertRem;
            line-height: 90rem / $pxConvertRem;
        }

        &.highlight {
            background: rgba(200,200,200,.4);
        }
    }
}

.girls-wrap .home-header {
    background: #FF88AE;
}

.kids-wrap .home-header {
    background: #7ad9f9;
}

.lifestyle-wrap .home-header {
    background: #4f4138;
}

.kids-wrap .logo {
    font-style: italic;
    font-family: "helvetica","Arial","榛戜綋";
    font-weight: bold;
    color: #fff;
}