From 065d5873f0eea44771083ccac2247d278bd99981 Mon Sep 17 00:00:00 2001 From: rdwebdesign Date: Fri, 29 Oct 2021 02:02:23 -0300 Subject: [PATCH] queryads: Replace double DIV solution with single DIV and responsive CSS Signed-off-by: rdwebdesign --- queryads.php | 29 +++++++++-------------------- scripts/pi-hole/js/queryads.js | 2 +- style/pi-hole.css | 17 +++++++++++++++++ 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/queryads.php b/queryads.php index 190a2eaa..1eb1fe5d 100644 --- a/queryads.php +++ b/queryads.php @@ -15,27 +15,16 @@
- -
-
- - -
- - -
-
-
- -
-
- - - - - -
+ +
+ + + + + +
+
diff --git a/scripts/pi-hole/js/queryads.js b/scripts/pi-hole/js/queryads.js index e97578e7..a97eadd9 100644 --- a/scripts/pi-hole/js/queryads.js +++ b/scripts/pi-hole/js/queryads.js @@ -88,7 +88,7 @@ function eventsource() { } // Handle enter key -$("#domain_1, #domain_2").keypress(function (e) { +$("#domain").keypress(function (e) { if (e.which === 13) { // Enter was pressed, and the input has focus exact = ""; diff --git a/style/pi-hole.css b/style/pi-hole.css index 1859c6e8..5de548a3 100644 --- a/style/pi-hole.css +++ b/style/pi-hole.css @@ -377,3 +377,20 @@ td.details-control { .allowed-row td { background-color: rgb(70, 149, 74, 0.1); } + +@media screen and (max-width: 991px) { + #domain-search-block { + display: block; + } + #domain { + margin: 5px 0; + } + #domain-search-block .input-group-btn { + margin: 5px 0; + text-align: center; + } + #domain-search-block .input-group-btn button { + margin: 0 2px; + border-radius: 3px; + } +}