Skip to content

Commit

Permalink
document/wysiwig: no margin for sublists
Browse files Browse the repository at this point in the history
When having a list with sublists in a `markdown` section like this

  * top-level
  * another one
    * sub-elem 1
    * sub-elem 2

then documize will create a margin of 15px before and after the sublist
which is rather unintuitive as this will create the wrong impression
that these bullet-points have no relation to the parent one even though
this is the most common semantic reason for sublists.

This patch removes the margin at the top and bottom for those kinds of
sublists.
  • Loading branch information
Ma27 committed Oct 31, 2020
1 parent 806efd7 commit 06bf9ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gui/app/styles/core/view/document/wysiwyg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
line-height: 1.8rem;
}

ol ol, ul ul {
margin-top: 0;
margin-bottom: 0;
}

ol {
li {
// list-style-type: decimal;
Expand Down

0 comments on commit 06bf9ef

Please sign in to comment.