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)
This commit is contained in:
silverwind 2024-03-25 11:14:43 +01:00 committed by Earl Warren
parent 2c4e85421e
commit 553ef46226
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -11,7 +11,6 @@
.ui.button:focus { .ui.button:focus {
background: var(--color-hover); background: var(--color-hover);
color: var(--color-text); color: var(--color-text);
border-color: var(--color-secondary-dark-2);
} }
.page-content .ui.button { .page-content .ui.button {
@ -64,6 +63,10 @@ It needs some tricks to tweak the left/right borders with active state */
border-right: none; border-right: none;
} }
.ui.buttons .button:hover {
border-color: var(--color-secondary-dark-2);
}
.ui.buttons .button:hover + .button { .ui.buttons .button:hover + .button {
border-left: 1px solid var(--color-secondary-dark-2); border-left: 1px solid var(--color-secondary-dark-2);
} }