From 8b59db8825fce7f233bfcd145053a877d2f3120c Mon Sep 17 00:00:00 2001 From: "D. Rimron-Soutter" Date: Mon, 29 Dec 2025 18:05:44 +0000 Subject: [PATCH] First draft of working NBN theme for mediawiki --- i18n/en.json | 4 +- includes/NextBestNetworkTemplate.php | 2 +- resources/scripts/nextbestnetwork.js | 1 + resources/scripts/nextbestnetwork/darkmode.js | 103 ++++++++---------- .../nextbestnetwork/nextbestnetwork.js | 3 +- resources/styles/nextbestnetwork.scss | 2 +- skin.json | 14 ++- webpack.mix.js | 13 ++- 8 files changed, 78 insertions(+), 64 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index bcde295..06c05f9 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -7,7 +7,7 @@ "userpage": "User Page", "nextbestnetwork.css": "/* CSS placed here will affect users of the NextBestNetwork skin */", "nextbestnetwork.js": "/* Any JavaScript here will be loaded for users using the NextBestNetwork skin */", - "nextbestnetwork-navbar-class": "navbar navbar-default navbar-fixed-top navbar-expand-lg fixed-top navbar-light bg-light", + "nextbestnetwork-navbar-class": "navbar navbar-fixed-top navbar-expand-lg navbar-light bg-primary fixed-top", "nextbestnetwork-navbar-brand": "{{SITENAME}}", "nextbestnetwork-navbar-left": "FAQ", "nextbestnetwork-navbar-left-wrapper": "li", @@ -32,7 +32,7 @@ "nextbestnetwork-sidebar-right-dropdownclass": "dropdown-menu-end", "nextbestnetwork-footer": "FOOTER", "nextbestnetwork-footer-custom": "LOGIN", - "nextbestnetwork-footer-class": "footer-sticky bg-light", + "nextbestnetwork-footer-class": "footer-sticky bg-primary", "nextbestnetwork-footer-btnclass": "", "nextbestnetwork-footer-wrapperclass": "dropup", "nextbestnetwork-footer-standard-btnclass": "", diff --git a/includes/NextBestNetworkTemplate.php b/includes/NextBestNetworkTemplate.php index 6f7e2f3..5a43774 100644 --- a/includes/NextBestNetworkTemplate.php +++ b/includes/NextBestNetworkTemplate.php @@ -809,7 +809,7 @@ class NextBestNetworkTemplate extends BaseTemplate { $navbar_class = $skin->getMsg( 'nextbestnetwork-navbar-class' ); if ( $skin->checkVisibility( 'navbar' ) ) { ?>
-