diff --git a/notebook/static/notebook/less/renderedhtml.less b/notebook/static/notebook/less/renderedhtml.less index 4b535c7f9a..7a465d707a 100644 --- a/notebook/static/notebook/less/renderedhtml.less +++ b/notebook/static/notebook/less/renderedhtml.less @@ -44,14 +44,23 @@ background-color: @rendered_html_border_color; } - pre {margin: 1em 2em;} + pre { + margin: 1em 2em; + padding: 0px; + background-color: @body-bg; + } + + code { + background-color: #eff0f1; + padding: 1px 5px; + } + + pre code {background-color: @body-bg;} pre, code { border: 0; - background-color: @body-bg; color: @text-color; font-size: 100%; - padding: 0px; } blockquote {margin: 1em 2em;}