fix: add DataTables Bootstrap5 styles for pagination, search, and filter
- Added proper CSS for .dataTables_filter input styling - Added styles for .dataTables_length select - Added .dataTables_info coloring - Added table.dataTable thead and tbody styling - Fixed hover states for DataTables rows
This commit is contained in:
@@ -1088,6 +1088,69 @@
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* DataTables Bootstrap5 additional styles */
|
||||
.dataTables_wrapper .dataTables_filter,
|
||||
.dataTables_wrapper .dt-search {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_filter input,
|
||||
.dataTables_wrapper .dt-search input {
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
margin-left: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_filter input:focus,
|
||||
.dataTables_wrapper .dt-search input:focus {
|
||||
border-color: var(--primary);
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.1);
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_length,
|
||||
.dataTables_wrapper .dt-length {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_length select,
|
||||
.dataTables_wrapper .dt-length select {
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_info,
|
||||
.dataTables_wrapper .dt-info {
|
||||
color: var(--text-secondary);
|
||||
font-size: 14px;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.dataTables_wrapper .dataTables_paginate,
|
||||
.dataTables_wrapper .dt-paging {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.dataTables_wrapper table.dataTable thead th {
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 2px solid var(--border-color);
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.dataTables_wrapper table.dataTable tbody td {
|
||||
padding: 12px 16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dataTables_wrapper table.dataTable tbody tr:hover {
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
/* ============ RESPONSIVE ============ */
|
||||
@media (max-width: 1400px) {
|
||||
.stats-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
|
||||
Reference in New Issue
Block a user