Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute positioned checkboxes overlay floated elements #26870

Merged
merged 13 commits into from Sep 30, 2023
8 changes: 5 additions & 3 deletions web_src/css/markup/content.css
Expand Up @@ -158,12 +158,14 @@
position: relative;
line-height: 1.5rem;
min-height: 1.5rem; /* // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible */
display: flex;
align-items: center;
margin-left: -2em;
}

.markup .task-list-item input[type="checkbox"] {
position: absolute;
top: 0.25em;
left: -1.6em;
flex: 0 0 auto;
margin-right: .6em;
}

.markup .task-list-item p {
Expand Down