Skip to content

Commit f15f897

Browse files
author
Gusted
committed
Make checkbox use relative positon
1 parent 1609f77 commit f15f897

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/less/markup/content.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@
159159
.task-list-item {
160160
list-style-type: none;
161161
line-height: 1.5rem;
162+
margin-left: -1.6em;
162163
min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible
163164

164165
input[type="checkbox"] {
165-
position: absolute;
166-
left: 1.4em;
167-
top: 3.8em;
166+
top: -.1em;
167+
margin-right: calc(1.6em - 14px);
168168
}
169169

170170
p {

0 commit comments

Comments
 (0)