_banner.scss 1.21 KB
/*
 * @description: banner css
 * @author: lore-w
 * @date: 2015-4-24
 */

//banner
.banner {
    width: 100%;
    //height: 220px;
    margin-bottom: 15px;
    position: relative;

    .swiper-container, .swiper-slide, img {
        width: 320px;
        height: 200px;
        display: block;
        overflow: hidden;
    }

    .swiper-slide {
        float: left;

        a {
            display: block;
        }
    }

    .pagination-wrap {
        position: relative;
        margin-top: 10px;
        text-align: center;
    }

    .pagination {
        height: auto;
        overflow: hidden;
        display: inline-block;
        margin: 0 auto;
    }
}

@each $channel in default, fashion, beauty, sport, lifestyle, video {
    ##{$channel} {
        .banner {
            .swiper-pagination-bullet {
                @include retina-sprite($icons, #{$channel}-normal);
                margin-right: 5px;
                float: left;
                opacity: 1;
                &:nth-last-of-type(1) {
                    margin-right: 0;
                }
                &.swiper-pagination-bullet-active {
                    @include retina-sprite($icons, #{$channel}-active);
                }
            }
        }
    }
}