From 9237f02532abb3b4b03fd6a59e0dbf5c417e1997 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sat, 21 Jan 2023 10:41:45 +0800 Subject: [PATCH] Align hover color with static color (#119) Currently the hover colors are some kind of different green that does not play well with the main green color. This PR should align the hover color with the static one. Imo there is no need for a different hover color - and having none simplifies things a bit. The change of `tertiary` aligns the blue used with the blue color used in the gitea light theme (e.g. on gitea.com here). Co-authored-by: pat-s Reviewed-on: https://gitea.com/gitea/theme/pulls/119 Reviewed-by: John Olheiser Reviewed-by: Lunny Xiao Co-authored-by: pat-s Co-committed-by: pat-s --- src/main.scss | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/main.scss b/src/main.scss index 1f8661b..5a258cc 100644 --- a/src/main.scss +++ b/src/main.scss @@ -1,3 +1,6 @@ +$tertiary: #4183c4; + + *, *:hover, *:active, *:focus{ outline: none; } @@ -280,4 +283,20 @@ code { img[alt="Hosted Gitea"] { height: 100px; -} \ No newline at end of file +} + +a:hover { + color: #528321; +} + +.button.is-success:hover, .button.is-success.is-hovered { + background-color: #528321; + border-color: transparent; + color: #fff; +} + +.button.is-success.is-outlined:hover, .button.is-success.is-outlined.is-hovered, .button.is-success.is-outlined:focus, .button.is-success.is-outlined.is-focused { + background-color: #528321; + border-color: #528321; + color: #fff; +}