_shop.css 1.77 KB
$margin-top: 42px;
$margin-left-2: 20px;
$margin-left-3: 19.75px;
$floor-height-2: 432px;
$floor-height-3: 335px;
$shop-width-2: 285px;
$shop-width-3: 187px;

.shop-container {
    width: 100%;

    .pull-left {
        float: left;
    }

    .shop-box > a {
        display: block;
    }

    .shop-img {
        position: relative;

        > .left-icon {
            width: 100%;
            height: auto;
            position: absolute;
            left: 0;
            top: 0;
            z-index: 1;
        }
    }

    &.shop-two {
        padding-left: $margin-left-2;
        height: $floor-height-2;
        margin-top: $margin-top;

        .shop-box {
            width: $shop-width-2;
            height: $floor-height-2;
            margin-right: $margin-left-2;

            .shop-img {
                width: $shop-width-2;
                height: 372px;
            }

            .shop-bottom-bar {
                width: $shop-width-2;
                height: 60px;
                line-height: 60px;
                color: #fff;
                background-size: 100% 100%;
                background-repeat: no-repeat;
            }
        }
    }

    &.shop-three {
        padding-left: $margin-left-3;
        height: $floor-height-3;
        margin-top: $margin-top;

        .shop-box {
            width: $shop-width-3;
            height: $floor-height-3;
            margin-right: $margin-left-3;

            .shop-img {
                width: $shop-width-3;
                height: 275px;
            }

            .shop-bottom-bar {
                width: 187px;
                height: 60px;
                line-height: 60px;
                color: #fff;
                background-size: 100% 100%;
                background-repeat: no-repeat;
            }
        }
    }
}