Files
OTSSignsTheme/custom/otssignange/views/datatable-contrast.twig

67 lines
2.1 KiB
Twig
Raw Normal View History

2026-02-04 10:00:40 -05:00
/* High-specificity DataTables contrast overrides
Ensures table body text is readable against dark theme backgrounds.
Light text on dark backgrounds.
*/
#datatable-container table.dataTable tbody td,
#datatable-container .dataTables_wrapper table.dataTable tbody td,
.ots-table-card table.dataTable tbody td,
.ots-table-card table.dataTable tbody td * {
color: #f5f5f5 !important;
opacity: 1 !important;
}
#datatable-container table.dataTable thead th,
.ots-table-card table.dataTable thead th,
#datatable-container table.dataTable thead th * {
color: #ffffff !important;
opacity: 1 !important;
background-color: rgba(0,0,0,0.3) !important;
}
#datatable-container table.dataTable tbody tr.table-success td,
#datatable-container table.dataTable tbody tr.success td,
#datatable-container table.dataTable tbody tr.selected td,
#datatable-container table.dataTable tbody tr.highlight td {
background-color: rgba(255,255,255,0.08) !important;
color: #ffffff !important;
}
#datatable-container table.dataTable tbody td .btn,
#datatable-container table.dataTable tbody td .badge,
#datatable-container table.dataTable tbody td .dropdown-toggle {
color: #ffffff !important;
}
#datatable-container table.dataTable tbody tr {
background-color: rgba(0,0,0,0.1) !important;
}
#datatable-container table.dataTable tbody tr:hover {
background-color: rgba(255,255,255,0.05) !important;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_paginate .paginate_button {
color: #f5f5f5 !important;
background: rgba(0,0,0,0.2) !important;
border-color: rgba(255,255,255,0.1) !important;
}
#datatable-container table.dataTable tbody td img,
#datatable-container table.dataTable tbody td svg {
filter: none !important;
}
#datatable-container table.dataTable thead th.sorting:after,
#datatable-container table.dataTable thead th.sorting_asc:after,
#datatable-container table.dataTable thead th.sorting_desc:after {
color: rgba(255,255,255,0.7) !important;
}
.ots-table-card table.dataTable tbody tr td,
.ots-table-card table.dataTable tbody tr td * {
-webkit-text-fill-color: #f5f5f5 !important;
}