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