Skip to content

Instantly share code, notes, and snippets.

@svaksha
Forked from jiahao/custom.css
Created June 5, 2014 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svaksha/e920218d197fcbfffe64 to your computer and use it in GitHub Desktop.
Save svaksha/e920218d197fcbfffe64 to your computer and use it in GitHub Desktop.
/* Experimental typographically tinkered IJulia stylesheet
* Copyright © 2013 Jiahao Chen <jiahao@mit.edu>
* 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