reveal.rb 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -1
  4. data/Dockerfile +4 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +7 -1
  7. data/README.md +1 -1
  8. data/lib/reveal/command.rb +9 -3
  9. data/lib/reveal/templates/revealjs/css/print/paper.css +4 -3
  10. data/lib/reveal/templates/revealjs/css/print/pdf.css +59 -38
  11. data/lib/reveal/templates/revealjs/css/reveal.css +654 -274
  12. data/lib/reveal/templates/revealjs/css/theme/beige.css +65 -68
  13. data/lib/reveal/templates/revealjs/css/theme/black.css +58 -61
  14. data/lib/reveal/templates/revealjs/css/theme/blood.css +64 -62
  15. data/lib/reveal/templates/revealjs/css/theme/league.css +59 -62
  16. data/lib/reveal/templates/revealjs/css/theme/moon.css +59 -62
  17. data/lib/reveal/templates/revealjs/css/theme/night.css +58 -61
  18. data/lib/reveal/templates/revealjs/css/theme/serif.css +56 -59
  19. data/lib/reveal/templates/revealjs/css/theme/simple.css +60 -60
  20. data/lib/reveal/templates/revealjs/css/theme/sky.css +59 -62
  21. data/lib/reveal/templates/revealjs/css/theme/solarized.css +59 -62
  22. data/lib/reveal/templates/revealjs/css/theme/white.css +59 -62
  23. data/lib/reveal/templates/revealjs/index.html +14 -376
  24. data/lib/reveal/templates/revealjs/js/reveal.js +1073 -342
  25. data/lib/reveal/templates/revealjs/lib/css/zenburn.css +41 -78
  26. data/lib/reveal/templates/revealjs/lib/js/head.min.js +9 -8
  27. data/lib/reveal/templates/revealjs/plugin/highlight/highlight.js +51 -4
  28. data/lib/reveal/templates/revealjs/plugin/markdown/markdown.js +38 -19
  29. data/lib/reveal/templates/revealjs/plugin/markdown/marked.js +1 -1
  30. data/lib/reveal/templates/revealjs/plugin/math/math.js +5 -2
  31. data/lib/reveal/templates/revealjs/plugin/multiplex/client.js +1 -1
  32. data/lib/reveal/templates/revealjs/plugin/multiplex/index.js +24 -16
  33. data/lib/reveal/templates/revealjs/plugin/multiplex/master.js +26 -43
  34. data/lib/reveal/templates/revealjs/plugin/multiplex/package.json +19 -0
  35. data/lib/reveal/templates/revealjs/plugin/notes/notes.html +385 -32
  36. data/lib/reveal/templates/revealjs/plugin/notes/notes.js +39 -6
  37. data/lib/reveal/templates/revealjs/plugin/notes-server/client.js +6 -1
  38. data/lib/reveal/templates/revealjs/plugin/notes-server/index.js +17 -14
  39. data/lib/reveal/templates/revealjs/plugin/notes-server/notes.html +215 -26
  40. data/lib/reveal/templates/revealjs/plugin/print-pdf/print-pdf.js +48 -27
  41. data/lib/reveal/templates/revealjs/plugin/search/search.js +41 -31
  42. data/lib/reveal/templates/revealjs/plugin/zoom-js/zoom.js +17 -23
  43. data/lib/reveal/templates/template.html +12 -41
  44. data/lib/reveal/version.rb +1 -1
  45. data/spec/lib/reveal/command_spec.rb +37 -0
  46. metadata +14 -16
  47. data/lib/reveal/templates/revealjs/lib/font/league-gothic/LICENSE +0 -2
  48. data/lib/reveal/templates/revealjs/lib/font/source-sans-pro/LICENSE +0 -45
  49. data/lib/reveal/templates/revealjs/plugin/leap/leap.js +0 -159
  50. data/lib/reveal/templates/revealjs/plugin/remotes/remotes.js +0 -39
@@ -1,4 +1,3 @@
1
- @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
2
1
  /**
3
2
  * Blood theme for reveal.js
4
3
  * Author: Walther http://github.com/Walther
@@ -10,6 +9,7 @@
10
9
  * For other themes, change $codeBackground accordingly.
11
10
  *
12
11
  */
12
+ @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
13
13
  /*********************************************
14
14
  * GLOBAL STYLES
15
15
  *********************************************/
