Skip to content

Commit 5339a80

Browse files
author
Gusted
committed
Avoid new stack context for task list items (go-gitea#20377)
- Backport go-gitea#20377 - Avoid creating a new stack context on a task list item, this PR does that by removing the `position: relative` which causes a new stack context to be created on that element. And thereby solving that popups weren't able to utilize their z-index and weren't able to show properly. Before: ![image](https://user-images.githubusercontent.com/25481501/179135078-63805ccc-17bc-4e11-8393-cdb6f1916cdd.png) After: ![image](https://user-images.githubusercontent.com/25481501/179135105-09996426-85da-40d7-8777-46a16a9413fe.png)
1 parent 4c1f4ee commit 5339a80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web_src/less/markup/content.less

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,13 @@
158158

159159
.task-list-item {
160160
list-style-type: none;
161-
position: relative;
162161
line-height: 1.5rem;
163162
min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible
164163

165164
input[type="checkbox"] {
166165
position: absolute;
167-
top: .25em;
168-
left: -1.6em;
166+
left: 1.4em;
167+
top: 3.8em;
169168
}
170169

171170
p {

0 commit comments

Comments
 (0)