##// END OF EJS Templates
Remove additional and conflicting highlighting css.
damianavila -
Show More
@@ -1,203 +1,200 b''
1 {%- extends 'basic.tpl' -%}
1 {%- extends 'basic.tpl' -%}
2 {% from 'mathjax.tpl' import mathjax %}
2 {% from 'mathjax.tpl' import mathjax %}
3
3
4 {%- block any_cell scoped -%}
4 {%- block any_cell scoped -%}
5 {%- if cell.metadata.slide_type in ['slide'] -%}
5 {%- if cell.metadata.slide_type in ['slide'] -%}
6 <section>
6 <section>
7 <section>
7 <section>
8 {{ super() }}
8 {{ super() }}
9 {%- elif cell.metadata.slide_type in ['subslide'] -%}
9 {%- elif cell.metadata.slide_type in ['subslide'] -%}
10 <section>
10 <section>
11 {{ super() }}
11 {{ super() }}
12 {%- elif cell.metadata.slide_type in ['-'] -%}
12 {%- elif cell.metadata.slide_type in ['-'] -%}
13 {%- if cell.metadata.frag_helper in ['fragment_end'] -%}
13 {%- if cell.metadata.frag_helper in ['fragment_end'] -%}
14 <div class="fragment" data-fragment-index="{{ cell.metadata.frag_number }}">
14 <div class="fragment" data-fragment-index="{{ cell.metadata.frag_number }}">
15 {{ super() }}
15 {{ super() }}
16 </div>
16 </div>
17 {%- else -%}
17 {%- else -%}
18 {{ super() }}
18 {{ super() }}
19 {%- endif -%}
19 {%- endif -%}
20 {%- elif cell.metadata.slide_type in ['skip'] -%}
20 {%- elif cell.metadata.slide_type in ['skip'] -%}
21 <div style=display:none>
21 <div style=display:none>
22 {{ super() }}
22 {{ super() }}
23 </div>
23 </div>
24 {%- elif cell.metadata.slide_type in ['notes'] -%}
24 {%- elif cell.metadata.slide_type in ['notes'] -%}
25 <aside class="notes">
25 <aside class="notes">
26 {{ super() }}
26 {{ super() }}
27 </aside>
27 </aside>
28 {%- elif cell.metadata.slide_type in ['fragment'] -%}
28 {%- elif cell.metadata.slide_type in ['fragment'] -%}
29 <div class="fragment" data-fragment-index="{{ cell.metadata.frag_number }}">
29 <div class="fragment" data-fragment-index="{{ cell.metadata.frag_number }}">
30 {{ super() }}
30 {{ super() }}
31 </div>
31 </div>
32 {%- endif -%}
32 {%- endif -%}
33 {%- if cell.metadata.slide_helper in ['subslide_end'] -%}
33 {%- if cell.metadata.slide_helper in ['subslide_end'] -%}
34 </section>
34 </section>
35 {%- elif cell.metadata.slide_helper in ['slide_end'] -%}
35 {%- elif cell.metadata.slide_helper in ['slide_end'] -%}
36 </section>
36 </section>
37 </section>
37 </section>
38 {%- endif -%}
38 {%- endif -%}
39 {%- endblock any_cell -%}
39 {%- endblock any_cell -%}
40
40
41 {% block header %}
41 {% block header %}
42 <!DOCTYPE html>
42 <!DOCTYPE html>
43 <html>
43 <html>
44 <head>
44 <head>
45
45
46 <meta charset="utf-8" />
46 <meta charset="utf-8" />
47 <meta http-equiv="X-UA-Compatible" content="chrome=1" />
47 <meta http-equiv="X-UA-Compatible" content="chrome=1" />
48
48
49 <meta name="apple-mobile-web-app-capable" content="yes" />
49 <meta name="apple-mobile-web-app-capable" content="yes" />
50 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
50 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
51
51
52 <title>{{resources['metadata']['name']}} slides</title>
52 <title>{{resources['metadata']['name']}} slides</title>
53
53
54 <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
54 <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
55 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
55 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
56
56
57 <!-- General and theme style sheets -->
57 <!-- General and theme style sheets -->
58 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css">
58 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css">
59 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme">
59 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme">
60
60
61 <!-- For syntax highlighting -->
62 <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css">
63
64 <!-- If the query includes 'print-pdf', include the PDF print sheet -->
61 <!-- If the query includes 'print-pdf', include the PDF print sheet -->
65 <script>
62 <script>
66 if( window.location.search.match( /print-pdf/gi ) ) {
63 if( window.location.search.match( /print-pdf/gi ) ) {
67 var link = document.createElement( 'link' );
64 var link = document.createElement( 'link' );
68 link.rel = 'stylesheet';
65 link.rel = 'stylesheet';
69 link.type = 'text/css';
66 link.type = 'text/css';
70 link.href = '{{resources.reveal.url_prefix}}/css/print/pdf.css';
67 link.href = '{{resources.reveal.url_prefix}}/css/print/pdf.css';
71 document.getElementsByTagName( 'head' )[0].appendChild( link );
68 document.getElementsByTagName( 'head' )[0].appendChild( link );
72 }
69 }
73
70
74 </script>
71 </script>
75
72
76 <!--[if lt IE 9]>
73 <!--[if lt IE 9]>
77 <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script>
74 <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script>
78 <![endif]-->
75 <![endif]-->
79
76
80 <!-- Get Font-awesome from cdn -->
77 <!-- Get Font-awesome from cdn -->
81 <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css">
78 <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css">
82
79
83 {% for css in resources.inlining.css -%}
80 {% for css in resources.inlining.css -%}
84 <style type="text/css">
81 <style type="text/css">
85 {{ css }}
82 {{ css }}
86 </style>
83 </style>
87 {% endfor %}
84 {% endfor %}
88
85
89 <style type="text/css">
86 <style type="text/css">
90 /* Overrides of notebook CSS for static HTML export */
87 /* Overrides of notebook CSS for static HTML export */
91 html {
88 html {
92 overflow-y: auto;
89 overflow-y: auto;
93 }
90 }
94 .reveal {
91 .reveal {
95 font-size: 160%;
92 font-size: 160%;
96 }
93 }
97 .reveal pre {
94 .reveal pre {
98 width: inherit;
95 width: inherit;
99 padding: 0.4em;
96 padding: 0.4em;
100 margin: 0px;
97 margin: 0px;
101 font-family: monospace, sans-serif;
98 font-family: monospace, sans-serif;
102 font-size: 80%;
99 font-size: 80%;
103 box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
100 box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
104 }
101 }
105 .reveal section img {
102 .reveal section img {
106 border: 0px solid black;
103 border: 0px solid black;
107 box-shadow: 0 0 10px rgba(0, 0, 0, 0);
104 box-shadow: 0 0 10px rgba(0, 0, 0, 0);
108 }
105 }
109 .reveal i {
106 .reveal i {
110 font-style: normal;
107 font-style: normal;
111 font-family: FontAwesome;
108 font-family: FontAwesome;
112 font-size: 2em;
109 font-size: 2em;
113 }
110 }
114 .reveal .slides {
111 .reveal .slides {
115 text-align: left;
112 text-align: left;
116 }
113 }
117 .reveal.fade {
114 .reveal.fade {
118 opacity: 1;
115 opacity: 1;
119 }
116 }
120 .reveal .progress {
117 .reveal .progress {
121 position: static;
118 position: static;
122 }
119 }
123 div.input_area {
120 div.input_area {
124 padding: 0.06em;
121 padding: 0.06em;
125 }
122 }
126 div.code_cell {
123 div.code_cell {
127 background-color: transparent;
124 background-color: transparent;
128 }
125 }
129 div.prompt {
126 div.prompt {
130 width: 11ex;
127 width: 11ex;
131 padding: 0.4em;
128 padding: 0.4em;
132 margin: 0px;
129 margin: 0px;
133 font-family: monospace, sans-serif;
130 font-family: monospace, sans-serif;
134 font-size: 80%;
131 font-size: 80%;
135 text-align: right;
132 text-align: right;
136 }
133 }
137 div.output_area pre {
134 div.output_area pre {
138 font-family: monospace, sans-serif;
135 font-family: monospace, sans-serif;
139 font-size: 80%;
136 font-size: 80%;
140 }
137 }
141 div.output_prompt {
138 div.output_prompt {
142 /* 5px right shift to account for margin in parent container */
139 /* 5px right shift to account for margin in parent container */
143 margin: 5px 5px 0 0;
140 margin: 5px 5px 0 0;
144 }
141 }
145 .rendered_html p {
142 .rendered_html p {
146 text-align: inherit;
143 text-align: inherit;
147 }
144 }
148 </style>
145 </style>
149
146
150 <!-- Custom stylesheet, it must be in the same directory as the html file -->
147 <!-- Custom stylesheet, it must be in the same directory as the html file -->
151 <link rel="stylesheet" href="custom.css">
148 <link rel="stylesheet" href="custom.css">
152
149
153 </head>
150 </head>
154 {% endblock header%}
151 {% endblock header%}
155
152
156
153
157 {% block body %}
154 {% block body %}
158 <body>
155 <body>
159 <div class="reveal">
156 <div class="reveal">
160 <div class="slides">
157 <div class="slides">
161 {{ super() }}
158 {{ super() }}
162 </div>
159 </div>
163 </div>
160 </div>
164
161
165 <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script>
162 <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script>
166
163
167 <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script>
164 <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script>
168
165
169 <script>
166 <script>
170
167
171 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
168 // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
172 Reveal.initialize({
169 Reveal.initialize({
173 controls: true,
170 controls: true,
174 progress: true,
171 progress: true,
175 history: true,
172 history: true,
176
173
177 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
174 theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
178 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
175 transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none
179
176
180 // Optional libraries used to extend on reveal.js
177 // Optional libraries used to extend on reveal.js
181 dependencies: [
178 dependencies: [
182 { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } },
179 { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } },
183 { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } }
180 { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } }
184 ]
181 ]
185 });
182 });
186 </script>
183 </script>
187
184
188 <!-- Loading mathjax macro -->
185 <!-- Loading mathjax macro -->
189 {{ mathjax() }}
186 {{ mathjax() }}
190
187
191 <script>
188 <script>
192 Reveal.addEventListener( 'slidechanged', function( event ) {
189 Reveal.addEventListener( 'slidechanged', function( event ) {
193 window.scrollTo(0,0);
190 window.scrollTo(0,0);
194 MathJax.Hub.Rerender(event.currentSlide);
191 MathJax.Hub.Rerender(event.currentSlide);
195 });
192 });
196 </script>
193 </script>
197
194
198 </body>
195 </body>
199 {% endblock body %}
196 {% endblock body %}
200
197
201 {% block footer %}
198 {% block footer %}
202 </html>
199 </html>
203 {% endblock footer %}
200 {% endblock footer %}
General Comments 0
You need to be logged in to leave comments. Login now