From 502c074b2cc4e5147a36cf7be189a13af719c259 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Thu, 27 Jul 2017 08:14:18 -0700 Subject: [PATCH] Prevent extra newline between nested lists --- notebook/static/notebook/less/renderedhtml.less | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/notebook/static/notebook/less/renderedhtml.less b/notebook/static/notebook/less/renderedhtml.less index 7a465d707..7ec5e3d68 100644 --- a/notebook/static/notebook/less/renderedhtml.less +++ b/notebook/static/notebook/less/renderedhtml.less @@ -28,10 +28,16 @@ ul:not(.list-inline), ol:not(.list-inline) {padding-left: 2em;} ul {list-style:disc;} - ul ul {list-style:square;} + ul ul { + list-style:square; + margin-top: 0; + } ul ul ul {list-style:circle;} ol {list-style:decimal;} - ol ol {list-style:upper-alpha; } + ol ol { + list-style:upper-alpha; + margin-top: 0; + } ol ol ol {list-style:lower-alpha; } ol ol ol ol {list-style:lower-roman; } /* any extras will just be numbers: */