From 8797399fe1ca71192b12bf4261d6aa6d3c0c4719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= <34602360+opnsenseuser@users.noreply.github.com> Date: Fri, 23 Aug 2024 08:17:37 +0200 Subject: [PATCH] Themes Cicada/Vicuna - dashboard fix for hover effects (#4194) get rid of unnecessary hover effects on dashboard for both dark themes --- misc/theme-cicada/Makefile | 2 +- .../cicada/assets/stylesheets/dashboard.scss | 26 ++++++------------- .../www/themes/cicada/build/css/dashboard.css | 14 ---------- misc/theme-vicuna/Makefile | 2 +- .../vicuna/assets/stylesheets/dashboard.scss | 26 ++++++------------- .../www/themes/vicuna/build/css/dashboard.css | 14 ---------- 6 files changed, 18 insertions(+), 66 deletions(-) diff --git a/misc/theme-cicada/Makefile b/misc/theme-cicada/Makefile index 339b1956e..783548375 100644 --- a/misc/theme-cicada/Makefile +++ b/misc/theme-cicada/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= theme-cicada -PLUGIN_VERSION= 1.37 +PLUGIN_VERSION= 1.38 PLUGIN_COMMENT= The cicada theme - dark grey onyx PLUGIN_MAINTAINER= rene@team-rebellion.net PLUGIN_NO_ABI= yes diff --git a/misc/theme-cicada/src/opnsense/www/themes/cicada/assets/stylesheets/dashboard.scss b/misc/theme-cicada/src/opnsense/www/themes/cicada/assets/stylesheets/dashboard.scss index cd495cede..2eb8ea4d3 100644 --- a/misc/theme-cicada/src/opnsense/www/themes/cicada/assets/stylesheets/dashboard.scss +++ b/misc/theme-cicada/src/opnsense/www/themes/cicada/assets/stylesheets/dashboard.scss @@ -1,6 +1,11 @@ -.btn-pressed, .btn-pressed:hover { +.btn-pressed { + background-color: #d94f00; + color: white; + + &:hover { background-color: #d94f00; color: white; + } } .fa-spinner { @@ -17,8 +22,8 @@ } .widget-error { - margin: 50px; - color: #721c24; + margin: 50px; + color: #721c24; } .widget-content { @@ -224,11 +229,6 @@ div { font-weight: bold; } -.flextable-row:hover { - background: #242424; - transition: 500ms; -} - .flex-cell { text-align: left; word-break: break-word; @@ -247,11 +247,6 @@ div { padding: 0; border: 0; border-top: rgb(59, 59, 59); - - &:hover { - background: none !important; - transition: 500ms; - } } } @@ -282,11 +277,6 @@ div { border-top: 1px solid #f7e2d6; transition: 0.5s; opacity: 0.4; - - &:hover { - background: #F5F5F5 !important; - transition: 500ms; - } } .grid-header { diff --git a/misc/theme-cicada/src/opnsense/www/themes/cicada/build/css/dashboard.css b/misc/theme-cicada/src/opnsense/www/themes/cicada/build/css/dashboard.css index 82e195ab5..4725d9e07 100644 --- a/misc/theme-cicada/src/opnsense/www/themes/cicada/build/css/dashboard.css +++ b/misc/theme-cicada/src/opnsense/www/themes/cicada/build/css/dashboard.css @@ -217,11 +217,6 @@ div { font-weight: bold; } -.flextable-row:hover { - background: #242424; - transition: 500ms; -} - .flex-cell { text-align: left; word-break: break-word; @@ -241,10 +236,6 @@ div { border: 0; border-top: rgb(59, 59, 59); } -.column .flex-cell:hover { - background: none !important; - transition: 500ms; -} .flex-subcell { width: 100%; text-align: left; @@ -270,11 +261,6 @@ div { opacity: 0.4; } -.grid-row:hover { - background: #F5F5F5 !important; - transition: 500ms; -} - .grid-header { border-top: 1px solid #f7e2d6; font-weight: bold; diff --git a/misc/theme-vicuna/Makefile b/misc/theme-vicuna/Makefile index ca31bc76f..d05a70023 100644 --- a/misc/theme-vicuna/Makefile +++ b/misc/theme-vicuna/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= theme-vicuna -PLUGIN_VERSION= 1.47 +PLUGIN_VERSION= 1.48 PLUGIN_COMMENT= The vicuna theme - blue sapphire PLUGIN_MAINTAINER= rene@team-rebellion.net PLUGIN_NO_ABI= yes diff --git a/misc/theme-vicuna/src/opnsense/www/themes/vicuna/assets/stylesheets/dashboard.scss b/misc/theme-vicuna/src/opnsense/www/themes/vicuna/assets/stylesheets/dashboard.scss index 06f4bf05a..73c537421 100644 --- a/misc/theme-vicuna/src/opnsense/www/themes/vicuna/assets/stylesheets/dashboard.scss +++ b/misc/theme-vicuna/src/opnsense/www/themes/vicuna/assets/stylesheets/dashboard.scss @@ -1,6 +1,11 @@ -.btn-pressed, .btn-pressed:hover { +.btn-pressed { + background-color: #d94f00; + color: white; + + &:hover { background-color: #d94f00; color: white; + } } .fa-spinner { @@ -17,8 +22,8 @@ } .widget-error { - margin: 50px; - color: #721c24; + margin: 50px; + color: #721c24; } .widget-content { @@ -224,11 +229,6 @@ div { font-weight: bold; } -.flextable-row:hover { - background: #131c22; - transition: 500ms; -} - .flex-cell { text-align: left; word-break: break-word; @@ -247,11 +247,6 @@ div { padding: 0; border: 0; border-top: rgb(59, 59, 59); - - &:hover { - background: none !important; - transition: 500ms; - } } } @@ -282,11 +277,6 @@ div { border-top: 1px solid #f7e2d6; transition: 0.5s; opacity: 0.4; - - &:hover { - background: #F5F5F5 !important; - transition: 500ms; - } } .grid-header { diff --git a/misc/theme-vicuna/src/opnsense/www/themes/vicuna/build/css/dashboard.css b/misc/theme-vicuna/src/opnsense/www/themes/vicuna/build/css/dashboard.css index bbc8001a0..62bc03c5e 100644 --- a/misc/theme-vicuna/src/opnsense/www/themes/vicuna/build/css/dashboard.css +++ b/misc/theme-vicuna/src/opnsense/www/themes/vicuna/build/css/dashboard.css @@ -217,11 +217,6 @@ div { font-weight: bold; } -.flextable-row:hover { - background: #131c22; - transition: 500ms; -} - .flex-cell { text-align: left; word-break: break-word; @@ -241,10 +236,6 @@ div { border: 0; border-top: rgb(59, 59, 59); } -.column .flex-cell:hover { - background: none !important; - transition: 500ms; -} .flex-subcell { width: 100%; text-align: left; @@ -270,11 +261,6 @@ div { opacity: 0.4; } -.grid-row:hover { - background: #F5F5F5 !important; - transition: 500ms; -} - .grid-header { border-top: 1px solid #f7e2d6; font-weight: bold;