notebook.css
394 lines
| 7.3 KiB
| text/css
|
CssLexer
|
r4379 | /** | ||
* Primary styles | ||||
* | ||||
* Author: IPython Development Team | ||||
*/ | ||||
|
r4292 | body { | ||
background-color: white; | ||||
|
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; | ||||
|
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%; | ||||
} | ||||
|
r5904 | #menubar { | ||
/* Initially hidden to prevent FLOUC */ | ||||
display: none; | ||||
} | ||||
|
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 { | ||||
|
r5870 | padding: 2px 1.6em; | ||
|
r5869 | } | ||
.ui-menu hr { | ||||
margin: 0.3em 0; | ||||
} | ||||
|
r5904 | #fulledit_widget { | ||
/* Initially hidden to prevent FLOUC */ | ||||
display: none; | ||||
width: 920px; | ||||
margin: 0px auto; | ||||
} | ||||
#fulledit_editor { | ||||
height: 577px; | ||||
width: 920px; | ||||
} | ||||
#fulledit_header { | ||||
width: 920px; | ||||
} | ||||
|
r5023 | span#quick_help_area { | ||
position: static; | ||||
padding: 5px 0px; | ||||
margin: 0px 0px 0px 0px; | ||||
} | ||||
|
r4310 | span#kernel_status { | ||
|
r5129 | position: absolute; | ||
padding: 8px 5px 5px 5px; | ||||
right: 10px; | ||||
|
r5023 | font-weight: bold; | ||
|
r4310 | } | ||
|
r5023 | |||
|
r4310 | .status_idle { | ||
color: gray; | ||||
|
r5129 | visibility: hidden; | ||
|
r4310 | } | ||
.status_busy { | ||||
color: red; | ||||
} | ||||
.status_restarting { | ||||
color: black; | ||||
} | ||||
|
r4496 | #kernel_persist { | ||
float: right; | ||||
} | ||||
|
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; | ||
|
r4360 | margin: 0px | ||
|
r4292 | background-color: white; | ||
|
r4331 | } | ||
|
r4311 | |||
|
r4360 | div#pager_splitter { | ||
|
r4361 | height: 8px; | ||
|
r4360 | } | ||
div#pager { | ||||
|
r4364 | padding: 15px; | ||
|
r4360 | overflow: auto; | ||
} | ||||
|
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; | ||||
} | ||||
|
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 | } | ||
div.output { | ||||
|
r4324 | /* This is a spacer between the input and output of each cell */ | ||
|
r4525 | margin-top: 5px; | ||
|
r4292 | } | ||
div.output_prompt { | ||||
|
r4332 | color: darkred; | ||
|
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 { | ||||
|
r5257 | padding: 0.4em 6.1em 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; | ||
} | ||||
|
r4508 | div.text_cell_input { | ||
|
r4507 | color: black; | ||
} | ||||
|
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; | ||||
} | ||||
|
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;} | ||||
|
r5859 | .completions , .tooltip { | ||
|
r4389 | position: absolute; | ||
z-index: 10; | ||||
overflow: auto; | ||||
border: 1px solid black; | ||||
} | ||||
|
r4383 | |||
|
r4389 | .completions select { | ||
background: white; | ||||
outline: none; | ||||
border: none; | ||||
padding: 0px; | ||||
margin: 0px; | ||||
font-family: monospace; | ||||
} | ||||
|
r4383 | |||
|
r5397 | @-moz-keyframes fadeIn { | ||
from {opacity:0;} | ||||
to {opacity:1;} | ||||
} | ||||
@-webkit-keyframes fadeIn { | ||||
from {opacity:0;} | ||||
to {opacity:1;} | ||||
} | ||||
@keyframes fadeIn { | ||||
from {opacity:0;} | ||||
to {opacity:1;} | ||||
} | ||||
|
r5405 | /*"close" "expand" and "Open in pager button" of | ||
/* the tooltip*/ | ||||
|
r5857 | .tooltip a { | ||
|
r5405 | float:right; | ||
} | ||||
/*properties of tooltip after "expand"*/ | ||||
|
r5857 | .bigtooltip { | ||
|
r5490 | height:30%; | ||
|
r5405 | } | ||
/*properties of tooltip before "expand"*/ | ||||
|
r5857 | .smalltooltip { | ||
|
r5405 | text-overflow: ellipsis; | ||
overflow: hidden; | ||||
|
r5410 | height:15%; | ||
|
r5405 | } | ||
|
r5397 | |||
|
r5857 | .tooltip { | ||
|
r5405 | /*transition when "expand"ing tooltip */ | ||
-webkit-transition-property: height; | ||||
-webkit-transition-duration: 1s; | ||||
-moz-transition-property: height; | ||||
-moz-transition-duration: 1s; | ||||
transition-property: height; | ||||
transition-duration: 1s; | ||||
max-width:700px; | ||||
border-radius: 0px 10px 10px 10px; | ||||
|
r5397 | box-shadow: 3px 3px 5px #999; | ||
|
r5405 | /*fade-in animation when inserted*/ | ||
|
r5397 | -webkit-animation: fadeIn 200ms; | ||
-moz-animation: fadeIn 200ms; | ||||
animation: fadeIn 200ms; | ||||
vertical-align: middle; | ||||
background: #FDFDD8; | ||||
outline: none; | ||||
padding: 3px; | ||||
margin: 0px; | ||||
font-family: monospace; | ||||
|
r5410 | min-height:50px; | ||
|
r5397 | } | ||
|
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; } | ||||