-
-
Save technic/03b6b720281afe6f4fe4a2579199d6a2 to your computer and use it in GitHub Desktop.
My iPython / Jupyter notebook custom styling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('http://fonts.googleapis.com/css?family=Crimson+Text'); | |
@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro'); | |
/* Change code font */ | |
.CodeMirror pre { | |
font-family: 'Input Mono Narrow', 'Source Code Pro', Consolas, monocco, monospace; | |
} | |
div.input_area { | |
border-color: rgba(0,0,0,0.10); | |
background: rbga(0,0,0,0.5); | |
} | |
div.text_cell { | |
max-width: 105ex; /* instead of 100%, */ | |
} | |
div.text_cell_render { | |
font-family: "Crimson Text"; | |
font-size: 12pt; | |
line-height: 145%; /* added for some line spacing of text. */ | |
} | |
div.text_cell_render h1, | |
div.text_cell_render h2, | |
div.text_cell_render h3, | |
div.text_cell_render h4, | |
div.text_cell_render h5, | |
div.text_cell_render h6 { | |
font-family: 'Crimson Text'; | |
} | |
.rendered_html pre, | |
.rendered_html code { | |
font-size: medium; | |
} | |
.rendered_html ol { | |
list-style:decimal; | |
margin: 1em 2em; | |
} | |
.prompt.input_prompt { | |
color: rgba(0,0,0,0.5); | |
} | |
.cell.command_mode.selected { | |
border-color: rgba(0,0,0,0.1); | |
} | |
.cell.edit_mode.selected { | |
border-color: rgba(0,0,0,0.15); | |
box-shadow: 0px 0px 5px #f0f0f0; | |
-webkit-box-shadow: 0px 0px 5px #f0f0f0; | |
} | |
div.output_scroll { | |
-webkit-box-shadow: inset 0 2px 8px rgba(0,0,0,0.1); | |
box-shadow: inset 0 2px 8px rgba(0,0,0,0.1); | |
border-radious: 2px; | |
} | |
#menubar .navbar-inner { | |
background: #fff; | |
-webkit-box-shadow: none; | |
box-shadow: none; | |
border-radius: 0; | |
border: none; | |
font-family: lato; | |
font-weight: 400; | |
} | |
.navbar-fixed-top .navbar-inner, | |
.navbar-static-top .navbar-inner { | |
box-shadow: none; | |
-webkit-box-shadow: none; | |
border: none; | |
} | |
div#notebook_panel { | |
box-shadow: none; | |
-webkit-box-shadow: none; | |
border-top: none; | |
} | |
div#notebook { | |
border-top: 1px solid rgba(0,0,0,0.15); | |
} | |
/* | |
This is a lazy fix, we *should* fix the | |
background for each Bootstrap button type | |
*/ | |
#site * .btn { | |
background: #fafafa; | |
-webkit-box-shadow: none; | |
box-shadow: none; | |
} | |
div#notebook { | |
background-color: #002b36; | |
} | |
span.ansiblack {color: #073642;} | |
span.ansiblue {color: #2aa198;} | |
span.ansigray {color: #839496;} | |
span.ansigreen {color: #859900;} | |
span.ansipurple {color: #6c71c4;} | |
span.ansired {color: #dc322f;} | |
span.ansiyellow {color: #b58900;} | |
div.output_stderr {background-color: #dc322f;} | |
div.output_stderr pre {color: #eee8d5;} | |
.cm-s-ipython.CodeMirror {background: #fdf6e3; color: #073642;} | |
.cm-s-ipython div.CodeMirror-selected {background: #eee8d5 !important;} | |
.cm-s-ipython .CodeMirror-gutters {background: #fdf6e3; border-right: 0px;} | |
.cm-s-ipython .CodeMirror-linenumber {color: #839496;} | |
.cm-s-ipython .CodeMirror-cursor {border-left: 1px solid #657b83 !important;} | |
.cm-s-ipython span.cm-comment {color: #d33682;} | |
.cm-s-ipython span.cm-atom {color: #6c71c4;} | |
.cm-s-ipython span.cm-number {color: #6c71c4;} | |
.cm-s-ipython span.cm-property, .cm-s-ipython span.cm-attribute {color: #859900;} | |
.cm-s-ipython span.cm-keyword {color: #dc322f;} | |
.cm-s-ipython span.cm-string {color: #b58900;} | |
.cm-s-ipython span.cm-operator {color: #d33682;} | |
.cm-s-ipython span.cm-builtin {color: #6c71c4;} | |
.cm-s-ipython span.cm-variable {color: #859900;} | |
.cm-s-ipython span.cm-variable-2 {color: #268bd2;} | |
.cm-s-ipython span.cm-def {color: #cb4b16;} | |
.cm-s-ipython span.cm-error {background: #dc322f; color: #657b83;} | |
.cm-s-ipython span.cm-bracket {color: #586e75;} | |
.cm-s-ipython span.cm-tag {color: #dc322f;} | |
.cm-s-ipython span.cm-link {color: #6c71c4;} | |
.cm-s-ipython .CodeMirror-matchingbracket { text-decoration: underline; color: #073642 !important;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment