##// END OF EJS Templates
Full versioning added to nbformat.
Full versioning added to nbformat.

File last commit:

r4395:fbddd432
r4406:0251893c
Show More
notebook.css
375 lines | 7.9 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 E. Granger
Updating font-sizing to use the YUI protocol.
r4379 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 E. Granger
Updating font-sizing to use the YUI protocol.
r4379
/**
* Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/
*/
body { font:13px/1.231 sans-serif; *font-size:small; } /* Hack retained to preserve specificity */
select, input, textarea, button { font:99% sans-serif; }
/* Normalize monospace sizing:
en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome */
pre, code, kbd, samp { font-family: monospace, sans-serif; }
/**
* Primary styles
*
* Author: IPython Development Team
*/
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 body {
background-color: white;
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;
Brian E. Granger
Starting to refactor the notebook layout
r4355 overflow: hidden;
Brian Granger
Fixes to notebook scrolling and layout....
r4311 }
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292
Brian E. Granger
Minors fixes and initial work on save widget....
r4369 div#header {
Brian E. Granger
Hacks to prevent FLOUC (flash of unformatted content).
r4395 /* Initially hidden to prevent FLOUC */
display: none;
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 position: relative;
height: 45px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 padding: 5px;
margin: 0px;
Brian E. Granger
Hacks to prevent FLOUC (flash of unformatted content).
r4395 width: 100%;
Brian E. Granger
Minors fixes and initial work on save widget....
r4369 }
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360
Brian E. Granger
Minors fixes and initial work on save widget....
r4369 span#ipython_notebook {
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 position: absolute;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 padding: 2px;
Brian E. Granger
Minors fixes and initial work on save widget....
r4369 }
span#ipython_notebook h1 {
font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 197%;
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 display: inline;
}
span#save_widget {
position: absolute;
left: 0px;
padding: 5px 0px;
margin: 0px 0px 0px 0px;
}
input#notebook_name {
height: 1em;
line-height: 1em;
padding: 5px;
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 }
Brian Granger
Status monitoring added to notebook....
r4310 span#kernel_status {
position: absolute;
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 padding: 8px 5px 5px 5px;
Brian Granger
Status monitoring added to notebook....
r4310 right: 10px;
font-weight: bold;
}
.status_idle {
color: gray;
}
.status_busy {
color: red;
}
.status_restarting {
color: black;
}
Brian E. Granger
Starting to refactor the notebook layout
r4355 div#notebook_app {
Brian E. Granger
Hacks to prevent FLOUC (flash of unformatted content).
r4395 /* Initially hidden to prevent FLOUC */
display: none;
Brian E. Granger
Adding note about vbox related scroll bugs.
r4359 width: 100%;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 position: relative;
Brian E. Granger
Starting to refactor the notebook layout
r4355 }
div#left_panel {
Brian Granger
Fixes to notebook scrolling and layout....
r4311 overflow-y: auto;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 top: 0px;
left: 0px;
margin: 0px;
padding: 0px;
position: absolute;
Brian E. Granger
Starting to refactor the notebook layout
r4355 }
Brian E. Granger
Initial draft of panel section and the cell section working.
r4365 h3.section_header {
padding: 5px;
}
div.section_content {
padding: 5px;
}
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372
span.section_row_buttons > button {
width: 60px;
Brian E. Granger
Controls in cell section have a solid layout.
r4367 }
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 .section_row {
Brian E. Granger
Controls in cell section have a solid layout.
r4367 margin: 5px 0px;
}
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 .section_row_buttons {
Brian E. Granger
Controls in cell section have a solid layout.
r4367 float: right;
}
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 .section_row_header {
Brian E. Granger
Controls in cell section have a solid layout.
r4367 float: left;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 85%;
Brian E. Granger
Controls in cell section have a solid layout.
r4367 padding: 0.2em 0em;
font-weight: bold;
}
Brian E. Granger
Initial draft of panel section and the cell section working.
r4365
span.button_label {
Brian E. Granger
Controls in cell section have a solid layout.
r4367 padding: 0.2em 1em;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 77%;
Brian E. Granger
Controls in cell section have a solid layout.
r4367 float: right;
Brian E. Granger
Initial draft of panel section and the cell section working.
r4365 }
Brian E. Granger
Controls in cell section have a solid layout.
r4367 /* This is needed because FF was adding a 2px margin top and bottom. */
Brian E. Granger
Work on save widget, kernel status widget and notebook section.
r4372 .section_row .ui-button {
Brian E. Granger
Controls in cell section have a solid layout.
r4367 margin-top: 0px;
margin-bottom: 0px;
}
Brian E. Granger
Initial draft of panel section and the cell section working.
r4365 .ui-button .ui-button-text {
Brian E. Granger
Controls in cell section have a solid layout.
r4367 padding: 0.2em 0.8em;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 77%;
Brian E. Granger
Initial draft of panel section and the cell section working.
r4365 }
Brian E. Granger
Starting to refactor the notebook layout
r4355 div#left_panel_splitter {
Brian E. Granger
Pager is working again.
r4361 width: 8px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 top: 0px;
left: 202px;
margin: 0px;
padding: 0px;
position: absolute;
Brian E. Granger
Starting to refactor the notebook layout
r4355 }
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 div#notebook_panel {
Brian E. Granger
Left panel is now working.
r4363 /* The L margin will be set in the Javascript code*/
margin: 0px 0px 0px 0px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 padding: 0px;
Brian E. Granger
Starting to refactor the notebook layout
r4355 }
div#notebook {
overflow-y: scroll;
overflow-x: auto;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 width: 100%;
Brian E. Granger
Improving the scrolling model.
r4364 padding: 0px 15px 0px 15px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 margin: 0px
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 background-color: white;
Brian Granger
General CSS cleanup....
r4331 }
Brian Granger
Fixes to notebook scrolling and layout....
r4311
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 div#pager_splitter {
Brian E. Granger
Pager is working again.
r4361 height: 8px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 }
div#pager {
Brian E. Granger
Improving the scrolling model.
r4364 padding: 15px;
Brian E. Granger
More work updating the notebook to use dynamics resizing.
r4360 overflow: auto;
}
Brian Granger
Initial draft of HTML5/JS/CSS3 notebook.
r4292 div.cell {
Brian Granger
Fixes to notebook scrolling and layout....
r4311 width: 100%;
Brian E. Granger
Pager is working again.
r4361 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 }
div.code_cell {
background-color: white;
}
div.prompt {
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 width: 80px;
Brian Granger
Minor fixes to fonts and spacing.
r4366 padding: 0.4em;
Brian Granger
Initial reply handling implemented along with css fixes.
r4299 margin: 0px;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-family: monospace;
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;
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-family: monospace;
}
div.output_stream {
padding: 0.4em;
Brian Granger
Refactoring of the output and display system....
r4317 }
div.output_latex {
Brian Granger
General CSS cleanup....
r4331 /* Slightly bigger than the rest of the notebook */
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 116%;
Brian Granger
Refactoring of the output and display system....
r4317 }
Brian E. Granger
Updating the notebook to work with the latex master....
r4348 div.output_png {
}
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 */
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 116%;
font-family: monospace;
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 */
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 font-size: 116%;
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 }
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 div.text_cell_render h1 {font-size: 197%; margin: .67em 0; font-weight: bold;}
div.text_cell_render h2 {font-size: 153.9%; margin: .75em 0; font-weight: bold;}
div.text_cell_render h3 {font-size: 116%; margin: .83em 0; font-weight: bold;}
Brian Granger
Added basic styling to text cells.
r4320 div.text_cell_render h4 {margin: 1.12em 0; font-weight: bold;}
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 div.text_cell_render h5 {font-size: 85%.; margin: 1.5em 0; font-weight: bold;}
div.text_cell_render h6 {font-size: 77%; margin: 1.67em 0; font-weight: bold;}
Brian Granger
Added basic styling to text cells.
r4320 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
Brian E. Granger
Updating font-sizing to use the YUI protocol.
r4379 .CodeMirror {
overflow: hidden; /* Changed from auto to remove scrollbar */
height: auto; /* Changed to auto to autogrow */
line-height: 1.231; /* Changed from 1em to our global default */
}
Brian Granger
Colors now working in tracebacks and the pager....
r4383 /* CSS font colors for translated ANSI colors. */
.ansiblack {color: black;}
.ansired {color: darkred;}
.ansigreen {color: darkgreen;}
.ansiyellow {color: brown;}
.ansiblue {color: darkblue;}
.ansipurple {color: darkviolet;}
.ansicyan {color: steelblue;}
.ansigrey {color: grey;}
.ansibold {font-weight: bold;}
Brian E. Granger
Autocompletion working with CTRL-SPACE.
r4389 .completions {
position: absolute;
z-index: 10;
overflow: auto;
border: 1px solid black;
}
Brian Granger
Colors now working in tracebacks and the pager....
r4383
Brian E. Granger
Autocompletion working with CTRL-SPACE.
r4389 .completions select {
background: white;
outline: none;
border: none;
padding: 0px;
margin: 0px;
font-family: monospace;
}
Brian Granger
Colors now working in tracebacks and the pager....
r4383