From 93443e1bcacd159d024d3eb0d15b739afcc3c3c4 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 9 Feb 2025 20:30:57 +0100 Subject: [PATCH] Fixed table-bordered --- application/views/logbookadvanced/index.php | 2 +- assets/css/datatables.min.css | 30 ++++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php index cc2808c23..0d6f3432e 100644 --- a/application/views/logbookadvanced/index.php +++ b/application/views/logbookadvanced/index.php @@ -643,7 +643,7 @@ $options = json_decode($options); -
| diff --git a/assets/css/datatables.min.css b/assets/css/datatables.min.css index 86e0ce379..2f7223562 100644 --- a/assets/css/datatables.min.css +++ b/assets/css/datatables.min.css @@ -500,7 +500,9 @@ table.dataTable.table-sm>thead>tr th.dt-orderable-asc span.dt-column-order, tabl } div.dt-scroll-head table.table-bordered { - border-bottom-width: 0 + border-bottom-width: 1px; + border-bottom-color: rgba(255, 255, 255, 0.15); + border-bottom-style: solid } div.table-responsive>div.dt-container>div.row { @@ -1603,9 +1605,9 @@ table.dataTable.table-bordered th, table.dataTable.table-bordered td { border-top-width: 0 } -table.dataTable.table-bordered th:last-child, table.dataTable.table-bordered td:last-child { +/* table.dataTable.table-bordered th:last-child, table.dataTable.table-bordered td:last-child { border-right: 1px solid #dee2e6 -} +} */ table.dataTable.table-bordered tr:last-child th, table.dataTable.table-bordered tr:last-child td { border-bottom-width: 0 @@ -1627,6 +1629,28 @@ div.dt-scroll-body { border-left-color: var(--bs-table-color) !important } +table.table-bordered.dataTable thead tr:first-child th, +table.table-bordered.dataTable thead tr:first-child td { + border-top-width: 1px; +} + +table.table-bordered.dataTable th:first-child, +table.table-bordered.dataTable th:first-child, +table.table-bordered.dataTable td:first-child, +table.table-bordered.dataTable td:first-child { + border-left-width: 1px; +} +table.table-bordered.dataTable th:last-child, +table.table-bordered.dataTable th:last-child, +table.table-bordered.dataTable td:last-child, +table.table-bordered.dataTable td:last-child { + border-right-width: 1px; +} +table.table-bordered.dataTable th, +table.table-bordered.dataTable td { + border-bottom-width: 1px; +} + /* div.dt-scroll-headInner table.table-bordered tr th:first-child, div.dt-scroll-footInner table.table-bordered tr th:first-child { border-left-color: var(--bs-border-color) !important } */ |
|---|