_index.css 3.95 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;
            overflow: hidden;
            .tpl-keywords {
                margin-bottom: 8px;
            }

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

                a {
                    float: left;
                    width: 50%;
                    text-align: center;
                    color: #000;
                    overflow: hidden;
                }
            }
        }
        .tpl-brands {
            float: left;
            overflow: hidden;
            margin-left: 8px;
            li {
                margin-top: 8px;
            }
        }
        .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;
                }
            }
        }

        .tpl-nav {
            width: 185px;

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

                a {
                    height: 38px;
                    line-height: 38px;
                    font-size: 14px;
                }
            }
        }

        .tpl-brands {
            width: 378px;
            height: 512px;

            li a {
                height: 248px;
            }
        }
    }
}

/*
人气单品
*/
.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;
            }
        }
    }
}

@import "../variables";
@import "reset";
@import "common";
@import "header";
@import "footer";
@import "slider";
@import "404";
@import "path-nav";
@import "floor-header";
@import "error";
@import "foot-pager";
@import "list";
@import "good";