The base python installation has a file code.py; this causes
problems when trying to import files from the code subdirectory. I also tried to rearange some code so that book_format does not need to be imported if you are not running in a Jupyter Notebook.
This commit is contained in:
260
kf_book/custom.css
Normal file
260
kf_book/custom.css
Normal file
@@ -0,0 +1,260 @@
|
||||
<style>
|
||||
@import url('http://fonts.googleapis.com/css?family=Source+Code+Pro');
|
||||
@import url('http://fonts.googleapis.com/css?family=Lora');
|
||||
|
||||
//@import url('http://fonts.googleapis.com/css?family=Open+Sans');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Vollkorn');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Karla');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Poppins');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Arimo');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Roboto');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Lato');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Domine');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Chivo');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Cardo');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Arvo');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Crimson+Text');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Ubuntu');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Fontin');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Raleway');
|
||||
//@import url('http://fonts.googleapis.com/css?family=Merriweather');
|
||||
|
||||
|
||||
.CodeMirror pre {
|
||||
font-family: 'Source Code Pro', Consolas, monocco, monospace;
|
||||
}
|
||||
div.cell{
|
||||
//width: 950px;
|
||||
margin-left: 0% !important;
|
||||
margin-right: auto;
|
||||
}
|
||||
div.text_cell_render{
|
||||
font-family: 'Lora';
|
||||
//font-family: 'Open Sans';
|
||||
//font-family: 'Karla',verdana,arial,sans-serif;
|
||||
//font-family: 'Roboto',verdana,arial,sans-serif;
|
||||
//font-family: 'Lato',verdana,arial,sans-serif;
|
||||
//font-family: 'Domine',verdana,arial,sans-serif;
|
||||
//font-family: 'Chivo',verdana,arial,sans-serif;
|
||||
//font-family: 'Cardo',verdana,arial,sans-serif;
|
||||
//font-family: 'Arvo',verdana,arial,sans-serif;
|
||||
//font-family: 'Poppins',verdana,arial,sans-serif;
|
||||
//font-family: 'Ubuntu',verdana,arial,sans-serif;
|
||||
//font-family: 'Fontin',verdana,arial,sans-serif;
|
||||
//font-family: 'Raleway',verdana,arial,sans-serif;
|
||||
//font-family: 'Merriweather',verdana,arial,sans-serif;
|
||||
//font-family: 'Crimson Text', verdana,arial,sans-serif;
|
||||
//font-family: verdana,arial,sans-serif;
|
||||
//font-family: arial,sans-serif;
|
||||
line-height: 125%;
|
||||
font-size: 130%;
|
||||
text-align: justify;
|
||||
text-justify:inter-word;
|
||||
}
|
||||
div.text_cell code {
|
||||
background: transparent;
|
||||
color: #000000;
|
||||
font-weight: 400;
|
||||
font-size: 12pt;
|
||||
//font-style: bold;
|
||||
font-family: 'Source Code Pro', Consolas, monocco, monospace;
|
||||
}
|
||||
h1 {
|
||||
font-family: 'Open sans',verdana,arial,sans-serif;
|
||||
}
|
||||
|
||||
div.input_area {
|
||||
background: #F6F6F9;
|
||||
border: 1px solid #586e75;
|
||||
}
|
||||
|
||||
.text_cell_render h1 {
|
||||
font-weight: 200;
|
||||
font-size: 30pt;
|
||||
line-height: 100%;
|
||||
color:#c76c0c;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 1em;
|
||||
display: block;
|
||||
white-space: wrap;
|
||||
text-align: left;
|
||||
}
|
||||
h2 {
|
||||
font-family: 'Open sans',verdana,arial,sans-serif;
|
||||
text-align: left;
|
||||
}
|
||||
.text_cell_render h2 {
|
||||
font-weight: 200;
|
||||
font-size: 16pt;
|
||||
font-style: italic;
|
||||
line-height: 100%;
|
||||
color:#c76c0c;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 1.5em;
|
||||
display: block;
|
||||
white-space: wrap;
|
||||
text-align: left;
|
||||
}
|
||||
h3 {
|
||||
font-family: 'Open sans',verdana,arial,sans-serif;
|
||||
}
|
||||
.text_cell_render h3 {
|
||||
font-weight: 200;
|
||||
font-size: 14pt;
|
||||
line-height: 100%;
|
||||
color:#d77c0c;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 2em;
|
||||
display: block;
|
||||
white-space: wrap;
|
||||
text-align: left;
|
||||
}
|
||||
h4 {
|
||||
font-family: 'Open sans',verdana,arial,sans-serif;
|
||||
}
|
||||
.text_cell_render h4 {
|
||||
font-weight: 100;
|
||||
font-size: 14pt;
|
||||
color:#d77c0c;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
h5 {
|
||||
font-family: 'Open sans',verdana,arial,sans-serif;
|
||||
}
|
||||
|
||||
.text_cell_render h5 {
|
||||
font-weight: 200;
|
||||
font-style: normal;
|
||||
color: #1d3b84;
|
||||
font-size: 16pt;
|
||||
margin-bottom: 0em;
|
||||
margin-top: 0.5em;
|
||||
display: block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
div.output_subarea.output_text.output_pyout {
|
||||
overflow-x: auto;
|
||||
overflow-y: scroll;
|
||||
max-height: 50000px;
|
||||
}
|
||||
div.output_subarea.output_stream.output_stdout.output_text {
|
||||
overflow-x: auto;
|
||||
overflow-y: scroll;
|
||||
max-height: 50000px;
|
||||
}
|
||||
div.output_wrapper{
|
||||
margin-top:0.2em;
|
||||
margin-bottom:0.2em;
|
||||
}
|
||||
|
||||
code{
|
||||
font-size: 6pt;
|
||||
|
||||
}
|
||||
.rendered_html code{
|
||||
background-color: transparent;
|
||||
}
|
||||
ul{
|
||||
margin: 2em;
|
||||
}
|
||||
ul li{
|
||||
padding-left: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
ul li li{
|
||||
padding-left: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
ol{
|
||||
margin: 2em;
|
||||
}
|
||||
ol li{
|
||||
padding-left: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
ul li{
|
||||
padding-left: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
a:link{
|
||||
color:#447adb;
|
||||
}
|
||||
a:visited{
|
||||
color: #1d3b84;
|
||||
}
|
||||
a:hover{
|
||||
color: #1d3b84;
|
||||
}
|
||||
a:focus{
|
||||
color:#447adb;
|
||||
}
|
||||
a:active{
|
||||
font-weight: bold;
|
||||
color:#447adb;
|
||||
}
|
||||
.rendered_html :link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.rendered_html :hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.rendered_html :visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
.rendered_html :focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
.rendered_html :active {
|
||||
text-decoration: none;
|
||||
}
|
||||
.warning{
|
||||
color: rgb( 240, 20, 20 )
|
||||
}
|
||||
hr {
|
||||
color: #f3f3f3;
|
||||
background-color: #f3f3f3;
|
||||
height: 1px;
|
||||
}
|
||||
blockquote{
|
||||
display:block;
|
||||
background: #fcfcfc;
|
||||
border-left: 5px solid #c76c0c;
|
||||
font-family: 'Open sans',verdana,arial,sans-serif;
|
||||
width:680px;
|
||||
padding: 10px 10px 10px 10px;
|
||||
text-align:justify;
|
||||
text-justify:inter-word;
|
||||
}
|
||||
blockquote p {
|
||||
margin-bottom: 0;
|
||||
line-height: 125%;
|
||||
font-size: 100%;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
MathJax.Hub.Config({
|
||||
TeX: {
|
||||
extensions: ["AMSmath.js"],
|
||||
equationNumbers: { autoNumber: "AMS", useLabelIds: true}
|
||||
},
|
||||
tex2jax: {
|
||||
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
|
||||
},
|
||||
displayAlign: 'center', // Change this to 'center' to center equations.
|
||||
"HTML-CSS": {
|
||||
scale:95,
|
||||
availableFonts: [],
|
||||
preferredFont:null,
|
||||
webFont: "TeX",
|
||||
styles: {'.MathJax_Display': {"margin": 4}}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user