_brand.css 3.11 KB
.brand-page {
    padding-bottom: 80px;

    .brands-tabs {
        position: relative;
        margin-bottom: 20px;
        overflow: hidden;
        height: 304px;

        a {
            display: block;
            width: 370px;
            height: 304px;

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

            .g-mask {
                width: 100%;
                height: 100%;
                display: block;
                position: absolute;
                z-index: 1;
                background: #ffec07;
                border: 1px solid #ffec07;
                opacity: 0;
            }
        }

        li {
            float: left;
            margin-left: 20px;
            position: relative;

            p {
                display: block;
                font-size: 30px;
                text-align: center;
                color: #ffec07;
                position: absolute;
                top: 50%;
                width: 100%;
                margin-top: -15px;
                z-index: 3;
            }
        }

        li:first-child {
            margin-left: 0;
        }

        li:hover {
            .g-mask {
                opacity: 0.3;
            }
        }
    }

    .category-nav {
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        width: 1150px;
        height: 44px;
        line-height: 44px;
        font-size: 12px;
        font-weight: bold;
        position: relative;
        z-index: 100;
        background-color: #fff;
        overflow: hidden;

        a {
            display: inline-block;
            padding-left: 29px;
            text-align: center;
            color: #222;
            cursor: pointer;
        }
    }

    .brands-list {
        dt {
            height: 70px;
            line-height: 70px;
            font-weight: bold;
            font-size: 24px;
        }

        dd {
            width: 1180px;

            li {
                float: left;
                display: block;
                width: 275px;
                height: 250px;
                margin-right: 15px;
                border: 1px solid #eee;
                margin-top: 20px;
            }

           /* li:nth-child(4n) {
                margin-right: 0;
            }*/

            li:nth-child(-n+4) {
                margin-top: 0;
            }

            a {
                font-size: 16px;
                display: block;
                width: 100%;
                height: 100%;

                img {
                    width: 275px;
                    height: 190px;
                }

                span {
                    display: block;
                    height: 60px;
                    line-height: 60px;
                    text-align: center;
                    font-size: 16px;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    overflow: hidden;
                }
            }
        }
    }

    .category-fix {
        position: fixed;
        top: 0;
        z-index: 100;
        margin-top: 0 !important;
    }
}