소스 검색

adjust embedded notebook CSS for IPython 2.0

remove text-cell prompt and padding, so it aligns with outer body text
MinRK 11 년 전
부모
커밋
657505cf35
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      liquid_tags/notebook.py

+ 11 - 0
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}
 </style>