From 4cbafbeccea10db2ca147af9766c3ce0a4124737 2013-09-21 03:38:40 From: Brian E. Granger Date: 2013-09-21 03:38:40 Subject: [PATCH] Adding 1em spacing above and below tables in rendered html. --- diff --git a/IPython/html/static/notebook/less/renderedhtml.less b/IPython/html/static/notebook/less/renderedhtml.less index 2d4ceff..8f07512 100644 --- a/IPython/html/static/notebook/less/renderedhtml.less +++ b/IPython/html/static/notebook/less/renderedhtml.less @@ -75,6 +75,14 @@ margin-top: 1em; } + p + table { + margin-top: 1em; + } + + table + p { + margin-top: 1em; + } + img { display: block; margin-left: auto; diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css index 7e5a334..ebf73d6 100644 --- a/IPython/html/static/style/ipython.min.css +++ b/IPython/html/static/style/ipython.min.css @@ -176,6 +176,8 @@ div.quickhelp{float:left;width:50%;} .rendered_html th{font-weight:bold;} .rendered_html p{text-align:justify;} .rendered_html p+p{margin-top:1em;} +.rendered_html p+table{margin-top:1em;} +.rendered_html table+p{margin-top:1em;} .rendered_html img{display:block;margin-left:auto;margin-right:auto;} .rendered_html .MathJax_Display{text-align:center !important;} span#save_widget{padding:0px 5px;margin-top:12px;} diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index a32c9b9..cd497a6 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -1557,6 +1557,8 @@ div.quickhelp{float:left;width:50%;} .rendered_html th{font-weight:bold;} .rendered_html p{text-align:justify;} .rendered_html p+p{margin-top:1em;} +.rendered_html p+table{margin-top:1em;} +.rendered_html table+p{margin-top:1em;} .rendered_html img{display:block;margin-left:auto;margin-right:auto;} .rendered_html .MathJax_Display{text-align:center !important;} span#save_widget{padding:0px 5px;margin-top:12px;}