@@ -18,8 +18,8 @@ body {
18
18
  background-color: #222; }
19
19
 
20
20
  .reveal {
21
- font-family: Ubuntu, 'sans-serif';
22
- font-size: 36px;
21
+ font-family: Ubuntu, "sans-serif";
22
+ font-size: 40px;
23
23
  font-weight: normal;
24
24
  color: #eee; }
25
25
 
@@ -28,17 +28,28 @@ body {
28
28
  background: #a23;
29
29
  text-shadow: none; }
30
30
 
31
- .reveal .slides > section, .reveal .slides > section > section {
31
+ ::-moz-selection {
32
+ color: #fff;
33
+ background: #a23;
34
+ text-shadow: none; }
35
+
36
+ .reveal .slides > section,
37
+ .reveal .slides > section > section {
32
38
  line-height: 1.3;
33
39
  font-weight: inherit; }
34
40
 
35
41
  /*********************************************
36
42
  * HEADERS
37
43
  *********************************************/
38
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
44
+ .reveal h1,
45
+ .reveal h2,
46
+ .reveal h3,
47
+ .reveal h4,
48
+ .reveal h5,
49
+ .reveal h6 {
39
50
  margin: 0 0 20px 0;
40
51
  color: #eee;
41
- font-family: Ubuntu, 'sans-serif';
52
+ font-family: Ubuntu, "sans-serif";
42
53
  font-weight: normal;
43
54
  line-height: 1.2;
44
55
  letter-spacing: normal;
@@ -69,17 +80,22 @@ body {
69
80
  line-height: 1.3; }
70
81
 
71
82
  /* Ensure certain elements are never larger than the slide itself */
72
- .reveal img, .reveal video, .reveal iframe {
83
+ .reveal img,
84
+ .reveal video,
85
+ .reveal iframe {
73
86
  max-width: 95%;
74
87
  max-height: 95%; }
75
88
 
76
- .reveal strong, .reveal b {
89
+ .reveal strong,
90
+ .reveal b {
77
91
  font-weight: bold; }
78
92
 
79
93
  .reveal em {
80
94
  font-style: italic; }
81
95
 
82
- .reveal ol, .reveal dl, .reveal ul {
96
+ .reveal ol,
97
+ .reveal dl,
98
+ .reveal ul {
83
99
  display: inline-block;
84
100
  text-align: left;
85
101
  margin: 0 0 0 1em; }
@@ -96,7 +112,10 @@ body {
96
112
  .reveal ul ul ul {
97
113
  list-style-type: circle; }
98
114
 
99
- .reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
115
+ .reveal ul ul,
116
+ .reveal ul ol,
117
+ .reveal ol ol,
118
+ .reveal ol ul {
100
119
  display: block;
101
120
  margin-left: 40px; }
102
121
 
@@ -106,9 +125,6 @@ body {
106
125
  .reveal dd {
107
126
  margin-left: 40px; }
108
127
 
109
- .reveal q, .reveal blockquote {
110
- quotes: none; }
111
-
112
128
  .reveal blockquote {
113
129
  display: block;
114
130
  position: relative;
@@ -119,7 +135,8 @@ body {
119
135
  background: rgba(255, 255, 255, 0.05);
120
136
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
121
137
 
122
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
138
+ .reveal blockquote p:first-child,
139
+ .reveal blockquote p:last-child {
123
140
  display: inline-block; }
124
141
 
125
142
  .reveal q {
@@ -138,16 +155,15 @@ body {
138
155
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
139
156
 
140
157
  .reveal code {
141
- font-family: monospace; }
158
+ font-family: monospace;
159
+ text-transform: none; }
142
160
 
143
161
  .reveal pre code {
144
162
  display: block;
145
163
  padding: 5px;
146
164
  overflow: auto;
147
165
  max-height: 400px;
148
- word-wrap: normal;
149
- background: #3F3F3F;
150
- color: #DCDCDC; }
166
+ word-wrap: normal; }
151
167
 
152
168
  .reveal table {
153
169
  margin: auto;
@@ -157,18 +173,22 @@ body {
157
173
  .reveal table th {
158
174
  font-weight: bold; }
159
175
 
160
- .reveal table th, .reveal table td {
176
+ .reveal table th,
177
+ .reveal table td {
161
178
  text-align: left;
162
179
  padding: 0.2em 0.5em 0.2em 0.5em;
163
180
  border-bottom: 1px solid; }
164
181
 
165
- .reveal table th[align="center"], .reveal table td[align="center"] {
182
+ .reveal table th[align="center"],
183
+ .reveal table td[align="center"] {
166
184
  text-align: center; }
167
185
 
168
- .reveal table th[align="right"], .reveal table td[align="right"] {
186
+ .reveal table th[align="right"],
187
+ .reveal table td[align="right"] {
169
188
  text-align: right; }
170
189
 
171
- .reveal table tr:last-child td {
190
+ .reveal table tbody tr:last-child th,
191
+ .reveal table tbody tr:last-child td {
172
192
  border-bottom: none; }
173
193
 
174
194
  .reveal sup {
@@ -192,18 +212,18 @@ body {
192
212
  .reveal a {
193
213
  color: #a23;
194
214
  text-decoration: none;
195
- -webkit-transition: color 0.15s ease;
196
- -moz-transition: color 0.15s ease;
197
- transition: color 0.15s ease; }
215
+ -webkit-transition: color .15s ease;
216
+ -moz-transition: color .15s ease;
217
+ transition: color .15s ease; }
198
218
 
199
219
  .reveal a:hover {
200
- color: #dd5567;
220
+ color: #dd5566;
201
221
  text-shadow: none;
202
222
  border: none; }
203
223
 
204
224
  .reveal .roll span:after {
205
225
  color: #fff;
206
- background: #6a1521; }
226
+ background: #6a1520; }
207
227
 
208
228
  /*********************************************
209
229
  * IMAGES
@@ -214,10 +234,14 @@ body {
214
234
  border: 4px solid #eee;
215
235
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
216
236
 
237
+ .reveal section img.plain {
238
+ border: 0;
239
+ box-shadow: none; }
240
+
217
241
  .reveal a img {
218
- -webkit-transition: all 0.15s linear;
219
- -moz-transition: all 0.15s linear;
220
- transition: all 0.15s linear; }
242
+ -webkit-transition: all .15s linear;
243
+ -moz-transition: all .15s linear;
244
+ transition: all .15s linear; }
221
245
 
222
246
  .reveal a:hover img {
223
247
  background: rgba(255, 255, 255, 0.2);
@@ -227,53 +251,31 @@ body {
227
251
  /*********************************************
228
252
  * NAVIGATION CONTROLS
229
253
  *********************************************/
230
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
231
- border-right-color: #a23; }
232
-
233
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
234
- border-left-color: #a23; }
235
-
236
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
237
- border-bottom-color: #a23; }
238
-
239
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
240
- border-top-color: #a23; }
241
-
242
- .reveal .controls div.navigate-left.enabled:hover {
243
- border-right-color: #dd5567; }
244
-
245
- .reveal .controls div.navigate-right.enabled:hover {
246
- border-left-color: #dd5567; }
247
-
248
- .reveal .controls div.navigate-up.enabled:hover {
249
- border-bottom-color: #dd5567; }
250
-
251
- .reveal .controls div.navigate-down.enabled:hover {
252
- border-top-color: #dd5567; }
254
+ .reveal .controls {
255
+ color: #a23; }
253
256
 
254
257
  /*********************************************
255
258
  * PROGRESS BAR
256
259
  *********************************************/
257
260
  .reveal .progress {
258
- background: rgba(0, 0, 0, 0.2); }
261
+ background: rgba(0, 0, 0, 0.2);
262
+ color: #a23; }
259
263
 
260
264
  .reveal .progress span {
261
- background: #a23;
262
265
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
263
266
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
264
267
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
265
268
 
266
- /*********************************************
267
- * SLIDE NUMBER
268
- *********************************************/
269
- .reveal .slide-number {
270
- color: #a23; }
271
-
272
269
  .reveal p {
273
270
  font-weight: 300;
274
271
  text-shadow: 1px 1px #222; }
275
272
 
276
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
273
+ .reveal h1,
274
+ .reveal h2,
275
+ .reveal h3,
276
+ .reveal h4,
277
+ .reveal h5,
278
+ .reveal h6 {
277
279
  font-weight: 700; }
278
280
 
279
281
  .reveal p code {
@@ -1,5 +1,3 @@
1
- @import url(../../lib/font/league-gothic/league-gothic.css);
2
- @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
3
1
  /**
4
2
  * League theme for reveal.js.
5
3
  *
@@ -7,6 +5,8 @@
7
5
  *
8
6
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
9
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
10
  /*********************************************
11
11
  * GLOBAL STYLES
12
12
  *********************************************/
@@ -21,8 +21,8 @@ body {
21
21
  background-color: #2b2b2b; }
22
22
 
23
23
  .reveal {
24
- font-family: 'Lato', sans-serif;
25
- font-size: 36px;
24
+ font-family: "Lato", sans-serif;
25
+ font-size: 40px;
26
26
  font-weight: normal;
27
27
  color: #eee; }
28
28
 
@@ -31,17 +31,28 @@ body {
31
31
  background: #FF5E99;
32
32
  text-shadow: none; }
33
33
 
34
- .reveal .slides > section, .reveal .slides > section > section {
34
+ ::-moz-selection {
35
+ color: #fff;
36
+ background: #FF5E99;
37
+ text-shadow: none; }
38
+
39
+ .reveal .slides > section,
40
+ .reveal .slides > section > section {
35
41
  line-height: 1.3;
36
42
  font-weight: inherit; }
37
43
 
38
44
  /*********************************************
39
45
  * HEADERS
40
46
  *********************************************/
41
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
47
+ .reveal h1,
48
+ .reveal h2,
49
+ .reveal h3,
50
+ .reveal h4,
51
+ .reveal h5,
52
+ .reveal h6 {
42
53
  margin: 0 0 20px 0;
43
54
  color: #eee;
44
- font-family: 'League Gothic', Impact, sans-serif;
55
+ font-family: "League Gothic", Impact, sans-serif;
45
56
  font-weight: normal;
46
57
  line-height: 1.2;
47
58
  letter-spacing: normal;
@@ -72,17 +83,22 @@ body {
72
83
  line-height: 1.3; }
73
84
 
74
85
  /* Ensure certain elements are never larger than the slide itself */
75
- .reveal img, .reveal video, .reveal iframe {
86
+ .reveal img,
87
+ .reveal video,
88
+ .reveal iframe {
76
89
  max-width: 95%;
77
90
  max-height: 95%; }
78
91
 
79
- .reveal strong, .reveal b {
92
+ .reveal strong,
93
+ .reveal b {
80
94
  font-weight: bold; }
81
95
 
82
96
  .reveal em {
83
97
  font-style: italic; }
84
98
 
85
- .reveal ol, .reveal dl, .reveal ul {
99
+ .reveal ol,
100
+ .reveal dl,
101
+ .reveal ul {
86
102
  display: inline-block;
87
103
  text-align: left;
88
104
  margin: 0 0 0 1em; }
@@ -99,7 +115,10 @@ body {
99
115
  .reveal ul ul ul {
100
116
  list-style-type: circle; }
101
117
 
102
- .reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
118
+ .reveal ul ul,
119
+ .reveal ul ol,
120
+ .reveal ol ol,
121
+ .reveal ol ul {
103
122
  display: block;
104
123
  margin-left: 40px; }
105
124
 
@@ -109,9 +128,6 @@ body {
109
128
  .reveal dd {
110
129
  margin-left: 40px; }
111
130
 
112
- .reveal q, .reveal blockquote {
113
- quotes: none; }
114
-
115
131
  .reveal blockquote {
116
132
  display: block;
117
133
  position: relative;
@@ -122,7 +138,8 @@ body {
122
138
  background: rgba(255, 255, 255, 0.05);
123
139
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
124
140
 
125
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
141
+ .reveal blockquote p:first-child,
142
+ .reveal blockquote p:last-child {
126
143
  display: inline-block; }
127
144
 
128
145
  .reveal q {
@@ -141,16 +158,15 @@ body {
141
158
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
142
159
 
143
160
  .reveal code {
144
- font-family: monospace; }
161
+ font-family: monospace;
162
+ text-transform: none; }
145
163
 
146
164
  .reveal pre code {
147
165
  display: block;
148
166
  padding: 5px;
149
167
  overflow: auto;
150
168
  max-height: 400px;
151
- word-wrap: normal;
152
- background: #3F3F3F;
153
- color: #DCDCDC; }
169
+ word-wrap: normal; }
154
170
 
155
171
  .reveal table {
156
172
  margin: auto;
@@ -160,18 +176,22 @@ body {
160
176
  .reveal table th {
161
177
  font-weight: bold; }
162
178
 
163
- .reveal table th, .reveal table td {
179
+ .reveal table th,
180
+ .reveal table td {
164
181
  text-align: left;
165
182
  padding: 0.2em 0.5em 0.2em 0.5em;
166
183
  border-bottom: 1px solid; }
167
184
 
168
- .reveal table th[align="center"], .reveal table td[align="center"] {
185
+ .reveal table th[align="center"],
186
+ .reveal table td[align="center"] {
169
187
  text-align: center; }
170
188
 
171
- .reveal table th[align="right"], .reveal table td[align="right"] {
189
+ .reveal table th[align="right"],
190
+ .reveal table td[align="right"] {
172
191
  text-align: right; }
173
192
 
174
- .reveal table tr:last-child td {
193
+ .reveal table tbody tr:last-child th,
194
+ .reveal table tbody tr:last-child td {
175
195
  border-bottom: none; }
176
196
 
177
197
  .reveal sup {
@@ -195,18 +215,18 @@ body {
195
215
  .reveal a {
196
216
  color: #13DAEC;
197
217
  text-decoration: none;
198
- -webkit-transition: color 0.15s ease;
199
- -moz-transition: color 0.15s ease;
200
- transition: color 0.15s ease; }
218
+ -webkit-transition: color .15s ease;
219
+ -moz-transition: color .15s ease;
220
+ transition: color .15s ease; }
201
221
 
202
222
  .reveal a:hover {
203
- color: #71ebf4;
223
+ color: #71e9f4;
204
224
  text-shadow: none;
205
225
  border: none; }
206
226
 
207
227
  .reveal .roll span:after {
208
228
  color: #fff;
209
- background: #0d9ba5; }
229
+ background: #0d99a5; }
210
230
 
211
231
  /*********************************************
212
232
  * IMAGES
@@ -217,10 +237,14 @@ body {
217
237
  border: 4px solid #eee;
218
238
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
219
239
 
240
+ .reveal section img.plain {
241
+ border: 0;
242
+ box-shadow: none; }
243
+
220
244
  .reveal a img {
221
- -webkit-transition: all 0.15s linear;
222
- -moz-transition: all 0.15s linear;
223
- transition: all 0.15s linear; }
245
+ -webkit-transition: all .15s linear;
246
+ -moz-transition: all .15s linear;
247
+ transition: all .15s linear; }
224
248
 
225
249
  .reveal a:hover img {
226
250
  background: rgba(255, 255, 255, 0.2);
@@ -230,44 +254,17 @@ body {
230
254
  /*********************************************
231
255
  * NAVIGATION CONTROLS
232
256
  *********************************************/
233
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
234
- border-right-color: #13DAEC; }
235
-
236
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
237
- border-left-color: #13DAEC; }
238
-
239
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
240
- border-bottom-color: #13DAEC; }
241
-
242
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
243
- border-top-color: #13DAEC; }
244
-
245
- .reveal .controls div.navigate-left.enabled:hover {
246
- border-right-color: #71ebf4; }
247
-
248
- .reveal .controls div.navigate-right.enabled:hover {
249
- border-left-color: #71ebf4; }
250
-
251
- .reveal .controls div.navigate-up.enabled:hover {
252
- border-bottom-color: #71ebf4; }
253
-
254
- .reveal .controls div.navigate-down.enabled:hover {
255
- border-top-color: #71ebf4; }
257
+ .reveal .controls {
258
+ color: #13DAEC; }
256
259
 
257
260
  /*********************************************
258
261
  * PROGRESS BAR
259
262
  *********************************************/
260
263
  .reveal .progress {
261
- background: rgba(0, 0, 0, 0.2); }
264
+ background: rgba(0, 0, 0, 0.2);
265
+ color: #13DAEC; }
262
266
 
263
267
  .reveal .progress span {
264
- background: #13DAEC;
265
268
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
266
269
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
267
270
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
268
-
269
- /*********************************************
270
- * SLIDE NUMBER
271
- *********************************************/
272
- .reveal .slide-number {
273
- color: #13DAEC; }