Skip to content

Commit

Permalink
RESOLVED #JJ318: Upgrade to webtrees 2.1.19 - Rural theme upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jon48 committed Mar 24, 2024
1 parent 1bfd270 commit d0e95f1
Show file tree
Hide file tree
Showing 12 changed files with 1,518 additions and 1,723 deletions.
1 change: 0 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"stylelint-scss"
],
"rules": {
"indentation": 4,
"max-nesting-depth": [4, { "severity": "warning" }],
"selector-class-pattern": null,
"selector-max-compound-selectors": [4, { "severity": "warning" }],
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"require-dev" : {
"fisharebest/webtrees" : "2.1.18",
"fisharebest/webtrees" : "2.1.19",
"consolidation/robo": "^3.0",
"psr/http-message": "^1.1"
},
Expand Down
655 changes: 349 additions & 306 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion module.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function customModuleAuthorName(): string
*/
public function customModuleVersion(): string
{
return '2.1.18-v.1';
return '2.1.19-v.1';
}

/**
Expand Down
2,492 changes: 1,111 additions & 1,381 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
"postcss": "^8.3.0",
"postcss-custom-properties": "^13.2.0",
"postcss-image-inliner": "^7.0.0",
"postcss-import": "^15.0.0",
"postcss-rtlcss": "^4.0.1",
"postcss-import": "^16.1.0",
"postcss-rtlcss": "^5.1.0",
"sass": "^1.34.0",
"sass-loader": "^13.0.0",
"stylelint": "^15.10.2",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-config-standard": "^34.0.0",
"sass-loader": "^14.1.1",
"stylelint": "^16.3.0",
"stylelint-config-sass-guidelines": "^11.1.0",
"stylelint-config-standard": "^36.0.0",
"webpack": "^5.37.1",
"webpack-cli": "^5.0.0"
},
"dependencies": {
"bootstrap": "5.3.2"
"bootstrap": "5.3.3"
},
"browserslist": [
">0.1% and not dead"
Expand Down
16 changes: 16 additions & 0 deletions src/sass/_vendor-patches.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@
* 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;
}
}
23 changes: 6 additions & 17 deletions src/sass/rural/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,17 @@ select,
}

.pagination {
.page-link {
background-image: $maj-bg-theme-medium-background-image;
}

.page-item {
.page-link, &.disabled .page-link {
background-image: $maj-bg-theme-medium-background-image;
}

&.active .page-link {
background-image: none;
}
&.disabled {
.page-link {
background-image: none;
}

&.previous,
&.next {
opacity: 0.5;

.page-link {
background-image: $maj-bg-theme-medium-background-image;
}
}
opacity: 0.5;
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/sass/rural/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@

/* Sex icons */

.wt-icon-sex {
.wt-icon-sex {
height: 1em;

&-f {color: var(--sex-f-fg);}
&-m {color: var(--sex-m-fg);}
&-u {color: var(--sex-u-fg);}
Expand Down
17 changes: 16 additions & 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;

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

Expand Down Expand Up @@ -285,6 +285,21 @@ form.wt-page-content {
.btn-light {
@extend .btn-primary;
}

table {
td {
border-bottom: thin dashed $maj-c-theme-medium;
border-right: thin dashed $maj-c-theme-medium;

&:last-child {
border-right-style: none;
}
}

tr:last-child td {
border-bottom-style: none;
}
}
}

/*
Expand Down
3 changes: 2 additions & 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;

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

Expand All @@ -96,6 +96,7 @@

.wt-chart-box {
width: 15rem;
height: unset;
}
}

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;
}

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

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

0 comments on commit d0e95f1

Please sign in to comment.