slide_hero 0.0.8 → 0.0.9

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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/README.md +1 -1
  4. data/lib/slide_hero/version.rb +1 -1
  5. data/lib/slide_hero/views/layout.html.erb +2 -2
  6. data/vendor/reveal.js/.gitignore +3 -1
  7. data/vendor/reveal.js/.travis.yml +1 -1
  8. data/vendor/reveal.js/CONTRIBUTING.md +19 -0
  9. data/vendor/reveal.js/Gruntfile.js +58 -21
  10. data/vendor/reveal.js/LICENSE +1 -1
  11. data/vendor/reveal.js/README.md +154 -74
  12. data/vendor/reveal.js/css/print/paper.css +193 -167
  13. data/vendor/reveal.js/css/print/pdf.css +20 -53
  14. data/vendor/reveal.js/css/reveal.css +912 -1651
  15. data/vendor/reveal.js/css/reveal.scss +1316 -0
  16. data/vendor/reveal.js/css/theme/README.md +1 -1
  17. data/vendor/reveal.js/css/theme/beige.css +177 -60
  18. data/vendor/reveal.js/css/theme/black.css +261 -0
  19. data/vendor/reveal.js/css/theme/blood.css +191 -75
  20. data/vendor/reveal.js/css/theme/league.css +267 -0
  21. data/vendor/reveal.js/css/theme/moon.css +168 -51
  22. data/vendor/reveal.js/css/theme/night.css +165 -42
  23. data/vendor/reveal.js/css/theme/serif.css +181 -58
  24. data/vendor/reveal.js/css/theme/simple.css +173 -50
  25. data/vendor/reveal.js/css/theme/sky.css +170 -47
  26. data/vendor/reveal.js/css/theme/solarized.css +168 -51
  27. data/vendor/reveal.js/css/theme/source/beige.scss +1 -12
  28. data/vendor/reveal.js/css/theme/source/black.scss +49 -0
  29. data/vendor/reveal.js/css/theme/source/blood.scss +4 -4
  30. data/vendor/reveal.js/css/theme/source/{default.scss → league.scss} +5 -13
  31. data/vendor/reveal.js/css/theme/source/moon.scss +1 -12
  32. data/vendor/reveal.js/css/theme/source/serif.scss +1 -1
  33. data/vendor/reveal.js/css/theme/source/sky.scss +1 -1
  34. data/vendor/reveal.js/css/theme/source/solarized.scss +1 -12
  35. data/vendor/reveal.js/css/theme/source/white.scss +49 -0
  36. data/vendor/reveal.js/css/theme/template/settings.scss +13 -4
  37. data/vendor/reveal.js/css/theme/template/theme.scss +182 -13
  38. data/vendor/reveal.js/css/theme/white.css +261 -0
  39. data/vendor/reveal.js/index.html +198 -178
  40. data/vendor/reveal.js/js/reveal.js +1286 -392
  41. data/vendor/reveal.js/lib/css/zenburn.css +74 -71
  42. data/vendor/reveal.js/lib/font/{league_gothic_license → league-gothic/LICENSE} +0 -0
  43. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
  44. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
  45. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
  46. data/vendor/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
  47. data/vendor/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
  48. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  49. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  50. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  51. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  52. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  53. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  54. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  55. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  56. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  57. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  58. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  59. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  60. data/vendor/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  61. data/vendor/reveal.js/package.json +9 -7
  62. data/vendor/reveal.js/plugin/highlight/highlight.js +2 -4
  63. data/vendor/reveal.js/plugin/leap/leap.js +4 -2
  64. data/vendor/reveal.js/plugin/markdown/example.html +2 -2
  65. data/vendor/reveal.js/plugin/markdown/markdown.js +8 -7
  66. data/vendor/reveal.js/plugin/notes/notes.html +321 -182
  67. data/vendor/reveal.js/plugin/notes/notes.js +89 -45
  68. data/vendor/reveal.js/plugin/notes-server/client.js +49 -46
  69. data/vendor/reveal.js/plugin/notes-server/index.js +28 -21
  70. data/vendor/reveal.js/plugin/notes-server/notes.html +351 -97
  71. data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +24 -20
  72. data/vendor/reveal.js/plugin/zoom-js/zoom.js +77 -57
  73. data/vendor/reveal.js/test/examples/barebones.html +2 -2
  74. data/vendor/reveal.js/test/examples/embedded-media.html +2 -2
  75. data/vendor/reveal.js/test/examples/math.html +2 -2
  76. data/vendor/reveal.js/test/examples/slide-backgrounds.html +29 -7
  77. data/vendor/reveal.js/test/test-markdown-element-attributes.html +6 -6
  78. data/vendor/reveal.js/test/test-markdown-slide-attributes.html +7 -7
  79. data/vendor/reveal.js/test/test-markdown.html +4 -4
  80. data/vendor/reveal.js/test/test-pdf.html +83 -0
  81. data/vendor/reveal.js/test/test-pdf.js +15 -0
  82. data/vendor/reveal.js/test/test.html +5 -4
  83. data/vendor/reveal.js/test/test.js +143 -9
  84. metadata +31 -13
  85. data/vendor/reveal.js/css/reveal.min.css +0 -7
  86. data/vendor/reveal.js/css/theme/default.css +0 -148
  87. data/vendor/reveal.js/js/reveal.min.js +0 -9
  88. data/vendor/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
  89. data/vendor/reveal.js/lib/font/league_gothic-webfont.svg +0 -230
  90. data/vendor/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
  91. data/vendor/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
  92. data/vendor/reveal.js/plugin/postmessage/example.html +0 -39
  93. data/vendor/reveal.js/plugin/postmessage/postmessage.js +0 -42
