Skip to content

Commit 5ce3479

Browse files
rafhrafh
authored andcommitted
posistion checkboxes relative
1 parent d1353ad commit 5ce3479

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web_src/css/markup/content.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,13 @@
158158
position: relative;
159159
line-height: 1.5rem;
160160
min-height: 1.5rem; /* // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible */
161+
display: flex;
162+
align-items: center;
161163
}
162164

163165
.markup .task-list-item input[type="checkbox"] {
164-
position: absolute;
165-
top: 0.25em;
166-
left: -1.6em;
166+
flex: 0 0 auto;
167+
margin-right: .6em;
167168
}
168169

169170
.markup .task-list-item p {

0 commit comments

Comments
 (0)