]> BookStack Code Mirror - bookstack/commitdiff
Resolve issue #1911 (Additional margin/padding present in nested lists) 1913/head
authorMikey O'Toole <redacted>
Thu, 20 Feb 2020 14:25:23 +0000 (14:25 +0000)
committerGitHub <redacted>
Thu, 20 Feb 2020 14:25:23 +0000 (14:25 +0000)
Optionally we could consider removing the rule at line 274. This doesn't handle multiple layers of nested lists and would be better covered by the generic rule which checks for an `ol` or `ul` nested inside a `li` which is how MarkDown renders nested lists as HTML.

resources/sass/_text.scss

index d28706781529317c9d53db9e7ce2a418bbb2a134..8210d6d443fa5c1f368e895a65b6d3369b629a5e 100644 (file)
@@ -295,6 +295,13 @@ li.checkbox-item, li.task-list-item {
   }
 }
 
+li > ol, li > ul {
+  margin-block-end: 0px;
+  margin-block-start: 0px;
+  padding-block-end: 0px;
+  padding-block-start: 0px;
+}
+
 /*
  * Generic text styling classes
  */