From df2cab0ec3aa489e4bc82323a1af150322258598 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Wed, 16 Mar 2016 10:04:21 +0100 Subject: [PATCH] fixed and DRYed .rendered_html ol/ul styles --- .../static/notebook/less/renderedhtml.less | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/notebook/static/notebook/less/renderedhtml.less b/notebook/static/notebook/less/renderedhtml.less index d0ceb8b51..d16ef44e7 100644 --- a/notebook/static/notebook/less/renderedhtml.less +++ b/notebook/static/notebook/less/renderedhtml.less @@ -25,15 +25,17 @@ h5:first-child {margin-top: 1em;} h6:first-child {margin-top: 1em;} - ul {list-style:disc; margin: 0em 2em; padding-left: 0px;} - ul ul {list-style:square; margin: 0em 2em;} - ul ul ul {list-style:circle; margin: 0em 2em;} - ol {list-style:decimal; margin: 0em 2em; padding-left: 0px;} - ol ol {list-style:upper-alpha; margin: 0em 2em;} - ol ol ol {list-style:lower-alpha; margin: 0em 2em;} - ol ol ol ol {list-style:lower-roman; margin: 0em 2em;} + ul:not(.list-inline), + ol:not(.list-inline) {margin: 0em 2em; padding-left: 0px;} + ul {list-style:disc;} + ul ul {list-style:square;} + ul ul ul {list-style:circle;} + ol {list-style:decimal;} + ol ol {list-style:upper-alpha; } + ol ol ol {list-style:lower-alpha; } + ol ol ol ol {list-style:lower-roman; } /* any extras will just be numbers: */ - ol ol ol ol ol {list-style:decimal; margin: 0em 2em;} + ol ol ol ol ol {list-style:decimal;} * + ul {margin-top: 1em;} * + ol {margin-top: 1em;}