##// END OF EJS Templates
Initial reorg of files complete....
Initial reorg of files complete. I have moved things around to get ready for making the notebook a full blown app, but have not actually made it an app. That is next.

File last commit:

r4332:f5911d3c
r4341:02f9051e
Show More
notebook.css
218 lines | 5.5 KiB | text/css | CssLexer
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 /**
* HTML5 ✰ Boilerplate
*
* style.css contains a reset, font normalization and some base styles.
*
* Credit is left where credit is due.
* Much inspiration was taken from these projects:
* - yui.yahooapis.com/2.8.1/build/base/base.css
* - camendesign.com/design/
* - praegnanz.de/weblog/htmlcssjs-kickstart
*/
/**
* html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
* v1.6.1 2010-09-17 | Authors: Eric Meyer & Richard Clark
* html5doctor.com/html-5-reset-stylesheet/
*/
html, body, div, span, object, iframe,
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 time, mark, audio, video {
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 margin: 0;
padding: 0;
border: 0;
Brian Granger
Refactoring of the output and display system....
r4317 /* font-size: 100%;*/
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ""; content: none; }
ins { background-color: #ff9; color: #000; text-decoration: none; }
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { text-decoration: line-through; }
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
table { border-collapse: collapse; border-spacing: 0; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
input, select { vertical-align: middle; }
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 body {
background-color: white;
Brian Granger
Refactoring of the output and display system....
r4317 /* This won't propagate to all children so we also set it below */
font-size: 12pt;
Brian Granger
Fixes to notebook scrolling and layout....
r4311 /* This makes sure that the body covers the entire window and needs to
be in a different element than the display: box in wrapper below */
position: absolute;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
div#wrapper {
/* This is needed to make sure the wrapper fills the body */
width: 100%;
height: 100%;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
span#ipython_notebook h1 {
Brian Granger
Tweaking and cleanup of notebook.css....
r4312 font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
font-size: 26pt;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 padding: 10px;
margin: 10px;
}
Brian Granger
Tweaking and cleanup of notebook.css....
r4312 div#tools {
Brian Granger
Refactoring of the output and display system....
r4317 font-size: 11pt;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
Brian Granger
Status monitoring added to notebook....
r4310 span#kernel_status {
position: absolute;
top: 12%;
right: 10px;
font-weight: bold;
}
.status_idle {
color: gray;
}
.status_busy {
color: red;
}
.status_restarting {
color: black;
}
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 div.notebook {
Brian Granger
Fixes to notebook scrolling and layout....
r4311 /* This is a trick from Google Docs. We set the height artificially low
and set overflow-y: auto to force scrolling of this dev when needed,
but prevent the browser window from scrolling. Crazy hack */
height: 15px;
overflow-y: auto;
overflow-x: hidden;
Brian Granger
Fine tuning of notebook styles....
r4324 padding: 0px 40px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 background-color: white;
Brian Granger
Refactoring of the output and display system....
r4317 font-size: 12pt;
Brian Granger
General CSS cleanup....
r4331 }
Brian Granger
Fixes to notebook scrolling and layout....
r4311
Brian Granger
General CSS cleanup....
r4331 .monospace-font {
font-family: monospace;
/* font-family: Monaco, Consolas, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;*/
font-size: 12pt;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
div.cell {
Brian Granger
Fixes to notebook scrolling and layout....
r4311 width: 100%;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 padding: 5px;
Brian Granger
Fine tuning of notebook styles....
r4324 /* This acts as a spacer between cells, that is outside the border */
margin: 15px 0px 15px 0px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 position: relative;
}
div.code_cell {
background-color: white;
}
div.prompt {
Brian Granger
Refactoring of the output and display system....
r4317 width: 90px;
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 padding: 0px;
margin: 0px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
div.input_prompt {
Brian Granger
CodeMirror code editing added....
r4332 color: navy;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
div.output {
Brian Granger
Fine tuning of notebook styles....
r4324 /* This is a spacer between the input and output of each cell */
margin-top: 15px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
div.output_prompt {
Brian Granger
CodeMirror code editing added....
r4332 color: darkred;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
div.output_area {
text-align: left;
Brian Granger
Refactoring of the output and display system....
r4317 color: black;
}
div.output_latex {
Brian Granger
General CSS cleanup....
r4331 /* Slightly bigger than the rest of the notebook */
Brian Granger
Refactoring of the output and display system....
r4317 font-size: 13pt;
}
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
div.text_cell {
background-color: white;
}
textarea.text_cell_input {
Brian Granger
Refactoring of the output and display system....
r4317 /* Slightly bigger than the rest of the notebook */
font-size: 13pt;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 outline: none;
resize: none;
width: inherit;
border-style: none;
Brian Granger
Tweaking and cleanup of notebook.css....
r4312 padding: 0px;
margin: 0px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 color: black;
}
div.text_cell_render {
font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
Brian Granger
Refactoring of the output and display system....
r4317 /* Slightly bigger than the rest of the notebook */
font-size: 13pt;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 outline: none;
resize: none;
width: inherit;
border-style: none;
Brian Granger
Tweaking and cleanup of notebook.css....
r4312 padding: 5px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 color: black;
}
Brian Granger
Added basic styling to text cells.
r4320 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;}
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292