]> source.dussan.org Git - gitea.git/commitdiff
Fix some broken css (#23560) (#23567)
authorGiteabot <teabot@gitea.io>
Sun, 19 Mar 2023 01:37:16 +0000 (21:37 -0400)
committerGitHub <noreply@github.com>
Sun, 19 Mar 2023 01:37:16 +0000 (21:37 -0400)
Backport #23560 by @wxiaoguang

1. The "close" inside "modal" are likely broken for long time
    * There is no var called `--body-color`
    * There is no `fullscreen modal`
* The `.ui.modal > .close.inside` doesn't seem to match most icons. It
only matches a few like "fork-repo-modal" or "adopt repo". Other places
are just buggy code copied again and again.
2. Convert the legacy `&:hover` LESS syntax to CSS syntax

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <leon@kske.dev>
web_src/css/base.css
web_src/css/code/linebutton.css

index 275cd1cce4481f67c4d04ef50f12db72db3e6437..f7b9442cfa548354ccafd7bbae9719f6378f9e45 100644 (file)
@@ -1173,10 +1173,8 @@ a.ui.card:hover,
   border-color: var(--color-secondary);
 }
 
-.ui.modal > .close.inside,
-.ui.fullscreen.modal > .close {
-  top: 11px; /* align modal close icon, for example admin notices */
-  color: var(--body-color);
+.ui.modal > .close.inside {
+  color: var(--color-text);
 }
 
 .ui.basic.table > tbody > tr {
index a2956ffc1fbef82e84c35219c2de396f3773a22f..1012b38ba92a7da0815aa4b7943a812af9b488b8 100644 (file)
@@ -17,8 +17,8 @@
   left: 0;
   transform: translateX(-70%);
   cursor: pointer;
+}
 
-  &:hover {
-    color: var(--color-primary);
-  }
+.code-line-button:hover {
+  color: var(--color-primary);
 }