notebook.css
313 lines
| 5.2 KiB
| text/css
|
CssLexer
Brian E. Granger
|
r4379 | |||
/** | ||||
* Primary styles | ||||
* | ||||
* Author: IPython Development Team | ||||
*/ | ||||
Brian Granger
|
r4292 | body { | ||
background-color: white; | ||||
Brian Granger
|
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
|
r4355 | overflow: hidden; | ||
Brian Granger
|
r4311 | } | ||
Brian E. Granger
|
r4372 | 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
|
r4292 | } | ||
Brian Granger
|
r4310 | span#kernel_status { | ||
position: absolute; | ||||
Brian E. Granger
|
r4372 | padding: 8px 5px 5px 5px; | ||
Brian Granger
|
r4310 | right: 10px; | ||
font-weight: bold; | ||||
} | ||||
.status_idle { | ||||
color: gray; | ||||
} | ||||
.status_busy { | ||||
color: red; | ||||
} | ||||
.status_restarting { | ||||
color: black; | ||||
} | ||||
Brian E. Granger
|
r4355 | div#left_panel { | ||
Brian Granger
|
r4311 | overflow-y: auto; | ||
Brian E. Granger
|
r4360 | top: 0px; | ||
left: 0px; | ||||
margin: 0px; | ||||
padding: 0px; | ||||
position: absolute; | ||||
Brian E. Granger
|
r4355 | } | ||
Brian E. Granger
|
r4365 | h3.section_header { | ||
padding: 5px; | ||||
} | ||||
div.section_content { | ||||
padding: 5px; | ||||
} | ||||
Brian E. Granger
|
r4631 | span.section_row_buttons button { | ||
width: 70px; | ||||
} | ||||
span.section_row_buttons a { | ||||
Brian Granger
|
r4508 | width: 70px; | ||
Brian E. Granger
|
r4367 | } | ||
Brian E. Granger
|
r4372 | .section_row { | ||
Brian E. Granger
|
r4367 | margin: 5px 0px; | ||
} | ||||
Brian E. Granger
|
r4372 | .section_row_buttons { | ||
Brian E. Granger
|
r4367 | float: right; | ||
} | ||||
Brian E. Granger
|
r4496 | #kernel_persist { | ||
float: right; | ||||
} | ||||
Brian E. Granger
|
r4516 | .help_string { | ||
float: right; | ||||
width: 170px; | ||||
padding: 0px 5px; | ||||
text-align: center; | ||||
} | ||||
.help_string_label { | ||||
float: right; | ||||
} | ||||
Brian E. Granger
|
r4512 | #autoindent_span { | ||
float: right; | ||||
} | ||||
Brian E. Granger
|
r4496 | .checkbox_label { | ||
font-size: 85%; | ||||
float: right; | ||||
padding: 0.3em; | ||||
} | ||||
Brian E. Granger
|
r4372 | .section_row_header { | ||
Brian E. Granger
|
r4367 | float: left; | ||
Brian E. Granger
|
r4379 | font-size: 85%; | ||
Brian E. Granger
|
r4496 | padding: 0.4em 0em; | ||
Brian E. Granger
|
r4367 | font-weight: bold; | ||
} | ||||
Brian E. Granger
|
r4365 | |||
span.button_label { | ||||
Brian E. Granger
|
r4367 | padding: 0.2em 1em; | ||
Brian E. Granger
|
r4379 | font-size: 77%; | ||
Brian E. Granger
|
r4367 | float: right; | ||
Brian E. Granger
|
r4365 | } | ||
Brian E. Granger
|
r4367 | /* This is needed because FF was adding a 2px margin top and bottom. */ | ||
Brian E. Granger
|
r4372 | .section_row .ui-button { | ||
Brian E. Granger
|
r4367 | margin-top: 0px; | ||
margin-bottom: 0px; | ||||
} | ||||
Brian E. Granger
|
r4484 | #download_format { | ||
float: right; | ||||
font-size: 85%; | ||||
Brian Granger
|
r4510 | width: 62px; | ||
Brian E. Granger
|
r4484 | margin: 1px 5px; | ||
} | ||||
Brian E. Granger
|
r4355 | div#left_panel_splitter { | ||
Brian E. Granger
|
r4361 | width: 8px; | ||
Brian E. Granger
|
r4360 | top: 0px; | ||
left: 202px; | ||||
margin: 0px; | ||||
padding: 0px; | ||||
position: absolute; | ||||
Brian E. Granger
|
r4355 | } | ||
Brian E. Granger
|
r4360 | div#notebook_panel { | ||
Brian E. Granger
|
r4363 | /* The L margin will be set in the Javascript code*/ | ||
margin: 0px 0px 0px 0px; | ||||
Brian E. Granger
|
r4360 | padding: 0px; | ||
Brian E. Granger
|
r4355 | } | ||
div#notebook { | ||||
overflow-y: scroll; | ||||
overflow-x: auto; | ||||
Brian E. Granger
|
r4360 | width: 100%; | ||
Brian E. Granger
|
r4525 | /* This spaces the cell away from the edge of the notebook area */ | ||
padding: 15px 15px 15px 15px; | ||||
Brian E. Granger
|
r4360 | margin: 0px | ||
Brian Granger
|
r4292 | background-color: white; | ||
Brian Granger
|
r4331 | } | ||
Brian Granger
|
r4311 | |||
Brian E. Granger
|
r4360 | div#pager_splitter { | ||
Brian E. Granger
|
r4361 | height: 8px; | ||
Brian E. Granger
|
r4360 | } | ||
div#pager { | ||||
Brian E. Granger
|
r4364 | padding: 15px; | ||
Brian E. Granger
|
r4360 | overflow: auto; | ||
} | ||||
Brian Granger
|
r4292 | div.cell { | ||
Brian Granger
|
r4311 | width: 100%; | ||
Brian E. Granger
|
r4361 | padding: 5px; | ||
Brian Granger
|
r4324 | /* This acts as a spacer between cells, that is outside the border */ | ||
Brian E. Granger
|
r4525 | margin: 5px 0px 5px 0px; | ||
Brian Granger
|
r4292 | } | ||
div.code_cell { | ||||
background-color: white; | ||||
} | ||||
div.prompt { | ||||
Brian E. Granger
|
r4525 | /* No width is used so the prompt area can expand as the prompt number | ||
increases in width */ | ||||
/* This 0.4em is tuned to match the padding on the CodeMirror editor. */ | ||||
Brian Granger
|
r4366 | padding: 0.4em; | ||
Brian Granger
|
r4299 | margin: 0px; | ||
Brian E. Granger
|
r4379 | font-family: monospace; | ||
Brian Granger
|
r4292 | } | ||
Brian E. Granger
|
r4625 | div.input { | ||
page-break-inside: avoid; | ||||
} | ||||
Brian E. Granger
|
r4531 | div.input_area { | ||
color: black; | ||||
} | ||||
Brian Granger
|
r4292 | div.input_prompt { | ||
Brian Granger
|
r4332 | color: navy; | ||
Brian Granger
|
r4292 | } | ||
div.output { | ||||
Brian Granger
|
r4324 | /* This is a spacer between the input and output of each cell */ | ||
Brian E. Granger
|
r4525 | margin-top: 5px; | ||
Brian Granger
|
r4292 | } | ||
div.output_prompt { | ||||
Brian Granger
|
r4332 | color: darkred; | ||
Brian Granger
|
r4292 | } | ||
Brian E. Granger
|
r4531 | /* This class is applied to all types of output (pyout, pyerr, stream, display_data) */ | ||
div.output_area { | ||||
Brian E. Granger
|
r4625 | padding: 0px 0.4em; | ||
page-break-inside: avoid; | ||||
Brian E. Granger
|
r4504 | } | ||
Brian E. Granger
|
r4531 | /* This is the output area after the Out[] prompt of type pyout */ | ||
div.pyout_area { | ||||
padding: 0.4em; | ||||
} | ||||
/* The rest of the output_* classes are for special styling of the different | ||||
output types */ | ||||
div.output_pyout { | ||||
padding: 0px; | ||||
Brian E. Granger
|
r4379 | } | ||
div.output_stream { | ||||
Brian E. Granger
|
r4531 | text-align: left; | ||
color: black; | ||||
font-family: monospace; | ||||
Brian Granger
|
r4317 | } | ||
div.output_latex { | ||||
Brian E. Granger
|
r4531 | text-align: left; | ||
color: black; | ||||
Brian Granger
|
r4317 | } | ||
MinRK
|
r4403 | div.output_html { | ||
} | ||||
Brian E. Granger
|
r4348 | div.output_png { | ||
} | ||||
Brian Granger
|
r4292 | |||
Brian E. Granger
|
r4531 | div.output_jpeg { | ||
} | ||||
Brian Granger
|
r4508 | div.text_cell { | ||
Brian Granger
|
r4292 | background-color: white; | ||
} | ||||
Brian Granger
|
r4508 | div.text_cell_input { | ||
Brian E. Granger
|
r4507 | color: black; | ||
} | ||||
Brian Granger
|
r4508 | div.text_cell_render { | ||
Brian E. Granger
|
r4507 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; | ||
outline: none; | ||||
resize: none; | ||||
width: inherit; | ||||
border-style: none; | ||||
padding: 5px; | ||||
color: black; | ||||
} | ||||
Brian E. Granger
|
r4379 | .CodeMirror { | ||
Brian E. Granger
|
r4638 | line-height: 1.231; /* Changed from 1em to our global default */ | ||
Brian E. Granger
|
r4379 | } | ||
Brian E. Granger
|
r4504 | .CodeMirror-scroll { | ||
Brian E. Granger
|
r4638 | height: auto; /* Changed to auto to autogrow */ | ||
/* The CodeMirror docs are a bit fuzzy on if overflow-y should be hidden or visible.*/ | ||||
/* We have found that if it is visible, vertical scrollbars appear with font size changes.*/ | ||||
overflow-y: hidden; | ||||
overflow-x: auto; /* Changed from auto to remove scrollbar */ | ||||
Brian E. Granger
|
r4504 | } | ||
Brian Granger
|
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
|
r4389 | .completions { | ||
position: absolute; | ||||
z-index: 10; | ||||
overflow: auto; | ||||
border: 1px solid black; | ||||
} | ||||
Brian Granger
|
r4383 | |||
Brian E. Granger
|
r4389 | .completions select { | ||
background: white; | ||||
outline: none; | ||||
border: none; | ||||
padding: 0px; | ||||
margin: 0px; | ||||
font-family: monospace; | ||||
} | ||||
Brian Granger
|
r4383 | |||
Brian E. Granger
|
r4625 | @media print { | ||
body { overflow: visible !important; } | ||||
.ui-widget-content { border: 0px; } | ||||
} | ||||