@@ -197,7 +197,7 @@ while($detection=$result1->fetchArray(SQLITE3_ASSOC))
?>
- |
+ |
From 218b5ea6195560d2c92398ca22c3c42fad8b16c2 Mon Sep 17 00:00:00 2001
From: Alexandre <44178713+alexbelgium@users.noreply.github.com>
Date: Thu, 20 Jun 2024 12:07:39 +0200
Subject: [PATCH 06/37] Use css for sortbuttons style
Thanks #hiemstra87 https://github.com/Nachtzuster/BirdNET-Pi/pull/115
Co-Authored-By: Hiemstra87 <145980686+hiemstra87@users.noreply.github.com>
---
homepage/static/dark-style.css | 10 ++++++++++
homepage/style.css | 10 ++++++++++
scripts/play.php | 10 +++++-----
3 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/homepage/static/dark-style.css b/homepage/static/dark-style.css
index e9cd265..e1322e2 100644
--- a/homepage/static/dark-style.css
+++ b/homepage/static/dark-style.css
@@ -669,6 +669,16 @@ button:hover {
box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.10);
}
+.sortbutton button:hover {
+ background-color: #2b2b2b;
+ color: white;
+}
+
+.sortbutton button.active {
+ background-color: #2b2b2b;
+ color: white;
+}
+
button.legacyview {
display: none;
color:gray;
diff --git a/homepage/style.css b/homepage/style.css
index 7eaaa20..b039cbd 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -641,6 +641,16 @@ button:hover {
box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.10);
}
+.sortbutton button:hover {
+ background-color: #77c487;
+ color: white;
+}
+
+.sortbutton button.active {
+ background-color: #77c487;
+ color: white;
+}
+
button.legacyview {
display: none;
color:gray;
diff --git a/scripts/play.php b/scripts/play.php
index dc9286f..88223d4 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -400,14 +400,14 @@ if(!isset($_GET['species']) && !isset($_GET['filename'])){
+ text-align: center">
@@ -517,10 +517,10 @@ if(isset($_GET['species'])){ ?>
- |