slideparts 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +8 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +40 -0
  8. data/Rakefile +7 -0
  9. data/bin/slide +5 -0
  10. data/lib/slide_template/Guardfile +3 -0
  11. data/lib/slide_template/_layouts/default.html.erb +74 -0
  12. data/lib/slide_template/css/print/paper.css +202 -0
  13. data/lib/slide_template/css/print/pdf.css +157 -0
  14. data/lib/slide_template/css/reveal.css +1141 -0
  15. data/lib/slide_template/css/reveal.scss +1316 -0
  16. data/lib/slide_template/css/theme/README.md +25 -0
  17. data/lib/slide_template/css/theme/beige.css +265 -0
  18. data/lib/slide_template/css/theme/black.css +261 -0
  19. data/lib/slide_template/css/theme/blood.css +291 -0
  20. data/lib/slide_template/css/theme/league.css +267 -0
  21. data/lib/slide_template/css/theme/moon.css +265 -0
  22. data/lib/slide_template/css/theme/night.css +259 -0
  23. data/lib/slide_template/css/theme/serif.css +261 -0
  24. data/lib/slide_template/css/theme/simple.css +261 -0
  25. data/lib/slide_template/css/theme/sky.css +268 -0
  26. data/lib/slide_template/css/theme/solarized.css +265 -0
  27. data/lib/slide_template/css/theme/source/beige.scss +39 -0
  28. data/lib/slide_template/css/theme/source/black.scss +49 -0
  29. data/lib/slide_template/css/theme/source/blood.scss +91 -0
  30. data/lib/slide_template/css/theme/source/league.scss +34 -0
  31. data/lib/slide_template/css/theme/source/moon.scss +57 -0
  32. data/lib/slide_template/css/theme/source/night.scss +35 -0
  33. data/lib/slide_template/css/theme/source/serif.scss +35 -0
  34. data/lib/slide_template/css/theme/source/simple.scss +38 -0
  35. data/lib/slide_template/css/theme/source/sky.scss +46 -0
  36. data/lib/slide_template/css/theme/source/solarized.scss +63 -0
  37. data/lib/slide_template/css/theme/source/white.scss +49 -0
  38. data/lib/slide_template/css/theme/template/mixins.scss +29 -0
  39. data/lib/slide_template/css/theme/template/settings.scss +43 -0
  40. data/lib/slide_template/css/theme/template/theme.scss +339 -0
  41. data/lib/slide_template/css/theme/white.css +261 -0
  42. data/lib/slide_template/index.haml +5 -0
  43. data/lib/slide_template/js/reveal.js +4276 -0
  44. data/lib/slide_template/lib/css/zenburn.css +117 -0
  45. data/lib/slide_template/lib/font/league-gothic/LICENSE +2 -0
  46. data/lib/slide_template/lib/font/league-gothic/league-gothic.css +10 -0
  47. data/lib/slide_template/lib/font/league-gothic/league-gothic.eot +0 -0
  48. data/lib/slide_template/lib/font/league-gothic/league-gothic.ttf +0 -0
  49. data/lib/slide_template/lib/font/league-gothic/league-gothic.woff +0 -0
  50. data/lib/slide_template/lib/font/source-sans-pro/LICENSE +45 -0
  51. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  52. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  53. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  54. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  55. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  56. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  57. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  58. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  59. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  60. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  61. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  62. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  63. data/lib/slide_template/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  64. data/lib/slide_template/lib/js/classList.js +2 -0
  65. data/lib/slide_template/lib/js/head.min.js +8 -0
  66. data/lib/slide_template/lib/js/html5shiv.js +7 -0
  67. data/lib/slide_template/plugin/highlight/highlight.js +30 -0
  68. data/lib/slide_template/plugin/leap/leap.js +159 -0
  69. data/lib/slide_template/plugin/markdown/example.html +129 -0
  70. data/lib/slide_template/plugin/markdown/example.md +31 -0
  71. data/lib/slide_template/plugin/markdown/markdown.js +393 -0
  72. data/lib/slide_template/plugin/markdown/marked.js +37 -0
  73. data/lib/slide_template/plugin/math/math.js +64 -0
  74. data/lib/slide_template/plugin/multiplex/client.js +13 -0
  75. data/lib/slide_template/plugin/multiplex/index.js +56 -0
  76. data/lib/slide_template/plugin/multiplex/master.js +51 -0
  77. data/lib/slide_template/plugin/notes-server/client.js +60 -0
  78. data/lib/slide_template/plugin/notes-server/index.js +66 -0
  79. data/lib/slide_template/plugin/notes-server/notes.html +396 -0
  80. data/lib/slide_template/plugin/notes/notes.html +406 -0
  81. data/lib/slide_template/plugin/notes/notes.js +122 -0
  82. data/lib/slide_template/plugin/print-pdf/print-pdf.js +48 -0
  83. data/lib/slide_template/plugin/remotes/remotes.js +39 -0
  84. data/lib/slide_template/plugin/search/search.js +196 -0
  85. data/lib/slide_template/plugin/zoom-js/zoom.js +278 -0
  86. data/lib/slideparts.rb +20 -0
  87. data/lib/slideparts/command.rb +38 -0
  88. data/lib/slideparts/commands/build.rb +34 -0
  89. data/lib/slideparts/commands/new.rb +23 -0
  90. data/lib/slideparts/commands/server.rb +26 -0
  91. data/lib/slideparts/version.rb +3 -0
  92. data/slideparts.gemspec +24 -0
  93. data/spec/command_spec.rb +9 -0
  94. data/spec/spec_helper.rb +2 -0
  95. metadata +182 -0
