slide_hero 0.0.10 → 0.0.11

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -1
  4. data/README.md +2 -2
  5. data/lib/slide_hero/blockquote.rb +10 -0
  6. data/lib/slide_hero/pluggable.rb +4 -4
  7. data/lib/slide_hero/plugins.rb +0 -1
  8. data/lib/slide_hero/presentation.rb +3 -3
  9. data/lib/slide_hero/slide.rb +2 -2
  10. data/lib/slide_hero/version.rb +1 -1
  11. data/lib/slide_hero/views/blockquote.html.erb +3 -0
  12. data/lib/slide_hero.rb +1 -0
  13. data/test/slide_hero/blockquote_spec.rb +13 -0
  14. data/test/slide_hero/plugins_spec.rb +0 -1
  15. data/test/slide_hero/presentation_spec.rb +2 -1
  16. data/test/slide_hero/slide_spec.rb +14 -3
  17. data/test/slide_hero_spec.rb +1 -0
  18. data/vendor/reveal.js/.gitignore +6 -1
  19. data/vendor/reveal.js/.travis.yml +1 -1
  20. data/vendor/reveal.js/CONTRIBUTING.md +4 -0
  21. data/vendor/reveal.js/Gruntfile.js +26 -24
  22. data/vendor/reveal.js/LICENSE +1 -1
  23. data/vendor/reveal.js/README.md +215 -124
  24. data/vendor/reveal.js/bower.json +27 -0
  25. data/vendor/reveal.js/css/print/paper.css +1 -1
  26. data/vendor/reveal.js/css/print/pdf.css +30 -27
  27. data/vendor/reveal.js/css/reveal.css +381 -191
  28. data/vendor/reveal.js/css/reveal.scss +259 -164
  29. data/vendor/reveal.js/css/theme/README.md +2 -6
  30. data/vendor/reveal.js/css/theme/beige.css +75 -49
  31. data/vendor/reveal.js/css/theme/black.css +64 -38
  32. data/vendor/reveal.js/css/theme/blood.css +75 -56
  33. data/vendor/reveal.js/css/theme/league.css +69 -43
  34. data/vendor/reveal.js/css/theme/moon.css +69 -43
  35. data/vendor/reveal.js/css/theme/night.css +64 -38
  36. data/vendor/reveal.js/css/theme/serif.css +66 -40
  37. data/vendor/reveal.js/css/theme/simple.css +63 -37
  38. data/vendor/reveal.js/css/theme/sky.css +69 -43
  39. data/vendor/reveal.js/css/theme/solarized.css +69 -43
  40. data/vendor/reveal.js/css/theme/source/black.scss +1 -1
  41. data/vendor/reveal.js/css/theme/source/blood.scss +3 -15
  42. data/vendor/reveal.js/css/theme/source/white.scss +1 -1
  43. data/vendor/reveal.js/css/theme/template/theme.scss +30 -23
  44. data/vendor/reveal.js/css/theme/white.css +69 -43
  45. data/vendor/reveal.js/demo.html +410 -0
  46. data/vendor/reveal.js/index.html +13 -371
  47. data/vendor/reveal.js/js/reveal.js +643 -175
  48. data/vendor/reveal.js/lib/css/zenburn.css +41 -78
  49. data/vendor/reveal.js/lib/js/head.min.js +9 -8
  50. data/vendor/reveal.js/package.json +20 -24
  51. data/vendor/reveal.js/plugin/highlight/highlight.js +4 -3
  52. data/vendor/reveal.js/plugin/markdown/example.html +1 -1
  53. data/vendor/reveal.js/plugin/markdown/markdown.js +19 -7
  54. data/vendor/reveal.js/plugin/markdown/marked.js +2 -33
  55. data/vendor/reveal.js/plugin/math/math.js +5 -2
  56. data/vendor/reveal.js/plugin/multiplex/client.js +1 -1
  57. data/vendor/reveal.js/plugin/multiplex/index.js +24 -16
  58. data/vendor/reveal.js/plugin/multiplex/master.js +22 -42
  59. data/vendor/reveal.js/plugin/multiplex/package.json +19 -0
  60. data/vendor/reveal.js/plugin/notes/notes.html +11 -3
  61. data/vendor/reveal.js/plugin/notes/notes.js +19 -5
  62. data/vendor/reveal.js/plugin/notes-server/client.js +6 -1
  63. data/vendor/reveal.js/plugin/notes-server/index.js +17 -14
  64. data/vendor/reveal.js/plugin/notes-server/notes.html +17 -6
  65. data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +1 -1
  66. data/vendor/reveal.js/plugin/zoom-js/zoom.js +1 -1
  67. data/vendor/reveal.js/test/examples/slide-backgrounds.html +1 -1
  68. data/vendor/reveal.js/test/examples/slide-transitions.html +101 -0
  69. data/vendor/reveal.js/test/test-markdown-element-attributes.html +3 -3
  70. data/vendor/reveal.js/test/test-markdown-element-attributes.js +1 -1
  71. data/vendor/reveal.js/test/test.html +5 -1
  72. data/vendor/reveal.js/test/test.js +26 -1
  73. metadata +11 -5
  74. data/vendor/reveal.js/plugin/leap/leap.js +0 -159
  75. data/vendor/reveal.js/plugin/remotes/remotes.js +0 -39
