_shop.css 6.17 KB
.yoho-product-list,
.yoho-shop-index {
    .yoho-product-list-content {
        margin-top: 30px;
    }

    .brand-banner {
        width: 100%;
        height: 150px;
        background-size: 100% 100%;
        position: relative;

        .shop-name {
            display: block;
            position: absolute;
            left: 20px;
            bottom: 15px;
            font-size: 35px;
            color: #fff;
        }

        p.opts {
            display: block;
            position: absolute;
            right: 20px;
            bottom: 30px;
            font-size: 14px;

            a,
            .brand-fav {
                color: #fff;
                border: 1px solid #fff;
                padding: 10px;
                margin-left: 10px;
                cursor: pointer;

                .iconfont {
                    font-size: 14px;
                }
            }

            .brand-fav.coled .iconfont {
                color: #fc0d1b;
            }
        }
    }

    .shop-menu {
        border-bottom: 1px solid #eee;

        li {
            display: inline-block;
            margin: 10px 30px;

            a {
                font-size: 12px;
                font-weight: 500;
            }

            .iconfont {
                font-size: 14px;
            }
        }
    }

    .brand-info-wrapper {
        display: none;
    }
}

.yoho-shop-index {
    font-size: 14px;

    @import "order-area";

    .slide-warp {
        margin-bottom: 80px;

        .slide-left {
            float: left;
            width: 375px;
            height: 400px;
            margin-right: 20px;
        }

        .slide-right {
            float: right;
            width: 360px;
            height: 400px;

            a {
                display: block;

                img {
                    width: 100%;
                    height: 190px;
                }
            }

            a:first-child {
                margin-bottom: 20px;
            }
        }
    }

    .new-arrival-warp,
    .hot-product-warp,
    .all-product-warp {
        margin-bottom: 75px;
    }

    .new-arrival-warp,
    .all-product-warp {
        .goods-wrap {
            margin: 0 -10px;

            .goods-info {
                float: left;
                width: 272px;
                margin: 26px 10px;
                border-width: 1px;

                .desc {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }
            }
        }
    }

    .hot-product-warp {
        .goods-wrap {
            margin: 30px -10px 0;

            .goods-info {
                position: relative;
                display: inline-block;
                width: 369px;
                height: 495px;
                margin: 10px 9px;
                border-width: 1px;

                img {
                    height: 495px;
                }

                .desc-cover {
                    position: absolute;
                    bottom: 0;
                    width: 100%;
                    background-color: #000;
                    opacity: 0.2;
                    height: 100px;
                    z-index: 1;
                }

                .desc {
                    position: absolute;
                    bottom: 0;
                    width: 100%;
                    padding: 17px 0;
                    color: #fff;
                    z-index: 2;
                }
            }
        }

        .desc {
            .name {
                color: #fff;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
        }
    }

    .editorial-wrap {
        margin: 0 -10px;

        .editorial-info {
            position: relative;
            float: left;
            width: 368px;
            margin: 25px 10px;
            border-width: 1px;

            .desc {
                margin-top: 10px;
                text-align: center;
                overflow: hidden;
                line-height: 25px;
            }

            .name,
            .intro {
                padding: 10px 0;
            }
        }
    }

    .floor-header {
        position: relative;
        margin-bottom: 7px;

        .floor-more {
            position: absolute;
            right: 0;
            bottom: 3px;
            font-size: 14px;
            font-weight: 700;
        }
    }

    .shop-sort {
        margin: 30px 0;
        height: 30px;
        vertical-align: middle;
        font-size: 14px;

        .all {
            color: #f31a2a;
            height: 30px;
            line-height: 30px;
            float: left;
            border-right: 1px solid #bbb;
            padding-right: 15px;
            font-weight: 700;
        }

        .more {
            height: 30px;
            line-height: 30px;
            float: right;
            font-weight: 700;
        }

        .sort-list {
            float: left;
            height: 30px;
            line-height: 30px;
            width: 1000px;
            overflow: hidden;

            div {
                float: left;
                margin: 0 5px;
                padding: 0 10px;
                height: 30px;
            }

            div:hover {
                background-color: #000;

                a {
                    color: #fff !important;
                }
            }
        }
    }
}

.yoho-dialog.brand-info-dialog {
    width: 900px;
    height: 600px;

    .brand-info {
        height: 520px;
        width: 100%;
        padding: 0 20px;

        .nano-content {
            width: 100%;
        }

        .brand-info-title {
            text-align: left;
            margin: 20px 0 50px;

            h2 {
                font-size: 18px;
                font-weight: 700;
                padding: 10px 0;
            }
        }

        .brand-info-content {
            text-align: left;
            font-size: 12px;
            line-height: 20px;
            height: 396px;

            p {
                font-size: 12px;
                line-height: 20px;
                text-align: left;

                img {
                    margin: 20px 0;
                }
            }
        }
    }
}