shop.scss 3.73 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%;
    display: inline-block;

    .pull-left {
        float: left;
    }

    > a {
        display: block;
        text-decoration: none;
    }

    .shop-img {
        position: relative;

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

        .shop-name {
            position: absolute;
            margin-left: 0;
            text-align: center;
            left: 0;
            bottom: 0;
            width: 100%;
            line-height: 50px;
            background: linear-gradient(0deg, rgba(0, 0, 0, 50%), rgba(255, 255, 255, 0%));
        }
    }

    .shop-name {
        font-size: 24px;
        margin-left: 8px;
        white-space: nowrap;
        width: 73%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

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

        .shop-box {
            width: $shop-width-2;
            height: $floor-height-2;
            margin-right: $margin-left-2;
            margin-bottom: 40px;
            display: inline-block;

            .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;
        margin-top: $margin-top;

        .shop-box {
            width: $shop-width-3;
            height: $floor-height-3;
            margin-right: $margin-left-3;
            margin-bottom: 40px;
            display: inline-block;

            .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;
            }
        }
    }
}

.single-item3 {
    float: left;
    width: 203px;

    .shop-container .feature-shop-info {
        margin: 16px 10px 16px 0;

        > image {
            width: 100%;
            height: 100%;
        }
    }
}

/*
    个性化店铺组与原有店铺组样式几乎完全不一样
*/
.shop-individuation {
    &.shop-two,
    &.shop-three {
        margin-top: 20px;
    }

    &.shop-two {
        .shop-box {
            margin-bottom: 20px;
            height: auto;

            .shop-img {
                height: 320px;
            }
        }
    }

    &.shop-three {
        padding-left: 32px;

        .shop-box {
            width: 184px;
            height: auto;
            margin-right: 8px;
            margin-bottom: 20px;

            .shop-bottom-bar {
                height: 40px;
            }

            .shop-img {
                height: 210px;
            }
        }

        .shop-logo {
            height: 126px;
            margin-bottom: 8px;

            .shop-bottom-bar,
            .shop-name {
                display: none;
            }

            .shop-img {
                height: 100%;
            }

            .shop-logo-img {
                position: relative;
                width: 132px;
                height: 88px;
                left: 26px;
                top: 20px;
            }
        }
    }
}