@@ -0,0 +1,49 @@
1
+ /**
2
+ * White theme for reveal.js. This is the opposite of the 'black' theme.
3
+ *
4
+ * Copyright (C) 2015 Hakim El Hattab, http://hakim.se
5
+ */
6
+
7
+
8
+ // Default mixins and settings -----------------
9
+ @import "../template/mixins";
10
+ @import "../template/settings";
11
+ // ---------------------------------------------
12
+
13
+
14
+ // Include theme-specific fonts
15
+ @import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16
+
17
+
18
+ // Override theme settings (see ../template/settings.scss)
19
+ $backgroundColor: #fff;
20
+
21
+ $mainColor: #222;
22
+ $headingColor: #222;
23
+
24
+ $mainFontSize: 38px;
25
+ $mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26
+ $headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27
+ $headingTextShadow: none;
28
+ $headingLetterSpacing: normal;
29
+ $headingTextTransform: uppercase;
30
+ $headingFontWeight: 600;
31
+ $linkColor: #2a76dd;
32
+ $linkColorHover: lighten( $linkColor, 15% );
33
+ $selectionBackgroundColor: lighten( $linkColor, 25% );
34
+
35
+ $heading1Size: 2.5em;
36
+ $heading2Size: 1.6em;
37
+ $heading3Size: 1.3em;
38
+ $heading4Size: 1.0em;
39
+
40
+ section.has-dark-background {
41
+ &, h1, h2, h3, h4, h5, h6 {
42
+ color: #fff;
43
+ }
44
+ }
45
+
46
+
47
+ // Theme template ------------------------------
48
+ @import "../template/theme";
49
+ // ---------------------------------------------
@@ -0,0 +1,29 @@
1
+ @mixin vertical-gradient( $top, $bottom ) {
2
+ background: $top;
3
+ background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4
+ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5
+ background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6
+ background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7
+ background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8
+ background: linear-gradient( top, $top 0%, $bottom 100% );
9
+ }
10
+
11
+ @mixin horizontal-gradient( $top, $bottom ) {
12
+ background: $top;
13
+ background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14
+ background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15
+ background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16
+ background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17
+ background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18
+ background: linear-gradient( left, $top 0%, $bottom 100% );
19
+ }
20
+
21
+ @mixin radial-gradient( $outer, $inner, $type: circle ) {
22
+ background: $outer;
23
+ background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24
+ background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25
+ background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26
+ background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27
+ background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28
+ background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29
+ }
@@ -0,0 +1,43 @@
1
+ // Base settings for all themes that can optionally be
2
+ // overridden by the super-theme
3
+
4
+ // Background of the presentation
5
+ $backgroundColor: #2b2b2b;
6
+
7
+ // Primary/body text
8
+ $mainFont: 'Lato', sans-serif;
9
+ $mainFontSize: 36px;
10
+ $mainColor: #eee;
11
+
12
+ // Vertical spacing between blocks of text
13
+ $blockMargin: 20px;
14
+
15
+ // Headings
16
+ $headingMargin: 0 0 $blockMargin 0;
17
+ $headingFont: 'League Gothic', Impact, sans-serif;
18
+ $headingColor: #eee;
19
+ $headingLineHeight: 1.2;
20
+ $headingLetterSpacing: normal;
21
+ $headingTextTransform: uppercase;
22
+ $headingTextShadow: none;
23
+ $headingFontWeight: normal;
24
+ $heading1TextShadow: $headingTextShadow;
25
+
26
+ $heading1Size: 3.77em;
27
+ $heading2Size: 2.11em;
28
+ $heading3Size: 1.55em;
29
+ $heading4Size: 1.00em;
30
+
31
+ // Links and actions
32
+ $linkColor: #13DAEC;
33
+ $linkColorHover: lighten( $linkColor, 20% );
34
+
35
+ // Text selection
36
+ $selectionBackgroundColor: #FF5E99;
37
+ $selectionColor: #fff;
38
+
39
+ // Generates the presentation background, can be overridden
40
+ // to return a background image or gradient
41
+ @mixin bodyBackground() {
42
+ background: $backgroundColor;
43
+ }
@@ -0,0 +1,339 @@
1
+ // Base theme template for reveal.js
2
+
3
+ /*********************************************
4
+ * GLOBAL STYLES
5
+ *********************************************/
6
+
7
+ body {
8
+ @include bodyBackground();
9
+ background-color: $backgroundColor;
10
+ }
11
+
12
+ .reveal {
13
+ font-family: $mainFont;
14
+ font-size: $mainFontSize;
15
+ font-weight: normal;
16
+ color: $mainColor;
17
+ }
18
+
19
+ ::selection {
20
+ color: $selectionColor;
21
+ background: $selectionBackgroundColor;
22
+ text-shadow: none;
23
+ }
24
+
25
+ .reveal .slides>section,
26
+ .reveal .slides>section>section {
27
+ line-height: 1.3;
28
+ font-weight: inherit;
29
+ }
30
+
31
+ /*********************************************
32
+ * HEADERS
33
+ *********************************************/
34
+
35
+ .reveal h1,
36
+ .reveal h2,
37
+ .reveal h3,
38
+ .reveal h4,
39
+ .reveal h5,
40
+ .reveal h6 {
41
+ margin: $headingMargin;
42
+ color: $headingColor;
43
+
44
+ font-family: $headingFont;
45
+ font-weight: $headingFontWeight;
46
+ line-height: $headingLineHeight;
47
+ letter-spacing: $headingLetterSpacing;
48
+
49
+ text-transform: $headingTextTransform;
50
+ text-shadow: $headingTextShadow;
51
+
52
+ word-wrap: break-word;
53
+ }
54
+
55
+ .reveal h1 {font-size: $heading1Size; }
56
+ .reveal h2 {font-size: $heading2Size; }
57
+ .reveal h3 {font-size: $heading3Size; }
58
+ .reveal h4 {font-size: $heading4Size; }
59
+
60
+ .reveal h1 {
61
+ text-shadow: $heading1TextShadow;
62
+ }
63
+
64
+
65
+ /*********************************************
66
+ * OTHER
67
+ *********************************************/
68
+
69
+ .reveal p {
70
+ margin: $blockMargin 0;
71
+ line-height: 1.3;
72
+ }
73
+
74
+ /* Ensure certain elements are never larger than the slide itself */
75
+ .reveal img,
76
+ .reveal video,
77
+ .reveal iframe {
78
+ max-width: 95%;
79
+ max-height: 95%;
80
+ }
81
+ .reveal strong,
82
+ .reveal b {
83
+ font-weight: bold;
84
+ }
85
+
86
+ .reveal em {
87
+ font-style: italic;
88
+ }
89
+
90
+ .reveal ol,
91
+ .reveal dl,
92
+ .reveal ul {
93
+ display: inline-block;
94
+
95
+ text-align: left;
96
+ margin: 0 0 0 1em;
97
+ }
98
+
99
+ .reveal ol {
100
+ list-style-type: decimal;
101
+ }
102
+
103
+ .reveal ul {
104
+ list-style-type: disc;
105
+ }
106
+
107
+ .reveal ul ul {
108
+ list-style-type: square;
109
+ }
110
+
111
+ .reveal ul ul ul {
112
+ list-style-type: circle;
113
+ }
114
+
115
+ .reveal ul ul,
116
+ .reveal ul ol,
117
+ .reveal ol ol,
118
+ .reveal ol ul {
119
+ display: block;
120
+ margin-left: 40px;
121
+ }
122
+
123
+ .reveal dt {
124
+ font-weight: bold;
125
+ }
126
+
127
+ .reveal dd {
128
+ margin-left: 40px;
129
+ }
130
+
131
+ .reveal q,
132
+ .reveal blockquote {
133
+ quotes: none;
134
+ }
135
+
136
+ .reveal blockquote {
137
+ display: block;
138
+ position: relative;
139
+ width: 70%;
140
+ margin: $blockMargin auto;
141
+ padding: 5px;
142
+
143
+ font-style: italic;
144
+ background: rgba(255, 255, 255, 0.05);
145
+ box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
146
+ }
147
+ .reveal blockquote p:first-child,
148
+ .reveal blockquote p:last-child {
149
+ display: inline-block;
150
+ }
151
+
152
+ .reveal q {
153
+ font-style: italic;
154
+ }
155
+
156
+ .reveal pre {
157
+ display: block;
158
+ position: relative;
159
+ width: 90%;
160
+ margin: $blockMargin auto;
161
+
162
+ text-align: left;
163
+ font-size: 0.55em;
164
+ font-family: monospace;
165
+ line-height: 1.2em;
166
+
167
+ word-wrap: break-word;
168
+
169
+ box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
170
+ }
171
+ .reveal code {
172
+ font-family: monospace;
173
+ }
174
+
175
+ .reveal pre code {
176
+ display: block;
177
+ padding: 5px;
178
+ overflow: auto;
179
+ max-height: 400px;
180
+ word-wrap: normal;
181
+ background: #3F3F3F;
182
+ color: #DCDCDC;
183
+ }
184
+
185
+ .reveal table {
186
+ margin: auto;
187
+ border-collapse: collapse;
188
+ border-spacing: 0;
189
+ }
190
+
191
+ .reveal table th {
192
+ font-weight: bold;
193
+ }
194
+
195
+ .reveal table th,
196
+ .reveal table td {
197
+ text-align: left;
198
+ padding: 0.2em 0.5em 0.2em 0.5em;
199
+ border-bottom: 1px solid;
200
+ }
201
+
202
+ .reveal table tr:last-child td {
203
+ border-bottom: none;
204
+ }
205
+
206
+ .reveal sup {
207
+ vertical-align: super;
208
+ }
209
+ .reveal sub {
210
+ vertical-align: sub;
211
+ }
212
+
213
+ .reveal small {
214
+ display: inline-block;
215
+ font-size: 0.6em;
216
+ line-height: 1.2em;
217
+ vertical-align: top;
218
+ }
219
+
220
+ .reveal small * {
221
+ vertical-align: top;
222
+ }
223
+
224
+
225
+ /*********************************************
226
+ * LINKS
227
+ *********************************************/
228
+
229
+ .reveal a {
230
+ color: $linkColor;
231
+ text-decoration: none;
232
+
233
+ -webkit-transition: color .15s ease;
234
+ -moz-transition: color .15s ease;
235
+ transition: color .15s ease;
236
+ }
237
+ .reveal a:hover {
238
+ color: $linkColorHover;
239
+
240
+ text-shadow: none;
241
+ border: none;
242
+ }
243
+
244
+ .reveal .roll span:after {
245
+ color: #fff;
246
+ background: darken( $linkColor, 15% );
247
+ }
248
+
249
+
250
+ /*********************************************
251
+ * IMAGES
252
+ *********************************************/
253
+
254
+ .reveal section img {
255
+ margin: 15px 0px;
256
+ background: rgba(255,255,255,0.12);
257
+ border: 4px solid $mainColor;
258
+
259
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
260
+ }
261
+
262
+ .reveal a img {
263
+ -webkit-transition: all .15s linear;
264
+ -moz-transition: all .15s linear;
265
+ transition: all .15s linear;
266
+ }
267
+
268
+ .reveal a:hover img {
269
+ background: rgba(255,255,255,0.2);
270
+ border-color: $linkColor;
271
+
272
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
273
+ }
274
+
275
+
276
+ /*********************************************
277
+ * NAVIGATION CONTROLS
278
+ *********************************************/
279
+
280
+ .reveal .controls div.navigate-left,
281
+ .reveal .controls div.navigate-left.enabled {
282
+ border-right-color: $linkColor;
283
+ }
284
+
285
+ .reveal .controls div.navigate-right,
286
+ .reveal .controls div.navigate-right.enabled {
287
+ border-left-color: $linkColor;
288
+ }
289
+
290
+ .reveal .controls div.navigate-up,
291
+ .reveal .controls div.navigate-up.enabled {
292
+ border-bottom-color: $linkColor;
293
+ }
294
+
295
+ .reveal .controls div.navigate-down,
296
+ .reveal .controls div.navigate-down.enabled {
297
+ border-top-color: $linkColor;
298
+ }
299
+
300
+ .reveal .controls div.navigate-left.enabled:hover {
301
+ border-right-color: $linkColorHover;
302
+ }
303
+
304
+ .reveal .controls div.navigate-right.enabled:hover {
305
+ border-left-color: $linkColorHover;
306
+ }
307
+
308
+ .reveal .controls div.navigate-up.enabled:hover {
309
+ border-bottom-color: $linkColorHover;
310
+ }
311
+
312
+ .reveal .controls div.navigate-down.enabled:hover {
313
+ border-top-color: $linkColorHover;
314
+ }
315
+
316
+
317
+ /*********************************************
318
+ * PROGRESS BAR
319
+ *********************************************/
320
+
321
+ .reveal .progress {
322
+ background: rgba(0,0,0,0.2);
323
+ }
324
+ .reveal .progress span {
325
+ background: $linkColor;
326
+
327
+ -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
328
+ -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
329
+ transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
330
+ }
331
+
332
+ /*********************************************
333
+ * SLIDE NUMBER
334
+ *********************************************/
335
+ .reveal .slide-number {
336
+ color: $linkColor;
337
+ }
338
+
339
+