ui-grid.less 1.95 KB
Newer Older
frank.xa.zhang's avatar
frank.xa.zhang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:last-child {
    border-right: none;
}

.ui-grid-contents-wrapper {

    .cell-text-align-center {
        text-align: center;
    }

    .cell-text-align-left {
        text-align: left;
    }

    .ui-grid-header-canvas {
        background-color: white;
    }

    .ui-grid-render-container {

        .ui-grid-header-cell {
            color: #333;
            background-color: #FFF;
            border: none;
        }

        .ui-grid-row {
            line-height: 55px;

            &:nth-child(odd) {
                .ui-grid-cell {
                    border-right-width: 0;
                    background-color: #FFF;
                }
            }

            &:nth-child(even) {
                .ui-grid-cell {
                    border-right-width: 0;
                    background-color: #F7F7F5;
                }
            }

            &:last-child {
                .ui-grid-cell {
                    border-bottom-width: 1px;
                }
            }

            &.ui-grid-row-selected > [ui-grid-row] > .ui-grid-cell {
                background-color: #fed5a9 !important;
            }

            &:nth-child(odd):hover .ui-grid-cell {
                background: #F5F5F5;
            }

            &:nth-child(even):hover .ui-grid-cell {
                background: #F5F5F5;
            }
        }

        .ui-grid-cell-contents {
            padding: 12px 0 12px 12px;

            .ui-grid-header-cell-label {
                font-family: 'Microsoft YaHei Bold', 'Microsoft YaHei Regular', 'Microsoft YaHei';
                font-weight: 700;
                font-style: normal;
                font-size: 14px;
            }


            .ui-grid-selection-row-header-buttons {
                margin: 5px 0 0 5px;
            }
        }

        i {
            font-size: 16px;
            color: #a1a1a1;
            vertical-align: middle;
        }
    }
}