2019-datatables.css 5.38 KB
/* datatable */
table.table.dataTable {
    margin-bottom: 0 !important;
}
table.table-bordered.dataTable {
    border-collapse: collapse !important;
}
table.table.dataTable thead th,
table.table.dataTable thead td {
    padding: .75rem .5rem !important;
    text-align: center !important;
    vertical-align: middle;
    font-size: 13px;
}
table.table.dataTable tbody th,
table.table.dataTable tbody td,
table.table.dataTable tfoot th,
table.table.dataTable tfoot td {
    padding: .35rem !important;
    word-wrap: break-word;
    font-size: 11px;
    letter-spacing: .1rem;
}
table.table.dataTable tfoot tr {
    background-color: #eee;
    background-image: -webkit-linear-gradient(bottom, #f2f2f2 0, #fafafa 100%);
    background-image: -moz-linear-gradient(to top, #f2f2f2 0, #fafafa 100%);
    background-image: -ms-linear-gradient(bottom, #f2f2f2 0, #fafafa 100%);
    background-image: -o-linear-gradient(bottom, #f2f2f2 0, #fafafa 100%);
    background-image: linear-gradient(to top, #f2f2f2 0, #fafafa 100%);
}
.dataTables_wrapper {
    position: relative;
}
div.dataTables_length label {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
}
div.dataTables_length select {
    margin-right: .5rem;
}
.dataTables_filter label {
    margin: 0;
}
div.dataTables_info {
    padding-top: 0;
}
.dataTables_filter .input-group-addon {
    padding: .45rem;
    height: 2.5rem;
    vertical-align: middle;
}
/* processing */
.dataTables_wrapper > .dataTables_processing {
    position: absolute;
    z-index: 5555;
    height: 100%;
    width: 100%;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    padding: 0;
    background: transparent;
}
.dataTables_wrapper > .dataTables_processing:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.075);
}
.dataTables_wrapper > .dataTables_processing:not(:required) {
    text-shadow: none;
    background: transparent;
    border: 0;
}
.dataTables_wrapper > .dataTables_processing:not(:required):after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    background: transparent;
    -webkit-animation: dataloader 500ms infinite alternate;
    -moz-animation: dataloader 500ms infinite alternate;
    -ms-animation: dataloader 500ms infinite alternate;
    -o-animation: dataloader 500ms infinite alternate;
    animation: dataloader 500ms infinite alternate;
    border-radius: 0;
}
/* custom responsive */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    float: none;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #214e75 !important;
    border-radius: 0;
    padding: .25rem 1rem;
    margin-top: .5rem;
}
.dataTables_wrapper .dataTables_paginate .ellipsis {
    border: 1px solid transparent;
    box-shadow: none !important;
    padding: 0 1rem;
    margin-top: .5rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:not(:last-child),
.dataTables_wrapper .dataTables_paginate .ellipsis,
.dataTables_wrapper .dataTables_paginate > span {
    margin-right: -1px;
}
.dataTables_wrapper .dataTables_paginate > span {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .ellipsis {
    border-top-color: #ddd;
    border-left-color: #ddd;
    border-bottom-color: #ddd;
    border-right-color: #ddd;
    background: none;
    background-color: #fff;
    min-height: 2.5rem;
    max-height: 2.5rem;
    font-size: 11px;
    margin-left: 0;
    text-align: center;
    vertical-align: middle;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: none;
    background-color: #ddd;
    border-top-color: #ddd;
    border-left-color: #ddd;
    border-bottom-color: #ddd;
    border-right-color: #ddd;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    cursor: default;
    color: #fff !important;
    background: none;
    background-color: #3276b1;
    border-color: #3276b1;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, 
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, 
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: default;
    color: #999 !important;
    border-top-color: #ddd;
    border-left-color: #ddd;
    border-bottom-color: #ddd;
    border-right-color: #ddd;
    background: transparent;
    background-color: #fff;
}
.dataTables_wrapper .dataTables_info {
    color: #969696;
    padding: 0;
    font-size: 12px;
    margin-top: .5rem;
}
table.dataTable tbody tr.child {
    background-color: transparent;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before, 
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child::before {
    content: '+';
    display: inline-block;
    position: relative;
    top: 0;
    left: 0;
    margin-right: .5rem;
}
table.dataTable > tbody > tr.child ul.dtr-details {
    display: block;
}
table.dataTable > tbody > tr.child span.dtr-title {
    min-width: 0;
}
table.dataTable > tbody > tr.child span.dtr-title:after {
    content: ":";
    padding: 0 .5rem;
}