-
+
just now
... to ...
24 hours ago
diff --git a/scripts/pi-hole/js/auditlog.js b/scripts/pi-hole/js/auditlog.js
index 12abb205..dc8df8b8 100644
--- a/scripts/pi-hole/js/auditlog.js
+++ b/scripts/pi-hole/js/auditlog.js
@@ -40,7 +40,7 @@ function updateTopLists() {
domain = escapeHtml(domain);
url = ""+domain+" ";
domaintable.append(" " + url +
- " " + data.top_queries[domain] + " Blacklist Audit ");
+ " " + data.top_queries[domain] + " Blacklist Audit ");
}
}
@@ -53,13 +53,13 @@ function updateTopLists() {
{
url = ""+printdomain+" (wildcard blocked)";
adtable.append(" " + url +
- " " + data.top_ads[domain] + " Audit ");
+ " " + data.top_ads[domain] + " Audit ");
}
else
{
url = ""+printdomain+" ";
adtable.append(" " + url +
- " " + data.top_ads[domain] + " Whitelist Audit ");
+ " " + data.top_ads[domain] + " Whitelist Audit ");
}
}
}
diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js
index c7a746b3..76ec1f93 100644
--- a/scripts/pi-hole/js/db_queries.js
+++ b/scripts/pi-hole/js/db_queries.js
@@ -250,31 +250,31 @@ $(document).ready(function() {
blocked = true;
color = "red";
fieldtext = "Blocked (gravity)";
- buttontext = " Whitelist ";
+ buttontext = " Whitelist ";
break;
case 2:
blocked = false;
color = "green";
fieldtext = "OK (forwarded)";
- buttontext = " Blacklist ";
+ buttontext = " Blacklist ";
break;
case 3:
blocked = false;
color = "green";
fieldtext = "OK (cached)";
- buttontext = " Blacklist ";
+ buttontext = " Blacklist ";
break;
case 4:
blocked = true;
color = "red";
fieldtext = "Blocked (regex/wildcard)";
- buttontext = " Whitelist " ;
+ buttontext = " Whitelist " ;
break;
case 5:
blocked = true;
color = "red";
fieldtext = "Blocked (blacklist)";
- buttontext = " Whitelist " ;
+ buttontext = " Whitelist " ;
break;
case 6:
blocked = true;
diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js
index 1e166d15..ccdf67a8 100644
--- a/scripts/pi-hole/js/footer.js
+++ b/scripts/pi-hole/js/footer.js
@@ -23,14 +23,14 @@ function piholeChanged(action)
switch(action) {
case "enabled":
- status.html(" Active");
+ status.html(" Active");
ena.hide();
dis.show();
dis.removeClass("active");
break;
case "disabled":
- status.html(" Offline");
+ status.html(" Offline");
ena.show();
dis.hide();
break;
diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js
index 9ed318ac..c162d354 100644
--- a/scripts/pi-hole/js/index.js
+++ b/scripts/pi-hole/js/index.js
@@ -633,7 +633,7 @@ function updateSummaryData(runOnce) {
data["ads_percentage_today"] = "to";
data["domains_being_blocked"] = "API";
// Adjust text
- $("#temperature").html(" FTL offline");
+ $("#temperature").html(" FTL offline");
// Show spinner
$("#queries-over-time .overlay").show();
$("#forward-destinations-pie .overlay").show();
diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js
index 69a5c84a..5ab26bd1 100644
--- a/scripts/pi-hole/js/queries.js
+++ b/scripts/pi-hole/js/queries.js
@@ -155,83 +155,83 @@ $(document).ready(function() {
switch (data[5])
{
case "1":
- dnssec_status = "SECURE ";
+ dnssec_status = "SECURE ";
break;
case "2":
- dnssec_status = "INSECURE ";
+ dnssec_status = "INSECURE ";
break;
case "3":
- dnssec_status = "BOGUS ";
+ dnssec_status = "BOGUS ";
break;
case "4":
- dnssec_status = "ABANDONED ";
+ dnssec_status = "ABANDONED ";
break;
case "5":
- dnssec_status = "UNKNOWN ";
+ dnssec_status = "UNKNOWN ";
break;
default: // No DNSSEC
dnssec_status = "";
}
// Query status
- var blocked, fieldtext, buttontext, color;
+ var blocked, fieldtext, buttontext, colorClass;
switch (data[4])
{
case "1":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (gravity)";
- buttontext = " Whitelist ";
+ buttontext = " Whitelist ";
break;
case "2":
blocked = false;
- color = "green";
+ colorClass = "text-green";
fieldtext = "OK (forwarded)"+dnssec_status;
- buttontext = " Blacklist ";
+ buttontext = " Blacklist ";
break;
case "3":
blocked = false;
- color = "green";
+ colorClass = "text-green";
fieldtext = "OK (cached)"+dnssec_status;
- buttontext = " Blacklist ";
+ buttontext = " Blacklist ";
break;
case "4":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (regex/wildcard)";
- buttontext = " Whitelist " ;
+ buttontext = " Whitelist " ;
break;
case "5":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (blacklist)";
- buttontext = " Whitelist " ;
+ buttontext = " Whitelist " ;
break;
case "6":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (external, IP)";
buttontext = "" ;
break;
case "7":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (external, NULL)";
buttontext = "" ;
break;
case "8":
blocked = true;
- color = "red";
+ colorClass = "text-red";
fieldtext = "Blocked (external, NXRA)";
buttontext = "" ;
break;
default:
blocked = false;
- color = "black";
+ colorClass = "text-black";
fieldtext = "Unknown ("+parseInt(data[4])+")";
buttontext = "";
}
- $(row).css("color", color);
+ $(row).addClass(colorClass);
$("td:eq(4)", row).html(fieldtext);
$("td:eq(6)", row).html(buttontext);
@@ -282,7 +282,7 @@ $(document).ready(function() {
{
replytext = "-";
}
- $("td:eq(5)", row).css("color","black");
+ $("td:eq(5)", row).addClass("text-black");
$("td:eq(5)", row).html(replytext);
if(data.length > 7 && data[7] > 0)
diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php
index ff121571..78a5cf1e 100644
--- a/scripts/pi-hole/php/header.php
+++ b/scripts/pi-hole/php/header.php
@@ -334,26 +334,26 @@ if($auth) {
Active';
+ echo ' Active ';
} elseif ($pistatus == "0") {
- echo ' Offline ';
+ echo ' Offline ';
} elseif ($pistatus == "-1") {
- echo ' DNS service not running ';
+ echo ' DNS service not running ';
} else {
- echo ' Unknown ';
+ echo ' Unknown ';
}
// CPU Temp
if($FTL)
{
if ($celsius >= -273.15) {
- echo " $temperaturelimit) {
- echo "#ff0000";
+ echo "text-red";
}
else
{
- echo "#3366ff";
+ echo "text-vivid-blue";
}
echo "\"> Temp: ";
if($temperatureunit === "F")
@@ -373,30 +373,30 @@ if($auth) {
}
else
{
- echo ' FTL offline ';
+ echo ' FTL offline ';
}
?>
$nproc) {
- echo "#ff0000";
+ echo "text-red";
}
else
{
- echo "#7fff00";
+ echo "text-green-light";
}
echo "\"> Load: " . $loaddata[0] . " " . $loaddata[1] . " ". $loaddata[2] . " ";
?>
0.75 || $memory_usage < 0.0) {
- echo "#ff0000";
+ echo "text-red";
}
else
{
- echo "#7fff00";
+ echo "text-green-light";
}
if($memory_usage > 0.0)
{
diff --git a/scripts/pi-hole/php/loginpage.php b/scripts/pi-hole/php/loginpage.php
index c8f6bdc6..1b67510b 100644
--- a/scripts/pi-hole/php/loginpage.php
+++ b/scripts/pi-hole/php/loginpage.php
@@ -13,7 +13,7 @@
Pi-hole
Sign in to start your session
- Verify that cookies are allowed for
+ Verify that cookies are allowed for
Wrong password!
diff --git a/style/pi-hole.css b/style/pi-hole.css
index 19dbbb87..125c7e82 100644
--- a/style/pi-hole.css
+++ b/style/pi-hole.css
@@ -19,7 +19,7 @@
transition-duration: 500ms;
}
.small-box span.glow {
- text-shadow: 0px 0px 5px #fff;
+ text-shadow: 0 0 5px #fff;
}
.skin-blue .list-group-item:hover {
background: #ddd;
@@ -30,7 +30,7 @@
}
.skin-blue .not-used:hover {
- background: #c5c5c95;
+ background: #c5c5c5;
}
.skin-blue .used {
@@ -100,13 +100,14 @@
}
}
-.main-header>.navbar, .navbar>.sidebar-toggle {
+.main-header > .navbar,
+.navbar > .sidebar-toggle {
height: 50px;
}
#resetButton {
- color: red;
- font-weight: bold;
+ color: #f00;
+ font-weight: 700;
}
.vertical-alignment-helper {
@@ -133,7 +134,7 @@
width: 0.8em;
height: 0.8em;
border-radius: 50%;
- border: 4px solid silver;
+ border: 4px solid #c0c0c0;
border-right-color: transparent;
-webkit-animation: fa-spin 1s infinite linear;
animation: fa-spin 1s infinite linear;
@@ -143,13 +144,14 @@
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
+ user-select: none
}
#chartjs-tooltip {
opacity: 1;
position: absolute;
background: rgba(0, 0, 0, .7);
- color: white;
+ color: #fff;
border-radius: 3px;
-webkit-transition: all .1s ease;
transition: all .1s ease;
@@ -166,8 +168,8 @@
}
.chart-legend {
- height:250px;
- overflow:auto;
+ height: 250px;
+ overflow: auto;
}
.chart-legend ul {
@@ -175,7 +177,7 @@
}
.chart-legend li {
- cursor:pointer;
+ cursor: pointer;
}
.chart-legend li span {
@@ -198,3 +200,32 @@
font-weight: 900;
font-family: "Font Awesome 5 Free";
}
+
+/* Utilities */
+.text-nowrap {
+ white-space: nowrap !important;
+}
+
+.text-black {
+ color: #000 !important;
+}
+
+.text-green-light {
+ color: #7fff00 !important;
+}
+
+.text-green {
+ color: #080 !important;
+}
+
+.text-orange {
+ color: #ffa500 !important;
+}
+
+.text-red {
+ color: #f00 !important;
+}
+
+.text-vivid-blue {
+ color: #36f !important;
+}