_base.css 3.59 KB
/*
公共样式
*/
.g-list {
    li {
        float: left;

        a {
            position: relative;
            display: block;
            overflow: hidden;

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

/*
热门推荐模板样式
*/
.home-page {
    .tpl-recommend {
        width: 100%;
        position: relative;

        a {
            display: block;

            img {
                display: block;
                width: 100%;
                height: 100%;
            }
        }

        .tpl-body {
            margin-bottom: 8px;
        }

        .tpl-nav {
            float: left;
            width: 185px;
            overflow: hidden;

            .keywords0,
            .keywords1,
            .keywords2 {
                margin-bottom: 10px;
                height: 76px;
            }

            .keywords2 {
                margin-bottom: 0;
            }

            .tpl-keywords {
                margin-bottom: 8px;
            }

            .tpl-category {
                height: 228px;
                padding: 10px 0;
                background-color: #f8f8f8;
                overflow: hidden;

                a {
                    float: left;
                    width: 50%;
                    height: 38px;
                    line-height: 38px;
                    font-size: 14px;
                    text-align: center;
                    color: #000;
                    overflow: hidden;
                }
            }
        }

        .tpl-brands {
            float: left;
            width: 378px;
            height: 512px;
            overflow: hidden;
            margin-left: 8px;

            li {
                margin-top: 8px;

                a {
                    height: 248px;
                }
            }
        }

        .tpl-types {
            float: left;
            overflow: hidden;
            margin-top: -8px;
            width: 579px;

            li {
                float: left;
                margin-left: 8px;
                margin-top: 8px;

                a {
                    width: 185px;
                    height: 248px;
                }
            }
        }

        .tpl-products {
            overflow: hidden;
            margin-left: -10px;

            li {
                float: left;
                margin-left: 10px;

                a {
                    width: 222px;
                    height: 298px;
                }
            }
        }
    }
}

/*
人气单品
*/
.home-page .flash-sale {
    .flash-sale-list {
        margin-left: -10px;

        a {
            height: 340px;
            width: 560px;
        }

        li {
            margin: 10px;
        }

        .flash-sale-banner {
            position: relative;
            height: 260px;
        }

        .flash-sale-bottom {
            height: 78px;
            position: relative;
            border: 1px solid #000;
            border-top-style: none;
        }

        p.flash-sale-count {
            position: absolute;
            left: 50px;
            top: 20px;
        }

        p.flash-sale-name {
            position: absolute;
            left: 120px;
            top: 20px;
        }

        p.flash-sale-timer {
            position: absolute;
            left: 50px;
            top: 50px;
        }

        .flash-sale-logo {
            position: absolute;
            right: 50px;
            width: 100px;
            height: 80px;

            img {
                width: 100px;
                height: 50px;
                margin-top: 15px;
            }
        }
    }
}