@@ -24,6 +24,8 @@ $blood: #a23;
24
24
  $coal: #222;
25
25
  $codeBackground: #23241f;
26
26
 
27
+ $backgroundColor: $coal;
28
+
27
29
  // Main text
28
30
  $mainFont: Ubuntu, 'sans-serif';
29
31
  $mainFontSize: 36px;
@@ -45,10 +47,6 @@ $linkColorHover: lighten( $linkColor, 20% );
45
47
  $selectionBackgroundColor: $blood;
46
48
  $selectionColor: #fff;
47
49
 
48
- // Background generator
49
- @mixin bodyBackground() {
50
- @include radial-gradient( $coal, lighten( $coal, 25% ) );
51
- }
52
50
 
53
51
  // Theme template ------------------------------
54
52
  @import "../template/theme";
@@ -61,7 +59,7 @@ $selectionColor: #fff;
61
59
  text-shadow: 1px 1px $coal;
62
60
  }
63
61
 
64
- .reveal h1,
62
+ .reveal h1,
65
63
  .reveal h2,
66
64
  .reveal h3,
67
65
  .reveal h4,
@@ -70,16 +68,6 @@ $selectionColor: #fff;
70
68
  font-weight: 700;
71
69
  }
72
70
 
73
- .reveal a,
74
- .reveal a:hover {
75
- text-shadow: 2px 2px 2px #000;
76
- }
77
-
78
- .reveal small a,
79
- .reveal small a:hover {
80
- text-shadow: 1px 1px 1px #000;
81
- }
82
-
83
71
  .reveal p code {
84
72
  background-color: $codeBackground;
85
73
  display: inline-block;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * White theme for reveal.js. This is the opposite of the 'black' theme.
3
3
  *
4
- * Copyright (C) 2015 Hakim El Hattab, http://hakim.se
4
+ * By Hakim El Hattab, http://hakim.se
5
5
  */
6
6
 
7
7
 
@@ -178,8 +178,6 @@ body {
178
178
  overflow: auto;
179
179
  max-height: 400px;
180
180
  word-wrap: normal;
181
- background: #3F3F3F;
182
- color: #DCDCDC;
183
181
  }
184
182
 
185
183
  .reveal table {
@@ -199,8 +197,19 @@ body {
199
197
  border-bottom: 1px solid;
200
198
  }
201
199
 
202
- .reveal table tr:last-child td {
203
- border-bottom: none;
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;
204
213
  }
205
214
 
206
215
  .reveal sup {
@@ -259,6 +268,11 @@ body {
259
268
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
260
269
  }
261
270
 
271
+ .reveal section img.plain {
272
+ border: 0;
273
+ box-shadow: none;
274
+ }
275
+
262
276
  .reveal a img {
263
277
  -webkit-transition: all .15s linear;
264
278
  -moz-transition: all .15s linear;
@@ -277,39 +291,39 @@ body {
277
291
  * NAVIGATION CONTROLS
278
292
  *********************************************/
279
293
 
280
- .reveal .controls div.navigate-left,
281
- .reveal .controls div.navigate-left.enabled {
294
+ .reveal .controls .navigate-left,
295
+ .reveal .controls .navigate-left.enabled {
282
296
  border-right-color: $linkColor;
283
297
  }
284
298
 
285
- .reveal .controls div.navigate-right,
286
- .reveal .controls div.navigate-right.enabled {
299
+ .reveal .controls .navigate-right,
300
+ .reveal .controls .navigate-right.enabled {
287
301
  border-left-color: $linkColor;
288
302
  }
289
303
 
290
- .reveal .controls div.navigate-up,
291
- .reveal .controls div.navigate-up.enabled {
304
+ .reveal .controls .navigate-up,
305
+ .reveal .controls .navigate-up.enabled {
292
306
  border-bottom-color: $linkColor;
293
307
  }
294
308
 
295
- .reveal .controls div.navigate-down,
296
- .reveal .controls div.navigate-down.enabled {
309
+ .reveal .controls .navigate-down,
310
+ .reveal .controls .navigate-down.enabled {
297
311
  border-top-color: $linkColor;
298
312
  }
299
313
 
300
- .reveal .controls div.navigate-left.enabled:hover {
314
+ .reveal .controls .navigate-left.enabled:hover {
301
315
  border-right-color: $linkColorHover;
302
316
  }
303
317
 
304
- .reveal .controls div.navigate-right.enabled:hover {
318
+ .reveal .controls .navigate-right.enabled:hover {
305
319
  border-left-color: $linkColorHover;
306
320
  }
307
321
 
308
- .reveal .controls div.navigate-up.enabled:hover {
322
+ .reveal .controls .navigate-up.enabled:hover {
309
323
  border-bottom-color: $linkColorHover;
310
324
  }
311
325
 
312
- .reveal .controls div.navigate-down.enabled:hover {
326
+ .reveal .controls .navigate-down.enabled:hover {
313
327
  border-top-color: $linkColorHover;
314
328
  }
315
329
 
@@ -329,11 +343,4 @@ body {
329
343
  transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
330
344
  }
331
345
 
332
- /*********************************************
333
- * SLIDE NUMBER
334
- *********************************************/
335
- .reveal .slide-number {
336
- color: $linkColor;
337
- }
338
-
339
346
 
@@ -1,9 +1,9 @@
1
- @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
2
1
  /**
3
2
  * White theme for reveal.js. This is the opposite of the 'black' theme.
4
3
  *
5
- * Copyright (C) 2015 Hakim El Hattab, http://hakim.se
4
+ * By Hakim El Hattab, http://hakim.se
6
5
  */
6
+ @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7
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
8
  color: #fff; }
9
9
 
@@ -15,7 +15,7 @@ body {
15
15
  background-color: #fff; }
16
16
 
17
17
  .reveal {
18
- font-family: 'Source Sans Pro', Helvetica, sans-serif;
18
+ font-family: "Source Sans Pro", Helvetica, sans-serif;
19
19
  font-size: 38px;
20
20
  font-weight: normal;
21
21
  color: #222; }
@@ -25,17 +25,23 @@ body {
25
25
  background: #98bdef;
26
26
  text-shadow: none; }
27
27
 
28
- .reveal .slides > section, .reveal .slides > section > section {
28
+ .reveal .slides > section,
29
+ .reveal .slides > section > section {
29
30
  line-height: 1.3;
30
31
  font-weight: inherit; }
31
32
 
32
33
  /*********************************************
33
34
  * HEADERS
34
35
  *********************************************/
35
- .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
36
+ .reveal h1,
37
+ .reveal h2,
38
+ .reveal h3,
39
+ .reveal h4,
40
+ .reveal h5,
41
+ .reveal h6 {
36
42
  margin: 0 0 20px 0;
37
43
  color: #222;
38
- font-family: 'Source Sans Pro', Helvetica, sans-serif;
44
+ font-family: "Source Sans Pro", Helvetica, sans-serif;
39
45
  font-weight: 600;
40
46
  line-height: 1.2;
41
47
  letter-spacing: normal;
@@ -66,17 +72,22 @@ body {
66
72
  line-height: 1.3; }
67
73
 
68
74
  /* Ensure certain elements are never larger than the slide itself */
69
- .reveal img, .reveal video, .reveal iframe {
75
+ .reveal img,
76
+ .reveal video,
77
+ .reveal iframe {
70
78
  max-width: 95%;
71
79
  max-height: 95%; }
72
80
 
73
- .reveal strong, .reveal b {
81
+ .reveal strong,
82
+ .reveal b {
74
83
  font-weight: bold; }
75
84
 
76
85
  .reveal em {
77
86
  font-style: italic; }
78
87
 
79
- .reveal ol, .reveal dl, .reveal ul {
88
+ .reveal ol,
89
+ .reveal dl,
90
+ .reveal ul {
80
91
  display: inline-block;
81
92
  text-align: left;
82
93
  margin: 0 0 0 1em; }
@@ -93,7 +104,10 @@ body {
93
104
  .reveal ul ul ul {
94
105
  list-style-type: circle; }
95
106
 
96
- .reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul {
107
+ .reveal ul ul,
108
+ .reveal ul ol,
109
+ .reveal ol ol,
110
+ .reveal ol ul {
97
111
  display: block;
98
112
  margin-left: 40px; }
99
113
 
@@ -103,7 +117,8 @@ body {
103
117
  .reveal dd {
104
118
  margin-left: 40px; }
105
119
 
106
- .reveal q, .reveal blockquote {
120
+ .reveal q,
121
+ .reveal blockquote {
107
122
  quotes: none; }
108
123
 
109
124
  .reveal blockquote {
@@ -116,7 +131,8 @@ body {
116
131
  background: rgba(255, 255, 255, 0.05);
117
132
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
118
133
 
119
- .reveal blockquote p:first-child, .reveal blockquote p:last-child {
134
+ .reveal blockquote p:first-child,
135
+ .reveal blockquote p:last-child {
120
136
  display: inline-block; }
121
137
 
122
138
  .reveal q {
@@ -142,9 +158,7 @@ body {
142
158
  padding: 5px;
143
159
  overflow: auto;
144
160
  max-height: 400px;
145
- word-wrap: normal;
146
- background: #3F3F3F;
147
- color: #DCDCDC; }
161
+ word-wrap: normal; }
148
162
 
149
163
  .reveal table {
150
164
  margin: auto;
@@ -154,12 +168,22 @@ body {
154
168
  .reveal table th {
155
169
  font-weight: bold; }
156
170
 
157
- .reveal table th, .reveal table td {
171
+ .reveal table th,
172
+ .reveal table td {
158
173
  text-align: left;
159
174
  padding: 0.2em 0.5em 0.2em 0.5em;
160
175
  border-bottom: 1px solid; }
161
176
 
162
- .reveal table tr:last-child td {
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 {
163
187
  border-bottom: none; }
164
188
 
165
189
  .reveal sup {
@@ -183,18 +207,18 @@ body {
183
207
  .reveal a {
184
208
  color: #2a76dd;
185
209
  text-decoration: none;
186
- -webkit-transition: color 0.15s ease;
187
- -moz-transition: color 0.15s ease;
188
- transition: color 0.15s ease; }
210
+ -webkit-transition: color .15s ease;
211
+ -moz-transition: color .15s ease;
212
+ transition: color .15s ease; }
189
213
 
190
214
  .reveal a:hover {
191
- color: #6ca2e8;
215
+ color: #6ca0e8;
192
216
  text-shadow: none;
193
217
  border: none; }
194
218
 
195
219
  .reveal .roll span:after {
196
220
  color: #fff;
197
- background: #1a54a1; }
221
+ background: #1a53a1; }
198
222
 
199
223
  /*********************************************
200
224
  * IMAGES
@@ -205,10 +229,14 @@ body {
205
229
  border: 4px solid #222;
206
230
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
207
231
 
232
+ .reveal section img.plain {
233
+ border: 0;
234
+ box-shadow: none; }
235
+
208
236
  .reveal a img {
209
- -webkit-transition: all 0.15s linear;
210
- -moz-transition: all 0.15s linear;
211
- transition: all 0.15s linear; }
237
+ -webkit-transition: all .15s linear;
238
+ -moz-transition: all .15s linear;
239
+ transition: all .15s linear; }
212
240
 
213
241
  .reveal a:hover img {
214
242
  background: rgba(255, 255, 255, 0.2);
@@ -218,29 +246,33 @@ body {
218
246
  /*********************************************
219
247
  * NAVIGATION CONTROLS
220
248
  *********************************************/
221
- .reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
249
+ .reveal .controls .navigate-left,
250
+ .reveal .controls .navigate-left.enabled {
222
251
  border-right-color: #2a76dd; }
223
252
 
224
- .reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
253
+ .reveal .controls .navigate-right,
254
+ .reveal .controls .navigate-right.enabled {
225
255
  border-left-color: #2a76dd; }
226
256
 
227
- .reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
257
+ .reveal .controls .navigate-up,
258
+ .reveal .controls .navigate-up.enabled {
228
259
  border-bottom-color: #2a76dd; }
229
260
 
230
- .reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
261
+ .reveal .controls .navigate-down,
262
+ .reveal .controls .navigate-down.enabled {
231
263
  border-top-color: #2a76dd; }
232
264
 
233
- .reveal .controls div.navigate-left.enabled:hover {
234
- border-right-color: #6ca2e8; }
265
+ .reveal .controls .navigate-left.enabled:hover {
266
+ border-right-color: #6ca0e8; }
235
267
 
236
- .reveal .controls div.navigate-right.enabled:hover {
237
- border-left-color: #6ca2e8; }
268
+ .reveal .controls .navigate-right.enabled:hover {
269
+ border-left-color: #6ca0e8; }
238
270
 
239
- .reveal .controls div.navigate-up.enabled:hover {
240
- border-bottom-color: #6ca2e8; }
271
+ .reveal .controls .navigate-up.enabled:hover {
272
+ border-bottom-color: #6ca0e8; }
241
273
 
242
- .reveal .controls div.navigate-down.enabled:hover {
243
- border-top-color: #6ca2e8; }
274
+ .reveal .controls .navigate-down.enabled:hover {
275
+ border-top-color: #6ca0e8; }
244
276
 
245
277
  /*********************************************
246
278
  * PROGRESS BAR
@@ -253,9 +285,3 @@ body {
253
285
  -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
254
286
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
255
287
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
256
-
257
- /*********************************************
258
- * SLIDE NUMBER
259
- *********************************************/
260
- .reveal .slide-number {
261
- color: #2a76dd; }