Skip to content

Commit

Permalink
Revert CSS changes for Datatables 2.0 (webtrees 2.1.20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jon48 committed Jun 16, 2024
1 parent 02bef93 commit 9f69575
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
16 changes: 0 additions & 16 deletions src/sass/_vendor-patches.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,3 @@
* Use this file to apply temporary patches to upstream libraries.
* To be reviewed at each release.
*/


/*webtrees 2.1.19 switched to datatables.net-bs5 2.0, which comes with breaking changes
* Temporarily revert/neutralise them, to give time to analyse the best way to address the version change
*/

table.dataTable {
&.table {
margin-bottom: 6px;
border-spacing: 2px;
}

th.dt-type-numeric, td.dt-type-numeric {
text-align: unset;
}
}
2 changes: 1 addition & 1 deletion src/sass/rural/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ form.wt-page-content {
border-top-style: none;
padding: 1em;

.dt-container {
.dataTables_wrapper {
border-style: none;
}

Expand Down
2 changes: 1 addition & 1 deletion src/sass/rural/_pages-blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
.wt-block-content {
background-color: $maj-c-theme-lighter;

.dt-container {
.dataTables_wrapper {
border-style: none;
}

Expand Down
12 changes: 6 additions & 6 deletions src/sass/rural/_pages-datatables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ table.center {
margin-right: auto;
}

.dt-container {
.dataTables_wrapper {
@extend .table-responsive;
@extend .maj-content-tabs;
@extend .mx-auto;
Expand All @@ -35,10 +35,10 @@ table.center {
max-width: 75%;
}

.dt-info,
.dt-length,
.dt-search,
.dt-paging {
.dataTables_info,
.dataTables_length,
.dataTables_filter,
.dataTables_paginate {
padding: 0.4em;
}
}
Expand All @@ -52,7 +52,7 @@ div[role=tabpanel],
div[id^=table-indi],
div[id^=table-fam],
.maj-table-full-width {
.dt-container {
.dataTables_wrapper {
max-width: 100%;
}
}
Expand Down

0 comments on commit 9f69575

Please sign in to comment.