From a978ab6b311362afee6b077fe5fdf8276686dfb5 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Mon, 17 Nov 2025 22:55:21 +0000 Subject: [PATCH] linting fixes Signed-off-by: Adam Warner --- scripts/js/index.js | 8 ++++---- scripts/js/settings-advanced.js | 4 ++-- scripts/js/settings-system.js | 2 +- style/pi-hole.css | 4 +++- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/js/index.js b/scripts/js/index.js index 973fdd6f..ac4e0dcd 100644 --- a/scripts/js/index.js +++ b/scripts/js/index.js @@ -891,8 +891,8 @@ $(() => { maintainAspectRatio: true, elements: { arc: { - borderColor: $("\.card").css("background-color"), - hoverBorderColor: $("\.card").css("background-color"), + borderColor: $(".card").css("background-color"), + hoverBorderColor: $(".card").css("background-color"), hoverOffset: 10, }, }, @@ -942,8 +942,8 @@ $(() => { maintainAspectRatio: true, elements: { arc: { - borderColor: $("\.card").css("background-color"), - hoverBorderColor: $("\.card").css("background-color"), + borderColor: $(".card").css("background-color"), + hoverBorderColor: $(".card").css("background-color"), hoverOffset: 10, }, }, diff --git a/scripts/js/settings-advanced.js b/scripts/js/settings-advanced.js index 083bc897..071c4d5f 100644 --- a/scripts/js/settings-advanced.js +++ b/scripts/js/settings-advanced.js @@ -382,7 +382,7 @@ function applyOnlyChanged() { ); // Hide all boxes with data-key attribute, except the ones with "data-modified='true'" attribute - $(".card-title[data-key]").not("[data-modified='true']").closest("\.card").hide(); + $(".card-title[data-key]").not("[data-modified='true']").closest(".card").hide(); } else { // Show the tabs menu and activate only the first button (deactivate other buttons) $("#advanced-settings-menu").show(); @@ -393,7 +393,7 @@ function applyOnlyChanged() { $("#advanced-settings-tabs > .tab-pane:not(:first-child)").removeClass("in active"); // Show all boxes with data-key attribute - $(".card-title[data-key]").closest("\.card").show(); + $(".card-title[data-key]").closest(".card").show(); } } diff --git a/scripts/js/settings-system.js b/scripts/js/settings-system.js index 95786d67..466e8469 100644 --- a/scripts/js/settings-system.js +++ b/scripts/js/settings-system.js @@ -340,7 +340,7 @@ $(() => { maintainAspectRatio: true, elements: { arc: { - borderColor: $("\.card").css("background-color"), + borderColor: $(".card").css("background-color"), }, }, plugins: { diff --git a/style/pi-hole.css b/style/pi-hole.css index 3f562f97..e9f75dd5 100644 --- a/style/pi-hole.css +++ b/style/pi-hole.css @@ -1191,7 +1191,9 @@ table.dataTable tbody > tr > .selected { } /* Settings containers without modified items and with hidden boxes will display this text */ -.settings-container:not(:has(h3[data-modified="true"])):has(.card[style*="display: none;"])::before { +.settings-container:not(:has(h3[data-modified="true"])):has( + .card[style*="display: none;"] + )::before { content: "No modified settings to display"; opacity: 0.7; font-style: italic;