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
@@ -15,8 +15,8 @@ body {
15
15
  background-color: #F0F1EB; }
16
16
 
17
17
  .reveal {
18
- font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
19
- font-size: 36px;
18
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
19
+ font-size: 40px;
20
20
  font-weight: normal;
21
21
  color: #000; }
22
22
 
@@ -25,17 +25,28 @@ body {
25
25
  background: #26351C;
26
26
  text-shadow: none; }
27
27
 
28
- .reveal .slides > section, .reveal .slides > section > section {
28
+ ::-moz-selection {
29
+ color: #fff;
30
+ background: #26351C;
31
+ text-shadow: none; }
32
+
33
+ .reveal .slides > section,
34
+ .reveal .slides > section > section {
29
35
  line-height: 1.3;
30
36
  font-weight: inherit; }
31
37
 
32
38
  /*********************************************
33
39
  * HEADERS
34
40
  *********************************************/
35
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
41
+ .reveal h1,
42
+ .reveal h2,
43
+ .reveal h3,
44
+ .reveal h4,
45
+ .reveal h5,
46
+ .reveal h6 {
36
47
  margin: 0 0 20px 0;
37
48
  color: #383D3D;
38
- font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
49
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
39
50
  font-weight: normal;
40
51
  line-height: 1.2;
41
52
  letter-spacing: normal;
@@ -66,17 +77,22 @@ body {
66
77
  line-height: 1.3; }
67
78
 
68
79
  /* Ensure certain elements are never larger than the slide itself */
69
- .reveal img, .reveal video, .reveal iframe {
80
+ .reveal img,
81
+ .reveal video,
82
+ .reveal iframe {
70
83
  max-width: 95%;
71
84
  max-height: 95%; }
72
85
 
73
- .reveal strong, .reveal b {
86
+ .reveal strong,
87
+ .reveal b {
74
88
  font-weight: bold; }
75
89
 
76
90
  .reveal em {
77
91
  font-style: italic; }
78
92
 
79
- .reveal ol, .reveal dl, .reveal ul {
93
+ .reveal ol,
94
+ .reveal dl,
95
+ .reveal ul {
80
96
  display: inline-block;
81
97
  text-align: left;
82
98
  margin: 0 0 0 1em; }
@@ -93,7 +109,10 @@ body {
93
109
  .reveal ul ul ul {
94
110
  list-style-type: circle; }
95
111
 
96
- .reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
112
+ .reveal ul ul,
113
+ .reveal ul ol,
114
+ .reveal ol ol,
115
+ .reveal ol ul {
97
116
  display: block;
98
117
  margin-left: 40px; }
99
118
 
@@ -103,9 +122,6 @@ body {
103
122
  .reveal dd {
104
123
  margin-left: 40px; }
105
124
 
106
- .reveal q, .reveal blockquote {
107
- quotes: none; }
108
-
109
125
  .reveal blockquote {
110
126
  display: block;
111
127
  position: relative;
@@ -116,7 +132,8 @@ body {
116
132
  background: rgba(255, 255, 255, 0.05);
117
133
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
118
134
 
119
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
135
+ .reveal blockquote p:first-child,
136
+ .reveal blockquote p:last-child {
120
137
  display: inline-block; }
121
138
 
122
139
  .reveal q {
@@ -135,16 +152,15 @@ body {
135
152
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
136
153
 
137
154
  .reveal code {
138
- font-family: monospace; }
155
+ font-family: monospace;
156
+ text-transform: none; }
139
157
 
140
158
  .reveal pre code {
141
159
  display: block;
142
160
  padding: 5px;
143
161
  overflow: auto;
144
162
  max-height: 400px;
145
- word-wrap: normal;
146
- background: #3F3F3F;
147
- color: #DCDCDC; }
163
+ word-wrap: normal; }
148
164
 
149
165
  .reveal table {
150
166
  margin: auto;
@@ -154,18 +170,22 @@ body {
154
170
  .reveal table th {
155
171
  font-weight: bold; }
156
172
 
157
- .reveal table th, .reveal table td {
173
+ .reveal table th,
174
+ .reveal table td {
158
175
  text-align: left;
159
176
  padding: 0.2em 0.5em 0.2em 0.5em;
160
177
  border-bottom: 1px solid; }
161
178
 
162
- .reveal table th[align="center"], .reveal table td[align="center"] {
179
+ .reveal table th[align="center"],
180
+ .reveal table td[align="center"] {
163
181
  text-align: center; }
164
182
 
165
- .reveal table th[align="right"], .reveal table td[align="right"] {
183
+ .reveal table th[align="right"],
184
+ .reveal table td[align="right"] {
166
185
  text-align: right; }
167
186
 
168
- .reveal table tr:last-child td {
187
+ .reveal table tbody tr:last-child th,
188
+ .reveal table tbody tr:last-child td {
169
189
  border-bottom: none; }
170
190
 
171
191
  .reveal sup {
@@ -189,12 +209,12 @@ body {
189
209
  .reveal a {
190
210
  color: #51483D;
191
211
  text-decoration: none;
192
- -webkit-transition: color 0.15s ease;
193
- -moz-transition: color 0.15s ease;
194
- transition: color 0.15s ease; }
212
+ -webkit-transition: color .15s ease;
213
+ -moz-transition: color .15s ease;
214
+ transition: color .15s ease; }
195
215
 
196
216
  .reveal a:hover {
197
- color: #8b7b69;
217
+ color: #8b7c69;
198
218
  text-shadow: none;
199
219
  border: none; }
200
220
 
@@ -211,10 +231,14 @@ body {
211
231
  border: 4px solid #000;
212
232
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
213
233
 
234
+ .reveal section img.plain {
235
+ border: 0;
236
+ box-shadow: none; }
237
+
214
238
  .reveal a img {
215
- -webkit-transition: all 0.15s linear;
216
- -moz-transition: all 0.15s linear;
217
- transition: all 0.15s linear; }
239
+ -webkit-transition: all .15s linear;
240
+ -moz-transition: all .15s linear;
241
+ transition: all .15s linear; }
218
242
 
219
243
  .reveal a:hover img {
220
244
  background: rgba(255, 255, 255, 0.2);
@@ -224,44 +248,17 @@ body {
224
248
  /*********************************************
225
249
  * NAVIGATION CONTROLS
226
250
  *********************************************/
227
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
228
- border-right-color: #51483D; }
229
-
230
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
231
- border-left-color: #51483D; }
232
-
233
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
234
- border-bottom-color: #51483D; }
235
-
236
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
237
- border-top-color: #51483D; }
238
-
239
- .reveal .controls div.navigate-left.enabled:hover {
240
- border-right-color: #8b7b69; }
241
-
242
- .reveal .controls div.navigate-right.enabled:hover {
243
- border-left-color: #8b7b69; }
244
-
245
- .reveal .controls div.navigate-up.enabled:hover {
246
- border-bottom-color: #8b7b69; }
247
-
248
- .reveal .controls div.navigate-down.enabled:hover {
249
- border-top-color: #8b7b69; }
251
+ .reveal .controls {
252
+ color: #51483D; }
250
253
 
251
254
  /*********************************************
252
255
  * PROGRESS BAR
253
256
  *********************************************/
254
257
  .reveal .progress {
255
- background: rgba(0, 0, 0, 0.2); }
258
+ background: rgba(0, 0, 0, 0.2);
259
+ color: #51483D; }
256
260
 
257
261
  .reveal .progress span {
258
- background: #51483D;
259
262
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
260
263
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
261
264
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
262
-
263
- /*********************************************
264
- * SLIDE NUMBER
265
- *********************************************/
266
- .reveal .slide-number {
267
- color: #51483D; }
@@ -1,5 +1,3 @@
1
- @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
2
- @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
3
1
  /**
4
2
  * A simple theme for reveal.js presentations, similar
5
3
  * to the default theme. The accent color is darkblue.
@@ -7,6 +5,11 @@
7
5
  * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
8
6
  * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
9
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
+ 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 {
11
+ color: #fff; }
12
+
10
13
  /*********************************************
11
14
  * GLOBAL STYLES
12
15
  *********************************************/
@@ -15,8 +18,8 @@ body {
15
18
  background-color: #fff; }
16
19
 
17
20
  .reveal {
18
- font-family: 'Lato', sans-serif;
19
- font-size: 36px;
21
+ font-family: "Lato", sans-serif;
22
+ font-size: 40px;
20
23
  font-weight: normal;
21
24
  color: #000; }
22
25
 
@@ -25,17 +28,28 @@ body {
25
28
  background: rgba(0, 0, 0, 0.99);
26
29
  text-shadow: none; }
27
30
 
28
- .reveal .slides > section, .reveal .slides > section > section {
31
+ ::-moz-selection {
32
+ color: #fff;
33
+ background: rgba(0, 0, 0, 0.99);
34
+ text-shadow: none; }
35
+
36
+ .reveal .slides > section,
37
+ .reveal .slides > section > section {
29
38
  line-height: 1.3;
30
39
  font-weight: inherit; }
31
40
 
32
41
  /*********************************************
33
42
  * HEADERS
34
43
  *********************************************/
35
- .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 {
36
50
  margin: 0 0 20px 0;
37
51
  color: #000;
38
- font-family: 'News Cycle', Impact, sans-serif;
52
+ font-family: "News Cycle", Impact, sans-serif;
39
53
  font-weight: normal;
40
54
  line-height: 1.2;
41
55
  letter-spacing: normal;
@@ -66,17 +80,22 @@ body {
66
80
  line-height: 1.3; }
67
81
 
68
82
  /* Ensure certain elements are never larger than the slide itself */
69
- .reveal img, .reveal video, .reveal iframe {
83
+ .reveal img,
84
+ .reveal video,
85
+ .reveal iframe {
70
86
  max-width: 95%;
71
87
  max-height: 95%; }
72
88
 
73
- .reveal strong, .reveal b {
89
+ .reveal strong,
90
+ .reveal b {
74
91
  font-weight: bold; }
75
92
 
76
93
  .reveal em {
77
94
  font-style: italic; }
78
95
 
79
- .reveal ol, .reveal dl, .reveal ul {
96
+ .reveal ol,
97
+ .reveal dl,
98
+ .reveal ul {
80
99
  display: inline-block;
81
100
  text-align: left;
82
101
  margin: 0 0 0 1em; }
@@ -93,7 +112,10 @@ body {
93
112
  .reveal ul ul ul {
94
113
  list-style-type: circle; }
95
114
 
96
- .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 {
97
119
  display: block;
98
120
  margin-left: 40px; }
99
121
 
@@ -103,9 +125,6 @@ body {
103
125
  .reveal dd {
104
126
  margin-left: 40px; }
105
127
 
106
- .reveal q, .reveal blockquote {
107
- quotes: none; }
108
-
109
128
  .reveal blockquote {
110
129
  display: block;
111
130
  position: relative;
@@ -116,7 +135,8 @@ body {
116
135
  background: rgba(255, 255, 255, 0.05);
117
136
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
118
137
 
119
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
138
+ .reveal blockquote p:first-child,
139
+ .reveal blockquote p:last-child {
120
140
  display: inline-block; }
121
141
 
122
142
  .reveal q {
@@ -135,16 +155,15 @@ body {
135
155
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
136
156
 
137
157
  .reveal code {
138
- font-family: monospace; }
158
+ font-family: monospace;
159
+ text-transform: none; }
139
160
 
140
161
  .reveal pre code {
141
162
  display: block;
142
163
  padding: 5px;
143
164
  overflow: auto;
144
165
  max-height: 400px;
145
- word-wrap: normal;
146
- background: #3F3F3F;
147
- color: #DCDCDC; }
166
+ word-wrap: normal; }
148
167
 
149
168
  .reveal table {
150
169
  margin: auto;
@@ -154,18 +173,22 @@ body {
154
173
  .reveal table th {
155
174
  font-weight: bold; }
156
175
 
157
- .reveal table th, .reveal table td {
176
+ .reveal table th,
177
+ .reveal table td {
158
178
  text-align: left;
159
179
  padding: 0.2em 0.5em 0.2em 0.5em;
160
180
  border-bottom: 1px solid; }
161
181
 
162
- .reveal table th[align="center"], .reveal table td[align="center"] {
182
+ .reveal table th[align="center"],
183
+ .reveal table td[align="center"] {
163
184
  text-align: center; }
164
185
 
165
- .reveal table th[align="right"], .reveal table td[align="right"] {
186
+ .reveal table th[align="right"],
187
+ .reveal table td[align="right"] {
166
188
  text-align: right; }
167
189
 
168
- .reveal table tr:last-child td {
190
+ .reveal table tbody tr:last-child th,
191
+ .reveal table tbody tr:last-child td {
169
192
  border-bottom: none; }
170
193
 
171
194
  .reveal sup {
@@ -189,9 +212,9 @@ body {
189
212
  .reveal a {
190
213
  color: #00008B;
191
214
  text-decoration: none;
192
- -webkit-transition: color 0.15s ease;
193
- -moz-transition: color 0.15s ease;
194
- transition: color 0.15s ease; }
215
+ -webkit-transition: color .15s ease;
216
+ -moz-transition: color .15s ease;
217
+ transition: color .15s ease; }
195
218
 
196
219
  .reveal a:hover {
197
220
  color: #0000f1;
@@ -211,10 +234,14 @@ body {
211
234
  border: 4px solid #000;
212
235
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
213
236
 
237
+ .reveal section img.plain {
238
+ border: 0;
239
+ box-shadow: none; }
240
+
214
241
  .reveal a img {
215
- -webkit-transition: all 0.15s linear;
216
- -moz-transition: all 0.15s linear;
217
- transition: all 0.15s linear; }
242
+ -webkit-transition: all .15s linear;
243
+ -moz-transition: all .15s linear;
244
+ transition: all .15s linear; }
218
245
 
219
246
  .reveal a:hover img {
220
247
  background: rgba(255, 255, 255, 0.2);
@@ -224,44 +251,17 @@ body {
224
251
  /*********************************************
225
252
  * NAVIGATION CONTROLS
226
253
  *********************************************/
227
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
228
- border-right-color: #00008B; }
229
-
230
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
231
- border-left-color: #00008B; }
232
-
233
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
234
- border-bottom-color: #00008B; }
235
-
236
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
237
- border-top-color: #00008B; }
238
-
239
- .reveal .controls div.navigate-left.enabled:hover {
240
- border-right-color: #0000f1; }
241
-
242
- .reveal .controls div.navigate-right.enabled:hover {
243
- border-left-color: #0000f1; }
244
-
245
- .reveal .controls div.navigate-up.enabled:hover {
246
- border-bottom-color: #0000f1; }
247
-
248
- .reveal .controls div.navigate-down.enabled:hover {
249
- border-top-color: #0000f1; }
254
+ .reveal .controls {
255
+ color: #00008B; }
250
256
 
251
257
  /*********************************************
252
258
  * PROGRESS BAR
253
259
  *********************************************/
254
260
  .reveal .progress {
255
- background: rgba(0, 0, 0, 0.2); }
261
+ background: rgba(0, 0, 0, 0.2);
262
+ color: #00008B; }
256
263
 
257
264
  .reveal .progress span {
258
- background: #00008B;
259
265
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
260
266
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
261
267
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
262
-
263
- /*********************************************
264
- * SLIDE NUMBER
265
- *********************************************/
266
- .reveal .slide-number {
267
- color: #00008B; }