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