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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
// DataTables' built in feature elements
div.dataTables_wrapper {
div.dataTables_length {
}
div.dataTables_filter {
text-align: right;
input {
margin-left: 0.5em;
}
}
div.dataTables_info {
padding-top: 10px;
white-space: nowrap;
}
div.dataTables_processing {
position: absolute;
top: 50%;
left: 50%;
width: 200px;
margin-left: -100px;
text-align: center;
}
div.dataTables_paginate {
text-align: right;
}
div.mdl-grid.dt-table {
padding-top: 0;
padding-bottom: 0;
> div.mdl-cell {
margin-top: 0;
margin-bottom: 0;
}
}
}
// Sorting - using :before and :after with UTF8 characters
table.dataTable thead {
> tr > th,
> tr > td {
&.sorting_asc,
&.sorting_desc,
&.sorting {
padding-right: 30px;
}
&:active {
outline: none;
}
}
.sorting,
.sorting_asc,
.sorting_desc,
.sorting_asc_disabled,
.sorting_desc_disabled {
cursor: pointer;
position: relative;
&:before,
&:after {
position: absolute;
bottom: 11px;
display: block;
opacity: 0.3;
font-size: 1.3em;
}
&:before {
right: 1em;
content: "\2191"; // up arrow - ascending
}
&:after {
right: 0.5em;
content: "\2193"; // down arrow - descending
}
}
.sorting_asc:before,
.sorting_desc:after {
opacity: 1;
}
.sorting_asc_disabled:before,
.sorting_desc_disabled:after {
opacity: 0;
}
}
|