_good-slide.css 3.5 KB
.center-content {
    width: 1150px;
    margin-left: auto;
    margin-right: auto;
}
.clearfix {
    *zoom: 1;
    &:after {
        content: '';
        display: block;
        clear: both;
    }
}
.bottom-tab-line {
    position: relative;
    height: 20px;
    width: 970px;
    line-height: 20px;
    margin: 0 auto;
    &:before {
        content: " ";
        width: 970px;
        height: 1px;
        background-color: #b0b0b0;
        position: absolute;
        top: 10px;
        left: 0;
        z-index: 19;
    }
    .bottom-title {
        font-size: 18px;
        color: #000;
        padding-left: 20px;
        padding-right: 20px;
        background-color: #fff;
        z-index: 20;
        position: absolute;
        top: 0;
        left: 430px;
    }
}
.goods-slide {
    width: 970px;
    height: 342px;
    overflow: hidden;
    margin: 0 auto;
    .goods-slide-item {
        position: relative;
        width: 100%;
        overflow: hidden;
        font-size: 12px;
        font-weight: 300;
        .goods {
            width: 970px;
            /*height: 290px;*/
            /*margin: 20px 0 10px;*/
            overflow: hidden;
        }
        .good {
            float: left;
            margin-right: 20px;
            width: 180px;
            &:nth-child(5n) {
                margin-right: 0;
            }
            &:hover {
                .name {
                    color: #d0021b;
                }
            }
        }
        .good-img {
              display: inline-block;
              width: 180px;
              height: 240px;
              overflow: hidden;
        }
        img {
            display: block;
            width: 180px;
            height: 240px;
        }
        .name {
            display: block;
            font-size: 12px;
            font-weight: 300;
            color: #222;
            text-align: center;
            height: 12px;
            line-height: 12px;
            margin-top: 15px;
            /*margin: 15px 0 10px;*/
            padding-left: 2px;
            padding-right: 2px;
            @mixin ellipsis;
        }

        .price {
            text-align: center;
            /*margin-bottom: 8px;*/
        }

        .sale-price,.market-price {
            color: #000;
            font-weight: normal;
        }

        .sale-price-new {
            color: #d0021b;
            margin-right: 15px;
        }

        .market-price {
            text-decoration: line-through;
        }

        .img-brand-switch {
            a {
                position: absolute;
                top: 130px;
                font-size: 26px;
                color: #3a3a3a;
                width: 40px;
                height: 40px;
                padding: 0;
                text-align: center;
                background-color: #e1e1e1;
                &:before {
                    display: inline-block;
                    margin-top: 8px;
                }
                &.active {
                    background-color: #e9e9e9;
                    border: none;
                }
                &.next {
                    &:before {
                        margin-top: 7px;
                        margin-left: 3px;
                    }
                }
            }
            .next {
                right: 0;
                &:before {
                    content: "\e608";
                }
            }
            .prev {
                left: 0;
                &:before {
                    content: "\e609";
                }
            }
        }
    }
}