@@ -6,171 +6,197 @@
6
6
  manipulate this file as you see fit. */
7
7
 
8
8
 
9
- /* SECTION 1: Set default width, margin, float, and
10
- background. This prevents elements from extending
11
- beyond the edge of the printed page, and prevents
12
- unnecessary background images from printing */
13
- body {
14
- background: #fff;
15
- font-size: 13pt;
16
- width: auto;
17
- height: auto;
18
- border: 0;
19
- margin: 0 5%;
20
- padding: 0;
21
- float: none !important;
22
- overflow: visible;
23
- }
24
- html {
25
- background: #fff;
26
- width: auto;
27
- height: auto;
28
- overflow: visible;
29
- }
30
-
31
- /* SECTION 2: Remove any elements not needed in print.
32
- This would include navigation, ads, sidebars, etc. */
33
- .nestedarrow,
34
- .controls,
35
- .reveal .progress,
36
- .reveal.overview,
37
- .fork-reveal,
38
- .share-reveal,
39
- .state-background {
40
- display: none !important;
41
- }
42
-
43
- /* SECTION 3: Set body font face, size, and color.
44
- Consider using a serif font for readability. */
45
- body, p, td, li, div, a {
46
- font-size: 16pt!important;
47
- font-family: Georgia, "Times New Roman", Times, serif !important;
48
- color: #000;
49
- }
50
-
51
- /* SECTION 4: Set heading font face, sizes, and color.
52
- Differentiate your headings from your body text.
53
- Perhaps use a large sans-serif for distinction. */
54
- h1,h2,h3,h4,h5,h6 {
55
- color: #000!important;
56
- height: auto;
57
- line-height: normal;
58
- font-family: Georgia, "Times New Roman", Times, serif !important;
59
- text-shadow: 0 0 0 #000 !important;
60
- text-align: left;
61
- letter-spacing: normal;
62
- }
63
- /* Need to reduce the size of the fonts for printing */
64
- h1 { font-size: 26pt !important; }
65
- h2 { font-size: 22pt !important; }
66
- h3 { font-size: 20pt !important; }
67
- h4 { font-size: 20pt !important; font-variant: small-caps; }
68
- h5 { font-size: 19pt !important; }
69
- h6 { font-size: 18pt !important; font-style: italic; }
70
-
71
- /* SECTION 5: Make hyperlinks more usable.
72
- Ensure links are underlined, and consider appending
73
- the URL to the end of the link for usability. */
74
- a:link,
75
- a:visited {
76
- color: #000 !important;
77
- font-weight: bold;
78
- text-decoration: underline;
79
- }
80
- /*
81
- .reveal a:link:after,
82
- .reveal a:visited:after {
83
- content: " (" attr(href) ") ";
84
- color: #222 !important;
85
- font-size: 90%;
86
- }
87
- */
88
-
89
-
90
- /* SECTION 6: more reveal.js specific additions by @skypanther */
91
- ul, ol, div, p {
92
- visibility: visible;
93
- position: static;
94
- width: auto;
95
- height: auto;
96
- display: block;
97
- overflow: visible;
98
- margin: auto;
99
- text-align: left !important;
100
- }
101
- .reveal .slides {
102
- position: static;
103
- width: auto;
104
- height: auto;
105
-
106
- left: auto;
107
- top: auto;
108
- margin-left: auto;
109
- margin-top: auto;
110
- padding: auto;
111
-
112
- overflow: visible;
113
- display: block;
114
-
115
- text-align: center;
116
- -webkit-perspective: none;
117
- -moz-perspective: none;
118
- -ms-perspective: none;
119
- perspective: none;
120
-
121
- -webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
122
- -moz-perspective-origin: 50% 50%;
123
- -ms-perspective-origin: 50% 50%;
124
- perspective-origin: 50% 50%;
125
- }
126
- .reveal .slides>section,
127
- .reveal .slides>section>section {
128
-
129
- visibility: visible !important;
130
- position: static !important;
131
- width: 90% !important;
132
- height: auto !important;
133
- display: block !important;
134
- overflow: visible !important;
135
-
136
- left: 0% !important;
137
- top: 0% !important;
138
- margin-left: 0px !important;
139
- margin-top: 0px !important;
140
- padding: 20px 0px !important;
141
-
142
- opacity: 1 !important;
143
-
144
- -webkit-transform-style: flat !important;
145
- -moz-transform-style: flat !important;
146
- -ms-transform-style: flat !important;
147
- transform-style: flat !important;
148
-
149
- -webkit-transform: none !important;
150
- -moz-transform: none !important;
151
- -ms-transform: none !important;
152
- transform: none !important;
153
- }
154
- .reveal section {
155
- page-break-after: always !important;
156
- display: block !important;
157
- }
158
- .reveal section .fragment {
159
- opacity: 1 !important;
160
- visibility: visible !important;
161
-
162
- -webkit-transform: none !important;
163
- -moz-transform: none !important;
164
- -ms-transform: none !important;
165
- transform: none !important;
166
- }
167
- .reveal section:last-of-type {
168
- page-break-after: avoid !important;
169
- }
170
- .reveal section img {
171
- display: block;
172
- margin: 15px 0px;
173
- background: rgba(255,255,255,1);
174
- border: 1px solid #666;
175
- box-shadow: none;
9
+ @media print {
10
+
11
+ /* SECTION 1: Set default width, margin, float, and
12
+ background. This prevents elements from extending
13
+ beyond the edge of the printed page, and prevents
14
+ unnecessary background images from printing */
15
+ html {
16
+ background: #fff;
17
+ width: auto;
18
+ height: auto;
19
+ overflow: visible;
20
+ }
21
+ body {
22
+ background: #fff;
23
+ font-size: 20pt;
24
+ width: auto;
25
+ height: auto;
26
+ border: 0;
27
+ margin: 0 5%;
28
+ padding: 0;
29
+ overflow: visible;
30
+ float: none !important;
31
+ }
32
+
33
+ /* SECTION 2: Remove any elements not needed in print.
34
+ This would include navigation, ads, sidebars, etc. */
35
+ .nestedarrow,
36
+ .controls,
37
+ .fork-reveal,
38
+ .share-reveal,
39
+ .state-background,
40
+ .reveal .progress,
41
+ .reveal .backgrounds {
42
+ display: none !important;
43
+ }
44
+
45
+ /* SECTION 3: Set body font face, size, and color.
46
+ Consider using a serif font for readability. */
47
+ body, p, td, li, div {
48
+ font-size: 20pt!important;
49
+ font-family: Georgia, "Times New Roman", Times, serif !important;
50
+ color: #000;
51
+ }
52
+
53
+ /* SECTION 4: Set heading font face, sizes, and color.
54
+ Differentiate your headings from your body text.
55
+ Perhaps use a large sans-serif for distinction. */
56
+ h1,h2,h3,h4,h5,h6 {
57
+ color: #000!important;
58
+ height: auto;
59
+ line-height: normal;
60
+ font-family: Georgia, "Times New Roman", Times, serif !important;
61
+ text-shadow: 0 0 0 #000 !important;
62
+ text-align: left;
63
+ letter-spacing: normal;
64
+ }
65
+ /* Need to reduce the size of the fonts for printing */
66
+ h1 { font-size: 28pt !important; }
67
+ h2 { font-size: 24pt !important; }
68
+ h3 { font-size: 22pt !important; }
69
+ h4 { font-size: 22pt !important; font-variant: small-caps; }
70
+ h5 { font-size: 21pt !important; }
71
+ h6 { font-size: 20pt !important; font-style: italic; }
72
+
73
+ /* SECTION 5: Make hyperlinks more usable.
74
+ Ensure links are underlined, and consider appending
75
+ the URL to the end of the link for usability. */
76
+ a:link,
77
+ a:visited {
78
+ color: #000 !important;
79
+ font-weight: bold;
80
+ text-decoration: underline;
81
+ }
82
+ /*
83
+ .reveal a:link:after,
84
+ .reveal a:visited:after {
85
+ content: " (" attr(href) ") ";
86
+ color: #222 !important;
87
+ font-size: 90%;
88
+ }
89
+ */
90
+
91
+
92
+ /* SECTION 6: more reveal.js specific additions by @skypanther */
93
+ ul, ol, div, p {
94
+ visibility: visible;
95
+ position: static;
96
+ width: auto;
97
+ height: auto;
98
+ display: block;
99
+ overflow: visible;
100
+ margin: 0;
101
+ text-align: left !important;
102
+ }
103
+ .reveal pre,
104
+ .reveal table {
105
+ margin-left: 0;
106
+ margin-right: 0;
107
+ }
108
+ .reveal pre code {
109
+ padding: 20px;
110
+ border: 1px solid #ddd;
111
+ }
112
+ .reveal blockquote {
113
+ margin: 20px 0;
114
+ }
115
+ .reveal .slides {
116
+ position: static !important;
117
+ width: auto !important;
118
+ height: auto !important;
119
+
120
+ left: 0 !important;
121
+ top: 0 !important;
122
+ margin-left: 0 !important;
123
+ margin-top: 0 !important;
124
+ padding: 0 !important;
125
+ zoom: 1 !important;
126
+
127
+ overflow: visible !important;
128
+ display: block !important;
129
+
130
+ text-align: left !important;
131
+ -webkit-perspective: none;
132
+ -moz-perspective: none;
133
+ -ms-perspective: none;
134
+ perspective: none;
135
+
136
+ -webkit-perspective-origin: 50% 50%;
137
+ -moz-perspective-origin: 50% 50%;
138
+ -ms-perspective-origin: 50% 50%;
139
+ perspective-origin: 50% 50%;
140
+ }
141
+ .reveal .slides section {
142
+ visibility: visible !important;
143
+ position: static !important;
144
+ width: 100% !important;
145
+ height: auto !important;
146
+ display: block !important;
147
+ overflow: visible !important;
148
+
149
+ left: 0 !important;
150
+ top: 0 !important;
151
+ margin-left: 0 !important;
152
+ margin-top: 0 !important;
153
+ padding: 60px 20px !important;
154
+ z-index: auto !important;
155
+
156
+ opacity: 1 !important;
157
+
158
+ page-break-after: always !important;
159
+
160
+ -webkit-transform-style: flat !important;
161
+ -moz-transform-style: flat !important;
162
+ -ms-transform-style: flat !important;
163
+ transform-style: flat !important;
164
+
165
+ -webkit-transform: none !important;
166
+ -moz-transform: none !important;
167
+ -ms-transform: none !important;
168
+ transform: none !important;
169
+
170
+ -webkit-transition: none !important;
171
+ -moz-transition: none !important;
172
+ -ms-transition: none !important;
173
+ transition: none !important;
174
+ }
175
+ .reveal .slides section.stack {
176
+ padding: 0 !important;
177
+ }
178
+ .reveal section:last-of-type {
179
+ page-break-after: avoid !important;
180
+ }
181
+ .reveal section .fragment {
182
+ opacity: 1 !important;
183
+ visibility: visible !important;
184
+
185
+ -webkit-transform: none !important;
186
+ -moz-transform: none !important;
187
+ -ms-transform: none !important;
188
+ transform: none !important;
189
+ }
190
+ .reveal section img {
191
+ display: block;
192
+ margin: 15px 0px;
193
+ background: rgba(255,255,255,1);
194
+ border: 1px solid #666;
195
+ box-shadow: none;
196
+ }
197
+
198
+ .reveal section small {
199
+ font-size: 0.8em;
200
+ }
201
+
176
202
  }
@@ -16,9 +16,6 @@
16
16
  }
