##// END OF EJS Templates
Fixed css in reveal template and move static_html css to full_html template.
damianavila -
Show More
@@ -254,8 +254,6 b' class CSSHtmlHeaderTransformer(ActivatableTransformer):'
254 254 os.path.join(css, 'notebook.css'),
255 255 os.path.join(css, 'renderedhtml.css'),
256 256 os.path.join(css, 'style.min.css'),
257 # our overrides:
258 os.path.join(here, '..', 'css', 'static_html.css'),
259 257 ]:
260 258 try:
261 259 with io.open(sheet, encoding='utf-8') as f:
@@ -10,6 +10,18 b''
10 10 {{css}}
11 11 </style>
12 12 {% endfor %}
13
14 <style type="text/css">
15 /* Overrides of notebook CSS for static HTML export */
16 body {
17 overflow: visible;
18 padding: 8px;
19 }
20 .input_area {
21 padding: 0.4em;
22 }
23 </style>
24
13 25 <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" type="text/javascript">
14 26
15 27 </script>
@@ -35,35 +35,41 b' document.write( \'<link rel="stylesheet" href="reveal/css/print/\' + ( window.loca'
35 35
36 36 <style type="text/css">
37 37 /* Overrides of notebook CSS for static HTML export */
38
39 38 .reveal {
40 39 font-size: 20px;
41 40 }
42 41 .reveal pre {
43 42 width: 100%;
44 padding: 0.2em;
43 padding: 0.3em;
45 44 margin: 0px auto;
46 45 font-family: monospace, sans-serif;
47 font-size: 60%;
46 font-size: 80%;
48 47 box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
49 48 }
50 49 .reveal section img {
51 50 border: 0px solid black;
52 51 box-shadow: 0 0 10px rgba(0, 0, 0, 0);
53 52 }
53 .reveal .slides {
54 text-align: left;
55 }
54 56 div.input_area {
55 padding: 0.2em;
57 padding: 0.06em;
56 58 }
57 59 div.code_cell {
58 60 background-color: transparent;
59 61 }
60 62 div.prompt {
61 63 width: 11ex;
62 padding: 0.0em;
64 padding: 0.4em;
63 65 margin: 0px;
64 font-family: monospace;
65 font-size: 60%;
66 text-align: center;
66 font-family: monospace, sans-serif;
67 font-size: 80%;
68 text-align: right;
69 }
70 div.output_area pre {
71 font-family: monospace, sans-serif;
72 font-size: 80%;
67 73 }
68 74 div.output_prompt {
69 75 /* 5px right shift to account for margin in parent container */
@@ -99,7 +105,7 b' MathJax.Hub.Config({'
99 105 inlineMath: [ ['$','$'], ["\\(","\\)"] ],
100 106 displayMath: [ ['$$','$$'], ["\\[","\\]"] ]
101 107 },
102 displayAlign: 'center', // Change this to 'center' to center equations.
108 displayAlign: 'left', // Change this to 'center' to center equations.
103 109 "HTML-CSS": {
104 110 styles: {'.MathJax_Display': {"margin": 0}}
105 111 }
General Comments 0
You need to be logged in to leave comments. Login now