notebook.css
383 lines
| 7.1 KiB
| text/css
|
CssLexer
|
r4379 | /** | ||
* Primary styles | ||||
* | ||||
* Author: IPython Development Team | ||||
*/ | ||||
|
r4292 | body { | ||
|
r4355 | overflow: hidden; | ||
|
r4311 | } | ||
|
r4372 | span#save_widget { | ||
|
r5859 | padding: 5px; | ||
|
r5857 | margin: 0px 0px 0px 300px; | ||
|
r5702 | display:inline-block; | ||
|
r4372 | } | ||
|
r5859 | span#notebook_name { | ||
height: 1em; | ||||
line-height: 1em; | ||||
padding: 3px; | ||||
border: none; | ||||
font-size: 146.5%; | ||||
} | ||||
|
r5869 | .ui-menubar-item .ui-button .ui-button-text { | ||
padding: 0.4em 1.0em; | ||||
font-size: 100%; | ||||
} | ||||
.ui-menu { | ||||
-moz-box-shadow: 0px 6px 10px -1px #adadad; | ||||
-webkit-box-shadow: 0px 6px 10px -1px #adadad; | ||||
box-shadow: 0px 6px 10px -1px #adadad; | ||||
} | ||||
.ui-menu .ui-menu-item a { | ||||
|
r7300 | border: 1px solid transparent; | ||
|
r5870 | padding: 2px 1.6em; | ||
|
r5869 | } | ||
|
r7320 | .ui-menu .ui-menu-item a.ui-state-focus { | ||
margin: 0; | ||||
} | ||||
|
r5869 | .ui-menu hr { | ||
margin: 0.3em 0; | ||||
} | ||||
|
r6047 | #menubar_container { | ||
position: relative; | ||||
} | ||||
#notification { | ||||
position: absolute; | ||||
right: 3px; | ||||
top: 3px; | ||||
height: 25px; | ||||
padding: 3px 6px; | ||||
z-index: 10; | ||||
} | ||||
|
r5993 | #toolbar { | ||
padding: 3px 15px; | ||||
} | ||||
|
r5994 | #cell_type { | ||
font-size: 85%; | ||||
} | ||||
|
r6192 | |||
div#main_app { | ||||
width: 100%; | ||||
position: relative; | ||||
} | ||||
|
r5023 | span#quick_help_area { | ||
position: static; | ||||
padding: 5px 0px; | ||||
margin: 0px 0px 0px 0px; | ||||
} | ||||
|
r4516 | .help_string { | ||
float: right; | ||||
width: 170px; | ||||
padding: 0px 5px; | ||||
|
r4646 | text-align: left; | ||
|
r4640 | font-size: 85%; | ||
|
r4516 | } | ||
.help_string_label { | ||||
float: right; | ||||
|
r4640 | font-size: 85%; | ||
|
r4516 | } | ||
|
r4360 | div#notebook_panel { | ||
|
r4363 | margin: 0px 0px 0px 0px; | ||
|
r4360 | padding: 0px; | ||
|
r4355 | } | ||
div#notebook { | ||||
overflow-y: scroll; | ||||
overflow-x: auto; | ||||
|
r4360 | width: 100%; | ||
|
r4525 | /* This spaces the cell away from the edge of the notebook area */ | ||
|
r5017 | padding: 5px 5px 15px 5px; | ||
|
r7362 | margin: 0px; | ||
|
r4292 | background-color: white; | ||
|
r4331 | } | ||
|
r4311 | |||
|
r4360 | div#pager_splitter { | ||
|
r4361 | height: 8px; | ||
|
r4360 | } | ||
div#pager { | ||||
|
r4364 | padding: 15px; | ||
|
r4360 | overflow: auto; | ||
|
r5948 | display: none; | ||
|
r4360 | } | ||
|
r7300 | div.ui-widget-content { | ||
border: 1px solid #aaa; | ||||
outline: none; | ||||
} | ||||
.cell { | ||||
border: 1px solid transparent; | ||||
} | ||||
|
r4292 | div.cell { | ||
|
r4311 | width: 100%; | ||
|
r5017 | padding: 5px 5px 5px 0px; | ||
|
r4324 | /* This acts as a spacer between cells, that is outside the border */ | ||
|
r5017 | margin: 2px 0px 2px 0px; | ||
|
r4292 | } | ||
div.code_cell { | ||||
background-color: white; | ||||
} | ||||
|
r7362 | |||
|
r5221 | /* any special styling for code cells that are currently running goes here */ | ||
div.code_cell.running { | ||||
} | ||||
|
r4292 | |||
div.prompt { | ||||
|
r4642 | /* This needs to be wide enough for 3 digit prompt numbers: In[100]: */ | ||
|
r4643 | width: 11ex; | ||
|
r4525 | /* This 0.4em is tuned to match the padding on the CodeMirror editor. */ | ||
|
r4366 | padding: 0.4em; | ||
|
r4299 | margin: 0px; | ||
|
r4379 | font-family: monospace; | ||
|
r4644 | text-align:right; | ||
|
r4292 | } | ||
|
r4625 | div.input { | ||
page-break-inside: avoid; | ||||
} | ||||
|
r4887 | /* input_area and input_prompt must match in top border and margin for alignment */ | ||
|
r4531 | div.input_area { | ||
color: black; | ||||
|
r4883 | border: 1px solid #ddd; | ||
|
r4886 | border-radius: 3px; | ||
|
r5064 | background: #f7f7f7; | ||
|
r4531 | } | ||
|
r4292 | div.input_prompt { | ||
|
r4332 | color: navy; | ||
|
r4887 | border-top: 1px solid transparent; | ||
|
r4292 | } | ||
|
r7362 | div.output_wrapper { | ||
|
r4324 | /* This is a spacer between the input and output of each cell */ | ||
|
r4525 | margin-top: 5px; | ||
|
r7362 | margin-left: 5px; | ||
/* FF needs explicit width to stretch */ | ||||
width: 100%; | ||||
/* this position must be relative to enable descendents to be absolute within it */ | ||||
position: relative; | ||||
} | ||||
/* class for the output area when it should be height-limited */ | ||||
div.output_scroll { | ||||
/* ideally, this would be max-height, but FF barfs all over that */ | ||||
height: 24em; | ||||
/* FF needs this *and the wrapper* to specify full width, or it will shrinkwrap */ | ||||
width: 100%; | ||||
overflow: auto; | ||||
border-radius: 3px; | ||||
box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8); | ||||
} | ||||
/* output div while it is collapsed */ | ||||
div.output_collapsed { | ||||
margin-right: 5px; | ||||
} | ||||
div.out_prompt_overlay { | ||||
height: 100%; | ||||
padding: 0px; | ||||
position: absolute; | ||||
border-radius: 3px; | ||||
} | ||||
div.out_prompt_overlay:hover { | ||||
/* use inner shadow to get border that is computed the same on WebKit/FF */ | ||||
box-shadow: inset 0 0 1px #000; | ||||
|
r7574 | background: rgba(240, 240, 240, 0.5); | ||
|
r4292 | } | ||
div.output_prompt { | ||||
|
r4332 | color: darkred; | ||
|
r7362 | /* 5px right shift to account for margin in parent container */ | ||
|
r7573 | margin: 0 5px 0 -5px; | ||
|
r4292 | } | ||
|
r4642 | /* This class is the outer container of all output sections. */ | ||
|
r4531 | div.output_area { | ||
|
r4642 | padding: 0px; | ||
|
r4625 | page-break-inside: avoid; | ||
|
r4504 | } | ||
|
r4642 | /* This class is for the output subarea inside the output_area and after | ||
the prompt div. */ | ||||
div.output_subarea { | ||||
|
r7199 | padding: 0.4em 0.4em 0.4em 0.4em; | ||
|
r4531 | } | ||
/* The rest of the output_* classes are for special styling of the different | ||||
output types */ | ||||
|
r4883 | /* all text output has this class: */ | ||
div.output_text { | ||||
|
r4531 | text-align: left; | ||
color: black; | ||||
font-family: monospace; | ||||
|
r4317 | } | ||
|
r4883 | |||
/* stdout/stderr are 'text' as well as 'stream', but pyout/pyerr are *not* streams */ | ||||
div.output_stream { | ||||
padding-top: 0.0em; | ||||
padding-bottom: 0.0em; | ||||
} | ||||
div.output_stdout { | ||||
} | ||||
|
r4865 | div.output_stderr { | ||
|
r4883 | background: #fdd; /* very light red background for stderr */ | ||
|
r4865 | } | ||
|
r4317 | |||
div.output_latex { | ||||
|
r4531 | text-align: left; | ||
color: black; | ||||
|
r4317 | } | ||
|
r4403 | div.output_html { | ||
} | ||||
|
r4348 | div.output_png { | ||
} | ||||
|
r4292 | |||
|
r4531 | div.output_jpeg { | ||
} | ||||
|
r4508 | div.text_cell { | ||
|
r4292 | background-color: white; | ||
|
r5946 | padding: 5px 5px 5px 5px; | ||
|
r4292 | } | ||
|
r4508 | div.text_cell_input { | ||
|
r4507 | color: black; | ||
|
r5946 | border: 1px solid #ddd; | ||
border-radius: 3px; | ||||
background: #f7f7f7; | ||||
|
r4507 | } | ||
|
r4508 | div.text_cell_render { | ||
|
r4507 | font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; | ||
outline: none; | ||||
resize: none; | ||||
width: inherit; | ||||
border-style: none; | ||||
padding: 5px; | ||||
color: black; | ||||
} | ||||
|
r7347 | .CodeMirror span { | ||
vertical-align: bottom; | ||||
} | ||||
|
r4379 | .CodeMirror { | ||
|
r4638 | line-height: 1.231; /* Changed from 1em to our global default */ | ||
|
r4379 | } | ||
|
r4504 | .CodeMirror-scroll { | ||
|
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 */ | ||||
|
r4504 | } | ||
|
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;} | ||||
|
r7187 | .completions { | ||
|
r4389 | position: absolute; | ||
z-index: 10; | ||||
|
r7539 | overflow: hidden; | ||
|
r7187 | border: 1px solid grey; | ||
|
r4389 | } | ||
|
r4383 | |||
|
r4389 | .completions select { | ||
background: white; | ||||
outline: none; | ||||
border: none; | ||||
padding: 0px; | ||||
margin: 0px; | ||||
|
r7539 | overflow: auto; | ||
|
r4389 | font-family: monospace; | ||
} | ||||
|
r4383 | |||
|
r7131 | option.context { | ||
background-color: #DEF7FF; | ||||
} | ||||
option.introspection { | ||||
background-color: #EBF4EB; | ||||
} | ||||
|
r5637 | /*fixed part of the completion*/ | ||
|
r5857 | .completions p b { | ||
|
r5637 | font-weight:bold; | ||
} | ||||
|
r5857 | .completions p { | ||
|
r5507 | background: #DDF; | ||
/*outline: none; | ||||
padding: 0px;*/ | ||||
border-bottom: black solid 1px; | ||||
padding: 1px; | ||||
font-family: monospace; | ||||
} | ||||
|
r5547 | pre.dialog { | ||
background-color: #f7f7f7; | ||||
border: 1px solid #ddd; | ||||
border-radius: 3px; | ||||
padding: 0.4em; | ||||
padding-left: 2em; | ||||
} | ||||
|
r5857 | p.dialog { | ||
|
r5547 | padding : 0.2em; | ||
} | ||||
|
r4650 | .shortcut_key { | ||
display: inline-block; | ||||
|
r5858 | width: 15ex; | ||
|
r4650 | text-align: right; | ||
|
r5019 | font-family: monospace; | ||
|
r4650 | } | ||
.shortcut_descr { | ||||
|
r5025 | } | ||
|
r5256 | |||
/* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems | ||||
to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. | ||||
*/ | ||||
pre, code, kbd, samp { white-space: pre-wrap; } | ||||
|
r7394 | |||
#fonttest { | ||||
font-family: monospace; | ||||
} | ||||