17
17
 
18
18
  body {
19
- font-size: 18pt;
20
- width: 297mm;
21
- height: 229mm;
22
19
  margin: 0 auto !important;
23
20
  border: 0;
24
21
  padding: 0;
@@ -32,16 +29,13 @@ html {
32
29
  overflow: visible;
33
30
  }
34
31
 
35
- @page {
36
- size: letter landscape;
37
- margin: 0;
38
- }
39
-
40
32
  /* SECTION 2: Remove any elements not needed in print.
41
33
  This would include navigation, ads, sidebars, etc. */
42
34
  .nestedarrow,
43
- .controls,
35
+ .reveal .controls,
44
36
  .reveal .progress,
37
+ .reveal .slide-number,
38
+ .reveal .playback,
45
39
  .reveal.overview,
46
40
  .fork-reveal,
47
41
  .share-reveal,
@@ -52,7 +46,7 @@ html {
52
46
  /* SECTION 3: Set body font face, size, and color.
53
47
  Consider using a serif font for readability. */
54
48
  body, p, td, li, div {
55
- font-size: 18pt;
49
+
56
50
  }
57
51
 
58
52
  /* SECTION 4: Set heading font face, sizes, and color.
@@ -62,22 +56,13 @@ h1,h2,h3,h4,h5,h6 {
62
56
  text-shadow: 0 0 0 #000 !important;
63
57
  }
64
58
 
65
- /* SECTION 5: Make hyperlinks more usable.
66
- Ensure links are underlined, and consider appending
67
- the URL to the end of the link for usability. */
68
- a:link,
69
- a:visited {
70
- font-weight: normal;
71
- text-decoration: underline;
72
- }
73
-
74
59
  .reveal pre code {
75
60
  overflow: hidden !important;
76
- font-family: monospace !important;
61
+ font-family: Courier, 'Courier New', monospace !important;
77
62
  }
78
63
 
79
64
 
80
- /* SECTION 6: more reveal.js specific additions by @skypanther */
65
+ /* SECTION 5: more reveal.js specific additions by @skypanther */
81
66
  ul, ol, div, p {
82
67
  visibility: visible;
83
68
  position: static;
@@ -105,8 +90,6 @@ ul, ol, div, p {
105
90
  overflow: visible;
106
91
  display: block;
107
92
 
108
- text-align: center;
109
-
110
93
  -webkit-perspective: none;
111
94
  -moz-perspective: none;
112
95
  -ms-perspective: none;
@@ -118,22 +101,17 @@ ul, ol, div, p {
118
101
  perspective-origin: 50% 50%;
119
102
  }
120
103
  .reveal .slides section {
121
-
122
104
  page-break-after: always !important;
123
105
 
124
106
  visibility: visible !important;
125
107
  position: relative !important;
126
- width: 100% !important;
127
- height: 229mm !important;
128
- min-height: 229mm !important;
129
108
  display: block !important;
130
- overflow: hidden !important;
109
+ position: relative !important;
131
110
 
132
- left: 0 !important;
133
- top: 0 !important;
134
111
  margin: 0 !important;
135
- padding: 2cm 2cm 0 2cm !important;
112
+ padding: 0 !important;
136
113
  box-sizing: border-box !important;
114
+ min-height: 1px;
137
115
 
138
116
  opacity: 1 !important;
139
117
 
@@ -154,37 +132,26 @@ ul, ol, div, p {
154
132
  height: auto !important;
155
133
  min-height: auto !important;
156
134
  }
157
- .reveal .absolute-element {
158
- margin-left: 2.2cm;
159
- margin-top: 1.8cm;
135
+ .reveal img {
136
+ box-shadow: none;
160
137
  }
161
- .reveal section .fragment {
162
- opacity: 1 !important;
163
- visibility: visible !important;
164
-
165
- -webkit-transform: none !important;
166
- -moz-transform: none !important;
167
- -ms-transform: none !important;
168
- transform: none !important;
138
+ .reveal .roll {
139
+ overflow: visible;
140
+ line-height: 1em;
169
141
  }
142
+
143
+ /* Slide backgrounds are placed inside of their slide when exporting to PDF */
170
144
  .reveal section .slide-background {
145
+ display: block !important;
171
146
  position: absolute;
172
147
  top: 0;
173
148
  left: 0;
174
149
  width: 100%;
175
- z-index: 0;
150
+ z-index: -1;
176
151
  }
152
+ /* All elements should be above the slide-background */
177
153
  .reveal section>* {
178
154
  position: relative;
179
155
  z-index: 1;
180
156
  }
181
- .reveal img {
182
- box-shadow: none;
183
- }
184
- .reveal .roll {
185
- overflow: visible;
186
- line-height: 1em;
187
- }
188
- .reveal small a {
189
- font-size: 16pt !important;
190
- }
157
+