From 784f07346d02fd3600b45f096853e20cedeff49f Mon Sep 17 00:00:00 2001 From: Min RK Date: Tue, 20 Jan 2015 12:38:01 -0800 Subject: [PATCH] add border to rendered markdown with cell toolbar matches unrendered markdown and code cells --- IPython/html/static/notebook/less/celltoolbar.less | 9 +++++++-- IPython/html/static/style/style.min.css | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/IPython/html/static/notebook/less/celltoolbar.less b/IPython/html/static/notebook/less/celltoolbar.less index c930f54a6..e706bf3d2 100644 --- a/IPython/html/static/notebook/less/celltoolbar.less +++ b/IPython/html/static/notebook/less/celltoolbar.less @@ -31,12 +31,17 @@ } .ctb_global_show .ctb_show + .input_area, -.ctb_global_show .ctb_show + div.text_cell_input -{ +.ctb_global_show .ctb_show + div.text_cell_input, +.ctb_global_show .ctb_show ~ div.text_cell_render { border-top-right-radius: 0px; border-top-left-radius: 0px; } +.ctb_global_show .ctb_show ~ div.text_cell_render { + // add border to rendered markdown cells + border: @border_width solid @light_border_color; +} + .celltoolbar { font-size: 87%; padding-top: 3px; diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 7346864b5..11d525cc6 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -10157,10 +10157,14 @@ p { display: block; } .ctb_global_show .ctb_show + .input_area, -.ctb_global_show .ctb_show + div.text_cell_input { +.ctb_global_show .ctb_show + div.text_cell_input, +.ctb_global_show .ctb_show ~ div.text_cell_render { border-top-right-radius: 0px; border-top-left-radius: 0px; } +.ctb_global_show .ctb_show ~ div.text_cell_render { + border: 1px solid #cfcfcf; +} .celltoolbar { font-size: 87%; padding-top: 3px;