Skip to content

Commit ff2baaf

Browse files
authored
Merge pull request misterGF#10 from bernhardreiter/patch-8
Tables: improves datatables styling
2 parents a9ebba6 + b6c3e97 commit ff2baaf

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/components/dash/Tables.vue

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,30 @@ module.exports = {
213213
</script>
214214

215215
<style>
216+
/* Using the bootstrap style, but overriding the font to not draw in
217+
the Glyphicons Halflings font as an additional requirement for sorting icons.
218+
219+
An alternative to the solution active below is to use the jquery style
220+
which uses images, but the color on the images does not match adminlte.
221+
222+
@import url('/static/js/plugins/datatables/jquery.dataTables.min.css');
223+
*/
224+
225+
@import url('/static/js/plugins/datatables/dataTables.bootstrap.css');
226+
227+
table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after {
228+
font-family: 'FontAwesome';
229+
}
230+
231+
table.dataTable thead .sorting:after {
232+
content: "\f0dc";
233+
}
234+
235+
table.dataTable thead .sorting_asc:after {
236+
content: "\f0dd";
237+
}
238+
239+
table.dataTable thead .sorting_desc:after {
240+
content: "\f0de";
241+
}
216242
</style>

0 commit comments

Comments
 (0)