fix markdown checkbox rendering (#17425)

tokarchuk/v1.17
wxiaoguang 3 years ago committed by GitHub
parent 7c951fdd4a
commit a961666c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      web_src/less/markup/content.less

@ -159,12 +159,18 @@
.task-list-item { .task-list-item {
list-style-type: none; list-style-type: none;
position: relative; 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
input[type="checkbox"] { input[type="checkbox"] {
position: absolute; position: absolute;
top: .25em; top: .25em;
left: -1.6em; left: -1.6em;
} }
p {
line-height: 1.5rem;
}
} }
.task-list-item + .task-list-item { .task-list-item + .task-list-item {

Loading…
Cancel
Save