Skip to content

Commit

Permalink
RESOLVED #JJ324: Upgrade to webtrees 2.1.22 - Rural theme upgrade
Browse files Browse the repository at this point in the history
ttps://bugs.jaubart.com/view.php?id=324
  • Loading branch information
jon48 committed Dec 8, 2024
1 parent 6bcd283 commit 6ee6ee5
Show file tree
Hide file tree
Showing 16 changed files with 2,134 additions and 1,952 deletions.
3 changes: 2 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"selector-max-compound-selectors": [4, { "severity": "warning" }],
"selector-max-id": 1,
"selector-no-qualifying-type": null,
"scss/at-extend-no-missing-placeholder": null
"scss/at-extend-no-missing-placeholder": null,
"@stylistic/indentation": 4
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"require-dev" : {
"bamarni/composer-bin-plugin": "^1.8",
"fisharebest/webtrees": "2.1.20",
"fisharebest/webtrees": "2.1.22",
"psr/http-message": "^1.1"
},
"scripts": {
Expand Down
678 changes: 301 additions & 377 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.20-v.1';
return '2.1.21-v.1';
}

/**
Expand Down
3,296 changes: 1,751 additions & 1,545 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
"laravel-mix": "^6.0.19",
"laravel-mix-clean": "^0.1.0",
"postcss": "^8.3.0",
"postcss-custom-properties": "^13.2.0",
"postcss-custom-properties": "^14.0.4",
"postcss-image-inliner": "^7.0.0",
"postcss-import": "^16.1.0",
"postcss-rtlcss": "^5.1.0",
"sass": "^1.34.0",
"sass-loader": "^14.1.1",
"sass-loader": "^16.0.4",
"stylelint": "^16.3.0",
"stylelint-config-sass-guidelines": "^11.1.0",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-standard": "^36.0.0",
"webpack": "^5.37.1",
"webpack-cli": "^5.0.0"
Expand Down
37 changes: 36 additions & 1 deletion src/sass/_vendor-patches.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,43 @@
* You should have received a copy of the GNU General Public License
* along with webtrees-MyArtJaub. If not, see <https://www.gnu.org/licenses/>.
*/

/*
* Use this file to apply temporary patches to upstream libraries.
* To be reviewed at each release.
*/

/*webtrees 2.1.21 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
*/

.dt-container.dt-bootstrap5 {
padding-top: 0;

> .row {
margin-left: 0;
margin-right: 0;

&:first-child {
margin-top: 0 !important;
}

> .dt-layout-start,
> .dt-layout-full {
padding-left: 0;
}


> .dt-layout-end,
> .dt-layout-full {
padding-right: 0;
}
}

.dataTable {
th.dt-type-numeric,
td.dt-type-numeric {
text-align: inherit;
}
}
}
4 changes: 2 additions & 2 deletions src/sass/rural/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
*/

.wt-global .wt-footers {
@include maj-base-layout-col;

background-color: #fff;

@include maj-base-layout-col;

.wt-footer-powered-by {
a {
Expand Down
6 changes: 4 additions & 2 deletions src/sass/rural/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ html {
font-size: $maj-base-font-size;
}

::backdrop, .wt-global {
::backdrop,
.wt-global {
background: #fff linear-gradient(to top, #fff, $maj-c-background) repeat-x;

}
Expand Down Expand Up @@ -170,7 +171,8 @@ select,

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

Expand Down
1 change: 1 addition & 0 deletions src/sass/rural/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

/* stylelint-disable block-no-empty */
/* stylelint-disable @stylistic/block-opening-brace-space-before */

/* Arrow icons */

Expand Down
11 changes: 7 additions & 4 deletions src/sass/rural/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ main {

.wt-main-container {
@extend .table-responsive;
@include maj-base-layout-col;

background-color: $white;
overflow-x: visible;

/* Space between the header/footer and the main content. */
padding-bottom: 1rem;
padding-top: 1rem;

@include maj-base-layout-col;

> .row {
margin-left: 0;
Expand Down Expand Up @@ -107,7 +108,8 @@ main {
padding: 0.5rem 0.75rem;
}

.text-muted, .text-body-secondary {
.text-muted,
.text-body-secondary {
color: $maj-c-theme-darker !important;
}

Expand Down Expand Up @@ -163,7 +165,8 @@ form.wt-page-content {
font-weight: bold;
}

&.text-muted, &.text-body-secondary {
&.text-muted,
&.text-body-secondary {
display: none;

.wt-tabs-individual & {
Expand All @@ -181,7 +184,7 @@ form.wt-page-content {
border-top-style: none;
padding: 1em;

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

Expand Down
2 changes: 1 addition & 1 deletion src/sass/rural/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

/* stylelint-disable function-url-quotes */

/* stylelint-disable @stylistic/block-opening-brace-space-before */
/*
* Menus icons
*/
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;

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

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

.dataTables_wrapper {
.dt-container {
@extend .table-responsive;
@extend .maj-content-tabs;
@extend .mx-auto;

@include media-breakpoint-up(md) {
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 All @@ -64,8 +64,6 @@ table.dataTable {
//@extend .mx-auto;
//@extend .w-auto;

border-spacing: 2px;

thead,
tfoot {
tr {
Expand All @@ -78,7 +76,12 @@ table.dataTable {
}
}
}


&.table {
border-collapse: separate;
border-spacing: 2px;
}

&.table-bordered {
thead,
tfoot {
Expand All @@ -95,7 +98,8 @@ table.dataTable {
}
}

a.text-muted, a.text-body-secondary {
a.text-muted,
a.text-body-secondary {
color: $maj-c-theme-dark !important;

&:hover {
Expand Down
3 changes: 2 additions & 1 deletion src/sass/rural/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ div {
* Miscellaneous
*/

.text-muted, .text-body-secondary {
.text-muted,
.text-body-secondary {
color: $maj-c-bluegray !important;

&.nav-link {
Expand Down
7 changes: 6 additions & 1 deletion webpack.mix.rural.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ mix
'~build': config.build_dir
})
.sass('src/sass/theme.scss', config.public_dir + '/css/rural.min.css', {
additionalData: '$maj-webtrees-dir: ' + config.webtrees_dir + ';'
additionalData: '$maj-webtrees-dir: ' + config.webtrees_dir + ';',
sassOptions: {
quietDeps: true,
silenceDeprecations: ['import']
}
})
.options({
processCssUrls: false,
Expand All @@ -41,6 +45,7 @@ mix
postcssCustomProperties
]
})
// .webpackConfig({ stats: { children: true } })
.copy(config.images_dir + '/header.png', config.public_dir + '/images')
.clean()
;

0 comments on commit 6ee6ee5

Please sign in to comment.