├── Gruntfile.js
├── LICENSE
├── README.md
├── Workshop_Materials
├── Amsterdam
│ ├── index.html
│ ├── main.css
│ └── main.js
├── Amsterdam_available_layers.txt
└── World
│ ├── index.html
│ ├── main.css
│ └── main.js
├── bower.json
├── css
├── reveal.css
├── reveal.scss
└── theme
│ ├── README.md
│ ├── beige.css
│ ├── black.css
│ ├── blood.css
│ ├── league.css
│ ├── moon.css
│ ├── night.css
│ ├── serif.css
│ ├── simple.css
│ ├── sky.css
│ ├── solarized.css
│ ├── source
│ ├── beige.scss
│ ├── black.scss
│ ├── blood.scss
│ ├── league.scss
│ ├── moon.scss
│ ├── night.scss
│ ├── serif.scss
│ ├── simple.scss
│ ├── sky.scss
│ ├── solarized.scss
│ └── white.scss
│ ├── template
│ ├── mixins.scss
│ ├── settings.scss
│ └── theme.scss
│ └── white.css
├── img
├── De_Waag_Nieuwmarkt_Amsterdam.jpg
├── WS_logo.jpg
├── amsterdam.gif
├── amsterdam.png
├── boston_logo.jpeg
├── datalab.png
├── google.png
├── mapbox-gl-js.jpg
├── maptimeAMS.png
├── maputnik.png
├── osm.png
├── vector-tile-example.png
└── vector_tile_creation.png
├── index.html
├── js
└── reveal.js
├── lib
├── css
│ └── zenburn.css
├── font
│ ├── league-gothic
│ │ ├── LICENSE
│ │ ├── league-gothic.css
│ │ ├── league-gothic.eot
│ │ ├── league-gothic.ttf
│ │ └── league-gothic.woff
│ └── source-sans-pro
│ │ ├── LICENSE
│ │ ├── source-sans-pro-italic.eot
│ │ ├── source-sans-pro-italic.ttf
│ │ ├── source-sans-pro-italic.woff
│ │ ├── source-sans-pro-regular.eot
│ │ ├── source-sans-pro-regular.ttf
│ │ ├── source-sans-pro-regular.woff
│ │ ├── source-sans-pro-semibold.eot
│ │ ├── source-sans-pro-semibold.ttf
│ │ ├── source-sans-pro-semibold.woff
│ │ ├── source-sans-pro-semibolditalic.eot
│ │ ├── source-sans-pro-semibolditalic.ttf
│ │ ├── source-sans-pro-semibolditalic.woff
│ │ └── source-sans-pro.css
└── js
│ ├── classList.js
│ ├── head.min.js
│ └── html5shiv.js
├── package.json
└── plugin
├── highlight
└── highlight.js
├── markdown
├── example.html
├── example.md
├── markdown.js
└── marked.js
├── math
└── math.js
├── multiplex
├── client.js
├── index.js
├── master.js
└── package.json
├── notes-server
├── client.js
├── index.js
└── notes.html
├── notes
├── notes.html
└── notes.js
├── print-pdf
└── print-pdf.js
├── search
└── search.js
└── zoom-js
└── zoom.js
/Gruntfile.js:
--------------------------------------------------------------------------------
1 | /* global module:false */
2 | module.exports = function(grunt) {
3 | var port = grunt.option('port') || 8000;
4 | var base = grunt.option('base') || '.';
5 |
6 | // Project configuration
7 | grunt.initConfig({
8 | pkg: grunt.file.readJSON('package.json'),
9 | meta: {
10 | banner:
11 | '/*!\n' +
12 | ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
13 | ' * http://lab.hakim.se/reveal-js\n' +
14 | ' * MIT licensed\n' +
15 | ' *\n' +
16 | ' * Copyright (C) 2016 Hakim El Hattab, http://hakim.se\n' +
17 | ' */'
18 | },
19 |
20 | qunit: {
21 | files: [ 'test/*.html' ]
22 | },
23 |
24 | uglify: {
25 | options: {
26 | banner: '<%= meta.banner %>\n'
27 | },
28 | build: {
29 | src: 'js/reveal.js',
30 | dest: 'js/reveal.min.js'
31 | }
32 | },
33 |
34 | sass: {
35 | core: {
36 | files: {
37 | 'css/reveal.css': 'css/reveal.scss',
38 | }
39 | },
40 | themes: {
41 | files: [
42 | {
43 | expand: true,
44 | cwd: 'css/theme/source',
45 | src: ['*.scss'],
46 | dest: 'css/theme',
47 | ext: '.css'
48 | }
49 | ]
50 | }
51 | },
52 |
53 | autoprefixer: {
54 | dist: {
55 | src: 'css/reveal.css'
56 | }
57 | },
58 |
59 | cssmin: {
60 | compress: {
61 | files: {
62 | 'css/reveal.min.css': [ 'css/reveal.css' ]
63 | }
64 | }
65 | },
66 |
67 | jshint: {
68 | options: {
69 | curly: false,
70 | eqeqeq: true,
71 | immed: true,
72 | latedef: true,
73 | newcap: true,
74 | noarg: true,
75 | sub: true,
76 | undef: true,
77 | eqnull: true,
78 | browser: true,
79 | expr: true,
80 | globals: {
81 | head: false,
82 | module: false,
83 | console: false,
84 | unescape: false,
85 | define: false,
86 | exports: false
87 | }
88 | },
89 | files: [ 'Gruntfile.js', 'js/reveal.js' ]
90 | },
91 |
92 | connect: {
93 | server: {
94 | options: {
95 | port: port,
96 | base: base,
97 | livereload: true,
98 | open: true
99 | }
100 | }
101 | },
102 |
103 | zip: {
104 | 'reveal-js-presentation.zip': [
105 | 'index.html',
106 | 'css/**',
107 | 'js/**',
108 | 'lib/**',
109 | 'images/**',
110 | 'plugin/**',
111 | '**.md'
112 | ]
113 | },
114 |
115 | watch: {
116 | js: {
117 | files: [ 'Gruntfile.js', 'js/reveal.js' ],
118 | tasks: 'js'
119 | },
120 | theme: {
121 | files: [ 'css/theme/source/*.scss', 'css/theme/template/*.scss' ],
122 | tasks: 'css-themes'
123 | },
124 | css: {
125 | files: [ 'css/reveal.scss' ],
126 | tasks: 'css-core'
127 | },
128 | html: {
129 | files: [ '*.html']
130 | },
131 | markdown: {
132 | files: [ '*.md' ]
133 | },
134 | options: {
135 | livereload: true
136 | }
137 | }
138 |
139 | });
140 |
141 | // Dependencies
142 | grunt.loadNpmTasks( 'grunt-contrib-qunit' );
143 | grunt.loadNpmTasks( 'grunt-contrib-jshint' );
144 | grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
145 | grunt.loadNpmTasks( 'grunt-contrib-uglify' );
146 | grunt.loadNpmTasks( 'grunt-contrib-watch' );
147 | grunt.loadNpmTasks( 'grunt-sass' );
148 | grunt.loadNpmTasks( 'grunt-contrib-connect' );
149 | grunt.loadNpmTasks( 'grunt-autoprefixer' );
150 | grunt.loadNpmTasks( 'grunt-zip' );
151 |
152 | // Default task
153 | grunt.registerTask( 'default', [ 'css', 'js' ] );
154 |
155 | // JS task
156 | grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
157 |
158 | // Theme CSS
159 | grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
160 |
161 | // Core framework CSS
162 | grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
163 |
164 | // All CSS
165 | grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
166 |
167 | // Package presentation to archive
168 | grunt.registerTask( 'package', [ 'default', 'zip' ] );
169 |
170 | // Serve presentation locally
171 | grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
172 |
173 | // Run tests
174 | grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
175 |
176 | };
177 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2016 Hakim El Hattab, http://hakim.se
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Vector Tiles Workshop
2 |
3 | We will start with a [presentation](https://maptime-ams.github.io/vector-tiles-workshop/)
4 |
5 | In the [workshop](https://github.com/maptime-ams/vector-tiles-workshop/wiki) we will give you:
6 |
7 | - a full code example of how to make a map with the Mapbox GL js library
8 | - a endpoint where to find your tiles
9 | - a standard style for you to edit
10 |
11 | Optional:
12 |
13 | - How to make your own vector tiles
14 | - How to donwload OSM vector tiles
15 |
16 | ## What are Vector Tiles
17 |
18 | Vector tiles are a way to deliver geographic data in small chunks to a browser or other client app. Vector tiles are similar to raster tiles but instead of raster images the data returned is a vector representation of the features in the tile.
19 |
20 | Vector tiles make huge maps fast while offering full design flexibility. They are the vector data equivalent of image tiles for web mapping, applying the strengths of tiling – developed for caching, scaling and serving map imagery rapidly – to vector data.
21 |
22 |
23 | Vector tiles have two important advantages over fully rendered image tiles:
24 |
25 | * Styling - as vectors, tiles can be styled when requested, allowing for many map styles on global data
26 | * Size - vector tiles are really small, enabling global high resolution maps, fast map loads, and efficient caching
27 |
28 | As the name suggests, vector tiles contain vector data instead of the rendered image. They contain geometries and metadata – like road names, place names, house numbers – in a compact, structured format. Vector tiles are rendered only when requested by a client, like a web browser or a mobile app. Rendering happens either in the client (Mapbox GL JS, Mapbox iOS SDK, Mapbox Android SDK) or on the fly on the server (map API).
29 |
30 | **More info**
31 |
32 | https://www.mapbox.com/vector-tiles/
33 | https://www.mapbox.com/vector-tiles/specification/
34 |
35 | ## We will work with the Protocol buffers (Mapbox) standards
36 |
37 | Mapbox have defined an open standard for vector map tiles called "vector-tile-spec" which uses Google protocol buffers for space-efficient data serialisation. Web Mercator is the projection of reference, but vector tiles may be used to represent data with any projection and tile extent scheme. It is also tied to the Mapnik rendering engine, using a "serialized version of the internal data that Mapnik uses".
38 |
39 |
40 | # The workshop
41 |
42 |
43 | The full workshop is in the wiki. Take me [< THERE! >](https://github.com/maptime-ams/vector-tiles-workshop/wiki)
44 |
45 | A really short outline:
46 |
47 | ## Getting the code.
48 |
49 | 1. Download this repository on you own device.
50 | 2. Open the index.html
51 | 3. See your map!
52 | 4. Style your map!
53 |
--------------------------------------------------------------------------------
/Workshop_Materials/Amsterdam/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Vector-Tile Viewer
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Workshop_Materials/Amsterdam/main.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | font-family: sans-serif;
3 | width: 100%;
4 | }
5 | #map {
6 | height: 750px;
7 | width: 100%;
8 | }
--------------------------------------------------------------------------------
/Workshop_Materials/Amsterdam_available_layers.txt:
--------------------------------------------------------------------------------
1 | layer = water
2 | from bgt
3 | data waterdeel_vlak0
4 |
5 | layer = terrein0
6 | from bgt
7 | data terreindeel_vlak0
8 |
9 | layer = overbruggingsdeel
10 | from bgt
11 | data BGT_ODL_overbruggingsdeel
12 |
13 | layer = wegdeel_vlak0
14 | from bgt
15 | data wegdeel_vlak0
16 |
17 | layer = inrichtingselement_vlak0
18 | from bgt
19 | data inrichtingselement_vlak0
20 |
21 | layer = gebouwen0
22 | from bgt
23 | data gebouw_vlak0
24 |
25 | layer = wegdeel_vlak_1
26 | from bgt
27 | data wegdeel_vlak_1
28 |
29 | layer = terrein1
30 | from bgt
31 | data terreindeel_vlak1
32 |
33 | layer = wegdeel_vlak1
34 | from bgt
35 | data wegdeel_vlak1
36 |
37 | layer = inrichtingselement_vlak1
38 | from bgt
39 | data inrichtingselement_vlak1
40 |
41 | layer = gebouwen1
42 | from bgt
43 | data gebouw_vlak1
44 |
45 | layer = terrein2
46 | from bgt
47 | data terreindeel_vlak2
48 |
49 | layer = wegdeel_vlak2
50 | from bgt
51 | data wegdeel_vlak2
52 |
53 | layer = inrichtingselement_vlak2
54 | from bgt
55 | data inrichtingselement_vlak2
56 |
57 | layer = gebouwen2
58 | from bgt
59 | data gebouw_vlak2
60 |
61 | layer = terrein3
62 | from bgt
63 | data terreindeel_vlak3
64 |
65 | layer = wegdeel_vlak3
66 | from bgt
67 | data wegdeel_vlak3
68 |
69 | layer = gebouwen3
70 | from bgt
71 | data gebouw_vlak3
72 |
73 | layer = terrein4
74 | from bgt
75 | data terreindeel_vlak4
76 |
77 | layer = gebouwen4
78 | from bgt
79 | data gebouw_vlak4
80 |
81 | layer = spoor_lijn_2
82 | from bgt
83 | data spoor_lijn_2
84 |
85 | layer = spoor_lijn_1
86 | from bgt
87 | data spoor_lijn_1
88 |
89 | layer = spoor_lijn0
90 | from bgt
91 | data spoor_lijn0
92 |
93 | layer = spoor_lijn1
94 | from bgt
95 | data spoor_lijn1
96 |
97 | layer = spoor_lijn2
98 | from bgt
99 | data spoor_lijn
100 |
101 | layer = water
102 | from kbk10
103 | data WDL_breed_water
104 |
105 | layer = haven
106 | from kbk10
107 | data WDL_haven
108 |
109 | layer = terein_aanlegsteiger
110 | from kbk10
111 | data TRN_aanlegsteiger
112 |
113 | layer = terein_basaltblokken_steenglooiing
114 | from kbk10
115 | data TRN_basaltblokken_steenglooiing
116 |
117 | layer = terein_grasland
118 | from kbk10
119 | data TRN_grasland
120 |
121 | layer = terein_akkerland
122 | from kbk10
123 | data TRN_akkerland
124 |
125 | layer = terein_overig
126 | from kbk10
127 | data TRN_overig
128 |
129 | layer = terein_bedrijfsterrein
130 | from kbk10
131 | data TRN_bedrijfsterrein
132 |
133 | layer = terein_openbaar_groen
134 | from kbk10
135 | data TRN_openbaar_groen
136 |
137 | layer = terein_zand
138 | from kbk10
139 | data TRN_zand
140 |
141 | layer = startbaan_landingsbaan
142 | from kbk10
143 | data WGL_startbaan_landingsbaan
144 |
145 | layer = terein_spoorbaanlichaam
146 | from kbk10
147 | data TRN_spoorbaanlichaam
148 |
149 | layer = terein_bos-loofbos
150 | from kbk10
151 | data TRN_bos-loofbos
152 |
153 | layer = terein_bos-naaldbos
154 | from kbk10
155 | data TRN_bos-naaldbos
156 |
157 | layer = terein_bos-gemengd_bos
158 | from kbk10
159 | data TRN_bos-gemengd_bos
160 |
161 | layer = terein_bos-griend
162 | from kbk10
163 | data TRN_bos-griend
164 |
165 | layer = terein_boomgaard
166 | from kbk10
167 | data TRN_boomgaard
168 |
169 | layer = terein_boomkwekerij
170 | from kbk10
171 | data TRN_boomkwekerij
172 |
173 | layer = terein_dodenakker
174 | from kbk10
175 | data TRN_dodenakker
176 |
177 | layer = terein_dodenakker_met_bos
178 | from kbk10
179 | data TRN_dodenakker_met_bos
180 |
181 | layer = terein_fruitkwekerij
182 | from kbk10
183 | data TRN_fruitkwekerij
184 |
185 | layer = gebouwen_overdekt
186 | from kbk10
187 | data GBW_overdekt
188 |
189 | layer = gebouwen
190 | from kbk10
191 | data GBW_gebouw
192 |
193 | layer = gebouwen_hoogbouw
194 | from kbk10
195 | data GBW_hoogbouw
196 |
197 | layer = gebouwen_kassen
198 | from kbk10
199 | data GBW_kas_warenhuis
200 |
201 | layer = terein_binnentuin
202 | from kbk10
203 | data TRN_binnentuin
204 |
205 | layer = waterbassin
206 | from kbk10
207 | data WDL_waterbassin
208 |
209 | layer = water_breed
210 | from kbk10
211 | data WDL_smal_water_3_tot_6m
212 |
213 | layer = water_smal
214 | from kbk10
215 | data WDL_smal_water_tot_3m
216 |
217 | layer = tunnelcontour
218 | from kbk10
219 | data KRT_tunnelcontour
220 |
221 | layer = aanlegsteiger_smal
222 | from kbk10
223 | data IRT_aanlegsteiger_smal
224 |
225 | layer = weg_smalle_weg
226 | from kbk10
227 | data WGL_smalle_weg
228 |
229 | layer = SBL_metro_in_tunnel
230 | from kbk10
231 | data SBL_metro_overdekt
232 |
233 | layer = SBL_tram_in_tunnel
234 | from kbk10
235 | data SBL_tram_overdekt
236 |
237 | layer = SBL_trein_in_tunnel
238 | from kbk10
239 | data SBL_trein_overdekt_1sp
240 |
241 | layer = SBL_trein_in_tunnel
242 | from kbk10
243 | data SBL_trein_overdekt_nsp
244 |
245 | layer = SBL_metro
246 | from kbk10
247 | data SBL_metro_nietoverdekt_1sp
248 |
249 | layer = SBL_metro
250 | from kbk10
251 | data SBL_metro_nietoverdekt_nsp
252 |
253 | layer = SBL_tram
254 | from kbk10
255 | data SBL_tram_nietoverdekt
256 |
257 | layer = SBL_trein
258 | from kbk10
259 | data SBL_trein_ongeelektrificeerd
260 |
261 | layer = SBL_trein
262 | from kbk10
263 | data SBL_trein_nietoverdekt_1sp
264 |
265 | layer = SBL_trein
266 | from kbk10
267 | data SBL_trein_nietoverdekt_nsp
268 |
269 | layer = weg_hartlijn
270 | from kbk10
271 | data WGL_hartlij
272 |
273 | layer = water
274 | from kbk50
275 | data WDL_wateroppervlak
276 |
277 | layer = terein_agrarisch
278 | from kbk50
279 | data TRN_agrarisch
280 |
281 | layer = terein_overig
282 | from kbk50
283 | data TRN_overig
284 |
285 | layer = terein_zand
286 | from kbk50
287 | data TRN_zand
288 |
289 | layer = gebouwen
290 | from kbk50
291 | data GBW_bebouwing
292 |
293 | layer = terein_bedrijfsterrein
294 | from kbk50
295 | data TRN_bedrijfsterrein_dienstverlening
296 |
297 | layer = gebouwen_kassen
298 | from kbk50
299 | data GBW_kassen
300 |
301 | layer = terein_bos_groen_sport
302 | from kbk50
303 | data TRN_bos_groen_sport
304 |
305 | layer = water_breed
306 | from kbk50
307 | data WDL_brede_waterloop
308 |
309 | layer = water_smal
310 | from kbk50
311 | data WDL_smalle_waterloop
312 |
313 | layer = weg_straat_in_tunnel
314 | from kbk50
315 | data WGL_straat_in_tunnel
316 |
317 | layer = weg_hoofdweg_in_tunnel
318 | from kbk50
319 | data WGL_hoofdweg_in_tunnel
320 |
321 | layer = weg_regionale_weg_in_tunnel
322 | from kbk50
323 | data WGL_regionale_weg_in_tunnel
324 |
325 | layer = weg_autosnelweg_in_tunnel
326 | from kbk50
327 | data WGL_autosnelweg_in_tunnel
328 |
329 | layer = weg_straat
330 | from kbk50
331 | data WGL_straat
332 |
333 | layer = weg_hoofdweg
334 | from kbk50
335 | data WGL_hoofdweg
336 |
337 | layer = weg_regionale_weg
338 | from kbk50
339 | data WGL_regionale_weg
340 |
341 | layer = SBL_metro_in_tunnel
342 | from kbk50
343 | data SBL_metro_sneltram_in_tunnel
344 |
345 | layer = SBL_trein_in_tunnel
346 | from kbk50
347 | data SBL_trein_in_tunnel
348 |
349 | layer = SBL_metro
350 | from kbk50
351 | data SBL_metro_sneltram
352 |
353 | layer = SBL_trein
354 | from kbk50
355 | data SBL_trein_ongeelektrificeerd
356 |
357 | layer = SBL_trein
358 | from kbk50
359 | data SBL_trein
360 |
361 | layer = weg_autosnelweg
362 | from kbk50
363 | data WGL_autosnelweg.
364 |
--------------------------------------------------------------------------------
/Workshop_Materials/World/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Vector-Tile Viewer
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Workshop_Materials/World/main.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | font-family: sans-serif;
3 | width: 100%;
4 | }
5 | #map {
6 | height: 750px;
7 | width: 100%;
8 | }
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reveal.js",
3 | "version": "3.3.0",
4 | "main": [
5 | "js/reveal.js",
6 | "css/reveal.css"
7 | ],
8 | "homepage": "http://lab.hakim.se/reveal-js/",
9 | "license": "MIT",
10 | "description": "The HTML Presentation Framework",
11 | "authors": [
12 | "Hakim El Hattab "
13 | ],
14 | "dependencies": {
15 | "headjs": "~1.0.3"
16 | },
17 | "repository": {
18 | "type": "git",
19 | "url": "git://github.com/hakimel/reveal.js.git"
20 | },
21 | "ignore": [
22 | "**/.*",
23 | "node_modules",
24 | "bower_components",
25 | "test"
26 | ]
27 | }
--------------------------------------------------------------------------------
/css/theme/README.md:
--------------------------------------------------------------------------------
1 | ## Dependencies
2 |
3 | Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup
4 |
5 | ## Creating a Theme
6 |
7 | To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `grunt css-themes`.
8 |
9 | Each theme file does four things in the following order:
10 |
11 | 1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
12 | Shared utility functions.
13 |
14 | 2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
15 | Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
16 |
17 | 3. **Override**
18 | This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
19 |
20 | 4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
21 | The template theme file which will generate final CSS output based on the currently defined variables.
22 |
--------------------------------------------------------------------------------
/css/theme/beige.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Beige theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 | @import url(../../lib/font/league-gothic/league-gothic.css);
7 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
8 | /*********************************************
9 | * GLOBAL STYLES
10 | *********************************************/
11 | body {
12 | background: #f7f2d3;
13 | background: -moz-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
14 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, white), color-stop(100%, #f7f2d3));
15 | background: -webkit-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
16 | background: -o-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
17 | background: -ms-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
18 | background: radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
19 | background-color: #f7f3de; }
20 |
21 | .reveal {
22 | font-family: "Lato", sans-serif;
23 | font-size: 36px;
24 | font-weight: normal;
25 | color: #333; }
26 |
27 | ::selection {
28 | color: #fff;
29 | background: rgba(79, 64, 28, 0.99);
30 | text-shadow: none; }
31 |
32 | .reveal .slides > section,
33 | .reveal .slides > section > section {
34 | line-height: 1.3;
35 | font-weight: inherit; }
36 |
37 | /*********************************************
38 | * HEADERS
39 | *********************************************/
40 | .reveal h1,
41 | .reveal h2,
42 | .reveal h3,
43 | .reveal h4,
44 | .reveal h5,
45 | .reveal h6 {
46 | margin: 0 0 20px 0;
47 | color: #333;
48 | font-family: "League Gothic", Impact, sans-serif;
49 | font-weight: normal;
50 | line-height: 1.2;
51 | letter-spacing: normal;
52 | text-transform: uppercase;
53 | text-shadow: none;
54 | word-wrap: break-word; }
55 |
56 | .reveal h1 {
57 | font-size: 3.77em; }
58 |
59 | .reveal h2 {
60 | font-size: 2.11em; }
61 |
62 | .reveal h3 {
63 | font-size: 1.55em; }
64 |
65 | .reveal h4 {
66 | font-size: 1em; }
67 |
68 | .reveal h1 {
69 | text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
70 |
71 | /*********************************************
72 | * OTHER
73 | *********************************************/
74 | .reveal p {
75 | margin: 20px 0;
76 | line-height: 1.3; }
77 |
78 | /* Ensure certain elements are never larger than the slide itself */
79 | .reveal img,
80 | .reveal video,
81 | .reveal iframe {
82 | max-width: 95%;
83 | max-height: 95%; }
84 |
85 | .reveal strong,
86 | .reveal b {
87 | font-weight: bold; }
88 |
89 | .reveal em {
90 | font-style: italic; }
91 |
92 | .reveal ol,
93 | .reveal dl,
94 | .reveal ul {
95 | display: inline-block;
96 | text-align: left;
97 | margin: 0 0 0 1em; }
98 |
99 | .reveal ol {
100 | list-style-type: decimal; }
101 |
102 | .reveal ul {
103 | list-style-type: disc; }
104 |
105 | .reveal ul ul {
106 | list-style-type: square; }
107 |
108 | .reveal ul ul ul {
109 | list-style-type: circle; }
110 |
111 | .reveal ul ul,
112 | .reveal ul ol,
113 | .reveal ol ol,
114 | .reveal ol ul {
115 | display: block;
116 | margin-left: 40px; }
117 |
118 | .reveal dt {
119 | font-weight: bold; }
120 |
121 | .reveal dd {
122 | margin-left: 40px; }
123 |
124 | .reveal q,
125 | .reveal blockquote {
126 | quotes: none; }
127 |
128 | .reveal blockquote {
129 | display: block;
130 | position: relative;
131 | width: 70%;
132 | margin: 20px auto;
133 | padding: 5px;
134 | font-style: italic;
135 | background: rgba(255, 255, 255, 0.05);
136 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
137 |
138 | .reveal blockquote p:first-child,
139 | .reveal blockquote p:last-child {
140 | display: inline-block; }
141 |
142 | .reveal q {
143 | font-style: italic; }
144 |
145 | .reveal pre {
146 | display: block;
147 | position: relative;
148 | width: 90%;
149 | margin: 20px auto;
150 | text-align: left;
151 | font-size: 0.55em;
152 | font-family: monospace;
153 | line-height: 1.2em;
154 | word-wrap: break-word;
155 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
156 |
157 | .reveal code {
158 | font-family: monospace; }
159 |
160 | .reveal pre code {
161 | display: block;
162 | padding: 5px;
163 | overflow: auto;
164 | max-height: 400px;
165 | word-wrap: normal; }
166 |
167 | .reveal table {
168 | margin: auto;
169 | border-collapse: collapse;
170 | border-spacing: 0; }
171 |
172 | .reveal table th {
173 | font-weight: bold; }
174 |
175 | .reveal table th,
176 | .reveal table td {
177 | text-align: left;
178 | padding: 0.2em 0.5em 0.2em 0.5em;
179 | border-bottom: 1px solid; }
180 |
181 | .reveal table th[align="center"],
182 | .reveal table td[align="center"] {
183 | text-align: center; }
184 |
185 | .reveal table th[align="right"],
186 | .reveal table td[align="right"] {
187 | text-align: right; }
188 |
189 | .reveal table tbody tr:last-child th,
190 | .reveal table tbody tr:last-child td {
191 | border-bottom: none; }
192 |
193 | .reveal sup {
194 | vertical-align: super; }
195 |
196 | .reveal sub {
197 | vertical-align: sub; }
198 |
199 | .reveal small {
200 | display: inline-block;
201 | font-size: 0.6em;
202 | line-height: 1.2em;
203 | vertical-align: top; }
204 |
205 | .reveal small * {
206 | vertical-align: top; }
207 |
208 | /*********************************************
209 | * LINKS
210 | *********************************************/
211 | .reveal a {
212 | color: #8b743d;
213 | text-decoration: none;
214 | -webkit-transition: color .15s ease;
215 | -moz-transition: color .15s ease;
216 | transition: color .15s ease; }
217 |
218 | .reveal a:hover {
219 | color: #c0a86e;
220 | text-shadow: none;
221 | border: none; }
222 |
223 | .reveal .roll span:after {
224 | color: #fff;
225 | background: #564826; }
226 |
227 | /*********************************************
228 | * IMAGES
229 | *********************************************/
230 | .reveal section img {
231 | margin: 15px 0px;
232 | background: rgba(255, 255, 255, 0.12);
233 | border: 4px solid #333;
234 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235 |
236 | .reveal section img.plain {
237 | border: 0;
238 | box-shadow: none; }
239 |
240 | .reveal a img {
241 | -webkit-transition: all .15s linear;
242 | -moz-transition: all .15s linear;
243 | transition: all .15s linear; }
244 |
245 | .reveal a:hover img {
246 | background: rgba(255, 255, 255, 0.2);
247 | border-color: #8b743d;
248 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249 |
250 | /*********************************************
251 | * NAVIGATION CONTROLS
252 | *********************************************/
253 | .reveal .controls .navigate-left,
254 | .reveal .controls .navigate-left.enabled {
255 | border-right-color: #8b743d; }
256 |
257 | .reveal .controls .navigate-right,
258 | .reveal .controls .navigate-right.enabled {
259 | border-left-color: #8b743d; }
260 |
261 | .reveal .controls .navigate-up,
262 | .reveal .controls .navigate-up.enabled {
263 | border-bottom-color: #8b743d; }
264 |
265 | .reveal .controls .navigate-down,
266 | .reveal .controls .navigate-down.enabled {
267 | border-top-color: #8b743d; }
268 |
269 | .reveal .controls .navigate-left.enabled:hover {
270 | border-right-color: #c0a86e; }
271 |
272 | .reveal .controls .navigate-right.enabled:hover {
273 | border-left-color: #c0a86e; }
274 |
275 | .reveal .controls .navigate-up.enabled:hover {
276 | border-bottom-color: #c0a86e; }
277 |
278 | .reveal .controls .navigate-down.enabled:hover {
279 | border-top-color: #c0a86e; }
280 |
281 | /*********************************************
282 | * PROGRESS BAR
283 | *********************************************/
284 | .reveal .progress {
285 | background: rgba(0, 0, 0, 0.2); }
286 |
287 | .reveal .progress span {
288 | background: #8b743d;
289 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
290 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
291 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
292 |
--------------------------------------------------------------------------------
/css/theme/black.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7 | section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
8 | color: #222; }
9 |
10 | /*********************************************
11 | * GLOBAL STYLES
12 | *********************************************/
13 | body {
14 | background: #222;
15 | background-color: #222; }
16 |
17 | .reveal {
18 | font-family: "Source Sans Pro", Helvetica, sans-serif;
19 | font-size: 38px;
20 | font-weight: normal;
21 | color: #fff; }
22 |
23 | ::selection {
24 | color: #fff;
25 | background: #bee4fd;
26 | text-shadow: none; }
27 |
28 | .reveal .slides > section,
29 | .reveal .slides > section > section {
30 | line-height: 1.3;
31 | font-weight: inherit; }
32 |
33 | /*********************************************
34 | * HEADERS
35 | *********************************************/
36 | .reveal h1,
37 | .reveal h2,
38 | .reveal h3,
39 | .reveal h4,
40 | .reveal h5,
41 | .reveal h6 {
42 | margin: 0 0 20px 0;
43 | color: #fff;
44 | font-family: "Source Sans Pro", Helvetica, sans-serif;
45 | font-weight: 600;
46 | line-height: 1.2;
47 | letter-spacing: normal;
48 | text-transform: uppercase;
49 | text-shadow: none;
50 | word-wrap: break-word; }
51 |
52 | .reveal h1 {
53 | font-size: 2.5em; }
54 |
55 | .reveal h2 {
56 | font-size: 1.6em; }
57 |
58 | .reveal h3 {
59 | font-size: 1.3em; }
60 |
61 | .reveal h4 {
62 | font-size: 1em; }
63 |
64 | .reveal h1 {
65 | text-shadow: none; }
66 |
67 | /*********************************************
68 | * OTHER
69 | *********************************************/
70 | .reveal p {
71 | margin: 20px 0;
72 | line-height: 1.3; }
73 |
74 | /* Ensure certain elements are never larger than the slide itself */
75 | .reveal img,
76 | .reveal video,
77 | .reveal iframe {
78 | max-width: 95%;
79 | max-height: 95%; }
80 |
81 | .reveal strong,
82 | .reveal b {
83 | font-weight: bold; }
84 |
85 | .reveal em {
86 | font-style: italic; }
87 |
88 | .reveal ol,
89 | .reveal dl,
90 | .reveal ul {
91 | display: inline-block;
92 | text-align: left;
93 | margin: 0 0 0 1em; }
94 |
95 | .reveal ol {
96 | list-style-type: decimal; }
97 |
98 | .reveal ul {
99 | list-style-type: disc; }
100 |
101 | .reveal ul ul {
102 | list-style-type: square; }
103 |
104 | .reveal ul ul ul {
105 | list-style-type: circle; }
106 |
107 | .reveal ul ul,
108 | .reveal ul ol,
109 | .reveal ol ol,
110 | .reveal ol ul {
111 | display: block;
112 | margin-left: 40px; }
113 |
114 | .reveal dt {
115 | font-weight: bold; }
116 |
117 | .reveal dd {
118 | margin-left: 40px; }
119 |
120 | .reveal q,
121 | .reveal blockquote {
122 | quotes: none; }
123 |
124 | .reveal blockquote {
125 | display: block;
126 | position: relative;
127 | width: 70%;
128 | margin: 20px auto;
129 | padding: 5px;
130 | font-style: italic;
131 | background: rgba(255, 255, 255, 0.05);
132 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
133 |
134 | .reveal blockquote p:first-child,
135 | .reveal blockquote p:last-child {
136 | display: inline-block; }
137 |
138 | .reveal q {
139 | font-style: italic; }
140 |
141 | .reveal pre {
142 | display: block;
143 | position: relative;
144 | width: 90%;
145 | margin: 20px auto;
146 | text-align: left;
147 | font-size: 0.55em;
148 | font-family: monospace;
149 | line-height: 1.2em;
150 | word-wrap: break-word;
151 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
152 |
153 | .reveal code {
154 | font-family: monospace; }
155 |
156 | .reveal pre code {
157 | display: block;
158 | padding: 5px;
159 | overflow: auto;
160 | max-height: 400px;
161 | word-wrap: normal; }
162 |
163 | .reveal table {
164 | margin: auto;
165 | border-collapse: collapse;
166 | border-spacing: 0; }
167 |
168 | .reveal table th {
169 | font-weight: bold; }
170 |
171 | .reveal table th,
172 | .reveal table td {
173 | text-align: left;
174 | padding: 0.2em 0.5em 0.2em 0.5em;
175 | border-bottom: 1px solid; }
176 |
177 | .reveal table th[align="center"],
178 | .reveal table td[align="center"] {
179 | text-align: center; }
180 |
181 | .reveal table th[align="right"],
182 | .reveal table td[align="right"] {
183 | text-align: right; }
184 |
185 | .reveal table tbody tr:last-child th,
186 | .reveal table tbody tr:last-child td {
187 | border-bottom: none; }
188 |
189 | .reveal sup {
190 | vertical-align: super; }
191 |
192 | .reveal sub {
193 | vertical-align: sub; }
194 |
195 | .reveal small {
196 | display: inline-block;
197 | font-size: 0.6em;
198 | line-height: 1.2em;
199 | vertical-align: top; }
200 |
201 | .reveal small * {
202 | vertical-align: top; }
203 |
204 | /*********************************************
205 | * LINKS
206 | *********************************************/
207 | .reveal a {
208 | color: #42affa;
209 | text-decoration: none;
210 | -webkit-transition: color .15s ease;
211 | -moz-transition: color .15s ease;
212 | transition: color .15s ease; }
213 |
214 | .reveal a:hover {
215 | color: #8dcffc;
216 | text-shadow: none;
217 | border: none; }
218 |
219 | .reveal .roll span:after {
220 | color: #fff;
221 | background: #068de9; }
222 |
223 | /*********************************************
224 | * IMAGES
225 | *********************************************/
226 | .reveal section img {
227 | margin: 15px 0px;
228 | background: rgba(255, 255, 255, 0.12);
229 | border: 4px solid #fff;
230 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
231 |
232 | .reveal section img.plain {
233 | border: 0;
234 | box-shadow: none; }
235 |
236 | .reveal a img {
237 | -webkit-transition: all .15s linear;
238 | -moz-transition: all .15s linear;
239 | transition: all .15s linear; }
240 |
241 | .reveal a:hover img {
242 | background: rgba(255, 255, 255, 0.2);
243 | border-color: #42affa;
244 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
245 |
246 | /*********************************************
247 | * NAVIGATION CONTROLS
248 | *********************************************/
249 | .reveal .controls .navigate-left,
250 | .reveal .controls .navigate-left.enabled {
251 | border-right-color: #42affa; }
252 |
253 | .reveal .controls .navigate-right,
254 | .reveal .controls .navigate-right.enabled {
255 | border-left-color: #42affa; }
256 |
257 | .reveal .controls .navigate-up,
258 | .reveal .controls .navigate-up.enabled {
259 | border-bottom-color: #42affa; }
260 |
261 | .reveal .controls .navigate-down,
262 | .reveal .controls .navigate-down.enabled {
263 | border-top-color: #42affa; }
264 |
265 | .reveal .controls .navigate-left.enabled:hover {
266 | border-right-color: #8dcffc; }
267 |
268 | .reveal .controls .navigate-right.enabled:hover {
269 | border-left-color: #8dcffc; }
270 |
271 | .reveal .controls .navigate-up.enabled:hover {
272 | border-bottom-color: #8dcffc; }
273 |
274 | .reveal .controls .navigate-down.enabled:hover {
275 | border-top-color: #8dcffc; }
276 |
277 | /*********************************************
278 | * PROGRESS BAR
279 | *********************************************/
280 | .reveal .progress {
281 | background: rgba(0, 0, 0, 0.2); }
282 |
283 | .reveal .progress span {
284 | background: #42affa;
285 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
286 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
287 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
288 |
--------------------------------------------------------------------------------
/css/theme/blood.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Blood theme for reveal.js
3 | * Author: Walther http://github.com/Walther
4 | *
5 | * Designed to be used with highlight.js theme
6 | * "monokai_sublime.css" available from
7 | * https://github.com/isagalaev/highlight.js/
8 | *
9 | * For other themes, change $codeBackground accordingly.
10 | *
11 | */
12 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
13 | /*********************************************
14 | * GLOBAL STYLES
15 | *********************************************/
16 | body {
17 | background: #222;
18 | background-color: #222; }
19 |
20 | .reveal {
21 | font-family: Ubuntu, "sans-serif";
22 | font-size: 36px;
23 | font-weight: normal;
24 | color: #eee; }
25 |
26 | ::selection {
27 | color: #fff;
28 | background: #a23;
29 | text-shadow: none; }
30 |
31 | .reveal .slides > section,
32 | .reveal .slides > section > section {
33 | line-height: 1.3;
34 | font-weight: inherit; }
35 |
36 | /*********************************************
37 | * HEADERS
38 | *********************************************/
39 | .reveal h1,
40 | .reveal h2,
41 | .reveal h3,
42 | .reveal h4,
43 | .reveal h5,
44 | .reveal h6 {
45 | margin: 0 0 20px 0;
46 | color: #eee;
47 | font-family: Ubuntu, "sans-serif";
48 | font-weight: normal;
49 | line-height: 1.2;
50 | letter-spacing: normal;
51 | text-transform: uppercase;
52 | text-shadow: 2px 2px 2px #222;
53 | word-wrap: break-word; }
54 |
55 | .reveal h1 {
56 | font-size: 3.77em; }
57 |
58 | .reveal h2 {
59 | font-size: 2.11em; }
60 |
61 | .reveal h3 {
62 | font-size: 1.55em; }
63 |
64 | .reveal h4 {
65 | font-size: 1em; }
66 |
67 | .reveal h1 {
68 | text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
69 |
70 | /*********************************************
71 | * OTHER
72 | *********************************************/
73 | .reveal p {
74 | margin: 20px 0;
75 | line-height: 1.3; }
76 |
77 | /* Ensure certain elements are never larger than the slide itself */
78 | .reveal img,
79 | .reveal video,
80 | .reveal iframe {
81 | max-width: 95%;
82 | max-height: 95%; }
83 |
84 | .reveal strong,
85 | .reveal b {
86 | font-weight: bold; }
87 |
88 | .reveal em {
89 | font-style: italic; }
90 |
91 | .reveal ol,
92 | .reveal dl,
93 | .reveal ul {
94 | display: inline-block;
95 | text-align: left;
96 | margin: 0 0 0 1em; }
97 |
98 | .reveal ol {
99 | list-style-type: decimal; }
100 |
101 | .reveal ul {
102 | list-style-type: disc; }
103 |
104 | .reveal ul ul {
105 | list-style-type: square; }
106 |
107 | .reveal ul ul ul {
108 | list-style-type: circle; }
109 |
110 | .reveal ul ul,
111 | .reveal ul ol,
112 | .reveal ol ol,
113 | .reveal ol ul {
114 | display: block;
115 | margin-left: 40px; }
116 |
117 | .reveal dt {
118 | font-weight: bold; }
119 |
120 | .reveal dd {
121 | margin-left: 40px; }
122 |
123 | .reveal q,
124 | .reveal blockquote {
125 | quotes: none; }
126 |
127 | .reveal blockquote {
128 | display: block;
129 | position: relative;
130 | width: 70%;
131 | margin: 20px auto;
132 | padding: 5px;
133 | font-style: italic;
134 | background: rgba(255, 255, 255, 0.05);
135 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
136 |
137 | .reveal blockquote p:first-child,
138 | .reveal blockquote p:last-child {
139 | display: inline-block; }
140 |
141 | .reveal q {
142 | font-style: italic; }
143 |
144 | .reveal pre {
145 | display: block;
146 | position: relative;
147 | width: 90%;
148 | margin: 20px auto;
149 | text-align: left;
150 | font-size: 0.55em;
151 | font-family: monospace;
152 | line-height: 1.2em;
153 | word-wrap: break-word;
154 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
155 |
156 | .reveal code {
157 | font-family: monospace; }
158 |
159 | .reveal pre code {
160 | display: block;
161 | padding: 5px;
162 | overflow: auto;
163 | max-height: 400px;
164 | word-wrap: normal; }
165 |
166 | .reveal table {
167 | margin: auto;
168 | border-collapse: collapse;
169 | border-spacing: 0; }
170 |
171 | .reveal table th {
172 | font-weight: bold; }
173 |
174 | .reveal table th,
175 | .reveal table td {
176 | text-align: left;
177 | padding: 0.2em 0.5em 0.2em 0.5em;
178 | border-bottom: 1px solid; }
179 |
180 | .reveal table th[align="center"],
181 | .reveal table td[align="center"] {
182 | text-align: center; }
183 |
184 | .reveal table th[align="right"],
185 | .reveal table td[align="right"] {
186 | text-align: right; }
187 |
188 | .reveal table tbody tr:last-child th,
189 | .reveal table tbody tr:last-child td {
190 | border-bottom: none; }
191 |
192 | .reveal sup {
193 | vertical-align: super; }
194 |
195 | .reveal sub {
196 | vertical-align: sub; }
197 |
198 | .reveal small {
199 | display: inline-block;
200 | font-size: 0.6em;
201 | line-height: 1.2em;
202 | vertical-align: top; }
203 |
204 | .reveal small * {
205 | vertical-align: top; }
206 |
207 | /*********************************************
208 | * LINKS
209 | *********************************************/
210 | .reveal a {
211 | color: #a23;
212 | text-decoration: none;
213 | -webkit-transition: color .15s ease;
214 | -moz-transition: color .15s ease;
215 | transition: color .15s ease; }
216 |
217 | .reveal a:hover {
218 | color: #dd5566;
219 | text-shadow: none;
220 | border: none; }
221 |
222 | .reveal .roll span:after {
223 | color: #fff;
224 | background: #6a1520; }
225 |
226 | /*********************************************
227 | * IMAGES
228 | *********************************************/
229 | .reveal section img {
230 | margin: 15px 0px;
231 | background: rgba(255, 255, 255, 0.12);
232 | border: 4px solid #eee;
233 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
234 |
235 | .reveal section img.plain {
236 | border: 0;
237 | box-shadow: none; }
238 |
239 | .reveal a img {
240 | -webkit-transition: all .15s linear;
241 | -moz-transition: all .15s linear;
242 | transition: all .15s linear; }
243 |
244 | .reveal a:hover img {
245 | background: rgba(255, 255, 255, 0.2);
246 | border-color: #a23;
247 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
248 |
249 | /*********************************************
250 | * NAVIGATION CONTROLS
251 | *********************************************/
252 | .reveal .controls .navigate-left,
253 | .reveal .controls .navigate-left.enabled {
254 | border-right-color: #a23; }
255 |
256 | .reveal .controls .navigate-right,
257 | .reveal .controls .navigate-right.enabled {
258 | border-left-color: #a23; }
259 |
260 | .reveal .controls .navigate-up,
261 | .reveal .controls .navigate-up.enabled {
262 | border-bottom-color: #a23; }
263 |
264 | .reveal .controls .navigate-down,
265 | .reveal .controls .navigate-down.enabled {
266 | border-top-color: #a23; }
267 |
268 | .reveal .controls .navigate-left.enabled:hover {
269 | border-right-color: #dd5566; }
270 |
271 | .reveal .controls .navigate-right.enabled:hover {
272 | border-left-color: #dd5566; }
273 |
274 | .reveal .controls .navigate-up.enabled:hover {
275 | border-bottom-color: #dd5566; }
276 |
277 | .reveal .controls .navigate-down.enabled:hover {
278 | border-top-color: #dd5566; }
279 |
280 | /*********************************************
281 | * PROGRESS BAR
282 | *********************************************/
283 | .reveal .progress {
284 | background: rgba(0, 0, 0, 0.2); }
285 |
286 | .reveal .progress span {
287 | background: #a23;
288 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
289 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
290 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
291 |
292 | .reveal p {
293 | font-weight: 300;
294 | text-shadow: 1px 1px #222; }
295 |
296 | .reveal h1,
297 | .reveal h2,
298 | .reveal h3,
299 | .reveal h4,
300 | .reveal h5,
301 | .reveal h6 {
302 | font-weight: 700; }
303 |
304 | .reveal p code {
305 | background-color: #23241f;
306 | display: inline-block;
307 | border-radius: 7px; }
308 |
309 | .reveal small code {
310 | vertical-align: baseline; }
311 |
--------------------------------------------------------------------------------
/css/theme/league.css:
--------------------------------------------------------------------------------
1 | /**
2 | * League theme for reveal.js.
3 | *
4 | * This was the default theme pre-3.0.0.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 | @import url(../../lib/font/league-gothic/league-gothic.css);
9 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
10 | /*********************************************
11 | * GLOBAL STYLES
12 | *********************************************/
13 | body {
14 | background: #1c1e20;
15 | background: -moz-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
16 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #555a5f), color-stop(100%, #1c1e20));
17 | background: -webkit-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
18 | background: -o-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
19 | background: -ms-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
20 | background: radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
21 | background-color: #2b2b2b; }
22 |
23 | .reveal {
24 | font-family: "Lato", sans-serif;
25 | font-size: 36px;
26 | font-weight: normal;
27 | color: #eee; }
28 |
29 | ::selection {
30 | color: #fff;
31 | background: #FF5E99;
32 | text-shadow: none; }
33 |
34 | .reveal .slides > section,
35 | .reveal .slides > section > section {
36 | line-height: 1.3;
37 | font-weight: inherit; }
38 |
39 | /*********************************************
40 | * HEADERS
41 | *********************************************/
42 | .reveal h1,
43 | .reveal h2,
44 | .reveal h3,
45 | .reveal h4,
46 | .reveal h5,
47 | .reveal h6 {
48 | margin: 0 0 20px 0;
49 | color: #eee;
50 | font-family: "League Gothic", Impact, sans-serif;
51 | font-weight: normal;
52 | line-height: 1.2;
53 | letter-spacing: normal;
54 | text-transform: uppercase;
55 | text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
56 | word-wrap: break-word; }
57 |
58 | .reveal h1 {
59 | font-size: 3.77em; }
60 |
61 | .reveal h2 {
62 | font-size: 2.11em; }
63 |
64 | .reveal h3 {
65 | font-size: 1.55em; }
66 |
67 | .reveal h4 {
68 | font-size: 1em; }
69 |
70 | .reveal h1 {
71 | text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
72 |
73 | /*********************************************
74 | * OTHER
75 | *********************************************/
76 | .reveal p {
77 | margin: 20px 0;
78 | line-height: 1.3; }
79 |
80 | /* Ensure certain elements are never larger than the slide itself */
81 | .reveal img,
82 | .reveal video,
83 | .reveal iframe {
84 | max-width: 95%;
85 | max-height: 95%; }
86 |
87 | .reveal strong,
88 | .reveal b {
89 | font-weight: bold; }
90 |
91 | .reveal em {
92 | font-style: italic; }
93 |
94 | .reveal ol,
95 | .reveal dl,
96 | .reveal ul {
97 | display: inline-block;
98 | text-align: left;
99 | margin: 0 0 0 1em; }
100 |
101 | .reveal ol {
102 | list-style-type: decimal; }
103 |
104 | .reveal ul {
105 | list-style-type: disc; }
106 |
107 | .reveal ul ul {
108 | list-style-type: square; }
109 |
110 | .reveal ul ul ul {
111 | list-style-type: circle; }
112 |
113 | .reveal ul ul,
114 | .reveal ul ol,
115 | .reveal ol ol,
116 | .reveal ol ul {
117 | display: block;
118 | margin-left: 40px; }
119 |
120 | .reveal dt {
121 | font-weight: bold; }
122 |
123 | .reveal dd {
124 | margin-left: 40px; }
125 |
126 | .reveal q,
127 | .reveal blockquote {
128 | quotes: none; }
129 |
130 | .reveal blockquote {
131 | display: block;
132 | position: relative;
133 | width: 70%;
134 | margin: 20px auto;
135 | padding: 5px;
136 | font-style: italic;
137 | background: rgba(255, 255, 255, 0.05);
138 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
139 |
140 | .reveal blockquote p:first-child,
141 | .reveal blockquote p:last-child {
142 | display: inline-block; }
143 |
144 | .reveal q {
145 | font-style: italic; }
146 |
147 | .reveal pre {
148 | display: block;
149 | position: relative;
150 | width: 90%;
151 | margin: 20px auto;
152 | text-align: left;
153 | font-size: 0.55em;
154 | font-family: monospace;
155 | line-height: 1.2em;
156 | word-wrap: break-word;
157 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
158 |
159 | .reveal code {
160 | font-family: monospace; }
161 |
162 | .reveal pre code {
163 | display: block;
164 | padding: 5px;
165 | overflow: auto;
166 | max-height: 400px;
167 | word-wrap: normal; }
168 |
169 | .reveal table {
170 | margin: auto;
171 | border-collapse: collapse;
172 | border-spacing: 0; }
173 |
174 | .reveal table th {
175 | font-weight: bold; }
176 |
177 | .reveal table th,
178 | .reveal table td {
179 | text-align: left;
180 | padding: 0.2em 0.5em 0.2em 0.5em;
181 | border-bottom: 1px solid; }
182 |
183 | .reveal table th[align="center"],
184 | .reveal table td[align="center"] {
185 | text-align: center; }
186 |
187 | .reveal table th[align="right"],
188 | .reveal table td[align="right"] {
189 | text-align: right; }
190 |
191 | .reveal table tbody tr:last-child th,
192 | .reveal table tbody tr:last-child td {
193 | border-bottom: none; }
194 |
195 | .reveal sup {
196 | vertical-align: super; }
197 |
198 | .reveal sub {
199 | vertical-align: sub; }
200 |
201 | .reveal small {
202 | display: inline-block;
203 | font-size: 0.6em;
204 | line-height: 1.2em;
205 | vertical-align: top; }
206 |
207 | .reveal small * {
208 | vertical-align: top; }
209 |
210 | /*********************************************
211 | * LINKS
212 | *********************************************/
213 | .reveal a {
214 | color: #13DAEC;
215 | text-decoration: none;
216 | -webkit-transition: color .15s ease;
217 | -moz-transition: color .15s ease;
218 | transition: color .15s ease; }
219 |
220 | .reveal a:hover {
221 | color: #71e9f4;
222 | text-shadow: none;
223 | border: none; }
224 |
225 | .reveal .roll span:after {
226 | color: #fff;
227 | background: #0d99a5; }
228 |
229 | /*********************************************
230 | * IMAGES
231 | *********************************************/
232 | .reveal section img {
233 | margin: 15px 0px;
234 | background: rgba(255, 255, 255, 0.12);
235 | border: 4px solid #eee;
236 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
237 |
238 | .reveal section img.plain {
239 | border: 0;
240 | box-shadow: none; }
241 |
242 | .reveal a img {
243 | -webkit-transition: all .15s linear;
244 | -moz-transition: all .15s linear;
245 | transition: all .15s linear; }
246 |
247 | .reveal a:hover img {
248 | background: rgba(255, 255, 255, 0.2);
249 | border-color: #13DAEC;
250 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
251 |
252 | /*********************************************
253 | * NAVIGATION CONTROLS
254 | *********************************************/
255 | .reveal .controls .navigate-left,
256 | .reveal .controls .navigate-left.enabled {
257 | border-right-color: #13DAEC; }
258 |
259 | .reveal .controls .navigate-right,
260 | .reveal .controls .navigate-right.enabled {
261 | border-left-color: #13DAEC; }
262 |
263 | .reveal .controls .navigate-up,
264 | .reveal .controls .navigate-up.enabled {
265 | border-bottom-color: #13DAEC; }
266 |
267 | .reveal .controls .navigate-down,
268 | .reveal .controls .navigate-down.enabled {
269 | border-top-color: #13DAEC; }
270 |
271 | .reveal .controls .navigate-left.enabled:hover {
272 | border-right-color: #71e9f4; }
273 |
274 | .reveal .controls .navigate-right.enabled:hover {
275 | border-left-color: #71e9f4; }
276 |
277 | .reveal .controls .navigate-up.enabled:hover {
278 | border-bottom-color: #71e9f4; }
279 |
280 | .reveal .controls .navigate-down.enabled:hover {
281 | border-top-color: #71e9f4; }
282 |
283 | /*********************************************
284 | * PROGRESS BAR
285 | *********************************************/
286 | .reveal .progress {
287 | background: rgba(0, 0, 0, 0.2); }
288 |
289 | .reveal .progress span {
290 | background: #13DAEC;
291 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
292 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
293 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
294 |
--------------------------------------------------------------------------------
/css/theme/moon.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Dark theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 | @import url(../../lib/font/league-gothic/league-gothic.css);
6 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
7 | /**
8 | * Solarized colors by Ethan Schoonover
9 | */
10 | html * {
11 | color-profile: sRGB;
12 | rendering-intent: auto; }
13 |
14 | /*********************************************
15 | * GLOBAL STYLES
16 | *********************************************/
17 | body {
18 | background: #002b36;
19 | background-color: #002b36; }
20 |
21 | .reveal {
22 | font-family: "Lato", sans-serif;
23 | font-size: 36px;
24 | font-weight: normal;
25 | color: #93a1a1; }
26 |
27 | ::selection {
28 | color: #fff;
29 | background: #d33682;
30 | text-shadow: none; }
31 |
32 | .reveal .slides > section,
33 | .reveal .slides > section > section {
34 | line-height: 1.3;
35 | font-weight: inherit; }
36 |
37 | /*********************************************
38 | * HEADERS
39 | *********************************************/
40 | .reveal h1,
41 | .reveal h2,
42 | .reveal h3,
43 | .reveal h4,
44 | .reveal h5,
45 | .reveal h6 {
46 | margin: 0 0 20px 0;
47 | color: #eee8d5;
48 | font-family: "League Gothic", Impact, sans-serif;
49 | font-weight: normal;
50 | line-height: 1.2;
51 | letter-spacing: normal;
52 | text-transform: uppercase;
53 | text-shadow: none;
54 | word-wrap: break-word; }
55 |
56 | .reveal h1 {
57 | font-size: 3.77em; }
58 |
59 | .reveal h2 {
60 | font-size: 2.11em; }
61 |
62 | .reveal h3 {
63 | font-size: 1.55em; }
64 |
65 | .reveal h4 {
66 | font-size: 1em; }
67 |
68 | .reveal h1 {
69 | text-shadow: none; }
70 |
71 | /*********************************************
72 | * OTHER
73 | *********************************************/
74 | .reveal p {
75 | margin: 20px 0;
76 | line-height: 1.3; }
77 |
78 | /* Ensure certain elements are never larger than the slide itself */
79 | .reveal img,
80 | .reveal video,
81 | .reveal iframe {
82 | max-width: 95%;
83 | max-height: 95%; }
84 |
85 | .reveal strong,
86 | .reveal b {
87 | font-weight: bold; }
88 |
89 | .reveal em {
90 | font-style: italic; }
91 |
92 | .reveal ol,
93 | .reveal dl,
94 | .reveal ul {
95 | display: inline-block;
96 | text-align: left;
97 | margin: 0 0 0 1em; }
98 |
99 | .reveal ol {
100 | list-style-type: decimal; }
101 |
102 | .reveal ul {
103 | list-style-type: disc; }
104 |
105 | .reveal ul ul {
106 | list-style-type: square; }
107 |
108 | .reveal ul ul ul {
109 | list-style-type: circle; }
110 |
111 | .reveal ul ul,
112 | .reveal ul ol,
113 | .reveal ol ol,
114 | .reveal ol ul {
115 | display: block;
116 | margin-left: 40px; }
117 |
118 | .reveal dt {
119 | font-weight: bold; }
120 |
121 | .reveal dd {
122 | margin-left: 40px; }
123 |
124 | .reveal q,
125 | .reveal blockquote {
126 | quotes: none; }
127 |
128 | .reveal blockquote {
129 | display: block;
130 | position: relative;
131 | width: 70%;
132 | margin: 20px auto;
133 | padding: 5px;
134 | font-style: italic;
135 | background: rgba(255, 255, 255, 0.05);
136 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
137 |
138 | .reveal blockquote p:first-child,
139 | .reveal blockquote p:last-child {
140 | display: inline-block; }
141 |
142 | .reveal q {
143 | font-style: italic; }
144 |
145 | .reveal pre {
146 | display: block;
147 | position: relative;
148 | width: 90%;
149 | margin: 20px auto;
150 | text-align: left;
151 | font-size: 0.55em;
152 | font-family: monospace;
153 | line-height: 1.2em;
154 | word-wrap: break-word;
155 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
156 |
157 | .reveal code {
158 | font-family: monospace; }
159 |
160 | .reveal pre code {
161 | display: block;
162 | padding: 5px;
163 | overflow: auto;
164 | max-height: 400px;
165 | word-wrap: normal; }
166 |
167 | .reveal table {
168 | margin: auto;
169 | border-collapse: collapse;
170 | border-spacing: 0; }
171 |
172 | .reveal table th {
173 | font-weight: bold; }
174 |
175 | .reveal table th,
176 | .reveal table td {
177 | text-align: left;
178 | padding: 0.2em 0.5em 0.2em 0.5em;
179 | border-bottom: 1px solid; }
180 |
181 | .reveal table th[align="center"],
182 | .reveal table td[align="center"] {
183 | text-align: center; }
184 |
185 | .reveal table th[align="right"],
186 | .reveal table td[align="right"] {
187 | text-align: right; }
188 |
189 | .reveal table tbody tr:last-child th,
190 | .reveal table tbody tr:last-child td {
191 | border-bottom: none; }
192 |
193 | .reveal sup {
194 | vertical-align: super; }
195 |
196 | .reveal sub {
197 | vertical-align: sub; }
198 |
199 | .reveal small {
200 | display: inline-block;
201 | font-size: 0.6em;
202 | line-height: 1.2em;
203 | vertical-align: top; }
204 |
205 | .reveal small * {
206 | vertical-align: top; }
207 |
208 | /*********************************************
209 | * LINKS
210 | *********************************************/
211 | .reveal a {
212 | color: #268bd2;
213 | text-decoration: none;
214 | -webkit-transition: color .15s ease;
215 | -moz-transition: color .15s ease;
216 | transition: color .15s ease; }
217 |
218 | .reveal a:hover {
219 | color: #78b9e6;
220 | text-shadow: none;
221 | border: none; }
222 |
223 | .reveal .roll span:after {
224 | color: #fff;
225 | background: #1a6091; }
226 |
227 | /*********************************************
228 | * IMAGES
229 | *********************************************/
230 | .reveal section img {
231 | margin: 15px 0px;
232 | background: rgba(255, 255, 255, 0.12);
233 | border: 4px solid #93a1a1;
234 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235 |
236 | .reveal section img.plain {
237 | border: 0;
238 | box-shadow: none; }
239 |
240 | .reveal a img {
241 | -webkit-transition: all .15s linear;
242 | -moz-transition: all .15s linear;
243 | transition: all .15s linear; }
244 |
245 | .reveal a:hover img {
246 | background: rgba(255, 255, 255, 0.2);
247 | border-color: #268bd2;
248 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249 |
250 | /*********************************************
251 | * NAVIGATION CONTROLS
252 | *********************************************/
253 | .reveal .controls .navigate-left,
254 | .reveal .controls .navigate-left.enabled {
255 | border-right-color: #268bd2; }
256 |
257 | .reveal .controls .navigate-right,
258 | .reveal .controls .navigate-right.enabled {
259 | border-left-color: #268bd2; }
260 |
261 | .reveal .controls .navigate-up,
262 | .reveal .controls .navigate-up.enabled {
263 | border-bottom-color: #268bd2; }
264 |
265 | .reveal .controls .navigate-down,
266 | .reveal .controls .navigate-down.enabled {
267 | border-top-color: #268bd2; }
268 |
269 | .reveal .controls .navigate-left.enabled:hover {
270 | border-right-color: #78b9e6; }
271 |
272 | .reveal .controls .navigate-right.enabled:hover {
273 | border-left-color: #78b9e6; }
274 |
275 | .reveal .controls .navigate-up.enabled:hover {
276 | border-bottom-color: #78b9e6; }
277 |
278 | .reveal .controls .navigate-down.enabled:hover {
279 | border-top-color: #78b9e6; }
280 |
281 | /*********************************************
282 | * PROGRESS BAR
283 | *********************************************/
284 | .reveal .progress {
285 | background: rgba(0, 0, 0, 0.2); }
286 |
287 | .reveal .progress span {
288 | background: #268bd2;
289 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
290 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
291 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
292 |
--------------------------------------------------------------------------------
/css/theme/night.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
7 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
8 | /*********************************************
9 | * GLOBAL STYLES
10 | *********************************************/
11 | body {
12 | background: #111;
13 | background-color: #111; }
14 |
15 | .reveal {
16 | font-family: "Open Sans", sans-serif;
17 | font-size: 30px;
18 | font-weight: normal;
19 | color: #eee; }
20 |
21 | ::selection {
22 | color: #fff;
23 | background: #e7ad52;
24 | text-shadow: none; }
25 |
26 | .reveal .slides > section,
27 | .reveal .slides > section > section {
28 | line-height: 1.3;
29 | font-weight: inherit; }
30 |
31 | /*********************************************
32 | * HEADERS
33 | *********************************************/
34 | .reveal h1,
35 | .reveal h2,
36 | .reveal h3,
37 | .reveal h4,
38 | .reveal h5,
39 | .reveal h6 {
40 | margin: 0 0 20px 0;
41 | color: #eee;
42 | font-family: "Montserrat", Impact, sans-serif;
43 | font-weight: normal;
44 | line-height: 1.2;
45 | letter-spacing: -0.03em;
46 | text-transform: none;
47 | text-shadow: none;
48 | word-wrap: break-word; }
49 |
50 | .reveal h1 {
51 | font-size: 3.77em; }
52 |
53 | .reveal h2 {
54 | font-size: 2.11em; }
55 |
56 | .reveal h3 {
57 | font-size: 1.55em; }
58 |
59 | .reveal h4 {
60 | font-size: 1em; }
61 |
62 | .reveal h1 {
63 | text-shadow: none; }
64 |
65 | /*********************************************
66 | * OTHER
67 | *********************************************/
68 | .reveal p {
69 | margin: 20px 0;
70 | line-height: 1.3; }
71 |
72 | /* Ensure certain elements are never larger than the slide itself */
73 | .reveal img,
74 | .reveal video,
75 | .reveal iframe {
76 | max-width: 95%;
77 | max-height: 95%; }
78 |
79 | .reveal strong,
80 | .reveal b {
81 | font-weight: bold; }
82 |
83 | .reveal em {
84 | font-style: italic; }
85 |
86 | .reveal ol,
87 | .reveal dl,
88 | .reveal ul {
89 | display: inline-block;
90 | text-align: left;
91 | margin: 0 0 0 1em; }
92 |
93 | .reveal ol {
94 | list-style-type: decimal; }
95 |
96 | .reveal ul {
97 | list-style-type: disc; }
98 |
99 | .reveal ul ul {
100 | list-style-type: square; }
101 |
102 | .reveal ul ul ul {
103 | list-style-type: circle; }
104 |
105 | .reveal ul ul,
106 | .reveal ul ol,
107 | .reveal ol ol,
108 | .reveal ol ul {
109 | display: block;
110 | margin-left: 40px; }
111 |
112 | .reveal dt {
113 | font-weight: bold; }
114 |
115 | .reveal dd {
116 | margin-left: 40px; }
117 |
118 | .reveal q,
119 | .reveal blockquote {
120 | quotes: none; }
121 |
122 | .reveal blockquote {
123 | display: block;
124 | position: relative;
125 | width: 70%;
126 | margin: 20px auto;
127 | padding: 5px;
128 | font-style: italic;
129 | background: rgba(255, 255, 255, 0.05);
130 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
131 |
132 | .reveal blockquote p:first-child,
133 | .reveal blockquote p:last-child {
134 | display: inline-block; }
135 |
136 | .reveal q {
137 | font-style: italic; }
138 |
139 | .reveal pre {
140 | display: block;
141 | position: relative;
142 | width: 90%;
143 | margin: 20px auto;
144 | text-align: left;
145 | font-size: 0.55em;
146 | font-family: monospace;
147 | line-height: 1.2em;
148 | word-wrap: break-word;
149 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
150 |
151 | .reveal code {
152 | font-family: monospace; }
153 |
154 | .reveal pre code {
155 | display: block;
156 | padding: 5px;
157 | overflow: auto;
158 | max-height: 400px;
159 | word-wrap: normal; }
160 |
161 | .reveal table {
162 | margin: auto;
163 | border-collapse: collapse;
164 | border-spacing: 0; }
165 |
166 | .reveal table th {
167 | font-weight: bold; }
168 |
169 | .reveal table th,
170 | .reveal table td {
171 | text-align: left;
172 | padding: 0.2em 0.5em 0.2em 0.5em;
173 | border-bottom: 1px solid; }
174 |
175 | .reveal table th[align="center"],
176 | .reveal table td[align="center"] {
177 | text-align: center; }
178 |
179 | .reveal table th[align="right"],
180 | .reveal table td[align="right"] {
181 | text-align: right; }
182 |
183 | .reveal table tbody tr:last-child th,
184 | .reveal table tbody tr:last-child td {
185 | border-bottom: none; }
186 |
187 | .reveal sup {
188 | vertical-align: super; }
189 |
190 | .reveal sub {
191 | vertical-align: sub; }
192 |
193 | .reveal small {
194 | display: inline-block;
195 | font-size: 0.6em;
196 | line-height: 1.2em;
197 | vertical-align: top; }
198 |
199 | .reveal small * {
200 | vertical-align: top; }
201 |
202 | /*********************************************
203 | * LINKS
204 | *********************************************/
205 | .reveal a {
206 | color: #e7ad52;
207 | text-decoration: none;
208 | -webkit-transition: color .15s ease;
209 | -moz-transition: color .15s ease;
210 | transition: color .15s ease; }
211 |
212 | .reveal a:hover {
213 | color: #f3d7ac;
214 | text-shadow: none;
215 | border: none; }
216 |
217 | .reveal .roll span:after {
218 | color: #fff;
219 | background: #d08a1d; }
220 |
221 | /*********************************************
222 | * IMAGES
223 | *********************************************/
224 | .reveal section img {
225 | margin: 15px 0px;
226 | background: rgba(255, 255, 255, 0.12);
227 | border: 4px solid #eee;
228 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
229 |
230 | .reveal section img.plain {
231 | border: 0;
232 | box-shadow: none; }
233 |
234 | .reveal a img {
235 | -webkit-transition: all .15s linear;
236 | -moz-transition: all .15s linear;
237 | transition: all .15s linear; }
238 |
239 | .reveal a:hover img {
240 | background: rgba(255, 255, 255, 0.2);
241 | border-color: #e7ad52;
242 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
243 |
244 | /*********************************************
245 | * NAVIGATION CONTROLS
246 | *********************************************/
247 | .reveal .controls .navigate-left,
248 | .reveal .controls .navigate-left.enabled {
249 | border-right-color: #e7ad52; }
250 |
251 | .reveal .controls .navigate-right,
252 | .reveal .controls .navigate-right.enabled {
253 | border-left-color: #e7ad52; }
254 |
255 | .reveal .controls .navigate-up,
256 | .reveal .controls .navigate-up.enabled {
257 | border-bottom-color: #e7ad52; }
258 |
259 | .reveal .controls .navigate-down,
260 | .reveal .controls .navigate-down.enabled {
261 | border-top-color: #e7ad52; }
262 |
263 | .reveal .controls .navigate-left.enabled:hover {
264 | border-right-color: #f3d7ac; }
265 |
266 | .reveal .controls .navigate-right.enabled:hover {
267 | border-left-color: #f3d7ac; }
268 |
269 | .reveal .controls .navigate-up.enabled:hover {
270 | border-bottom-color: #f3d7ac; }
271 |
272 | .reveal .controls .navigate-down.enabled:hover {
273 | border-top-color: #f3d7ac; }
274 |
275 | /*********************************************
276 | * PROGRESS BAR
277 | *********************************************/
278 | .reveal .progress {
279 | background: rgba(0, 0, 0, 0.2); }
280 |
281 | .reveal .progress span {
282 | background: #e7ad52;
283 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
284 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
285 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
286 |
--------------------------------------------------------------------------------
/css/theme/serif.css:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is brown.
4 | *
5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6 | */
7 | .reveal a {
8 | line-height: 1.3em; }
9 |
10 | /*********************************************
11 | * GLOBAL STYLES
12 | *********************************************/
13 | body {
14 | background: #F0F1EB;
15 | background-color: #F0F1EB; }
16 |
17 | .reveal {
18 | font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
19 | font-size: 36px;
20 | font-weight: normal;
21 | color: #000; }
22 |
23 | ::selection {
24 | color: #fff;
25 | background: #26351C;
26 | text-shadow: none; }
27 |
28 | .reveal .slides > section,
29 | .reveal .slides > section > section {
30 | line-height: 1.3;
31 | font-weight: inherit; }
32 |
33 | /*********************************************
34 | * HEADERS
35 | *********************************************/
36 | .reveal h1,
37 | .reveal h2,
38 | .reveal h3,
39 | .reveal h4,
40 | .reveal h5,
41 | .reveal h6 {
42 | margin: 0 0 20px 0;
43 | color: #383D3D;
44 | font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
45 | font-weight: normal;
46 | line-height: 1.2;
47 | letter-spacing: normal;
48 | text-transform: none;
49 | text-shadow: none;
50 | word-wrap: break-word; }
51 |
52 | .reveal h1 {
53 | font-size: 3.77em; }
54 |
55 | .reveal h2 {
56 | font-size: 2.11em; }
57 |
58 | .reveal h3 {
59 | font-size: 1.55em; }
60 |
61 | .reveal h4 {
62 | font-size: 1em; }
63 |
64 | .reveal h1 {
65 | text-shadow: none; }
66 |
67 | /*********************************************
68 | * OTHER
69 | *********************************************/
70 | .reveal p {
71 | margin: 20px 0;
72 | line-height: 1.3; }
73 |
74 | /* Ensure certain elements are never larger than the slide itself */
75 | .reveal img,
76 | .reveal video,
77 | .reveal iframe {
78 | max-width: 95%;
79 | max-height: 95%; }
80 |
81 | .reveal strong,
82 | .reveal b {
83 | font-weight: bold; }
84 |
85 | .reveal em {
86 | font-style: italic; }
87 |
88 | .reveal ol,
89 | .reveal dl,
90 | .reveal ul {
91 | display: inline-block;
92 | text-align: left;
93 | margin: 0 0 0 1em; }
94 |
95 | .reveal ol {
96 | list-style-type: decimal; }
97 |
98 | .reveal ul {
99 | list-style-type: disc; }
100 |
101 | .reveal ul ul {
102 | list-style-type: square; }
103 |
104 | .reveal ul ul ul {
105 | list-style-type: circle; }
106 |
107 | .reveal ul ul,
108 | .reveal ul ol,
109 | .reveal ol ol,
110 | .reveal ol ul {
111 | display: block;
112 | margin-left: 40px; }
113 |
114 | .reveal dt {
115 | font-weight: bold; }
116 |
117 | .reveal dd {
118 | margin-left: 40px; }
119 |
120 | .reveal q,
121 | .reveal blockquote {
122 | quotes: none; }
123 |
124 | .reveal blockquote {
125 | display: block;
126 | position: relative;
127 | width: 70%;
128 | margin: 20px auto;
129 | padding: 5px;
130 | font-style: italic;
131 | background: rgba(255, 255, 255, 0.05);
132 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
133 |
134 | .reveal blockquote p:first-child,
135 | .reveal blockquote p:last-child {
136 | display: inline-block; }
137 |
138 | .reveal q {
139 | font-style: italic; }
140 |
141 | .reveal pre {
142 | display: block;
143 | position: relative;
144 | width: 90%;
145 | margin: 20px auto;
146 | text-align: left;
147 | font-size: 0.55em;
148 | font-family: monospace;
149 | line-height: 1.2em;
150 | word-wrap: break-word;
151 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
152 |
153 | .reveal code {
154 | font-family: monospace; }
155 |
156 | .reveal pre code {
157 | display: block;
158 | padding: 5px;
159 | overflow: auto;
160 | max-height: 400px;
161 | word-wrap: normal; }
162 |
163 | .reveal table {
164 | margin: auto;
165 | border-collapse: collapse;
166 | border-spacing: 0; }
167 |
168 | .reveal table th {
169 | font-weight: bold; }
170 |
171 | .reveal table th,
172 | .reveal table td {
173 | text-align: left;
174 | padding: 0.2em 0.5em 0.2em 0.5em;
175 | border-bottom: 1px solid; }
176 |
177 | .reveal table th[align="center"],
178 | .reveal table td[align="center"] {
179 | text-align: center; }
180 |
181 | .reveal table th[align="right"],
182 | .reveal table td[align="right"] {
183 | text-align: right; }
184 |
185 | .reveal table tbody tr:last-child th,
186 | .reveal table tbody tr:last-child td {
187 | border-bottom: none; }
188 |
189 | .reveal sup {
190 | vertical-align: super; }
191 |
192 | .reveal sub {
193 | vertical-align: sub; }
194 |
195 | .reveal small {
196 | display: inline-block;
197 | font-size: 0.6em;
198 | line-height: 1.2em;
199 | vertical-align: top; }
200 |
201 | .reveal small * {
202 | vertical-align: top; }
203 |
204 | /*********************************************
205 | * LINKS
206 | *********************************************/
207 | .reveal a {
208 | color: #51483D;
209 | text-decoration: none;
210 | -webkit-transition: color .15s ease;
211 | -moz-transition: color .15s ease;
212 | transition: color .15s ease; }
213 |
214 | .reveal a:hover {
215 | color: #8b7c69;
216 | text-shadow: none;
217 | border: none; }
218 |
219 | .reveal .roll span:after {
220 | color: #fff;
221 | background: #25211c; }
222 |
223 | /*********************************************
224 | * IMAGES
225 | *********************************************/
226 | .reveal section img {
227 | margin: 15px 0px;
228 | background: rgba(255, 255, 255, 0.12);
229 | border: 4px solid #000;
230 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
231 |
232 | .reveal section img.plain {
233 | border: 0;
234 | box-shadow: none; }
235 |
236 | .reveal a img {
237 | -webkit-transition: all .15s linear;
238 | -moz-transition: all .15s linear;
239 | transition: all .15s linear; }
240 |
241 | .reveal a:hover img {
242 | background: rgba(255, 255, 255, 0.2);
243 | border-color: #51483D;
244 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
245 |
246 | /*********************************************
247 | * NAVIGATION CONTROLS
248 | *********************************************/
249 | .reveal .controls .navigate-left,
250 | .reveal .controls .navigate-left.enabled {
251 | border-right-color: #51483D; }
252 |
253 | .reveal .controls .navigate-right,
254 | .reveal .controls .navigate-right.enabled {
255 | border-left-color: #51483D; }
256 |
257 | .reveal .controls .navigate-up,
258 | .reveal .controls .navigate-up.enabled {
259 | border-bottom-color: #51483D; }
260 |
261 | .reveal .controls .navigate-down,
262 | .reveal .controls .navigate-down.enabled {
263 | border-top-color: #51483D; }
264 |
265 | .reveal .controls .navigate-left.enabled:hover {
266 | border-right-color: #8b7c69; }
267 |
268 | .reveal .controls .navigate-right.enabled:hover {
269 | border-left-color: #8b7c69; }
270 |
271 | .reveal .controls .navigate-up.enabled:hover {
272 | border-bottom-color: #8b7c69; }
273 |
274 | .reveal .controls .navigate-down.enabled:hover {
275 | border-top-color: #8b7c69; }
276 |
277 | /*********************************************
278 | * PROGRESS BAR
279 | *********************************************/
280 | .reveal .progress {
281 | background: rgba(0, 0, 0, 0.2); }
282 |
283 | .reveal .progress span {
284 | background: #51483D;
285 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
286 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
287 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
288 |
--------------------------------------------------------------------------------
/css/theme/simple.css:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
9 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
10 | /*********************************************
11 | * GLOBAL STYLES
12 | *********************************************/
13 | body {
14 | background: #fff;
15 | background-color: #fff; }
16 |
17 | .reveal {
18 | font-family: "Lato", sans-serif;
19 | font-size: 36px;
20 | font-weight: normal;
21 | color: #000; }
22 |
23 | ::selection {
24 | color: #fff;
25 | background: rgba(0, 0, 0, 0.99);
26 | text-shadow: none; }
27 |
28 | .reveal .slides > section,
29 | .reveal .slides > section > section {
30 | line-height: 1.3;
31 | font-weight: inherit; }
32 |
33 | /*********************************************
34 | * HEADERS
35 | *********************************************/
36 | .reveal h1,
37 | .reveal h2,
38 | .reveal h3,
39 | .reveal h4,
40 | .reveal h5,
41 | .reveal h6 {
42 | margin: 0 0 20px 0;
43 | color: #000;
44 | font-family: "News Cycle", Impact, sans-serif;
45 | font-weight: normal;
46 | line-height: 1.2;
47 | letter-spacing: normal;
48 | text-transform: none;
49 | text-shadow: none;
50 | word-wrap: break-word; }
51 |
52 | .reveal h1 {
53 | font-size: 3.77em; }
54 |
55 | .reveal h2 {
56 | font-size: 2.11em; }
57 |
58 | .reveal h3 {
59 | font-size: 1.55em; }
60 |
61 | .reveal h4 {
62 | font-size: 1em; }
63 |
64 | .reveal h1 {
65 | text-shadow: none; }
66 |
67 | /*********************************************
68 | * OTHER
69 | *********************************************/
70 | .reveal p {
71 | margin: 20px 0;
72 | line-height: 1.3; }
73 |
74 | /* Ensure certain elements are never larger than the slide itself */
75 | .reveal img,
76 | .reveal video,
77 | .reveal iframe {
78 | max-width: 95%;
79 | max-height: 95%; }
80 |
81 | .reveal strong,
82 | .reveal b {
83 | font-weight: bold; }
84 |
85 | .reveal em {
86 | font-style: italic; }
87 |
88 | .reveal ol,
89 | .reveal dl,
90 | .reveal ul {
91 | display: inline-block;
92 | text-align: left;
93 | margin: 0 0 0 1em; }
94 |
95 | .reveal ol {
96 | list-style-type: decimal; }
97 |
98 | .reveal ul {
99 | list-style-type: disc; }
100 |
101 | .reveal ul ul {
102 | list-style-type: square; }
103 |
104 | .reveal ul ul ul {
105 | list-style-type: circle; }
106 |
107 | .reveal ul ul,
108 | .reveal ul ol,
109 | .reveal ol ol,
110 | .reveal ol ul {
111 | display: block;
112 | margin-left: 40px; }
113 |
114 | .reveal dt {
115 | font-weight: bold; }
116 |
117 | .reveal dd {
118 | margin-left: 40px; }
119 |
120 | .reveal q,
121 | .reveal blockquote {
122 | quotes: none; }
123 |
124 | .reveal blockquote {
125 | display: block;
126 | position: relative;
127 | width: 70%;
128 | margin: 20px auto;
129 | padding: 5px;
130 | font-style: italic;
131 | background: rgba(255, 255, 255, 0.05);
132 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
133 |
134 | .reveal blockquote p:first-child,
135 | .reveal blockquote p:last-child {
136 | display: inline-block; }
137 |
138 | .reveal q {
139 | font-style: italic; }
140 |
141 | .reveal pre {
142 | display: block;
143 | position: relative;
144 | width: 90%;
145 | margin: 20px auto;
146 | text-align: left;
147 | font-size: 0.55em;
148 | font-family: monospace;
149 | line-height: 1.2em;
150 | word-wrap: break-word;
151 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
152 |
153 | .reveal code {
154 | font-family: monospace; }
155 |
156 | .reveal pre code {
157 | display: block;
158 | padding: 5px;
159 | overflow: auto;
160 | max-height: 400px;
161 | word-wrap: normal; }
162 |
163 | .reveal table {
164 | margin: auto;
165 | border-collapse: collapse;
166 | border-spacing: 0; }
167 |
168 | .reveal table th {
169 | font-weight: bold; }
170 |
171 | .reveal table th,
172 | .reveal table td {
173 | text-align: left;
174 | padding: 0.2em 0.5em 0.2em 0.5em;
175 | border-bottom: 1px solid; }
176 |
177 | .reveal table th[align="center"],
178 | .reveal table td[align="center"] {
179 | text-align: center; }
180 |
181 | .reveal table th[align="right"],
182 | .reveal table td[align="right"] {
183 | text-align: right; }
184 |
185 | .reveal table tbody tr:last-child th,
186 | .reveal table tbody tr:last-child td {
187 | border-bottom: none; }
188 |
189 | .reveal sup {
190 | vertical-align: super; }
191 |
192 | .reveal sub {
193 | vertical-align: sub; }
194 |
195 | .reveal small {
196 | display: inline-block;
197 | font-size: 0.6em;
198 | line-height: 1.2em;
199 | vertical-align: top; }
200 |
201 | .reveal small * {
202 | vertical-align: top; }
203 |
204 | /*********************************************
205 | * LINKS
206 | *********************************************/
207 | .reveal a {
208 | color: #00008B;
209 | text-decoration: none;
210 | -webkit-transition: color .15s ease;
211 | -moz-transition: color .15s ease;
212 | transition: color .15s ease; }
213 |
214 | .reveal a:hover {
215 | color: #0000f1;
216 | text-shadow: none;
217 | border: none; }
218 |
219 | .reveal .roll span:after {
220 | color: #fff;
221 | background: #00003f; }
222 |
223 | /*********************************************
224 | * IMAGES
225 | *********************************************/
226 | .reveal section img {
227 | margin: 15px 0px;
228 | background: rgba(255, 255, 255, 0.12);
229 | border: 4px solid #000;
230 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
231 |
232 | .reveal section img.plain {
233 | border: 0;
234 | box-shadow: none; }
235 |
236 | .reveal a img {
237 | -webkit-transition: all .15s linear;
238 | -moz-transition: all .15s linear;
239 | transition: all .15s linear; }
240 |
241 | .reveal a:hover img {
242 | background: rgba(255, 255, 255, 0.2);
243 | border-color: #00008B;
244 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
245 |
246 | /*********************************************
247 | * NAVIGATION CONTROLS
248 | *********************************************/
249 | .reveal .controls .navigate-left,
250 | .reveal .controls .navigate-left.enabled {
251 | border-right-color: #00008B; }
252 |
253 | .reveal .controls .navigate-right,
254 | .reveal .controls .navigate-right.enabled {
255 | border-left-color: #00008B; }
256 |
257 | .reveal .controls .navigate-up,
258 | .reveal .controls .navigate-up.enabled {
259 | border-bottom-color: #00008B; }
260 |
261 | .reveal .controls .navigate-down,
262 | .reveal .controls .navigate-down.enabled {
263 | border-top-color: #00008B; }
264 |
265 | .reveal .controls .navigate-left.enabled:hover {
266 | border-right-color: #0000f1; }
267 |
268 | .reveal .controls .navigate-right.enabled:hover {
269 | border-left-color: #0000f1; }
270 |
271 | .reveal .controls .navigate-up.enabled:hover {
272 | border-bottom-color: #0000f1; }
273 |
274 | .reveal .controls .navigate-down.enabled:hover {
275 | border-top-color: #0000f1; }
276 |
277 | /*********************************************
278 | * PROGRESS BAR
279 | *********************************************/
280 | .reveal .progress {
281 | background: rgba(0, 0, 0, 0.2); }
282 |
283 | .reveal .progress span {
284 | background: #00008B;
285 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
286 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
287 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
288 |
--------------------------------------------------------------------------------
/css/theme/sky.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
7 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
8 | .reveal a {
9 | line-height: 1.3em; }
10 |
11 | /*********************************************
12 | * GLOBAL STYLES
13 | *********************************************/
14 | body {
15 | background: #add9e4;
16 | background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
17 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4));
18 | background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
19 | background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
20 | background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
21 | background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
22 | background-color: #f7fbfc; }
23 |
24 | .reveal {
25 | font-family: "Open Sans", sans-serif;
26 | font-size: 36px;
27 | font-weight: normal;
28 | color: #333; }
29 |
30 | ::selection {
31 | color: #fff;
32 | background: #134674;
33 | text-shadow: none; }
34 |
35 | .reveal .slides > section,
36 | .reveal .slides > section > section {
37 | line-height: 1.3;
38 | font-weight: inherit; }
39 |
40 | /*********************************************
41 | * HEADERS
42 | *********************************************/
43 | .reveal h1,
44 | .reveal h2,
45 | .reveal h3,
46 | .reveal h4,
47 | .reveal h5,
48 | .reveal h6 {
49 | margin: 0 0 20px 0;
50 | color: #333;
51 | font-family: "Quicksand", sans-serif;
52 | font-weight: normal;
53 | line-height: 1.2;
54 | letter-spacing: -0.08em;
55 | text-transform: uppercase;
56 | text-shadow: none;
57 | word-wrap: break-word; }
58 |
59 | .reveal h1 {
60 | font-size: 3.77em; }
61 |
62 | .reveal h2 {
63 | font-size: 2.11em; }
64 |
65 | .reveal h3 {
66 | font-size: 1.55em; }
67 |
68 | .reveal h4 {
69 | font-size: 1em; }
70 |
71 | .reveal h1 {
72 | text-shadow: none; }
73 |
74 | /*********************************************
75 | * OTHER
76 | *********************************************/
77 | .reveal p {
78 | margin: 20px 0;
79 | line-height: 1.3; }
80 |
81 | /* Ensure certain elements are never larger than the slide itself */
82 | .reveal img,
83 | .reveal video,
84 | .reveal iframe {
85 | max-width: 95%;
86 | max-height: 95%; }
87 |
88 | .reveal strong,
89 | .reveal b {
90 | font-weight: bold; }
91 |
92 | .reveal em {
93 | font-style: italic; }
94 |
95 | .reveal ol,
96 | .reveal dl,
97 | .reveal ul {
98 | display: inline-block;
99 | text-align: left;
100 | margin: 0 0 0 1em; }
101 |
102 | .reveal ol {
103 | list-style-type: decimal; }
104 |
105 | .reveal ul {
106 | list-style-type: disc; }
107 |
108 | .reveal ul ul {
109 | list-style-type: square; }
110 |
111 | .reveal ul ul ul {
112 | list-style-type: circle; }
113 |
114 | .reveal ul ul,
115 | .reveal ul ol,
116 | .reveal ol ol,
117 | .reveal ol ul {
118 | display: block;
119 | margin-left: 40px; }
120 |
121 | .reveal dt {
122 | font-weight: bold; }
123 |
124 | .reveal dd {
125 | margin-left: 40px; }
126 |
127 | .reveal q,
128 | .reveal blockquote {
129 | quotes: none; }
130 |
131 | .reveal blockquote {
132 | display: block;
133 | position: relative;
134 | width: 70%;
135 | margin: 20px auto;
136 | padding: 5px;
137 | font-style: italic;
138 | background: rgba(255, 255, 255, 0.05);
139 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
140 |
141 | .reveal blockquote p:first-child,
142 | .reveal blockquote p:last-child {
143 | display: inline-block; }
144 |
145 | .reveal q {
146 | font-style: italic; }
147 |
148 | .reveal pre {
149 | display: block;
150 | position: relative;
151 | width: 90%;
152 | margin: 20px auto;
153 | text-align: left;
154 | font-size: 0.55em;
155 | font-family: monospace;
156 | line-height: 1.2em;
157 | word-wrap: break-word;
158 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
159 |
160 | .reveal code {
161 | font-family: monospace; }
162 |
163 | .reveal pre code {
164 | display: block;
165 | padding: 5px;
166 | overflow: auto;
167 | max-height: 400px;
168 | word-wrap: normal; }
169 |
170 | .reveal table {
171 | margin: auto;
172 | border-collapse: collapse;
173 | border-spacing: 0; }
174 |
175 | .reveal table th {
176 | font-weight: bold; }
177 |
178 | .reveal table th,
179 | .reveal table td {
180 | text-align: left;
181 | padding: 0.2em 0.5em 0.2em 0.5em;
182 | border-bottom: 1px solid; }
183 |
184 | .reveal table th[align="center"],
185 | .reveal table td[align="center"] {
186 | text-align: center; }
187 |
188 | .reveal table th[align="right"],
189 | .reveal table td[align="right"] {
190 | text-align: right; }
191 |
192 | .reveal table tbody tr:last-child th,
193 | .reveal table tbody tr:last-child td {
194 | border-bottom: none; }
195 |
196 | .reveal sup {
197 | vertical-align: super; }
198 |
199 | .reveal sub {
200 | vertical-align: sub; }
201 |
202 | .reveal small {
203 | display: inline-block;
204 | font-size: 0.6em;
205 | line-height: 1.2em;
206 | vertical-align: top; }
207 |
208 | .reveal small * {
209 | vertical-align: top; }
210 |
211 | /*********************************************
212 | * LINKS
213 | *********************************************/
214 | .reveal a {
215 | color: #3b759e;
216 | text-decoration: none;
217 | -webkit-transition: color .15s ease;
218 | -moz-transition: color .15s ease;
219 | transition: color .15s ease; }
220 |
221 | .reveal a:hover {
222 | color: #74a7cb;
223 | text-shadow: none;
224 | border: none; }
225 |
226 | .reveal .roll span:after {
227 | color: #fff;
228 | background: #264c66; }
229 |
230 | /*********************************************
231 | * IMAGES
232 | *********************************************/
233 | .reveal section img {
234 | margin: 15px 0px;
235 | background: rgba(255, 255, 255, 0.12);
236 | border: 4px solid #333;
237 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
238 |
239 | .reveal section img.plain {
240 | border: 0;
241 | box-shadow: none; }
242 |
243 | .reveal a img {
244 | -webkit-transition: all .15s linear;
245 | -moz-transition: all .15s linear;
246 | transition: all .15s linear; }
247 |
248 | .reveal a:hover img {
249 | background: rgba(255, 255, 255, 0.2);
250 | border-color: #3b759e;
251 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
252 |
253 | /*********************************************
254 | * NAVIGATION CONTROLS
255 | *********************************************/
256 | .reveal .controls .navigate-left,
257 | .reveal .controls .navigate-left.enabled {
258 | border-right-color: #3b759e; }
259 |
260 | .reveal .controls .navigate-right,
261 | .reveal .controls .navigate-right.enabled {
262 | border-left-color: #3b759e; }
263 |
264 | .reveal .controls .navigate-up,
265 | .reveal .controls .navigate-up.enabled {
266 | border-bottom-color: #3b759e; }
267 |
268 | .reveal .controls .navigate-down,
269 | .reveal .controls .navigate-down.enabled {
270 | border-top-color: #3b759e; }
271 |
272 | .reveal .controls .navigate-left.enabled:hover {
273 | border-right-color: #74a7cb; }
274 |
275 | .reveal .controls .navigate-right.enabled:hover {
276 | border-left-color: #74a7cb; }
277 |
278 | .reveal .controls .navigate-up.enabled:hover {
279 | border-bottom-color: #74a7cb; }
280 |
281 | .reveal .controls .navigate-down.enabled:hover {
282 | border-top-color: #74a7cb; }
283 |
284 | /*********************************************
285 | * PROGRESS BAR
286 | *********************************************/
287 | .reveal .progress {
288 | background: rgba(0, 0, 0, 0.2); }
289 |
290 | .reveal .progress span {
291 | background: #3b759e;
292 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
293 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
294 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
295 |
--------------------------------------------------------------------------------
/css/theme/solarized.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 | @import url(../../lib/font/league-gothic/league-gothic.css);
6 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
7 | /**
8 | * Solarized colors by Ethan Schoonover
9 | */
10 | html * {
11 | color-profile: sRGB;
12 | rendering-intent: auto; }
13 |
14 | /*********************************************
15 | * GLOBAL STYLES
16 | *********************************************/
17 | body {
18 | background: #fdf6e3;
19 | background-color: #fdf6e3; }
20 |
21 | .reveal {
22 | font-family: "Lato", sans-serif;
23 | font-size: 36px;
24 | font-weight: normal;
25 | color: #657b83; }
26 |
27 | ::selection {
28 | color: #fff;
29 | background: #d33682;
30 | text-shadow: none; }
31 |
32 | .reveal .slides > section,
33 | .reveal .slides > section > section {
34 | line-height: 1.3;
35 | font-weight: inherit; }
36 |
37 | /*********************************************
38 | * HEADERS
39 | *********************************************/
40 | .reveal h1,
41 | .reveal h2,
42 | .reveal h3,
43 | .reveal h4,
44 | .reveal h5,
45 | .reveal h6 {
46 | margin: 0 0 20px 0;
47 | color: #586e75;
48 | font-family: "League Gothic", Impact, sans-serif;
49 | font-weight: normal;
50 | line-height: 1.2;
51 | letter-spacing: normal;
52 | text-transform: uppercase;
53 | text-shadow: none;
54 | word-wrap: break-word; }
55 |
56 | .reveal h1 {
57 | font-size: 3.77em; }
58 |
59 | .reveal h2 {
60 | font-size: 2.11em; }
61 |
62 | .reveal h3 {
63 | font-size: 1.55em; }
64 |
65 | .reveal h4 {
66 | font-size: 1em; }
67 |
68 | .reveal h1 {
69 | text-shadow: none; }
70 |
71 | /*********************************************
72 | * OTHER
73 | *********************************************/
74 | .reveal p {
75 | margin: 20px 0;
76 | line-height: 1.3; }
77 |
78 | /* Ensure certain elements are never larger than the slide itself */
79 | .reveal img,
80 | .reveal video,
81 | .reveal iframe {
82 | max-width: 95%;
83 | max-height: 95%; }
84 |
85 | .reveal strong,
86 | .reveal b {
87 | font-weight: bold; }
88 |
89 | .reveal em {
90 | font-style: italic; }
91 |
92 | .reveal ol,
93 | .reveal dl,
94 | .reveal ul {
95 | display: inline-block;
96 | text-align: left;
97 | margin: 0 0 0 1em; }
98 |
99 | .reveal ol {
100 | list-style-type: decimal; }
101 |
102 | .reveal ul {
103 | list-style-type: disc; }
104 |
105 | .reveal ul ul {
106 | list-style-type: square; }
107 |
108 | .reveal ul ul ul {
109 | list-style-type: circle; }
110 |
111 | .reveal ul ul,
112 | .reveal ul ol,
113 | .reveal ol ol,
114 | .reveal ol ul {
115 | display: block;
116 | margin-left: 40px; }
117 |
118 | .reveal dt {
119 | font-weight: bold; }
120 |
121 | .reveal dd {
122 | margin-left: 40px; }
123 |
124 | .reveal q,
125 | .reveal blockquote {
126 | quotes: none; }
127 |
128 | .reveal blockquote {
129 | display: block;
130 | position: relative;
131 | width: 70%;
132 | margin: 20px auto;
133 | padding: 5px;
134 | font-style: italic;
135 | background: rgba(255, 255, 255, 0.05);
136 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
137 |
138 | .reveal blockquote p:first-child,
139 | .reveal blockquote p:last-child {
140 | display: inline-block; }
141 |
142 | .reveal q {
143 | font-style: italic; }
144 |
145 | .reveal pre {
146 | display: block;
147 | position: relative;
148 | width: 90%;
149 | margin: 20px auto;
150 | text-align: left;
151 | font-size: 0.55em;
152 | font-family: monospace;
153 | line-height: 1.2em;
154 | word-wrap: break-word;
155 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
156 |
157 | .reveal code {
158 | font-family: monospace; }
159 |
160 | .reveal pre code {
161 | display: block;
162 | padding: 5px;
163 | overflow: auto;
164 | max-height: 400px;
165 | word-wrap: normal; }
166 |
167 | .reveal table {
168 | margin: auto;
169 | border-collapse: collapse;
170 | border-spacing: 0; }
171 |
172 | .reveal table th {
173 | font-weight: bold; }
174 |
175 | .reveal table th,
176 | .reveal table td {
177 | text-align: left;
178 | padding: 0.2em 0.5em 0.2em 0.5em;
179 | border-bottom: 1px solid; }
180 |
181 | .reveal table th[align="center"],
182 | .reveal table td[align="center"] {
183 | text-align: center; }
184 |
185 | .reveal table th[align="right"],
186 | .reveal table td[align="right"] {
187 | text-align: right; }
188 |
189 | .reveal table tbody tr:last-child th,
190 | .reveal table tbody tr:last-child td {
191 | border-bottom: none; }
192 |
193 | .reveal sup {
194 | vertical-align: super; }
195 |
196 | .reveal sub {
197 | vertical-align: sub; }
198 |
199 | .reveal small {
200 | display: inline-block;
201 | font-size: 0.6em;
202 | line-height: 1.2em;
203 | vertical-align: top; }
204 |
205 | .reveal small * {
206 | vertical-align: top; }
207 |
208 | /*********************************************
209 | * LINKS
210 | *********************************************/
211 | .reveal a {
212 | color: #268bd2;
213 | text-decoration: none;
214 | -webkit-transition: color .15s ease;
215 | -moz-transition: color .15s ease;
216 | transition: color .15s ease; }
217 |
218 | .reveal a:hover {
219 | color: #78b9e6;
220 | text-shadow: none;
221 | border: none; }
222 |
223 | .reveal .roll span:after {
224 | color: #fff;
225 | background: #1a6091; }
226 |
227 | /*********************************************
228 | * IMAGES
229 | *********************************************/
230 | .reveal section img {
231 | margin: 15px 0px;
232 | background: rgba(255, 255, 255, 0.12);
233 | border: 4px solid #657b83;
234 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235 |
236 | .reveal section img.plain {
237 | border: 0;
238 | box-shadow: none; }
239 |
240 | .reveal a img {
241 | -webkit-transition: all .15s linear;
242 | -moz-transition: all .15s linear;
243 | transition: all .15s linear; }
244 |
245 | .reveal a:hover img {
246 | background: rgba(255, 255, 255, 0.2);
247 | border-color: #268bd2;
248 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249 |
250 | /*********************************************
251 | * NAVIGATION CONTROLS
252 | *********************************************/
253 | .reveal .controls .navigate-left,
254 | .reveal .controls .navigate-left.enabled {
255 | border-right-color: #268bd2; }
256 |
257 | .reveal .controls .navigate-right,
258 | .reveal .controls .navigate-right.enabled {
259 | border-left-color: #268bd2; }
260 |
261 | .reveal .controls .navigate-up,
262 | .reveal .controls .navigate-up.enabled {
263 | border-bottom-color: #268bd2; }
264 |
265 | .reveal .controls .navigate-down,
266 | .reveal .controls .navigate-down.enabled {
267 | border-top-color: #268bd2; }
268 |
269 | .reveal .controls .navigate-left.enabled:hover {
270 | border-right-color: #78b9e6; }
271 |
272 | .reveal .controls .navigate-right.enabled:hover {
273 | border-left-color: #78b9e6; }
274 |
275 | .reveal .controls .navigate-up.enabled:hover {
276 | border-bottom-color: #78b9e6; }
277 |
278 | .reveal .controls .navigate-down.enabled:hover {
279 | border-top-color: #78b9e6; }
280 |
281 | /*********************************************
282 | * PROGRESS BAR
283 | *********************************************/
284 | .reveal .progress {
285 | background: rgba(0, 0, 0, 0.2); }
286 |
287 | .reveal .progress span {
288 | background: #268bd2;
289 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
290 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
291 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
292 |
--------------------------------------------------------------------------------
/css/theme/source/beige.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Beige theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(../../lib/font/league-gothic/league-gothic.css);
17 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainColor: #333;
22 | $headingColor: #333;
23 | $headingTextShadow: none;
24 | $backgroundColor: #f7f3de;
25 | $linkColor: #8b743d;
26 | $linkColorHover: lighten( $linkColor, 20% );
27 | $selectionBackgroundColor: rgba(79, 64, 28, 0.99);
28 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
29 |
30 | // Background generator
31 | @mixin bodyBackground() {
32 | @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
33 | }
34 |
35 |
36 |
37 | // Theme template ------------------------------
38 | @import "../template/theme";
39 | // ---------------------------------------------
--------------------------------------------------------------------------------
/css/theme/source/black.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js. This is the opposite of the 'white' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #222;
20 |
21 | $mainColor: #fff;
22 | $headingColor: #fff;
23 |
24 | $mainFontSize: 38px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #42affa;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | section.has-light-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: #222;
43 | }
44 | }
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
--------------------------------------------------------------------------------
/css/theme/source/blood.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Blood theme for reveal.js
3 | * Author: Walther http://github.com/Walther
4 | *
5 | * Designed to be used with highlight.js theme
6 | * "monokai_sublime.css" available from
7 | * https://github.com/isagalaev/highlight.js/
8 | *
9 | * For other themes, change $codeBackground accordingly.
10 | *
11 | */
12 |
13 | // Default mixins and settings -----------------
14 | @import "../template/mixins";
15 | @import "../template/settings";
16 | // ---------------------------------------------
17 |
18 | // Include theme-specific fonts
19 |
20 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21 |
22 | // Colors used in the theme
23 | $blood: #a23;
24 | $coal: #222;
25 | $codeBackground: #23241f;
26 |
27 | $backgroundColor: $coal;
28 |
29 | // Main text
30 | $mainFont: Ubuntu, 'sans-serif';
31 | $mainFontSize: 36px;
32 | $mainColor: #eee;
33 |
34 | // Headings
35 | $headingFont: Ubuntu, 'sans-serif';
36 | $headingTextShadow: 2px 2px 2px $coal;
37 |
38 | // h1 shadow, borrowed humbly from
39 | // (c) Default theme by Hakim El Hattab
40 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
41 |
42 | // Links
43 | $linkColor: $blood;
44 | $linkColorHover: lighten( $linkColor, 20% );
45 |
46 | // Text selection
47 | $selectionBackgroundColor: $blood;
48 | $selectionColor: #fff;
49 |
50 |
51 | // Theme template ------------------------------
52 | @import "../template/theme";
53 | // ---------------------------------------------
54 |
55 | // some overrides after theme template import
56 |
57 | .reveal p {
58 | font-weight: 300;
59 | text-shadow: 1px 1px $coal;
60 | }
61 |
62 | .reveal h1,
63 | .reveal h2,
64 | .reveal h3,
65 | .reveal h4,
66 | .reveal h5,
67 | .reveal h6 {
68 | font-weight: 700;
69 | }
70 |
71 | .reveal p code {
72 | background-color: $codeBackground;
73 | display: inline-block;
74 | border-radius: 7px;
75 | }
76 |
77 | .reveal small code {
78 | vertical-align: baseline;
79 | }
--------------------------------------------------------------------------------
/css/theme/source/league.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * League theme for reveal.js.
3 | *
4 | * This was the default theme pre-3.0.0.
5 | *
6 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(../../lib/font/league-gothic/league-gothic.css);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 | // Override theme settings (see ../template/settings.scss)
22 | $headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
23 | $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
24 |
25 | // Background generator
26 | @mixin bodyBackground() {
27 | @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
28 | }
29 |
30 |
31 |
32 | // Theme template ------------------------------
33 | @import "../template/theme";
34 | // ---------------------------------------------
--------------------------------------------------------------------------------
/css/theme/source/moon.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Dark theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 | /**
19 | * Solarized colors by Ethan Schoonover
20 | */
21 | html * {
22 | color-profile: sRGB;
23 | rendering-intent: auto;
24 | }
25 |
26 | // Solarized colors
27 | $base03: #002b36;
28 | $base02: #073642;
29 | $base01: #586e75;
30 | $base00: #657b83;
31 | $base0: #839496;
32 | $base1: #93a1a1;
33 | $base2: #eee8d5;
34 | $base3: #fdf6e3;
35 | $yellow: #b58900;
36 | $orange: #cb4b16;
37 | $red: #dc322f;
38 | $magenta: #d33682;
39 | $violet: #6c71c4;
40 | $blue: #268bd2;
41 | $cyan: #2aa198;
42 | $green: #859900;
43 |
44 | // Override theme settings (see ../template/settings.scss)
45 | $mainColor: $base1;
46 | $headingColor: $base2;
47 | $headingTextShadow: none;
48 | $backgroundColor: $base03;
49 | $linkColor: $blue;
50 | $linkColorHover: lighten( $linkColor, 20% );
51 | $selectionBackgroundColor: $magenta;
52 |
53 |
54 |
55 | // Theme template ------------------------------
56 | @import "../template/theme";
57 | // ---------------------------------------------
58 |
--------------------------------------------------------------------------------
/css/theme/source/night.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Black theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17 |
18 |
19 | // Override theme settings (see ../template/settings.scss)
20 | $backgroundColor: #111;
21 |
22 | $mainFont: 'Open Sans', sans-serif;
23 | $linkColor: #e7ad52;
24 | $linkColorHover: lighten( $linkColor, 20% );
25 | $headingFont: 'Montserrat', Impact, sans-serif;
26 | $headingTextShadow: none;
27 | $headingLetterSpacing: -0.03em;
28 | $headingTextTransform: none;
29 | $selectionBackgroundColor: #e7ad52;
30 | $mainFontSize: 30px;
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
--------------------------------------------------------------------------------
/css/theme/source/serif.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is brown.
4 | *
5 | * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6 | */
7 |
8 |
9 | // Default mixins and settings -----------------
10 | @import "../template/mixins";
11 | @import "../template/settings";
12 | // ---------------------------------------------
13 |
14 |
15 |
16 | // Override theme settings (see ../template/settings.scss)
17 | $mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
18 | $mainColor: #000;
19 | $headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
20 | $headingColor: #383D3D;
21 | $headingTextShadow: none;
22 | $headingTextTransform: none;
23 | $backgroundColor: #F0F1EB;
24 | $linkColor: #51483D;
25 | $linkColorHover: lighten( $linkColor, 20% );
26 | $selectionBackgroundColor: #26351C;
27 |
28 | .reveal a {
29 | line-height: 1.3em;
30 | }
31 |
32 |
33 | // Theme template ------------------------------
34 | @import "../template/theme";
35 | // ---------------------------------------------
36 |
--------------------------------------------------------------------------------
/css/theme/source/simple.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * A simple theme for reveal.js presentations, similar
3 | * to the default theme. The accent color is darkblue.
4 | *
5 | * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6 | * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7 | */
8 |
9 |
10 | // Default mixins and settings -----------------
11 | @import "../template/mixins";
12 | @import "../template/settings";
13 | // ---------------------------------------------
14 |
15 |
16 |
17 | // Include theme-specific fonts
18 | @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20 |
21 |
22 | // Override theme settings (see ../template/settings.scss)
23 | $mainFont: 'Lato', sans-serif;
24 | $mainColor: #000;
25 | $headingFont: 'News Cycle', Impact, sans-serif;
26 | $headingColor: #000;
27 | $headingTextShadow: none;
28 | $headingTextTransform: none;
29 | $backgroundColor: #fff;
30 | $linkColor: #00008B;
31 | $linkColorHover: lighten( $linkColor, 20% );
32 | $selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33 |
34 |
35 |
36 | // Theme template ------------------------------
37 | @import "../template/theme";
38 | // ---------------------------------------------
--------------------------------------------------------------------------------
/css/theme/source/sky.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Sky theme for reveal.js.
3 | *
4 | * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 |
15 | // Include theme-specific fonts
16 | @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18 |
19 |
20 | // Override theme settings (see ../template/settings.scss)
21 | $mainFont: 'Open Sans', sans-serif;
22 | $mainColor: #333;
23 | $headingFont: 'Quicksand', sans-serif;
24 | $headingColor: #333;
25 | $headingLetterSpacing: -0.08em;
26 | $headingTextShadow: none;
27 | $backgroundColor: #f7fbfc;
28 | $linkColor: #3b759e;
29 | $linkColorHover: lighten( $linkColor, 20% );
30 | $selectionBackgroundColor: #134674;
31 |
32 | // Fix links so they are not cut off
33 | .reveal a {
34 | line-height: 1.3em;
35 | }
36 |
37 | // Background generator
38 | @mixin bodyBackground() {
39 | @include radial-gradient( #add9e4, #f7fbfc );
40 | }
41 |
42 |
43 |
44 | // Theme template ------------------------------
45 | @import "../template/theme";
46 | // ---------------------------------------------
47 |
--------------------------------------------------------------------------------
/css/theme/source/solarized.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * Solarized Light theme for reveal.js.
3 | * Author: Achim Staebler
4 | */
5 |
6 |
7 | // Default mixins and settings -----------------
8 | @import "../template/mixins";
9 | @import "../template/settings";
10 | // ---------------------------------------------
11 |
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/league-gothic/league-gothic.css);
16 | @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17 |
18 |
19 | /**
20 | * Solarized colors by Ethan Schoonover
21 | */
22 | html * {
23 | color-profile: sRGB;
24 | rendering-intent: auto;
25 | }
26 |
27 | // Solarized colors
28 | $base03: #002b36;
29 | $base02: #073642;
30 | $base01: #586e75;
31 | $base00: #657b83;
32 | $base0: #839496;
33 | $base1: #93a1a1;
34 | $base2: #eee8d5;
35 | $base3: #fdf6e3;
36 | $yellow: #b58900;
37 | $orange: #cb4b16;
38 | $red: #dc322f;
39 | $magenta: #d33682;
40 | $violet: #6c71c4;
41 | $blue: #268bd2;
42 | $cyan: #2aa198;
43 | $green: #859900;
44 |
45 | // Override theme settings (see ../template/settings.scss)
46 | $mainColor: $base00;
47 | $headingColor: $base01;
48 | $headingTextShadow: none;
49 | $backgroundColor: $base3;
50 | $linkColor: $blue;
51 | $linkColorHover: lighten( $linkColor, 20% );
52 | $selectionBackgroundColor: $magenta;
53 |
54 | // Background generator
55 | // @mixin bodyBackground() {
56 | // @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
57 | // }
58 |
59 |
60 |
61 | // Theme template ------------------------------
62 | @import "../template/theme";
63 | // ---------------------------------------------
64 |
--------------------------------------------------------------------------------
/css/theme/source/white.scss:
--------------------------------------------------------------------------------
1 | /**
2 | * White theme for reveal.js. This is the opposite of the 'black' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 |
7 |
8 | // Default mixins and settings -----------------
9 | @import "../template/mixins";
10 | @import "../template/settings";
11 | // ---------------------------------------------
12 |
13 |
14 | // Include theme-specific fonts
15 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16 |
17 |
18 | // Override theme settings (see ../template/settings.scss)
19 | $backgroundColor: #fff;
20 |
21 | $mainColor: #222;
22 | $headingColor: #222;
23 |
24 | $mainFontSize: 38px;
25 | $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26 | $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27 | $headingTextShadow: none;
28 | $headingLetterSpacing: normal;
29 | $headingTextTransform: uppercase;
30 | $headingFontWeight: 600;
31 | $linkColor: #2a76dd;
32 | $linkColorHover: lighten( $linkColor, 15% );
33 | $selectionBackgroundColor: lighten( $linkColor, 25% );
34 |
35 | $heading1Size: 2.5em;
36 | $heading2Size: 1.6em;
37 | $heading3Size: 1.3em;
38 | $heading4Size: 1.0em;
39 |
40 | section.has-dark-background {
41 | &, h1, h2, h3, h4, h5, h6 {
42 | color: #fff;
43 | }
44 | }
45 |
46 |
47 | // Theme template ------------------------------
48 | @import "../template/theme";
49 | // ---------------------------------------------
--------------------------------------------------------------------------------
/css/theme/template/mixins.scss:
--------------------------------------------------------------------------------
1 | @mixin vertical-gradient( $top, $bottom ) {
2 | background: $top;
3 | background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4 | background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5 | background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6 | background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7 | background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8 | background: linear-gradient( top, $top 0%, $bottom 100% );
9 | }
10 |
11 | @mixin horizontal-gradient( $top, $bottom ) {
12 | background: $top;
13 | background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14 | background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15 | background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16 | background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17 | background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18 | background: linear-gradient( left, $top 0%, $bottom 100% );
19 | }
20 |
21 | @mixin radial-gradient( $outer, $inner, $type: circle ) {
22 | background: $outer;
23 | background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24 | background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25 | background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26 | background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27 | background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28 | background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29 | }
--------------------------------------------------------------------------------
/css/theme/template/settings.scss:
--------------------------------------------------------------------------------
1 | // Base settings for all themes that can optionally be
2 | // overridden by the super-theme
3 |
4 | // Background of the presentation
5 | $backgroundColor: #2b2b2b;
6 |
7 | // Primary/body text
8 | $mainFont: 'Lato', sans-serif;
9 | $mainFontSize: 36px;
10 | $mainColor: #eee;
11 |
12 | // Vertical spacing between blocks of text
13 | $blockMargin: 20px;
14 |
15 | // Headings
16 | $headingMargin: 0 0 $blockMargin 0;
17 | $headingFont: 'League Gothic', Impact, sans-serif;
18 | $headingColor: #eee;
19 | $headingLineHeight: 1.2;
20 | $headingLetterSpacing: normal;
21 | $headingTextTransform: uppercase;
22 | $headingTextShadow: none;
23 | $headingFontWeight: normal;
24 | $heading1TextShadow: $headingTextShadow;
25 |
26 | $heading1Size: 3.77em;
27 | $heading2Size: 2.11em;
28 | $heading3Size: 1.55em;
29 | $heading4Size: 1.00em;
30 |
31 | // Links and actions
32 | $linkColor: #13DAEC;
33 | $linkColorHover: lighten( $linkColor, 20% );
34 |
35 | // Text selection
36 | $selectionBackgroundColor: #FF5E99;
37 | $selectionColor: #fff;
38 |
39 | // Generates the presentation background, can be overridden
40 | // to return a background image or gradient
41 | @mixin bodyBackground() {
42 | background: $backgroundColor;
43 | }
--------------------------------------------------------------------------------
/css/theme/template/theme.scss:
--------------------------------------------------------------------------------
1 | // Base theme template for reveal.js
2 |
3 | /*********************************************
4 | * GLOBAL STYLES
5 | *********************************************/
6 |
7 | body {
8 | @include bodyBackground();
9 | background-color: $backgroundColor;
10 | }
11 |
12 | .reveal {
13 | font-family: $mainFont;
14 | font-size: $mainFontSize;
15 | font-weight: normal;
16 | color: $mainColor;
17 | }
18 |
19 | ::selection {
20 | color: $selectionColor;
21 | background: $selectionBackgroundColor;
22 | text-shadow: none;
23 | }
24 |
25 | .reveal .slides>section,
26 | .reveal .slides>section>section {
27 | line-height: 1.3;
28 | font-weight: inherit;
29 | }
30 |
31 | /*********************************************
32 | * HEADERS
33 | *********************************************/
34 |
35 | .reveal h1,
36 | .reveal h2,
37 | .reveal h3,
38 | .reveal h4,
39 | .reveal h5,
40 | .reveal h6 {
41 | margin: $headingMargin;
42 | color: $headingColor;
43 |
44 | font-family: $headingFont;
45 | font-weight: $headingFontWeight;
46 | line-height: $headingLineHeight;
47 | letter-spacing: $headingLetterSpacing;
48 |
49 | text-transform: $headingTextTransform;
50 | text-shadow: $headingTextShadow;
51 |
52 | word-wrap: break-word;
53 | }
54 |
55 | .reveal h1 {font-size: $heading1Size; }
56 | .reveal h2 {font-size: $heading2Size; }
57 | .reveal h3 {font-size: $heading3Size; }
58 | .reveal h4 {font-size: $heading4Size; }
59 |
60 | .reveal h1 {
61 | text-shadow: $heading1TextShadow;
62 | }
63 |
64 |
65 | /*********************************************
66 | * OTHER
67 | *********************************************/
68 |
69 | .reveal p {
70 | margin: $blockMargin 0;
71 | line-height: 1.3;
72 | }
73 |
74 | /* Ensure certain elements are never larger than the slide itself */
75 | .reveal img,
76 | .reveal video,
77 | .reveal iframe {
78 | max-width: 95%;
79 | max-height: 95%;
80 | }
81 | .reveal strong,
82 | .reveal b {
83 | font-weight: bold;
84 | }
85 |
86 | .reveal em {
87 | font-style: italic;
88 | }
89 |
90 | .reveal ol,
91 | .reveal dl,
92 | .reveal ul {
93 | display: inline-block;
94 |
95 | text-align: left;
96 | margin: 0 0 0 1em;
97 | }
98 |
99 | .reveal ol {
100 | list-style-type: decimal;
101 | }
102 |
103 | .reveal ul {
104 | list-style-type: disc;
105 | }
106 |
107 | .reveal ul ul {
108 | list-style-type: square;
109 | }
110 |
111 | .reveal ul ul ul {
112 | list-style-type: circle;
113 | }
114 |
115 | .reveal ul ul,
116 | .reveal ul ol,
117 | .reveal ol ol,
118 | .reveal ol ul {
119 | display: block;
120 | margin-left: 40px;
121 | }
122 |
123 | .reveal dt {
124 | font-weight: bold;
125 | }
126 |
127 | .reveal dd {
128 | margin-left: 40px;
129 | }
130 |
131 | .reveal q,
132 | .reveal blockquote {
133 | quotes: none;
134 | }
135 |
136 | .reveal blockquote {
137 | display: block;
138 | position: relative;
139 | width: 70%;
140 | margin: $blockMargin auto;
141 | padding: 5px;
142 |
143 | font-style: italic;
144 | background: rgba(255, 255, 255, 0.05);
145 | box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
146 | }
147 | .reveal blockquote p:first-child,
148 | .reveal blockquote p:last-child {
149 | display: inline-block;
150 | }
151 |
152 | .reveal q {
153 | font-style: italic;
154 | }
155 |
156 | .reveal pre {
157 | display: block;
158 | position: relative;
159 | width: 90%;
160 | margin: $blockMargin auto;
161 |
162 | text-align: left;
163 | font-size: 0.55em;
164 | font-family: monospace;
165 | line-height: 1.2em;
166 |
167 | word-wrap: break-word;
168 |
169 | box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
170 | }
171 | .reveal code {
172 | font-family: monospace;
173 | }
174 |
175 | .reveal pre code {
176 | display: block;
177 | padding: 5px;
178 | overflow: auto;
179 | max-height: 400px;
180 | word-wrap: normal;
181 | }
182 |
183 | .reveal table {
184 | margin: auto;
185 | border-collapse: collapse;
186 | border-spacing: 0;
187 | }
188 |
189 | .reveal table th {
190 | font-weight: bold;
191 | }
192 |
193 | .reveal table th,
194 | .reveal table td {
195 | text-align: left;
196 | padding: 0.2em 0.5em 0.2em 0.5em;
197 | border-bottom: 1px solid;
198 | }
199 |
200 | .reveal table th[align="center"],
201 | .reveal table td[align="center"] {
202 | text-align: center;
203 | }
204 |
205 | .reveal table th[align="right"],
206 | .reveal table td[align="right"] {
207 | text-align: right;
208 | }
209 |
210 | .reveal table tbody tr:last-child th,
211 | .reveal table tbody tr:last-child td {
212 | border-bottom: none;
213 | }
214 |
215 | .reveal sup {
216 | vertical-align: super;
217 | }
218 | .reveal sub {
219 | vertical-align: sub;
220 | }
221 |
222 | .reveal small {
223 | display: inline-block;
224 | font-size: 0.6em;
225 | line-height: 1.2em;
226 | vertical-align: top;
227 | }
228 |
229 | .reveal small * {
230 | vertical-align: top;
231 | }
232 |
233 |
234 | /*********************************************
235 | * LINKS
236 | *********************************************/
237 |
238 | .reveal a {
239 | color: $linkColor;
240 | text-decoration: none;
241 |
242 | -webkit-transition: color .15s ease;
243 | -moz-transition: color .15s ease;
244 | transition: color .15s ease;
245 | }
246 | .reveal a:hover {
247 | color: $linkColorHover;
248 |
249 | text-shadow: none;
250 | border: none;
251 | }
252 |
253 | .reveal .roll span:after {
254 | color: #fff;
255 | background: darken( $linkColor, 15% );
256 | }
257 |
258 |
259 | /*********************************************
260 | * IMAGES
261 | *********************************************/
262 |
263 | .reveal section img {
264 | margin: 15px 0px;
265 | background: rgba(255,255,255,0.12);
266 | border: 4px solid $mainColor;
267 |
268 | box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
269 | }
270 |
271 | .reveal section img.plain {
272 | border: 0;
273 | box-shadow: none;
274 | }
275 |
276 | .reveal a img {
277 | -webkit-transition: all .15s linear;
278 | -moz-transition: all .15s linear;
279 | transition: all .15s linear;
280 | }
281 |
282 | .reveal a:hover img {
283 | background: rgba(255,255,255,0.2);
284 | border-color: $linkColor;
285 |
286 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
287 | }
288 |
289 |
290 | /*********************************************
291 | * NAVIGATION CONTROLS
292 | *********************************************/
293 |
294 | .reveal .controls .navigate-left,
295 | .reveal .controls .navigate-left.enabled {
296 | border-right-color: $linkColor;
297 | }
298 |
299 | .reveal .controls .navigate-right,
300 | .reveal .controls .navigate-right.enabled {
301 | border-left-color: $linkColor;
302 | }
303 |
304 | .reveal .controls .navigate-up,
305 | .reveal .controls .navigate-up.enabled {
306 | border-bottom-color: $linkColor;
307 | }
308 |
309 | .reveal .controls .navigate-down,
310 | .reveal .controls .navigate-down.enabled {
311 | border-top-color: $linkColor;
312 | }
313 |
314 | .reveal .controls .navigate-left.enabled:hover {
315 | border-right-color: $linkColorHover;
316 | }
317 |
318 | .reveal .controls .navigate-right.enabled:hover {
319 | border-left-color: $linkColorHover;
320 | }
321 |
322 | .reveal .controls .navigate-up.enabled:hover {
323 | border-bottom-color: $linkColorHover;
324 | }
325 |
326 | .reveal .controls .navigate-down.enabled:hover {
327 | border-top-color: $linkColorHover;
328 | }
329 |
330 |
331 | /*********************************************
332 | * PROGRESS BAR
333 | *********************************************/
334 |
335 | .reveal .progress {
336 | background: rgba(0,0,0,0.2);
337 | }
338 | .reveal .progress span {
339 | background: $linkColor;
340 |
341 | -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
342 | -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
343 | transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
344 | }
345 |
346 |
347 |
--------------------------------------------------------------------------------
/css/theme/white.css:
--------------------------------------------------------------------------------
1 | /**
2 | * White theme for reveal.js. This is the opposite of the 'black' theme.
3 | *
4 | * By Hakim El Hattab, http://hakim.se
5 | */
6 | @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7 | section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
8 | color: #fff; }
9 |
10 | /*********************************************
11 | * GLOBAL STYLES
12 | *********************************************/
13 | body {
14 | background: #fff;
15 | background-color: #fff; }
16 |
17 | .reveal {
18 | font-family: "Source Sans Pro", Helvetica, sans-serif;
19 | font-size: 38px;
20 | font-weight: normal;
21 | color: #222; }
22 |
23 | ::selection {
24 | color: #fff;
25 | background: #98bdef;
26 | text-shadow: none; }
27 |
28 | .reveal .slides > section,
29 | .reveal .slides > section > section {
30 | line-height: 1.3;
31 | font-weight: inherit;
32 | }
33 |
34 | /*********************************************
35 | * HEADERS
36 | *********************************************/
37 | .reveal h1,
38 | .reveal h2,
39 | .reveal h3,
40 | .reveal h4,
41 | .reveal h5,
42 | .reveal h6 {
43 | margin: 0 0 20px 0;
44 | color: #222;
45 | font-family: "Source Sans Pro", Helvetica, sans-serif;
46 | font-weight: 600;
47 | line-height: 1.2;
48 | letter-spacing: normal;
49 | text-transform: uppercase;
50 | text-shadow: none;
51 | word-wrap: break-word; }
52 |
53 | .reveal h1 {
54 | font-size: 2.5em; }
55 |
56 | .reveal h2 {
57 | font-size: 1.6em; }
58 |
59 | .reveal h3 {
60 | font-size: 1.3em; }
61 |
62 | .reveal h4 {
63 | font-size: 1em; }
64 |
65 | .reveal h1 {
66 | text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
67 | /*********************************************
68 | * OTHER
69 | *********************************************/
70 | .reveal p {
71 | margin: 20px 0;
72 | line-height: 1.3; }
73 |
74 | /* Ensure certain elements are never larger than the slide itself */
75 | .reveal img,
76 | .reveal video,
77 | .reveal iframe {
78 | max-width: 85%;
79 | max-height: 85%;
80 | }
81 |
82 | .reveal strong,
83 | .reveal b {
84 | font-weight: bold; }
85 |
86 | .reveal em {
87 | font-style: italic; }
88 |
89 | .reveal ol,
90 | .reveal dl,
91 | .reveal ul {
92 | display: inline-block;
93 | text-align: left;
94 | margin: 0 0 0 1em; }
95 |
96 | .reveal ol {
97 | list-style-type: decimal; }
98 |
99 | .reveal ul {
100 | list-style-type: disc; }
101 |
102 | .reveal ul ul {
103 | list-style-type: square; }
104 |
105 | .reveal ul ul ul {
106 | list-style-type: circle; }
107 |
108 | .reveal ul ul,
109 | .reveal ul ol,
110 | .reveal ol ol,
111 | .reveal ol ul {
112 | display: block;
113 | margin-left: 40px; }
114 |
115 | .reveal dt {
116 | font-weight: bold; }
117 |
118 | .reveal dd {
119 | margin-left: 40px; }
120 |
121 | .reveal q,
122 | .reveal blockquote {
123 | quotes: none; }
124 |
125 | .reveal blockquote {
126 | display: block;
127 | position: relative;
128 | width: 70%;
129 | margin: 20px auto;
130 | padding: 5px;
131 | font-style: italic;
132 | background: rgba(255, 255, 255, 0.05);
133 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
134 |
135 | .reveal blockquote p:first-child,
136 | .reveal blockquote p:last-child {
137 | display: inline-block; }
138 |
139 | .reveal q {
140 | font-style: italic; }
141 |
142 | .reveal pre {
143 | display: block;
144 | position: relative;
145 | width: 90%;
146 | margin: 20px auto;
147 | text-align: left;
148 | font-size: 0.55em;
149 | font-family: monospace;
150 | line-height: 1.2em;
151 | word-wrap: break-word;
152 | box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
153 |
154 | .reveal code {
155 | font-family: monospace; }
156 |
157 | .reveal pre code {
158 | display: block;
159 | padding: 5px;
160 | overflow: auto;
161 | max-height: 400px;
162 | word-wrap: normal; }
163 |
164 | .reveal table {
165 | margin: auto;
166 | border-collapse: collapse;
167 | border-spacing: 0; }
168 |
169 | .reveal table th {
170 | font-weight: bold; }
171 |
172 | .reveal table th,
173 | .reveal table td {
174 | text-align: left;
175 | padding: 0.2em 0.5em 0.2em 0.5em;
176 | border-bottom: 1px solid; }
177 |
178 | .reveal table th[align="center"],
179 | .reveal table td[align="center"] {
180 | text-align: center; }
181 |
182 | .reveal table th[align="right"],
183 | .reveal table td[align="right"] {
184 | text-align: right; }
185 |
186 | .reveal table tbody tr:last-child th,
187 | .reveal table tbody tr:last-child td {
188 | border-bottom: none; }
189 |
190 | .reveal sup {
191 | vertical-align: super; }
192 |
193 | .reveal sub {
194 | vertical-align: sub; }
195 |
196 | .reveal small {
197 | display: inline-block;
198 | font-size: 0.6em;
199 | line-height: 1.2em;
200 | vertical-align: top; }
201 |
202 | .reveal small * {
203 | vertical-align: top; }
204 |
205 | /*********************************************
206 | * LINKS
207 | *********************************************/
208 | .reveal a {
209 | color: #2a76dd;
210 | text-decoration: none;
211 | -webkit-transition: color .15s ease;
212 | -moz-transition: color .15s ease;
213 | transition: color .15s ease; }
214 |
215 | .reveal a:hover {
216 | color: #6ca0e8;
217 | text-shadow: none;
218 | border: none; }
219 |
220 | .reveal .roll span:after {
221 | color: #fff;
222 | background: #1a53a1; }
223 |
224 | /*********************************************
225 | * IMAGES
226 | *********************************************/
227 | .reveal section img {
228 | margin: 15px 0px;
229 | background: rgba(255, 255, 255, 0.12);
230 | border: 0px solid #222;
231 | box-shadow: 0 0 0px rgba(0, 0, 0, 0.15); }
232 |
233 | .reveal section img.plain {
234 | border: 0;
235 | box-shadow: none; }
236 |
237 | .reveal a img {
238 | -webkit-transition: all .15s linear;
239 | -moz-transition: all .15s linear;
240 | transition: all .15s linear; }
241 |
242 | .reveal a:hover img {
243 | background: rgba(255, 255, 255, 0.2);
244 | border-color: #2a76dd;
245 | box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
246 |
247 | /*********************************************
248 | * NAVIGATION CONTROLS
249 | *********************************************/
250 | .reveal .controls .navigate-left,
251 | .reveal .controls .navigate-left.enabled {
252 | border-right-color: #2a76dd; }
253 |
254 | .reveal .controls .navigate-right,
255 | .reveal .controls .navigate-right.enabled {
256 | border-left-color: #2a76dd; }
257 |
258 | .reveal .controls .navigate-up,
259 | .reveal .controls .navigate-up.enabled {
260 | border-bottom-color: #2a76dd; }
261 |
262 | .reveal .controls .navigate-down,
263 | .reveal .controls .navigate-down.enabled {
264 | border-top-color: #2a76dd; }
265 |
266 | .reveal .controls .navigate-left.enabled:hover {
267 | border-right-color: #6ca0e8; }
268 |
269 | .reveal .controls .navigate-right.enabled:hover {
270 | border-left-color: #6ca0e8; }
271 |
272 | .reveal .controls .navigate-up.enabled:hover {
273 | border-bottom-color: #6ca0e8; }
274 |
275 | .reveal .controls .navigate-down.enabled:hover {
276 | border-top-color: #6ca0e8; }
277 |
278 | /*********************************************
279 | * PROGRESS BAR
280 | *********************************************/
281 | .reveal .progress {
282 | background: rgba(0, 0, 0, 0.2); }
283 |
284 | .reveal .progress span {
285 | background: #2a76dd;
286 | -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
287 | -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
288 | transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
289 |
--------------------------------------------------------------------------------
/img/De_Waag_Nieuwmarkt_Amsterdam.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/De_Waag_Nieuwmarkt_Amsterdam.jpg
--------------------------------------------------------------------------------
/img/WS_logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/WS_logo.jpg
--------------------------------------------------------------------------------
/img/amsterdam.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/amsterdam.gif
--------------------------------------------------------------------------------
/img/amsterdam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/amsterdam.png
--------------------------------------------------------------------------------
/img/boston_logo.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/boston_logo.jpeg
--------------------------------------------------------------------------------
/img/datalab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/datalab.png
--------------------------------------------------------------------------------
/img/google.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/google.png
--------------------------------------------------------------------------------
/img/mapbox-gl-js.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/mapbox-gl-js.jpg
--------------------------------------------------------------------------------
/img/maptimeAMS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/maptimeAMS.png
--------------------------------------------------------------------------------
/img/maputnik.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/maputnik.png
--------------------------------------------------------------------------------
/img/osm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/osm.png
--------------------------------------------------------------------------------
/img/vector-tile-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/vector-tile-example.png
--------------------------------------------------------------------------------
/img/vector_tile_creation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/img/vector_tile_creation.png
--------------------------------------------------------------------------------
/lib/css/zenburn.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov
4 | based on dark.css by Ivan Sagalaev
5 |
6 | */
7 |
8 | .hljs {
9 | display: block;
10 | overflow-x: auto;
11 | padding: 0.5em;
12 | background: #3f3f3f;
13 | color: #dcdcdc;
14 | }
15 |
16 | .hljs-keyword,
17 | .hljs-selector-tag,
18 | .hljs-tag {
19 | color: #e3ceab;
20 | }
21 |
22 | .hljs-template-tag {
23 | color: #dcdcdc;
24 | }
25 |
26 | .hljs-number {
27 | color: #8cd0d3;
28 | }
29 |
30 | .hljs-variable,
31 | .hljs-template-variable,
32 | .hljs-attribute {
33 | color: #efdcbc;
34 | }
35 |
36 | .hljs-literal {
37 | color: #efefaf;
38 | }
39 |
40 | .hljs-subst {
41 | color: #8f8f8f;
42 | }
43 |
44 | .hljs-title,
45 | .hljs-name,
46 | .hljs-selector-id,
47 | .hljs-selector-class,
48 | .hljs-section,
49 | .hljs-type {
50 | color: #efef8f;
51 | }
52 |
53 | .hljs-symbol,
54 | .hljs-bullet,
55 | .hljs-link {
56 | color: #dca3a3;
57 | }
58 |
59 | .hljs-deletion,
60 | .hljs-string,
61 | .hljs-built_in,
62 | .hljs-builtin-name {
63 | color: #cc9393;
64 | }
65 |
66 | .hljs-addition,
67 | .hljs-comment,
68 | .hljs-quote,
69 | .hljs-meta {
70 | color: #7f9f7f;
71 | }
72 |
73 |
74 | .hljs-emphasis {
75 | font-style: italic;
76 | }
77 |
78 | .hljs-strong {
79 | font-weight: bold;
80 | }
81 |
--------------------------------------------------------------------------------
/lib/font/league-gothic/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License (OFL)
2 | http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
3 |
--------------------------------------------------------------------------------
/lib/font/league-gothic/league-gothic.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'League Gothic';
3 | src: url('league-gothic.eot');
4 | src: url('league-gothic.eot?#iefix') format('embedded-opentype'),
5 | url('league-gothic.woff') format('woff'),
6 | url('league-gothic.ttf') format('truetype');
7 |
8 | font-weight: normal;
9 | font-style: normal;
10 | }
--------------------------------------------------------------------------------
/lib/font/league-gothic/league-gothic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/league-gothic/league-gothic.eot
--------------------------------------------------------------------------------
/lib/font/league-gothic/league-gothic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/league-gothic/league-gothic.ttf
--------------------------------------------------------------------------------
/lib/font/league-gothic/league-gothic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/league-gothic/league-gothic.woff
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/LICENSE:
--------------------------------------------------------------------------------
1 | SIL Open Font License
2 |
3 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
4 |
5 | This Font Software is licensed under the SIL Open Font License, Version 1.1.
6 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
7 |
8 | —————————————————————————————-
9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10 | —————————————————————————————-
11 |
12 | PREAMBLE
13 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
14 |
15 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
16 |
17 | DEFINITIONS
18 | “Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
19 |
20 | “Reserved Font Name” refers to any names specified as such after the copyright statement(s).
21 |
22 | “Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
23 |
24 | “Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
25 |
26 | “Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27 |
28 | PERMISSION & CONDITIONS
29 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
30 |
31 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
32 |
33 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
34 |
35 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
36 |
37 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
38 |
39 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
40 |
41 | TERMINATION
42 | This license becomes null and void if any of the above conditions are not met.
43 |
44 | DISCLAIMER
45 | THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-italic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-italic.eot
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-italic.ttf
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-italic.woff
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-regular.eot
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-regular.ttf
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-regular.woff
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-semibold.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-semibold.eot
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-semibold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-semibold.ttf
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-semibold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-semibold.woff
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/maptime-ams/vector-tiles-workshop/583c3d50ff992c0dc8f9d85c71e298f5ee097a86/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff
--------------------------------------------------------------------------------
/lib/font/source-sans-pro/source-sans-pro.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Source Sans Pro';
3 | src: url('source-sans-pro-regular.eot');
4 | src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
5 | url('source-sans-pro-regular.woff') format('woff'),
6 | url('source-sans-pro-regular.ttf') format('truetype');
7 | font-weight: normal;
8 | font-style: normal;
9 | }
10 |
11 | @font-face {
12 | font-family: 'Source Sans Pro';
13 | src: url('source-sans-pro-italic.eot');
14 | src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
15 | url('source-sans-pro-italic.woff') format('woff'),
16 | url('source-sans-pro-italic.ttf') format('truetype');
17 | font-weight: normal;
18 | font-style: italic;
19 | }
20 |
21 | @font-face {
22 | font-family: 'Source Sans Pro';
23 | src: url('source-sans-pro-semibold.eot');
24 | src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
25 | url('source-sans-pro-semibold.woff') format('woff'),
26 | url('source-sans-pro-semibold.ttf') format('truetype');
27 | font-weight: 600;
28 | font-style: normal;
29 | }
30 |
31 | @font-face {
32 | font-family: 'Source Sans Pro';
33 | src: url('source-sans-pro-semibolditalic.eot');
34 | src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
35 | url('source-sans-pro-semibolditalic.woff') format('woff'),
36 | url('source-sans-pro-semibolditalic.ttf') format('truetype');
37 | font-weight: 600;
38 | font-style: italic;
39 | }
--------------------------------------------------------------------------------
/lib/js/classList.js:
--------------------------------------------------------------------------------
1 | /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/
2 | if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;pn?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):tt);u.feature("landscape",fe?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window);
3 | /*! head.css3 - v1.0.0 */
4 | (function(n,t){"use strict";function a(n){for(var r in n)if(i[n[r]]!==t)return!0;return!1}function r(n){var t=n.charAt(0).toUpperCase()+n.substr(1),i=(n+" "+c.join(t+" ")+t).split(" ");return!!a(i)}var h=n.document,o=h.createElement("i"),i=o.style,s=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),c="Webkit Moz O ms Khtml".split(" "),l=n.head_conf&&n.head_conf.head||"head",u=n[l],f={gradient:function(){var n="background-image:";return i.cssText=(n+s.join("gradient(linear,left top,right bottom,from(#9f9),to(#fff));"+n)+s.join("linear-gradient(left top,#eee,#fff);"+n)).slice(0,-n.length),!!i.backgroundImage},rgba:function(){return i.cssText="background-color:rgba(0,0,0,0.5)",!!i.backgroundColor},opacity:function(){return o.style.opacity===""},textshadow:function(){return i.textShadow===""},multiplebgs:function(){i.cssText="background:url(https://),url(https://),red url(https://)";var n=(i.background||"").match(/url/g);return Object.prototype.toString.call(n)==="[object Array]"&&n.length===3},boxshadow:function(){return r("boxShadow")},borderimage:function(){return r("borderImage")},borderradius:function(){return r("borderRadius")},cssreflections:function(){return r("boxReflect")},csstransforms:function(){return r("transform")},csstransitions:function(){return r("transition")},touch:function(){return"ontouchstart"in n},retina:function(){return n.devicePixelRatio>1},fontface:function(){var t=u.browser.name,n=u.browser.version;switch(t){case"ie":return n>=9;case"chrome":return n>=13;case"ff":return n>=6;case"ios":return n>=5;case"android":return!1;case"webkit":return n>=5.1;case"opera":return n>=10;default:return!1}}};for(var e in f)f[e]&&u.feature(e,f[e].call(),!0);u.feature()})(window);
5 | /*! head.load - v1.0.3 */
6 | (function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i=4.0.0"
23 | },
24 | "dependencies": {
25 | "express": "~4.13.3",
26 | "grunt-cli": "~0.1.13",
27 | "mustache": "~2.2.1",
28 | "socket.io": "~1.3.7"
29 | },
30 | "devDependencies": {
31 | "grunt": "~0.4.5",
32 | "grunt-autoprefixer": "~3.0.3",
33 | "grunt-contrib-connect": "~0.11.2",
34 | "grunt-contrib-cssmin": "~0.14.0",
35 | "grunt-contrib-jshint": "~0.11.3",
36 | "grunt-contrib-qunit": "~1.2.0",
37 | "grunt-contrib-uglify": "~0.9.2",
38 | "grunt-contrib-watch": "~0.6.1",
39 | "grunt-sass": "~1.1.0-beta",
40 | "grunt-zip": "~0.17.1",
41 | "node-sass": "~3.13.0"
42 | },
43 | "license": "MIT"
44 | }
45 |
--------------------------------------------------------------------------------
/plugin/markdown/example.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | reveal.js - Markdown Demo
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
37 |
38 |
39 |
55 |
56 |
57 |
70 |
71 |
72 |
78 |
79 |
80 |
87 |
88 |
89 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
127 |
128 |
129 |
130 |
--------------------------------------------------------------------------------
/plugin/markdown/example.md:
--------------------------------------------------------------------------------
1 | # Markdown Demo
2 |
3 |
4 |
5 | ## External 1.1
6 |
7 | Content 1.1
8 |
9 | Note: This will only appear in the speaker notes window.
10 |
11 |
12 | ## External 1.2
13 |
14 | Content 1.2
15 |
16 |
17 |
18 | ## External 2
19 |
20 | Content 2.1
21 |
22 |
23 |
24 | ## External 3.1
25 |
26 | Content 3.1
27 |
28 |
29 | ## External 3.2
30 |
31 | Content 3.2
32 |
--------------------------------------------------------------------------------
/plugin/math/math.js:
--------------------------------------------------------------------------------
1 | /**
2 | * A plugin which enables rendering of math equations inside
3 | * of reveal.js slides. Essentially a thin wrapper for MathJax.
4 | *
5 | * @author Hakim El Hattab
6 | */
7 | var RevealMath = window.RevealMath || (function(){
8 |
9 | var options = Reveal.getConfig().math || {};
10 | options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js';
11 | options.config = options.config || 'TeX-AMS_HTML-full';
12 |
13 | loadScript( options.mathjax + '?config=' + options.config, function() {
14 |
15 | MathJax.Hub.Config({
16 | messageStyle: 'none',
17 | tex2jax: {
18 | inlineMath: [['$','$'],['\\(','\\)']] ,
19 | skipTags: ['script','noscript','style','textarea','pre']
20 | },
21 | skipStartupTypeset: true
22 | });
23 |
24 | // Typeset followed by an immediate reveal.js layout since
25 | // the typesetting process could affect slide height
26 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub ] );
27 | MathJax.Hub.Queue( Reveal.layout );
28 |
29 | // Reprocess equations in slides when they turn visible
30 | Reveal.addEventListener( 'slidechanged', function( event ) {
31 |
32 | MathJax.Hub.Queue( [ 'Typeset', MathJax.Hub, event.currentSlide ] );
33 |
34 | } );
35 |
36 | } );
37 |
38 | function loadScript( url, callback ) {
39 |
40 | var head = document.querySelector( 'head' );
41 | var script = document.createElement( 'script' );
42 | script.type = 'text/javascript';
43 | script.src = url;
44 |
45 | // Wrapper for callback to make sure it only fires once
46 | var finish = function() {
47 | if( typeof callback === 'function' ) {
48 | callback.call();
49 | callback = null;
50 | }
51 | }
52 |
53 | script.onload = finish;
54 |
55 | // IE
56 | script.onreadystatechange = function() {
57 | if ( this.readyState === 'loaded' ) {
58 | finish();
59 | }
60 | }
61 |
62 | // Normal browsers
63 | head.appendChild( script );
64 |
65 | }
66 |
67 | })();
68 |
--------------------------------------------------------------------------------
/plugin/multiplex/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var multiplex = Reveal.getConfig().multiplex;
3 | var socketId = multiplex.id;
4 | var socket = io.connect(multiplex.url);
5 |
6 | socket.on(multiplex.id, function(data) {
7 | // ignore data from sockets that aren't ours
8 | if (data.socketId !== socketId) { return; }
9 | if( window.location.host === 'localhost:1947' ) return;
10 |
11 | Reveal.setState(data.state);
12 | });
13 | }());
14 |
--------------------------------------------------------------------------------
/plugin/multiplex/index.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var express = require('express');
3 | var fs = require('fs');
4 | var io = require('socket.io');
5 | var crypto = require('crypto');
6 |
7 | var app = express();
8 | var staticDir = express.static;
9 | var server = http.createServer(app);
10 |
11 | io = io(server);
12 |
13 | var opts = {
14 | port: process.env.PORT || 1948,
15 | baseDir : __dirname + '/../../'
16 | };
17 |
18 | io.on( 'connection', function( socket ) {
19 | socket.on('multiplex-statechanged', function(data) {
20 | if (typeof data.secret == 'undefined' || data.secret == null || data.secret === '') return;
21 | if (createHash(data.secret) === data.socketId) {
22 | data.secret = null;
23 | socket.broadcast.emit(data.socketId, data);
24 | };
25 | });
26 | });
27 |
28 | [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) {
29 | app.use('/' + dir, staticDir(opts.baseDir + dir));
30 | });
31 |
32 | app.get("/", function(req, res) {
33 | res.writeHead(200, {'Content-Type': 'text/html'});
34 |
35 | var stream = fs.createReadStream(opts.baseDir + '/index.html');
36 | stream.on('error', function( error ) {
37 | res.write('reveal.js multiplex server.
Generate token');
38 | res.end();
39 | });
40 | stream.on('readable', function() {
41 | stream.pipe(res);
42 | });
43 | });
44 |
45 | app.get("/token", function(req,res) {
46 | var ts = new Date().getTime();
47 | var rand = Math.floor(Math.random()*9999999);
48 | var secret = ts.toString() + rand.toString();
49 | res.send({secret: secret, socketId: createHash(secret)});
50 | });
51 |
52 | var createHash = function(secret) {
53 | var cipher = crypto.createCipher('blowfish', secret);
54 | return(cipher.final('hex'));
55 | };
56 |
57 | // Actually listen
58 | server.listen( opts.port || null );
59 |
60 | var brown = '\033[33m',
61 | green = '\033[32m',
62 | reset = '\033[0m';
63 |
64 | console.log( brown + "reveal.js:" + reset + " Multiplex running on port " + green + opts.port + reset );
--------------------------------------------------------------------------------
/plugin/multiplex/master.js:
--------------------------------------------------------------------------------
1 | (function() {
2 |
3 | // Don't emit events from inside of notes windows
4 | if ( window.location.search.match( /receiver/gi ) ) { return; }
5 |
6 | var multiplex = Reveal.getConfig().multiplex;
7 |
8 | var socket = io.connect( multiplex.url );
9 |
10 | function post() {
11 |
12 | var messageData = {
13 | state: Reveal.getState(),
14 | secret: multiplex.secret,
15 | socketId: multiplex.id
16 | };
17 |
18 | socket.emit( 'multiplex-statechanged', messageData );
19 |
20 | };
21 |
22 | // Monitor events that trigger a change in state
23 | Reveal.addEventListener( 'slidechanged', post );
24 | Reveal.addEventListener( 'fragmentshown', post );
25 | Reveal.addEventListener( 'fragmenthidden', post );
26 | Reveal.addEventListener( 'overviewhidden', post );
27 | Reveal.addEventListener( 'overviewshown', post );
28 | Reveal.addEventListener( 'paused', post );
29 | Reveal.addEventListener( 'resumed', post );
30 |
31 | }());
--------------------------------------------------------------------------------
/plugin/multiplex/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "reveal-js-multiplex",
3 | "version": "1.0.0",
4 | "description": "reveal.js multiplex server",
5 | "homepage": "http://lab.hakim.se/reveal-js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "engines": {
10 | "node": "~4.1.1"
11 | },
12 | "dependencies": {
13 | "express": "~4.13.3",
14 | "grunt-cli": "~0.1.13",
15 | "mustache": "~2.2.1",
16 | "socket.io": "~1.3.7"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/plugin/notes-server/client.js:
--------------------------------------------------------------------------------
1 | (function() {
2 |
3 | // don't emit events from inside the previews themselves
4 | if( window.location.search.match( /receiver/gi ) ) { return; }
5 |
6 | var socket = io.connect( window.location.origin ),
7 | socketId = Math.random().toString().slice( 2 );
8 |
9 | console.log( 'View slide notes at ' + window.location.origin + '/notes/' + socketId );
10 |
11 | window.open( window.location.origin + '/notes/' + socketId, 'notes-' + socketId );
12 |
13 | /**
14 | * Posts the current slide data to the notes window
15 | */
16 | function post() {
17 |
18 | var slideElement = Reveal.getCurrentSlide(),
19 | notesElement = slideElement.querySelector( 'aside.notes' );
20 |
21 | var messageData = {
22 | notes: '',
23 | markdown: false,
24 | socketId: socketId,
25 | state: Reveal.getState()
26 | };
27 |
28 | // Look for notes defined in a slide attribute
29 | if( slideElement.hasAttribute( 'data-notes' ) ) {
30 | messageData.notes = slideElement.getAttribute( 'data-notes' );
31 | }
32 |
33 | // Look for notes defined in an aside element
34 | if( notesElement ) {
35 | messageData.notes = notesElement.innerHTML;
36 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
37 | }
38 |
39 | socket.emit( 'statechanged', messageData );
40 |
41 | }
42 |
43 | // When a new notes window connects, post our current state
44 | socket.on( 'new-subscriber', function( data ) {
45 | post();
46 | } );
47 |
48 | // When the state changes from inside of the speaker view
49 | socket.on( 'statechanged-speaker', function( data ) {
50 | Reveal.setState( data.state );
51 | } );
52 |
53 | // Monitor events that trigger a change in state
54 | Reveal.addEventListener( 'slidechanged', post );
55 | Reveal.addEventListener( 'fragmentshown', post );
56 | Reveal.addEventListener( 'fragmenthidden', post );
57 | Reveal.addEventListener( 'overviewhidden', post );
58 | Reveal.addEventListener( 'overviewshown', post );
59 | Reveal.addEventListener( 'paused', post );
60 | Reveal.addEventListener( 'resumed', post );
61 |
62 | // Post the initial state
63 | post();
64 |
65 | }());
66 |
--------------------------------------------------------------------------------
/plugin/notes-server/index.js:
--------------------------------------------------------------------------------
1 | var http = require('http');
2 | var express = require('express');
3 | var fs = require('fs');
4 | var io = require('socket.io');
5 | var Mustache = require('mustache');
6 |
7 | var app = express();
8 | var staticDir = express.static;
9 | var server = http.createServer(app);
10 |
11 | io = io(server);
12 |
13 | var opts = {
14 | port : 1947,
15 | baseDir : __dirname + '/../../'
16 | };
17 |
18 | io.on( 'connection', function( socket ) {
19 |
20 | socket.on( 'new-subscriber', function( data ) {
21 | socket.broadcast.emit( 'new-subscriber', data );
22 | });
23 |
24 | socket.on( 'statechanged', function( data ) {
25 | delete data.state.overview;
26 | socket.broadcast.emit( 'statechanged', data );
27 | });
28 |
29 | socket.on( 'statechanged-speaker', function( data ) {
30 | delete data.state.overview;
31 | socket.broadcast.emit( 'statechanged-speaker', data );
32 | });
33 |
34 | });
35 |
36 | [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach( function( dir ) {
37 | app.use( '/' + dir, staticDir( opts.baseDir + dir ) );
38 | });
39 |
40 | app.get('/', function( req, res ) {
41 |
42 | res.writeHead( 200, { 'Content-Type': 'text/html' } );
43 | fs.createReadStream( opts.baseDir + '/index.html' ).pipe( res );
44 |
45 | });
46 |
47 | app.get( '/notes/:socketId', function( req, res ) {
48 |
49 | fs.readFile( opts.baseDir + 'plugin/notes-server/notes.html', function( err, data ) {
50 | res.send( Mustache.to_html( data.toString(), {
51 | socketId : req.params.socketId
52 | }));
53 | });
54 |
55 | });
56 |
57 | // Actually listen
58 | server.listen( opts.port || null );
59 |
60 | var brown = '\033[33m',
61 | green = '\033[32m',
62 | reset = '\033[0m';
63 |
64 | var slidesLocation = 'http://localhost' + ( opts.port ? ( ':' + opts.port ) : '' );
65 |
66 | console.log( brown + 'reveal.js - Speaker Notes' + reset );
67 | console.log( '1. Open the slides at ' + green + slidesLocation + reset );
68 | console.log( '2. Click on the link in your JS console to go to the notes page' );
69 | console.log( '3. Advance through your slides and your notes will advance automatically' );
70 |
--------------------------------------------------------------------------------
/plugin/notes-server/notes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | reveal.js - Slide Notes
7 |
8 |
150 |
151 |
152 |
153 |
154 |
155 | UPCOMING:
156 |
157 |
158 |
Time Click to Reset
159 |
160 | 0:00 AM
161 |
162 |
163 | 00:00:00
164 |
165 |
166 |
167 |
168 |
172 |
173 |
174 |
175 |
176 |
177 |
405 |
406 |
407 |
408 |
--------------------------------------------------------------------------------
/plugin/notes/notes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | reveal.js - Slide Notes
7 |
8 |
151 |
152 |
153 |
154 |
155 |
156 | UPCOMING:
157 |
158 |
159 |
Time Click to Reset
160 |
161 | 0:00 AM
162 |
163 |
164 | 00:00:00
165 |
166 |
167 |
168 |
169 |
173 |
174 |
175 |
176 |
413 |
414 |
415 |
--------------------------------------------------------------------------------
/plugin/notes/notes.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Handles opening of and synchronization with the reveal.js
3 | * notes window.
4 | *
5 | * Handshake process:
6 | * 1. This window posts 'connect' to notes window
7 | * - Includes URL of presentation to show
8 | * 2. Notes window responds with 'connected' when it is available
9 | * 3. This window proceeds to send the current presentation state
10 | * to the notes window
11 | */
12 | var RevealNotes = (function() {
13 |
14 | function openNotes( notesFilePath ) {
15 |
16 | if( !notesFilePath ) {
17 | var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
18 | jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
19 | notesFilePath = jsFileLocation + 'notes.html';
20 | }
21 |
22 | var notesPopup = window.open( notesFilePath, 'reveal.js - Notes', 'width=1100,height=700' );
23 |
24 | /**
25 | * Connect to the notes window through a postmessage handshake.
26 | * Using postmessage enables us to work in situations where the
27 | * origins differ, such as a presentation being opened from the
28 | * file system.
29 | */
30 | function connect() {
31 | // Keep trying to connect until we get a 'connected' message back
32 | var connectInterval = setInterval( function() {
33 | notesPopup.postMessage( JSON.stringify( {
34 | namespace: 'reveal-notes',
35 | type: 'connect',
36 | url: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.search,
37 | state: Reveal.getState()
38 | } ), '*' );
39 | }, 500 );
40 |
41 | window.addEventListener( 'message', function( event ) {
42 | var data = JSON.parse( event.data );
43 | if( data && data.namespace === 'reveal-notes' && data.type === 'connected' ) {
44 | clearInterval( connectInterval );
45 | onConnected();
46 | }
47 | } );
48 | }
49 |
50 | /**
51 | * Posts the current slide data to the notes window
52 | */
53 | function post() {
54 |
55 | var slideElement = Reveal.getCurrentSlide(),
56 | notesElement = slideElement.querySelector( 'aside.notes' );
57 |
58 | var messageData = {
59 | namespace: 'reveal-notes',
60 | type: 'state',
61 | notes: '',
62 | markdown: false,
63 | whitespace: 'normal',
64 | state: Reveal.getState()
65 | };
66 |
67 | // Look for notes defined in a slide attribute
68 | if( slideElement.hasAttribute( 'data-notes' ) ) {
69 | messageData.notes = slideElement.getAttribute( 'data-notes' );
70 | messageData.whitespace = 'pre-wrap';
71 | }
72 |
73 | // Look for notes defined in an aside element
74 | if( notesElement ) {
75 | messageData.notes = notesElement.innerHTML;
76 | messageData.markdown = typeof notesElement.getAttribute( 'data-markdown' ) === 'string';
77 | }
78 |
79 | notesPopup.postMessage( JSON.stringify( messageData ), '*' );
80 |
81 | }
82 |
83 | /**
84 | * Called once we have established a connection to the notes
85 | * window.
86 | */
87 | function onConnected() {
88 |
89 | // Monitor events that trigger a change in state
90 | Reveal.addEventListener( 'slidechanged', post );
91 | Reveal.addEventListener( 'fragmentshown', post );
92 | Reveal.addEventListener( 'fragmenthidden', post );
93 | Reveal.addEventListener( 'overviewhidden', post );
94 | Reveal.addEventListener( 'overviewshown', post );
95 | Reveal.addEventListener( 'paused', post );
96 | Reveal.addEventListener( 'resumed', post );
97 |
98 | // Post the initial state
99 | post();
100 |
101 | }
102 |
103 | connect();
104 |
105 | }
106 |
107 | if( !/receiver/i.test( window.location.search ) ) {
108 |
109 | // If the there's a 'notes' query set, open directly
110 | if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
111 | openNotes();
112 | }
113 |
114 | // Open the notes when the 's' key is hit
115 | document.addEventListener( 'keydown', function( event ) {
116 | // Disregard the event if the target is editable or a
117 | // modifier is present
118 | if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
119 |
120 | // Disregard the event if keyboard is disabled
121 | if ( Reveal.getConfig().keyboard === false ) return;
122 |
123 | if( event.keyCode === 83 ) {
124 | event.preventDefault();
125 | openNotes();
126 | }
127 | }, false );
128 |
129 | // Show our keyboard shortcut in the reveal.js help overlay
130 | if( window.Reveal ) Reveal.registerKeyboardShortcut( 'S', 'Speaker notes view' );
131 |
132 | }
133 |
134 | return { open: openNotes };
135 |
136 | })();
137 |
--------------------------------------------------------------------------------
/plugin/print-pdf/print-pdf.js:
--------------------------------------------------------------------------------
1 | /**
2 | * phantomjs script for printing presentations to PDF.
3 | *
4 | * Example:
5 | * phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
6 | *
7 | * By Manuel Bieh (https://github.com/manuelbieh)
8 | */
9 |
10 | // html2pdf.js
11 | var page = new WebPage();
12 | var system = require( 'system' );
13 |
14 | var slideWidth = system.args[3] ? system.args[3].split( 'x' )[0] : 960;
15 | var slideHeight = system.args[3] ? system.args[3].split( 'x' )[1] : 700;
16 |
17 | page.viewportSize = {
18 | width: slideWidth,
19 | height: slideHeight
20 | };
21 |
22 | // TODO
23 | // Something is wrong with these config values. An input
24 | // paper width of 1920px actually results in a 756px wide
25 | // PDF.
26 | page.paperSize = {
27 | width: Math.round( slideWidth * 2 ),
28 | height: Math.round( slideHeight * 2 ),
29 | border: 0
30 | };
31 |
32 | var inputFile = system.args[1] || 'index.html?print-pdf';
33 | var outputFile = system.args[2] || 'slides.pdf';
34 |
35 | if( outputFile.match( /\.pdf$/gi ) === null ) {
36 | outputFile += '.pdf';
37 | }
38 |
39 | console.log( 'Printing PDF (Paper size: '+ page.paperSize.width + 'x' + page.paperSize.height +')' );
40 |
41 | page.open( inputFile, function( status ) {
42 | window.setTimeout( function() {
43 | console.log( 'Printed successfully' );
44 | page.render( outputFile );
45 | phantom.exit();
46 | }, 1000 );
47 | } );
48 |
49 |
--------------------------------------------------------------------------------
/plugin/search/search.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Handles finding a text string anywhere in the slides and showing the next occurrence to the user
3 | * by navigatating to that slide and highlighting it.
4 | *
5 | * By Jon Snyder , February 2013
6 | */
7 |
8 | var RevealSearch = (function() {
9 |
10 | var matchedSlides;
11 | var currentMatchedIndex;
12 | var searchboxDirty;
13 | var myHilitor;
14 |
15 | // Original JavaScript code by Chirp Internet: www.chirp.com.au
16 | // Please acknowledge use of this code by including this header.
17 | // 2/2013 jon: modified regex to display any match, not restricted to word boundaries.
18 |
19 | function Hilitor(id, tag)
20 | {
21 |
22 | var targetNode = document.getElementById(id) || document.body;
23 | var hiliteTag = tag || "EM";
24 | var skipTags = new RegExp("^(?:" + hiliteTag + "|SCRIPT|FORM|SPAN)$");
25 | var colors = ["#ff6", "#a0ffff", "#9f9", "#f99", "#f6f"];
26 | var wordColor = [];
27 | var colorIdx = 0;
28 | var matchRegex = "";
29 | var matchingSlides = [];
30 |
31 | this.setRegex = function(input)
32 | {
33 | input = input.replace(/^[^\w]+|[^\w]+$/g, "").replace(/[^\w'-]+/g, "|");
34 | matchRegex = new RegExp("(" + input + ")","i");
35 | }
36 |
37 | this.getRegex = function()
38 | {
39 | return matchRegex.toString().replace(/^\/\\b\(|\)\\b\/i$/g, "").replace(/\|/g, " ");
40 | }
41 |
42 | // recursively apply word highlighting
43 | this.hiliteWords = function(node)
44 | {
45 | if(node == undefined || !node) return;
46 | if(!matchRegex) return;
47 | if(skipTags.test(node.nodeName)) return;
48 |
49 | if(node.hasChildNodes()) {
50 | for(var i=0; i < node.childNodes.length; i++)
51 | this.hiliteWords(node.childNodes[i]);
52 | }
53 | if(node.nodeType == 3) { // NODE_TEXT
54 | if((nv = node.nodeValue) && (regs = matchRegex.exec(nv))) {
55 | //find the slide's section element and save it in our list of matching slides
56 | var secnode = node.parentNode;
57 | while (secnode.nodeName != 'SECTION') {
58 | secnode = secnode.parentNode;
59 | }
60 |
61 | var slideIndex = Reveal.getIndices(secnode);
62 | var slidelen = matchingSlides.length;
63 | var alreadyAdded = false;
64 | for (var i=0; i < slidelen; i++) {
65 | if ( (matchingSlides[i].h === slideIndex.h) && (matchingSlides[i].v === slideIndex.v) ) {
66 | alreadyAdded = true;
67 | }
68 | }
69 | if (! alreadyAdded) {
70 | matchingSlides.push(slideIndex);
71 | }
72 |
73 | if(!wordColor[regs[0].toLowerCase()]) {
74 | wordColor[regs[0].toLowerCase()] = colors[colorIdx++ % colors.length];
75 | }
76 |
77 | var match = document.createElement(hiliteTag);
78 | match.appendChild(document.createTextNode(regs[0]));
79 | match.style.backgroundColor = wordColor[regs[0].toLowerCase()];
80 | match.style.fontStyle = "inherit";
81 | match.style.color = "#000";
82 |
83 | var after = node.splitText(regs.index);
84 | after.nodeValue = after.nodeValue.substring(regs[0].length);
85 | node.parentNode.insertBefore(match, after);
86 | }
87 | }
88 | };
89 |
90 | // remove highlighting
91 | this.remove = function()
92 | {
93 | var arr = document.getElementsByTagName(hiliteTag);
94 | while(arr.length && (el = arr[0])) {
95 | el.parentNode.replaceChild(el.firstChild, el);
96 | }
97 | };
98 |
99 | // start highlighting at target node
100 | this.apply = function(input)
101 | {
102 | if(input == undefined || !input) return;
103 | this.remove();
104 | this.setRegex(input);
105 | this.hiliteWords(targetNode);
106 | return matchingSlides;
107 | };
108 |
109 | }
110 |
111 | function openSearch() {
112 | //ensure the search term input dialog is visible and has focus:
113 | var inputbox = document.getElementById("searchinput");
114 | inputbox.style.display = "inline";
115 | inputbox.focus();
116 | inputbox.select();
117 | }
118 |
119 | function toggleSearch() {
120 | var inputbox = document.getElementById("searchinput");
121 | if (inputbox.style.display !== "inline") {
122 | openSearch();
123 | }
124 | else {
125 | inputbox.style.display = "none";
126 | myHilitor.remove();
127 | }
128 | }
129 |
130 | function doSearch() {
131 | //if there's been a change in the search term, perform a new search:
132 | if (searchboxDirty) {
133 | var searchstring = document.getElementById("searchinput").value;
134 |
135 | //find the keyword amongst the slides
136 | myHilitor = new Hilitor("slidecontent");
137 | matchedSlides = myHilitor.apply(searchstring);
138 | currentMatchedIndex = 0;
139 | }
140 |
141 | //navigate to the next slide that has the keyword, wrapping to the first if necessary
142 | if (matchedSlides.length && (matchedSlides.length <= currentMatchedIndex)) {
143 | currentMatchedIndex = 0;
144 | }
145 | if (matchedSlides.length > currentMatchedIndex) {
146 | Reveal.slide(matchedSlides[currentMatchedIndex].h, matchedSlides[currentMatchedIndex].v);
147 | currentMatchedIndex++;
148 | }
149 | }
150 |
151 | var dom = {};
152 | dom.wrapper = document.querySelector( '.reveal' );
153 |
154 | if( !dom.wrapper.querySelector( '.searchbox' ) ) {
155 | var searchElement = document.createElement( 'div' );
156 | searchElement.id = "searchinputdiv";
157 | searchElement.classList.add( 'searchdiv' );
158 | searchElement.style.position = 'absolute';
159 | searchElement.style.top = '10px';
160 | searchElement.style.left = '10px';
161 | //embedded base64 search icon Designed by Sketchdock - http://www.sketchdock.com/:
162 | searchElement.innerHTML = '
';
163 | dom.wrapper.appendChild( searchElement );
164 | }
165 |
166 | document.getElementById("searchbutton").addEventListener( 'click', function(event) {
167 | doSearch();
168 | }, false );
169 |
170 | document.getElementById("searchinput").addEventListener( 'keyup', function( event ) {
171 | switch (event.keyCode) {
172 | case 13:
173 | event.preventDefault();
174 | doSearch();
175 | searchboxDirty = false;
176 | break;
177 | default:
178 | searchboxDirty = true;
179 | }
180 | }, false );
181 |
182 | // Open the search when the 's' key is hit (yes, this conflicts with the notes plugin, disabling for now)
183 | /*
184 | document.addEventListener( 'keydown', function( event ) {
185 | // Disregard the event if the target is editable or a
186 | // modifier is present
187 | if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
188 |
189 | if( event.keyCode === 83 ) {
190 | event.preventDefault();
191 | openSearch();
192 | }
193 | }, false );
194 | */
195 | return { open: openSearch };
196 | })();
197 |
--------------------------------------------------------------------------------
/plugin/zoom-js/zoom.js:
--------------------------------------------------------------------------------
1 | // Custom reveal.js integration
2 | (function(){
3 | var isEnabled = true;
4 |
5 | document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
6 | var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
7 |
8 | var zoomPadding = 20;
9 | var revealScale = Reveal.getScale();
10 |
11 | if( event[ modifier ] && isEnabled ) {
12 | event.preventDefault();
13 |
14 | var bounds = event.target.getBoundingClientRect();
15 |
16 | zoom.to({
17 | x: ( bounds.left * revealScale ) - zoomPadding,
18 | y: ( bounds.top * revealScale ) - zoomPadding,
19 | width: ( bounds.width * revealScale ) + ( zoomPadding * 2 ),
20 | height: ( bounds.height * revealScale ) + ( zoomPadding * 2 ),
21 | pan: false
22 | });
23 | }
24 | } );
25 |
26 | Reveal.addEventListener( 'overviewshown', function() { isEnabled = false; } );
27 | Reveal.addEventListener( 'overviewhidden', function() { isEnabled = true; } );
28 | })();
29 |
30 | /*!
31 | * zoom.js 0.3 (modified for use with reveal.js)
32 | * http://lab.hakim.se/zoom-js
33 | * MIT licensed
34 | *
35 | * Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se
36 | */
37 | var zoom = (function(){
38 |
39 | // The current zoom level (scale)
40 | var level = 1;
41 |
42 | // The current mouse position, used for panning
43 | var mouseX = 0,
44 | mouseY = 0;
45 |
46 | // Timeout before pan is activated
47 | var panEngageTimeout = -1,
48 | panUpdateInterval = -1;
49 |
50 | // Check for transform support so that we can fallback otherwise
51 | var supportsTransforms = 'WebkitTransform' in document.body.style ||
52 | 'MozTransform' in document.body.style ||
53 | 'msTransform' in document.body.style ||
54 | 'OTransform' in document.body.style ||
55 | 'transform' in document.body.style;
56 |
57 | if( supportsTransforms ) {
58 | // The easing that will be applied when we zoom in/out
59 | document.body.style.transition = 'transform 0.8s ease';
60 | document.body.style.OTransition = '-o-transform 0.8s ease';
61 | document.body.style.msTransition = '-ms-transform 0.8s ease';
62 | document.body.style.MozTransition = '-moz-transform 0.8s ease';
63 | document.body.style.WebkitTransition = '-webkit-transform 0.8s ease';
64 | }
65 |
66 | // Zoom out if the user hits escape
67 | document.addEventListener( 'keyup', function( event ) {
68 | if( level !== 1 && event.keyCode === 27 ) {
69 | zoom.out();
70 | }
71 | } );
72 |
73 | // Monitor mouse movement for panning
74 | document.addEventListener( 'mousemove', function( event ) {
75 | if( level !== 1 ) {
76 | mouseX = event.clientX;
77 | mouseY = event.clientY;
78 | }
79 | } );
80 |
81 | /**
82 | * Applies the CSS required to zoom in, prefers the use of CSS3
83 | * transforms but falls back on zoom for IE.
84 | *
85 | * @param {Object} rect
86 | * @param {Number} scale
87 | */
88 | function magnify( rect, scale ) {
89 |
90 | var scrollOffset = getScrollOffset();
91 |
92 | // Ensure a width/height is set
93 | rect.width = rect.width || 1;
94 | rect.height = rect.height || 1;
95 |
96 | // Center the rect within the zoomed viewport
97 | rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2;
98 | rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2;
99 |
100 | if( supportsTransforms ) {
101 | // Reset
102 | if( scale === 1 ) {
103 | document.body.style.transform = '';
104 | document.body.style.OTransform = '';
105 | document.body.style.msTransform = '';
106 | document.body.style.MozTransform = '';
107 | document.body.style.WebkitTransform = '';
108 | }
109 | // Scale
110 | else {
111 | var origin = scrollOffset.x +'px '+ scrollOffset.y +'px',
112 | transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')';
113 |
114 | document.body.style.transformOrigin = origin;
115 | document.body.style.OTransformOrigin = origin;
116 | document.body.style.msTransformOrigin = origin;
117 | document.body.style.MozTransformOrigin = origin;
118 | document.body.style.WebkitTransformOrigin = origin;
119 |
120 | document.body.style.transform = transform;
121 | document.body.style.OTransform = transform;
122 | document.body.style.msTransform = transform;
123 | document.body.style.MozTransform = transform;
124 | document.body.style.WebkitTransform = transform;
125 | }
126 | }
127 | else {
128 | // Reset
129 | if( scale === 1 ) {
130 | document.body.style.position = '';
131 | document.body.style.left = '';
132 | document.body.style.top = '';
133 | document.body.style.width = '';
134 | document.body.style.height = '';
135 | document.body.style.zoom = '';
136 | }
137 | // Scale
138 | else {
139 | document.body.style.position = 'relative';
140 | document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
141 | document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
142 | document.body.style.width = ( scale * 100 ) + '%';
143 | document.body.style.height = ( scale * 100 ) + '%';
144 | document.body.style.zoom = scale;
145 | }
146 | }
147 |
148 | level = scale;
149 |
150 | if( document.documentElement.classList ) {
151 | if( level !== 1 ) {
152 | document.documentElement.classList.add( 'zoomed' );
153 | }
154 | else {
155 | document.documentElement.classList.remove( 'zoomed' );
156 | }
157 | }
158 | }
159 |
160 | /**
161 | * Pan the document when the mosue cursor approaches the edges
162 | * of the window.
163 | */
164 | function pan() {
165 | var range = 0.12,
166 | rangeX = window.innerWidth * range,
167 | rangeY = window.innerHeight * range,
168 | scrollOffset = getScrollOffset();
169 |
170 | // Up
171 | if( mouseY < rangeY ) {
172 | window.scroll( scrollOffset.x, scrollOffset.y - ( 1 - ( mouseY / rangeY ) ) * ( 14 / level ) );
173 | }
174 | // Down
175 | else if( mouseY > window.innerHeight - rangeY ) {
176 | window.scroll( scrollOffset.x, scrollOffset.y + ( 1 - ( window.innerHeight - mouseY ) / rangeY ) * ( 14 / level ) );
177 | }
178 |
179 | // Left
180 | if( mouseX < rangeX ) {
181 | window.scroll( scrollOffset.x - ( 1 - ( mouseX / rangeX ) ) * ( 14 / level ), scrollOffset.y );
182 | }
183 | // Right
184 | else if( mouseX > window.innerWidth - rangeX ) {
185 | window.scroll( scrollOffset.x + ( 1 - ( window.innerWidth - mouseX ) / rangeX ) * ( 14 / level ), scrollOffset.y );
186 | }
187 | }
188 |
189 | function getScrollOffset() {
190 | return {
191 | x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset,
192 | y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset
193 | }
194 | }
195 |
196 | return {
197 | /**
198 | * Zooms in on either a rectangle or HTML element.
199 | *
200 | * @param {Object} options
201 | * - element: HTML element to zoom in on
202 | * OR
203 | * - x/y: coordinates in non-transformed space to zoom in on
204 | * - width/height: the portion of the screen to zoom in on
205 | * - scale: can be used instead of width/height to explicitly set scale
206 | */
207 | to: function( options ) {
208 |
209 | // Due to an implementation limitation we can't zoom in
210 | // to another element without zooming out first
211 | if( level !== 1 ) {
212 | zoom.out();
213 | }
214 | else {
215 | options.x = options.x || 0;
216 | options.y = options.y || 0;
217 |
218 | // If an element is set, that takes precedence
219 | if( !!options.element ) {
220 | // Space around the zoomed in element to leave on screen
221 | var padding = 20;
222 | var bounds = options.element.getBoundingClientRect();
223 |
224 | options.x = bounds.left - padding;
225 | options.y = bounds.top - padding;
226 | options.width = bounds.width + ( padding * 2 );
227 | options.height = bounds.height + ( padding * 2 );
228 | }
229 |
230 | // If width/height values are set, calculate scale from those values
231 | if( options.width !== undefined && options.height !== undefined ) {
232 | options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / options.height ), 1 );
233 | }
234 |
235 | if( options.scale > 1 ) {
236 | options.x *= options.scale;
237 | options.y *= options.scale;
238 |
239 | magnify( options, options.scale );
240 |
241 | if( options.pan !== false ) {
242 |
243 | // Wait with engaging panning as it may conflict with the
244 | // zoom transition
245 | panEngageTimeout = setTimeout( function() {
246 | panUpdateInterval = setInterval( pan, 1000 / 60 );
247 | }, 800 );
248 |
249 | }
250 | }
251 | }
252 | },
253 |
254 | /**
255 | * Resets the document zoom state to its default.
256 | */
257 | out: function() {
258 | clearTimeout( panEngageTimeout );
259 | clearInterval( panUpdateInterval );
260 |
261 | magnify( { x: 0, y: 0 }, 1 );
262 |
263 | level = 1;
264 | },
265 |
266 | // Alias
267 | magnify: function( options ) { this.to( options ) },
268 | reset: function() { this.out() },
269 |
270 | zoomLevel: function() {
271 | return level;
272 | }
273 | }
274 |
275 | })();
276 |
277 |
278 |
279 |
--------------------------------------------------------------------------------