mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-01 15:15:59 +00:00
feat(ui): render ordered checkbox lists with numbers (#9184)
Addresses #6332. This allows ``` 1. [ ] task1 2. [ ] task2 ``` to be rendered with numbers. It also fixes a little alignment issue between items from unordered checkbox and other lists. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9184 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Ellen Εμιλία Άννα Zscheile <fogti@noreply.codeberg.org> Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Robert Wolff <mahlzahn@posteo.de> Co-committed-by: Robert Wolff <mahlzahn@posteo.de>
This commit is contained in:
parent
81d90e1b0d
commit
c6a2b7e0a6
2 changed files with 27 additions and 3 deletions
|
@ -153,7 +153,7 @@
|
|||
list-style-type: none;
|
||||
}
|
||||
|
||||
.markup .task-list-item {
|
||||
.markup ul .task-list-item {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
|
@ -162,11 +162,14 @@
|
|||
}
|
||||
|
||||
.markup .task-list-item input[type="checkbox"] {
|
||||
margin: 0 .3em .25em -1.4em;
|
||||
vertical-align: middle;
|
||||
margin: 0 .4em .25em -1.4em;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.markup ol .task-list-item input[type="checkbox"] {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.markup .task-list-item input[type="checkbox"] + p {
|
||||
margin-left: -0.2em;
|
||||
display: inline;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue