_index.css 3.23 KB
.yoho-page {
    .floor-header {
        position: relative;
        margin: 80px 0 40px;

        .floor-title {
            margin: 0 auto;
            width: 298px;
            height: 31px;
            line-height: 31px;
            border: 1px solid #000;
            font-size: 16px;
            text-align: center;
        }

        .header-navs {
            position: absolute;
            padding: 10px 0;
            top: 0;
            right: 0;
            font-size: 14px;

            li {
                float: left;
                padding: 1px 15px;
                border-left: 1px solid #ccc;

                &:first-child {
                    border-left: none;
                }

                &:hover {
                    text-decoration: underline;
                }

                a {
                    color: #333;
                }
            }
        }
    }
}

/*
热门推荐模板样式
*/
.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;
            }
        }
    }
}