From 657505cf3538724f1fe5fcfda3044a822fcb4095 Mon Sep 17 00:00:00 2001 From: MinRK Date: Sun, 9 Mar 2014 16:51:31 -0700 Subject: [PATCH] adjust embedded notebook CSS for IPython 2.0 remove text-cell prompt and padding, so it aligns with outer body text --- liquid_tags/notebook.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/liquid_tags/notebook.py b/liquid_tags/notebook.py index f803bdf..8c896a2 100644 --- a/liquid_tags/notebook.py +++ b/liquid_tags/notebook.py @@ -117,6 +117,17 @@ pre.ipynb { font-size: 13px; } +/* remove the prompt div from text cells */ +div.text_cell .prompt { + display: none; +} + +/* remove horizontal padding from text cells, */ +/* so it aligns with outer body text */ +div.text_cell_render { + padding: 0.5em 0em; +} + img.anim_icon{padding:0; border:0; vertical-align:middle; -webkit-box-shadow:none; -box-shadow:none}