Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery Datatables Boostrap 3 CSS
div.dataTables_length label {
font-weight: normal;
float: left;
text-align: left;
}
div.dataTables_length select {
width: 75px;
}
div.dataTables_filter label {
font-weight: normal;
float: right;
}
div.dataTables_filter input {
width: 16em;
}
div.dataTables_info {
padding-top: 8px;
}
div.dataTables_paginate {
float: right;
margin: 0;
}
div.dataTables_paginate ul.pagination {
margin: 2px 0;
white-space: nowrap;
}
table.dataTable,
table.dataTable td,
table.dataTable th {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
table.dataTable {
clear: both;
margin-top: 6px !important;
margin-bottom: 6px !important;
max-width: none !important;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
cursor: pointer;
position:relative;
padding-right: 24px;
}
table.dataTable thead .sorting::before, table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::before {
display: block;
width: 0;
height: 0;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
position:absolute;
right: 8px;
content: "";
}
table.dataTable thead .sorting::before {
top: 12px;
border-bottom: 7px solid #ddd;
}
table.dataTable thead .sorting::after {
bottom: 11px;
border-top: 7px solid #ddd;
}
table.dataTable thead .sorting_desc::before {
bottom: 11px;
border-top: 7px solid #428BCA;
}
table.dataTable thead .sorting_asc::before {
top: 12px;
border-bottom: 7px solid #428BCA;
}
table.dataTable th:active {
outline: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment