Skip to content

Commit 3f253b3

Browse files
GiteaBotwxiaoguangdelvh
authored
Fix some broken css (go-gitea#23560) (go-gitea#23567)
Backport go-gitea#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 <[email protected]> Co-authored-by: delvh <[email protected]>
1 parent f5a98b0 commit 3f253b3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

web_src/css/base.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -1173,10 +1173,8 @@ a.ui.card:hover,
11731173
border-color: var(--color-secondary);
11741174
}
11751175

1176-
.ui.modal > .close.inside,
1177-
.ui.fullscreen.modal > .close {
1178-
top: 11px; /* align modal close icon, for example admin notices */
1179-
color: var(--body-color);
1176+
.ui.modal > .close.inside {
1177+
color: var(--color-text);
11801178
}
11811179

11821180
.ui.basic.table > tbody > tr {

web_src/css/code/linebutton.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
left: 0;
1818
transform: translateX(-70%);
1919
cursor: pointer;
20+
}
2021

21-
&:hover {
22-
color: var(--color-primary);
23-
}
22+
.code-line-button:hover {
23+
color: var(--color-primary);
2424
}

0 commit comments

Comments
 (0)