Skip to content

Commit d75453e

Browse files
author
dtbuild
committed
5a05ebd839add77d82207f90478871cb3c69546c Fix: If -init columns.className is used to define an alignment class such as dt-left, it will now take priority over the automatic type detection classes.
https://stackoverflow.com/a/74823875/1049111 Sync to source repo @5a05ebd839add77d82207f90478871cb3c69546c
1 parent 03dc66c commit d75453e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

css/dataTables.semanticui.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ table.dataTable.ui.table th,
242242
table.dataTable.ui.table td {
243243
box-sizing: border-box;
244244
}
245+
table.dataTable.ui.table th.dt-type-numeric, table.dataTable.ui.table th.dt-type-date,
246+
table.dataTable.ui.table td.dt-type-numeric,
247+
table.dataTable.ui.table td.dt-type-date {
248+
text-align: right;
249+
}
245250
table.dataTable.ui.table th.dt-left,
246251
table.dataTable.ui.table td.dt-left {
247252
text-align: left;
@@ -267,11 +272,6 @@ table.dataTable.ui.table td.dt-empty {
267272
text-align: center;
268273
vertical-align: top;
269274
}
270-
table.dataTable.ui.table th.dt-type-numeric, table.dataTable.ui.table th.dt-type-date,
271-
table.dataTable.ui.table td.dt-type-numeric,
272-
table.dataTable.ui.table td.dt-type-date {
273-
text-align: right;
274-
}
275275
table.dataTable.ui.table thead th,
276276
table.dataTable.ui.table thead td,
277277
table.dataTable.ui.table tfoot th,
@@ -373,6 +373,11 @@ table.dataTable.ui.table th,
373373
table.dataTable.ui.table td {
374374
box-sizing: border-box;
375375
}
376+
table.dataTable.ui.table th.dt-type-numeric, table.dataTable.ui.table th.dt-type-date,
377+
table.dataTable.ui.table td.dt-type-numeric,
378+
table.dataTable.ui.table td.dt-type-date {
379+
text-align: right;
380+
}
376381
table.dataTable.ui.table th.dt-left,
377382
table.dataTable.ui.table td.dt-left {
378383
text-align: left;
@@ -398,11 +403,6 @@ table.dataTable.ui.table td.dt-empty {
398403
text-align: center;
399404
vertical-align: top;
400405
}
401-
table.dataTable.ui.table th.dt-type-numeric, table.dataTable.ui.table th.dt-type-date,
402-
table.dataTable.ui.table td.dt-type-numeric,
403-
table.dataTable.ui.table td.dt-type-date {
404-
text-align: right;
405-
}
406406
table.dataTable.ui.table thead th,
407407
table.dataTable.ui.table thead td,
408408
table.dataTable.ui.table tfoot th,

0 commit comments

Comments
 (0)