From cc4a8cff403b280bf78bece07ff1ddd5bbdb3711 Mon Sep 17 00:00:00 2001 From: Brian Granger Date: Tue, 3 May 2011 15:09:39 -0700 Subject: [PATCH] Added basic styling to text cells. --- .../html/notebook/static/css/notebook.css | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index c73a5ee22..ecefa23e8 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -287,11 +287,24 @@ div.text_cell_render { color: black; } -div.text_cell_render em { - font-style: italic; -} +div.text_cell_render em {font-style: italic;} +div.text_cell_render strong {font-weight: bold;} +div.text_cell_render u {text-decoration: underline;} +div.text_cell_render :link { text-decoration: underline } +div.text_cell_render :visited { text-decoration: underline } +div.text_cell_render h1 {font-size: 2.0em; margin: .67em 0; font-weight: bold;} +div.text_cell_render h2 {font-size: 1.5em; margin: .75em 0; font-weight: bold;} +div.text_cell_render h3 {font-size: 1.17em; margin: .83em 0; font-weight: bold;} +div.text_cell_render h4 {margin: 1.12em 0; font-weight: bold;} +div.text_cell_render h5 {font-size: .83em; margin: 1.5em 0; font-weight: bold;} +div.text_cell_render h6 {font-size: .75em; margin: 1.67em 0; font-weight: bold;} +div.text_cell_render ul {list-style:disc; margin-left: 40px;} +div.text_cell_render ul ul {list-style:square; margin-left: 40px;} +div.text_cell_render ul ul ul {list-style:circle; margin-left: 40px;} +div.text_cell_render ol {list-style:upper-roman; margin-left: 40px;} +div.text_cell_render ol ol {list-style:upper-alpha;} +div.text_cell_render ol ol ol {list-style:decimal;} +div.text_cell_render ol ol ol ol {list-style:lower-alpha;} +div.text_cell_render ol ol ol ol ol {list-style:lower-roman;} -div.text_cell_render strong { - font-weight: bold; -}