Created
December 1, 2013 08:28
-
-
Save jiahao/7729855 to your computer and use it in GitHub Desktop.
Experimental typographically tinkered IJulia stylesheet To use, place in ~/.ipython/profile_julia/static/custom/custom.css and refresh IJulia
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
/* Experimental typographically tinkered IJulia stylesheet | |
* Copyright © 2013 Jiahao Chen <[email protected]> | |
* MIT License | |
* | |
* To use, place in ~/.ipython/profile_julia/static/custom/custom.css | |
* and refresh IJulia | |
* | |
* Based on suggestions from practicaltypography.com | |
*/ | |
.rendered_html ol { | |
list-style:decimal; | |
margin: 1em 2em; | |
} | |
.text_cell { | |
font-family: "Adobe Caslon Pro", "Hoefler Text", Garamond, Palatino, serif; | |
font-size: 19px; | |
line-height:1.4em; | |
padding-left:3em; | |
padding-right:3em; | |
max-width: 36em; | |
text-rendering: optimizeLegibility; | |
} | |
.text_cell_render { | |
font-family: "Adobe Caslon Pro", "Hoefler Text", Garamond, Palatino, serif; | |
padding-left:3em; | |
padding-right:3em; | |
max-width: 36em; | |
text-rendering: optimizeLegibility; | |
} | |
.code_cell { /* Area containing both code and output */ | |
font-family: "Source Code Pro", "Droid Sans Mono", Consolas, "Ubuntu Mono", "Liberation Mono", Courier, monospace; | |
background-color:#F1F0FF; /* light blue */ | |
border-radius: 0.8em; | |
padding: 1em; | |
} | |
p { | |
text-rendering: optimizeLegibility; | |
} | |
div.prompt { | |
font-family: "Source Code Pro", "Droid Sans Mono", Consolas, "Ubuntu Mono", "Liberation Mono", Courier, monospace; | |
font-size: 13px; | |
} | |
.CodeMirror { | |
font-family: "Source Code Pro", "Droid Sans Mono", Consolas, "Ubuntu Mono", "Liberation Mono", Courier, monospace; | |
line-height:1.25em; | |
font-size: 16px; | |
} | |
div.output_area pre { | |
font-family: "Source Code Pro", "Droid Sans Mono", Consolas, "Ubuntu Mono", "Liberation Mono", Courier, monospace; | |
line-height:1.25em; | |
font-size: 16px; | |
} | |
code, pre { | |
font-family: "Source Code Pro", "Droid Sans Mono", Consolas, "Ubuntu Mono", "Liberation Mono", Courier, monospace; | |
line-height:1.25em; | |
font-size: 16px; | |
} | |
blockquote p { | |
font-size: 17px; | |
line-height:1.2em; | |
font-family: "Adobe Caslon Pro", "Hoefler Text", Garamond, Palatino, serif; | |
text-rendering: optimizeLegibility; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment