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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
/*
* Styling for DataTables with Semantic UI
*/
table.dataTable.table {
margin: 0;
// Sorting icons using Semantic UI's built in icons (Font Awesome)
thead th,
thead td {
position: relative;
&.sorting,
&.sorting_asc,
&.sorting_desc {
padding-right: 20px;
&:after {
position: absolute;
top: 12px;
right: 8px;
display: block;
font-family: Icons;
}
}
&.sorting:after {
content: "\f0dc";
color: #ddd;
font-size: 0.8em;
}
&.sorting_asc:after {
content: "\f0de";
}
&.sorting_desc:after {
content: "\f0dd";
}
}
// Easier calculations
td,
th {
-webkit-box-sizing: content-box;
box-sizing: content-box;
&.dataTables_empty {
text-align: center;
}
}
// Style options for the table. Semantic UI provides its own, but it is also
// useful to have a few more for DataTables
&.nowrap {
th,
td {
white-space: nowrap;
}
}
}
// DataTables' built in feature elements
div.dataTables_wrapper {
div.dataTables_length {
// Match the height of the drop down when Semantic UI JS isn't present
select {
vertical-align: middle;
min-height: 2.7142em;
}
.ui.selection.dropdown {
min-width: 0;
}
}
div.dataTables_filter {
span.input {
margin-left: 0.5em;
}
}
div.dataTables_info {
padding-top: 13px;
white-space: nowrap;
}
div.dataTables_processing {
position: absolute;
top: 50%;
left: 50%;
width: 200px;
margin-left: -100px;
text-align: center;
}
div.row.dt-table {
padding: 0;
}
// Merge the three scrolling tables into one
div.dataTables_scrollHead {
table.dataTable {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom: none;
}
}
div.dataTables_scrollBody {
thead { // Hide sort icons
.sorting:after,
.sorting_asc:after,
.sorting_desc:after {
display: none;
}
}
table.dataTable {
border-radius: 0;
border-top: none;
border-bottom-width: 0;
}
table.dataTable.no-footer {
border-bottom-width: 1px;
}
}
div.dataTables_scrollFoot {
table.dataTable {
border-top-right-radius: 0;
border-top-left-radius: 0;
border-top: none;
}
}
}
|