Created
November 19, 2017 17:19
-
-
Save e-roux/d1584e362d428ee644ea5fe1a701369c to your computer and use it in GitHub Desktop.
Jupyter notebook configuration
This file contains hidden or 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
/* | |
Basis css inspired from | |
http://help.plot.ly/documentation/all_static/css/ipython-notebook-custom.css | |
http://www.labri.fr/perso/nrougier/from-python-to-numpy/index.html | |
Color scale: | |
https://github.com/d3/d3-scale/blob/master/README.md#scaleOrdinal | |
https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md | |
# d3.scale.category20c() | |
#3182BD | |
#6BAED6 | |
#9ECAE1 | |
#C6DBEF | |
#E6550D | |
#FD8D3C | |
#FDAE6B | |
#FDD0A2 | |
#31A354 | |
#74C476 | |
#A1D99B | |
#C7E9C0 | |
#756BB1 | |
#9E9AC8 | |
#BCBDDC | |
#DADAEB | |
#636363 | |
#969696 | |
#BDBDBD | |
#D9D9D9 | |
classes: | |
------- | |
.note : note sur le côté de la page | |
*/ | |
/******************************************************************************* | |
FONTS | |
*******************************************************************************/ | |
@font-face{ | |
font-family: 'Source Code Pro'; | |
font-weight: 100; | |
font-style: normal; | |
font-stretch: normal; | |
src: url('https://gwin-zegal.github.io/fonts/SourceCodePro/SourceCodePro-Light.otf.woff') format('woff'); | |
} | |
@font-face{ | |
font-family: 'Source Code Pro'; | |
font-weight: 400; | |
font-style: normal; | |
font-stretch: normal; | |
src: url('https://gwin-zegal.github.io/fonts/SourceCodePro/SourceCodePro-Regular.otf.woff') format('woff'); | |
} | |
@font-face{ | |
font-family: 'Source Sans Pro'; | |
font-weight: 100; | |
font-style: normal; | |
font-stretch: normal; | |
src: url('https://gwin-zegal.github.io/fonts/SourceSansPro/SourceSansPro-Light.otf.woff') format('woff'); | |
} | |
@font-face{ | |
font-family: 'Source Sans Pro'; | |
font-weight: 400; | |
font-style: normal; | |
font-stretch: normal; | |
src: url('https://gwin-zegal.github.io/fonts/SourceSansPro/SourceSansPro-Regular.otf.woff') format('woff'); | |
} | |
@font-face{ | |
font-family: 'Source Sans Pro'; | |
font-weight: 100; | |
font-style: italic; | |
font-stretch: normal; | |
src: url('https://gwin-zegal.github.io/fonts/SourceSansPro/SourceSansPro-LightIt.otf.woff') format('woff'); | |
} | |
@font-face{ | |
font-family: 'Source Sans Pro'; | |
font-weight: 400; | |
font-style: italic; | |
font-stretch: normal; | |
src: url('https://gwin-zegal.github.io/fonts/SourceSansPro/SourceSansPro-It.otf.woff') format('woff'); | |
} | |
.cell h1, .cell h2, .cell h3, .cell h4, .cell h5, .cell h6, | |
.cell div.text_cell_render, | |
.cell blockquote { | |
font-family: "Source Sans Pro", verdana, arial, sans-serif; | |
} | |
.cell div.input_prompt, | |
.cell div.output_prompt, | |
.cell div.output_text *, | |
.cell div.input_area, | |
.pre { | |
font-family: "Source Code Pro"!important; | |
} | |
.cell h1, .cell h2, .cell h3, .cell h4, .cell h5, .cell h6 { | |
font-style: normal; | |
font-weight: 400; | |
} | |
.cell .text_cell_render h1 { | |
font-size: 30px; | |
} | |
.cell .text_cell_render h2 { font-size: 20px; } | |
.cell .text_cell_render h3 { font-size: 16px; } | |
.cell .text_cell_render h4 { font-size: 30px; } | |
.cell .text_cell_render h5 { font-size: 12px; } | |
.cell .text_cell_render h6 { font-size: 18px; } | |
.cell.code_cell { font-size: 14px; } | |
code { | |
font-weight: 400 !important; | |
} | |
.cell blockquote p { font-size: 100%; } | |
.cell div.text_cell_render, | |
.cell div.text_cell_render p { | |
font-size: 18px; | |
} | |
.cell div.text_cell_render { | |
font-weight: 300; | |
} | |
.note::before { | |
content: "Note"; | |
display: inline-block; | |
padding: 0 0 0.3em 0; | |
margin-bottom: .5em; | |
font-weight: 400; | |
border-bottom: 1px solid #000; | |
width: inherit; | |
} | |
.note * { | |
font-size: small!important; | |
} | |
/******************************************************************************* | |
Color | |
*******************************************************************************/ | |
.cell div.input_area { | |
border: 0; | |
background: rgb(244, 244, 248); | |
color: #000; | |
} | |
.cell div.input_area .CodeMirror-sizer { | |
background: #FCFCFC; | |
} | |
div.input_prompt { | |
color: #DADAEB; | |
} | |
div.output_prompt { | |
color: #756BB1!important; | |
} | |
div.output_text * { | |
color: #969696!important; | |
} | |
.cell .cm-s-ipython span.cm-keyword { | |
color: #447BDC; | |
} | |
.cell .text_cell_render h1 { | |
border-bottom-color: #000; | |
} | |
/* Numérotation devant h1*/ | |
.cell h1 .toc-item-num { | |
color: #FFF; | |
background-color: #000; | |
} | |
.cell .rendered_html code { | |
color: #1E4A7B; | |
background-color: transparent; | |
} | |
.cell .warning { | |
color: #E6550D; | |
} | |
.cell div.input_area .CodeMirror-sizer { | |
border-top-color: #CCC; | |
border-bottom-color: #CCC; | |
} | |
/* --- Hyperlinks------------------------------------------------------------*/ | |
.cell a, | |
.cell a:visited, | |
.cell a:hover { | |
color: #3182bd; | |
} | |
.cell a:hover { | |
border-bottom-color: #3182bd; | |
} | |
.cell a:active { | |
color: #000000; | |
} | |
.cell blockquote { | |
background: #f3f3f3; | |
} | |
.cell hr { | |
color: #f3f3f3; | |
background-color: #f3f3f3; | |
} | |
#toc-wrapper { | |
background-color: transparent; | |
} | |
/******************************************************************************* | |
Line-height / text-align / text-justify | |
*******************************************************************************/ | |
.container .rendered_html, | |
.cell blockquote p, | |
.container .note p { | |
line-height: 1.25em; | |
} | |
.cell a, | |
.cell .rendered_html :link, | |
.cell .rendered_html :hover, | |
.cell .rendered_html :visited, | |
.cell .rendered_html :focus, | |
.cell .rendered_html :active { | |
text-decoration: none; | |
} | |
.container .note p, | |
.cell .rendered_html p, | |
.cell blockquote { | |
text-align: justify; | |
} | |
/******************************************************************************* | |
Margin and padding | |
*******************************************************************************/ | |
#notebook { | |
/* padding-left: 280px; /* see .note width */ | |
padding-right: 280px; /* see .note width */ | |
} | |
.column { | |
padding: 10px; | |
} | |
div.input_area>div.highlight>pre { | |
padding: 1px; | |
} | |
.cell h1, | |
.cell h2, | |
.cell h3, | |
.cell h4, | |
.cell h5, | |
.cell h6 { | |
margin: 0; | |
} | |
.cell h1, .cell h2, .cell h3 { | |
padding: 15px 0 3px; | |
} | |
.cell .text_cell_render h1 { | |
margin-bottom: 0em; | |
margin-top: 1ex; | |
padding-bottom: 0.5ex; | |
} | |
/* Numérotation devant h1*/ | |
.cell h1 .toc-item-num { | |
margin-right: 0.5ex; | |
margin-left: 2ex; | |
padding: 0 0 0 0.7ex; | |
} | |
div.cell { | |
padding: 0!important; | |
} | |
div.cell .output_area { | |
padding-bottom : 1ex; | |
} | |
.cell ul li, | |
.cell ol li { | |
padding-left: 0.5em; | |
margin-bottom: 0.5em; | |
margin-top: 0.5em; | |
} | |
.cell ul li li { | |
padding-left: 0.2em; | |
margin-bottom: 0.2em; | |
margin-top: 0.2em; | |
} | |
.cell blockquote { | |
padding: 15px 15px 15px 15px; | |
} | |
.cell blockquote p { | |
margin-bottom: 0; | |
} | |
.note, | |
.note p { | |
padding: 0; | |
margin:0; | |
} | |
/******************************************************************************* | |
Borders | |
*******************************************************************************/ | |
.cell div.input_area { | |
border: 0; | |
} | |
.cell div.input_area .CodeMirror-sizer { | |
border-top-style: solid; | |
border-top-width: .5px; | |
border-bottom-style: solid; | |
border-bottom-width: .5px; | |
} | |
.cell a:hover { | |
border-bottom-width: .5px; | |
border-bottom-style: solid; | |
} | |
.cell .text_cell_render h1 { | |
border-bottom-style: solid; | |
border-bottom-width: 1.5px; | |
} | |
/******************************************************************************* | |
position / width / height / left / right / float | |
*******************************************************************************/ | |
.column { | |
float: left; | |
} | |
.column { | |
float: left; | |
width: 50%; | |
} | |
#toc-wrapper { | |
width: 240px; | |
} | |
.cell hr { | |
height: 1px; | |
} | |
.cell blockquote { | |
width: 610px; | |
} | |
.note { | |
position: absolute; | |
width: 240px; | |
right: -280px; | |
} | |
/******************************************************************************* | |
... | |
*******************************************************************************/ | |
.row:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
.cell h1, | |
.cell h2, | |
.cell h3, | |
.cell h4, | |
.cell h5, | |
.cell h6 { | |
display: block; | |
white-space: nowrap; | |
} | |
.cell h1, .cell h2, .cell h3 { | |
clear: both; | |
} | |
.cell h1:hover .anchor-link, | |
.cell h2:hover .anchor-link, | |
.cell h3:hover .anchor-link, | |
.cell h4:hover .anchor-link, | |
.cell h5:hover .anchor-link, | |
.cell h6:hover .anchor-link { | |
visibility: visible; | |
} | |
.cell a.anchor-link { | |
visibility: hidden; | |
} | |
.cell .rendered_html code { | |
white-space: inherit; | |
} | |
.cell blockquote { | |
display: block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment