_material.css 3.16 KB
.product_material {
    width: 1200px;
    margin: auto;
    font-family: '微软雅黑';
    font-size: 14px;

    h1 {
        font-size: 30px;
        margin: 15px 0 50px;
        text-align: center;
    }

    /* 过滤 */
    .line {
        width: 1200px;
        margin: 10px auto;
    }

    .sel {
        width: 173px;
        vertical-align: middle;
        height: 24px;
        box-sizing: border-box;
    }

    label,
    a {
        vertical-align: middle;
    }

    /* 品牌 */
    #brand {
        position: relative;
        height: 24px;
        box-sizing: border-box;

        label {
            cursor: pointer
        }
    }

    #brand_container {
        position: absolute;
        width: 1200px;
        background: #ccc;
        z-index: 2;
        display: none;
        height: 800px;
        overflow: auto;

        .nav {
            overflow: hidden;

            span {
                display: inline-block;
                width: 25%;
                text-align: center;
                height: 30px;
                line-height: 30px;
                cursor: pointer;
                float: left;
            }

            .focus {
                background: #eee;
            }
        }

        .title {
            padding: 5px 0;
            background: #555;
            color: #fff;
            text-align: center;
        }

        .content {
            background: #fff;
        }

        .item {
            display: inline-block;
            width: 10%;
            padding: 5px 0;
            text-align: center;
            height: 20px;
            line-height: 20px;
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 5px 0;
            &:hover {
                background: #eee;
                cursor: pointer;
            }
        }
    }

    #category-2 {
        display: none;
    }

    #category-3 {
        display: none;
    }

    .search-btn {
        float: right;
        border-radius: 2px;
        background: #000;
        padding: 5px 15px;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
        margin-right: 20px;
    }

    .search-recommend-btn {
        float: right;
        border-radius: 2px;
        background: #000;
        padding: 5px 15px;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
    }

    /*表格*/
    table {
        width: 1200px;
        margin: 20px auto;
    }

    table {
        table-layout: fixed;
        empty-cells: show;
        border-collapse: collapse;

        img {
            width: 80px;
        }
    }

    td {
        height: 30px;
    }

    .table {
        border: 1px solid #cad9ea;
        color: #666;
    }

    .table th {
        background-repeat: repeat-x;
        height: 30px;
    }

    .table td,
    .table th {
        border: 1px solid #cad9ea;
        padding: 0 1em 0;
    }

    .table tr.alter {
        background-color: #f5fafe;
    }

    .mask {
        position: absolute;
        top: 0;
        width: 100%;
        bottom: 0;
        z-index: 1;
        background: #000;
        opacity: 0.6;
        display: none;
    }
}