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,10 +1,10 @@
1
- @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
2
- @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
3
1
  /**
4
2
  * Sky theme for reveal.js.
5
3
  *
6
4
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7
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
8
  .reveal a {
9
9
  line-height: 1.3em; }
10
10
 
@@ -22,8 +22,8 @@ body {
22
22
  background-color: #f7fbfc; }
23
23
 
24
24
  .reveal {
25
- font-family: 'Open Sans', sans-serif;
26
- font-size: 36px;
25
+ font-family: "Open Sans", sans-serif;
26
+ font-size: 40px;
27
27
  font-weight: normal;
28
28
  color: #333; }
29
29
 
@@ -32,17 +32,28 @@ body {
32
32
  background: #134674;
33
33
  text-shadow: none; }
34
34
 
35
- .reveal .slides > section, .reveal .slides > section > section {
35
+ ::-moz-selection {
36
+ color: #fff;
37
+ background: #134674;
38
+ text-shadow: none; }
39
+
40
+ .reveal .slides > section,
41
+ .reveal .slides > section > section {
36
42
  line-height: 1.3;
37
43
  font-weight: inherit; }
38
44
 
39
45
  /*********************************************
40
46
  * HEADERS
41
47
  *********************************************/
42
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
48
+ .reveal h1,
49
+ .reveal h2,
50
+ .reveal h3,
51
+ .reveal h4,
52
+ .reveal h5,
53
+ .reveal h6 {
43
54
  margin: 0 0 20px 0;
44
55
  color: #333;
45
- font-family: 'Quicksand', sans-serif;
56
+ font-family: "Quicksand", sans-serif;
46
57
  font-weight: normal;
47
58
  line-height: 1.2;
48
59
  letter-spacing: -0.08em;
@@ -73,17 +84,22 @@ body {
73
84
  line-height: 1.3; }
74
85
 
75
86
  /* Ensure certain elements are never larger than the slide itself */
76
- .reveal img, .reveal video, .reveal iframe {
87
+ .reveal img,
88
+ .reveal video,
89
+ .reveal iframe {
77
90
  max-width: 95%;
78
91
  max-height: 95%; }
79
92
 
80
- .reveal strong, .reveal b {
93
+ .reveal strong,
94
+ .reveal b {
81
95
  font-weight: bold; }
82
96
 
83
97
  .reveal em {
84
98
  font-style: italic; }
85
99
 
86
- .reveal ol, .reveal dl, .reveal ul {
100
+ .reveal ol,
101
+ .reveal dl,
102
+ .reveal ul {
87
103
  display: inline-block;
88
104
  text-align: left;
89
105
  margin: 0 0 0 1em; }
@@ -100,7 +116,10 @@ body {
100
116
  .reveal ul ul ul {
101
117
  list-style-type: circle; }
102
118
 
103
- .reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
119
+ .reveal ul ul,
120
+ .reveal ul ol,
121
+ .reveal ol ol,
122
+ .reveal ol ul {
104
123
  display: block;
105
124
  margin-left: 40px; }
106
125
 
@@ -110,9 +129,6 @@ body {
110
129
  .reveal dd {
111
130
  margin-left: 40px; }
112
131
 
113
- .reveal q, .reveal blockquote {
114
- quotes: none; }
115
-
116
132
  .reveal blockquote {
117
133
  display: block;
118
134
  position: relative;
@@ -123,7 +139,8 @@ body {
123
139
  background: rgba(255, 255, 255, 0.05);
124
140
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
125
141
 
126
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
142
+ .reveal blockquote p:first-child,
143
+ .reveal blockquote p:last-child {
127
144
  display: inline-block; }
128
145
 
129
146
  .reveal q {
@@ -142,16 +159,15 @@ body {
142
159
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
143
160
 
144
161
  .reveal code {
145
- font-family: monospace; }
162
+ font-family: monospace;
163
+ text-transform: none; }
146
164
 
147
165
  .reveal pre code {
148
166
  display: block;
149
167
  padding: 5px;
150
168
  overflow: auto;
151
169
  max-height: 400px;
152
- word-wrap: normal;
153
- background: #3F3F3F;
154
- color: #DCDCDC; }
170
+ word-wrap: normal; }
155
171
 
156
172
  .reveal table {
157
173
  margin: auto;
@@ -161,18 +177,22 @@ body {
161
177
  .reveal table th {
162
178
  font-weight: bold; }
163
179
 
164
- .reveal table th, .reveal table td {
180
+ .reveal table th,
181
+ .reveal table td {
165
182
  text-align: left;
166
183
  padding: 0.2em 0.5em 0.2em 0.5em;
167
184
  border-bottom: 1px solid; }
168
185
 
169
- .reveal table th[align="center"], .reveal table td[align="center"] {
186
+ .reveal table th[align="center"],
187
+ .reveal table td[align="center"] {
170
188
  text-align: center; }
171
189
 
172
- .reveal table th[align="right"], .reveal table td[align="right"] {
190
+ .reveal table th[align="right"],
191
+ .reveal table td[align="right"] {
173
192
  text-align: right; }
174
193
 
175
- .reveal table tr:last-child td {
194
+ .reveal table tbody tr:last-child th,
195
+ .reveal table tbody tr:last-child td {
176
196
  border-bottom: none; }
177
197
 
178
198
  .reveal sup {
@@ -196,18 +216,18 @@ body {
196
216
  .reveal a {
197
217
  color: #3b759e;
198
218
  text-decoration: none;
199
- -webkit-transition: color 0.15s ease;
200
- -moz-transition: color 0.15s ease;
201
- transition: color 0.15s ease; }
219
+ -webkit-transition: color .15s ease;
220
+ -moz-transition: color .15s ease;
221
+ transition: color .15s ease; }
202
222
 
203
223
  .reveal a:hover {
204
- color: #74a8cb;
224
+ color: #74a7cb;
205
225
  text-shadow: none;
206
226
  border: none; }
207
227
 
208
228
  .reveal .roll span:after {
209
229
  color: #fff;
210
- background: #264d66; }
230
+ background: #264c66; }
211
231
 
212
232
  /*********************************************
213
233
  * IMAGES
@@ -218,10 +238,14 @@ body {
218
238
  border: 4px solid #333;
219
239
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
220
240
 
241
+ .reveal section img.plain {
242
+ border: 0;
243
+ box-shadow: none; }
244
+
221
245
  .reveal a img {
222
- -webkit-transition: all 0.15s linear;
223
- -moz-transition: all 0.15s linear;
224
- transition: all 0.15s linear; }
246
+ -webkit-transition: all .15s linear;
247
+ -moz-transition: all .15s linear;
248
+ transition: all .15s linear; }
225
249
 
226
250
  .reveal a:hover img {
227
251
  background: rgba(255, 255, 255, 0.2);
@@ -231,44 +255,17 @@ body {
231
255
  /*********************************************
232
256
  * NAVIGATION CONTROLS
233
257
  *********************************************/
234
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
235
- border-right-color: #3b759e; }
236
-
237
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
238
- border-left-color: #3b759e; }
239
-
240
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
241
- border-bottom-color: #3b759e; }
242
-
243
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
244
- border-top-color: #3b759e; }
245
-
246
- .reveal .controls div.navigate-left.enabled:hover {
247
- border-right-color: #74a8cb; }
248
-
249
- .reveal .controls div.navigate-right.enabled:hover {
250
- border-left-color: #74a8cb; }
251
-
252
- .reveal .controls div.navigate-up.enabled:hover {
253
- border-bottom-color: #74a8cb; }
254
-
255
- .reveal .controls div.navigate-down.enabled:hover {
256
- border-top-color: #74a8cb; }
258
+ .reveal .controls {
259
+ color: #3b759e; }
257
260
 
258
261
  /*********************************************
259
262
  * PROGRESS BAR
260
263
  *********************************************/
261
264
  .reveal .progress {
262
- background: rgba(0, 0, 0, 0.2); }
265
+ background: rgba(0, 0, 0, 0.2);
266
+ color: #3b759e; }
263
267
 
264
268
  .reveal .progress span {
265
- background: #3b759e;
266
269
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
267
270
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
268
271
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
269
-
270
- /*********************************************
271
- * SLIDE NUMBER
272
- *********************************************/
273
- .reveal .slide-number {
274
- color: #3b759e; }
@@ -1,9 +1,9 @@
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
  * Solarized Light theme for reveal.js.
5
3
  * Author: Achim Staebler
6
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
7
  /**
8
8
  * Solarized colors by Ethan Schoonover
9
9
  */
@@ -19,8 +19,8 @@ body {
19
19
  background-color: #fdf6e3; }
20
20
 
21
21
  .reveal {
22
- font-family: 'Lato', sans-serif;
23
- font-size: 36px;
22
+ font-family: "Lato", sans-serif;
23
+ font-size: 40px;
24
24
  font-weight: normal;
25
25
  color: #657b83; }
26
26
 
@@ -29,17 +29,28 @@ body {
29
29
  background: #d33682;
30
30
  text-shadow: none; }
31
31
 
32
- .reveal .slides > section, .reveal .slides > section > section {
32
+ ::-moz-selection {
33
+ color: #fff;
34
+ background: #d33682;
35
+ text-shadow: none; }
36
+
37
+ .reveal .slides > section,
38
+ .reveal .slides > section > section {
33
39
  line-height: 1.3;
34
40
  font-weight: inherit; }
35
41
 
36
42
  /*********************************************
37
43
  * HEADERS
38
44
  *********************************************/
39
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
45
+ .reveal h1,
46
+ .reveal h2,
47
+ .reveal h3,
48
+ .reveal h4,
49
+ .reveal h5,
50
+ .reveal h6 {
40
51
  margin: 0 0 20px 0;
41
52
  color: #586e75;
42
- font-family: 'League Gothic', Impact, sans-serif;
53
+ font-family: "League Gothic", Impact, sans-serif;
43
54
  font-weight: normal;
44
55
  line-height: 1.2;
45
56
  letter-spacing: normal;
@@ -70,17 +81,22 @@ body {
70
81
  line-height: 1.3; }
71
82
 
72
83
  /* Ensure certain elements are never larger than the slide itself */
73
- .reveal img, .reveal video, .reveal iframe {
84
+ .reveal img,
85
+ .reveal video,
86
+ .reveal iframe {
74
87
  max-width: 95%;
75
88
  max-height: 95%; }
76
89
 
77
- .reveal strong, .reveal b {
90
+ .reveal strong,
91
+ .reveal b {
78
92
  font-weight: bold; }
79
93
 
80
94
  .reveal em {
81
95
  font-style: italic; }
82
96
 
83
- .reveal ol, .reveal dl, .reveal ul {
97
+ .reveal ol,
98
+ .reveal dl,
99
+ .reveal ul {
84
100
  display: inline-block;
85
101
  text-align: left;
86
102
  margin: 0 0 0 1em; }
@@ -97,7 +113,10 @@ body {
97
113
  .reveal ul ul ul {
98
114
  list-style-type: circle; }
99
115
 
100
- .reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
116
+ .reveal ul ul,
117
+ .reveal ul ol,
118
+ .reveal ol ol,
119
+ .reveal ol ul {
101
120
  display: block;
102
121
  margin-left: 40px; }
103
122
 
@@ -107,9 +126,6 @@ body {
107
126
  .reveal dd {
108
127
  margin-left: 40px; }
109
128
 
110
- .reveal q, .reveal blockquote {
111
- quotes: none; }
112
-
113
129
  .reveal blockquote {
114
130
  display: block;
115
131
  position: relative;
@@ -120,7 +136,8 @@ body {
120
136
  background: rgba(255, 255, 255, 0.05);
121
137
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
122
138
 
123
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
139
+ .reveal blockquote p:first-child,
140
+ .reveal blockquote p:last-child {
124
141
  display: inline-block; }
125
142
 
126
143
  .reveal q {
@@ -139,16 +156,15 @@ body {
139
156
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
140
157
 
141
158
  .reveal code {
142
- font-family: monospace; }
159
+ font-family: monospace;
160
+ text-transform: none; }
143
161
 
144
162
  .reveal pre code {
145
163
  display: block;
146
164
  padding: 5px;
147
165
  overflow: auto;
148
166
  max-height: 400px;
149
- word-wrap: normal;
150
- background: #3F3F3F;
151
- color: #DCDCDC; }
167
+ word-wrap: normal; }
152
168
 
153
169
  .reveal table {
154
170
  margin: auto;
@@ -158,18 +174,22 @@ body {
158
174
  .reveal table th {
159
175
  font-weight: bold; }
160
176
 
161
- .reveal table th, .reveal table td {
177
+ .reveal table th,
178
+ .reveal table td {
162
179
  text-align: left;
163
180
  padding: 0.2em 0.5em 0.2em 0.5em;
164
181
  border-bottom: 1px solid; }
165
182
 
166
- .reveal table th[align="center"], .reveal table td[align="center"] {
183
+ .reveal table th[align="center"],
184
+ .reveal table td[align="center"] {
167
185
  text-align: center; }
168
186
 
169
- .reveal table th[align="right"], .reveal table td[align="right"] {
187
+ .reveal table th[align="right"],
188
+ .reveal table td[align="right"] {
170
189
  text-align: right; }
171
190
 
172
- .reveal table tr:last-child td {
191
+ .reveal table tbody tr:last-child th,
192
+ .reveal table tbody tr:last-child td {
173
193
  border-bottom: none; }
174
194
 
175
195
  .reveal sup {
@@ -193,18 +213,18 @@ body {
193
213
  .reveal a {
194
214
  color: #268bd2;
195
215
  text-decoration: none;
196
- -webkit-transition: color 0.15s ease;
197
- -moz-transition: color 0.15s ease;
198
- transition: color 0.15s ease; }
216
+ -webkit-transition: color .15s ease;
217
+ -moz-transition: color .15s ease;
218
+ transition: color .15s ease; }
199
219
 
200
220
  .reveal a:hover {
201
- color: #78bae6;
221
+ color: #78b9e6;
202
222
  text-shadow: none;
203
223
  border: none; }
204
224
 
205
225
  .reveal .roll span:after {
206
226
  color: #fff;
207
- background: #1a6291; }
227
+ background: #1a6091; }
208
228
 
209
229
  /*********************************************
210
230
  * IMAGES
@@ -215,10 +235,14 @@ body {
215
235
  border: 4px solid #657b83;
216
236
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
217
237
 
238
+ .reveal section img.plain {
239
+ border: 0;
240
+ box-shadow: none; }
241
+
218
242
  .reveal a img {
219
- -webkit-transition: all 0.15s linear;
220
- -moz-transition: all 0.15s linear;
221
- transition: all 0.15s linear; }
243
+ -webkit-transition: all .15s linear;
244
+ -moz-transition: all .15s linear;
245
+ transition: all .15s linear; }
222
246
 
223
247
  .reveal a:hover img {
224
248
  background: rgba(255, 255, 255, 0.2);
@@ -228,44 +252,17 @@ body {
228
252
  /*********************************************
229
253
  * NAVIGATION CONTROLS
230
254
  *********************************************/
231
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
232
- border-right-color: #268bd2; }
233
-
234
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
235
- border-left-color: #268bd2; }
236
-
237
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
238
- border-bottom-color: #268bd2; }
239
-
240
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
241
- border-top-color: #268bd2; }
242
-
243
- .reveal .controls div.navigate-left.enabled:hover {
244
- border-right-color: #78bae6; }
245
-
246
- .reveal .controls div.navigate-right.enabled:hover {
247
- border-left-color: #78bae6; }
248
-
249
- .reveal .controls div.navigate-up.enabled:hover {
250
- border-bottom-color: #78bae6; }
251
-
252
- .reveal .controls div.navigate-down.enabled:hover {
253
- border-top-color: #78bae6; }
255
+ .reveal .controls {
256
+ color: #268bd2; }
254
257
 
255
258
  /*********************************************
256
259
  * PROGRESS BAR
257
260
  *********************************************/
258
261
  .reveal .progress {
259
- background: rgba(0, 0, 0, 0.2); }
262
+ background: rgba(0, 0, 0, 0.2);
263
+ color: #268bd2; }
260
264
 
261
265
  .reveal .progress span {
262
- background: #268bd2;
263
266
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
264
267
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
265
268
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
266
-
267
- /*********************************************
268
- * SLIDE NUMBER
269
- *********************************************/
270
- .reveal .slide-number {
271
- color: #268bd2; }