From 553ef462266bb40291ad2200a2109b4ac6b7086f Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 25 Mar 2024 11:14:43 +0100 Subject: [PATCH] Fix button hover border (#30048) Fix regression from https://github.com/go-gitea/gitea/pull/30014. The rule was to broad and affecting things like `primary` button unintentionally. (cherry picked from commit bbaf62589fe538be4afc86455d772360de80e7d8) --- web_src/css/modules/button.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_src/css/modules/button.css b/web_src/css/modules/button.css index 550a9cc1ab..0799ab80ec 100644 --- a/web_src/css/modules/button.css +++ b/web_src/css/modules/button.css @@ -11,7 +11,6 @@ .ui.button:focus { background: var(--color-hover); color: var(--color-text); - border-color: var(--color-secondary-dark-2); } .page-content .ui.button { @@ -64,6 +63,10 @@ It needs some tricks to tweak the left/right borders with active state */ border-right: none; } +.ui.buttons .button:hover { + border-color: var(--color-secondary-dark-2); +} + .ui.buttons .button:hover + .button { border-left: 1px solid var(--color-secondary-dark-2); }