From 06bf9efcfc88087729483faa7c9e1762c8303cd9 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 31 Oct 2020 21:43:30 +0100 Subject: [PATCH] document/wysiwig: no margin for sublists 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. --- gui/app/styles/core/view/document/wysiwyg.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/app/styles/core/view/document/wysiwyg.scss b/gui/app/styles/core/view/document/wysiwyg.scss index 40de8907..807c246c 100644 --- a/gui/app/styles/core/view/document/wysiwyg.scss +++ b/gui/app/styles/core/view/document/wysiwyg.scss @@ -39,6 +39,11 @@ line-height: 1.8rem; } + ol ol, ul ul { + margin-top: 0; + margin-bottom: 0; + } + ol { li { // list-style-type: decimal;