slide_hero 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/Guardfile +28 -0
- data/LICENSE.txt +22 -0
- data/README.md +161 -0
- data/Rakefile +9 -0
- data/bin/slidehero +37 -0
- data/config.ru +14 -0
- data/lib/slide_hero/code.rb +16 -0
- data/lib/slide_hero/dsl.rb +10 -0
- data/lib/slide_hero/grouped_slides.rb +21 -0
- data/lib/slide_hero/list.rb +29 -0
- data/lib/slide_hero/list_point.rb +26 -0
- data/lib/slide_hero/point.rb +27 -0
- data/lib/slide_hero/presentation.rb +36 -0
- data/lib/slide_hero/slide.rb +47 -0
- data/lib/slide_hero/version.rb +3 -0
- data/lib/slide_hero/views/_footer.html.erb +0 -0
- data/lib/slide_hero/views/_header.html.erb +0 -0
- data/lib/slide_hero/views/code.html.erb +3 -0
- data/lib/slide_hero/views/empty.html +12 -0
- data/lib/slide_hero/views/grouped_slides.html.erb +5 -0
- data/lib/slide_hero/views/layout.html.erb +54 -0
- data/lib/slide_hero/views/ordered_list.html.erb +5 -0
- data/lib/slide_hero/views/slide.html.erb +6 -0
- data/lib/slide_hero/views/unordered_list.html.erb +5 -0
- data/lib/slide_hero.rb +15 -0
- data/slide_hero.gemspec +29 -0
- data/templates/new_presentation.tt +11 -0
- data/test/fixtures/testclass.rb +5 -0
- data/test/minitest_helper.rb +18 -0
- data/test/slide_hero/code_spec.rb +29 -0
- data/test/slide_hero/dsl_spec.rb +27 -0
- data/test/slide_hero/grouped_slides_spec.rb +29 -0
- data/test/slide_hero/list_point_spec.rb +34 -0
- data/test/slide_hero/list_spec.rb +49 -0
- data/test/slide_hero/point_spec.rb +25 -0
- data/test/slide_hero/presentation_spec.rb +56 -0
- data/test/slide_hero/slide_spec.rb +147 -0
- data/test/slide_hero_spec.rb +15 -0
- data/vendor/reveal.js/.gitignore +6 -0
- data/vendor/reveal.js/.travis.yml +5 -0
- data/vendor/reveal.js/Gruntfile.js +132 -0
- data/vendor/reveal.js/LICENSE +19 -0
- data/vendor/reveal.js/README.md +798 -0
- data/vendor/reveal.js/css/print/paper.css +176 -0
- data/vendor/reveal.js/css/print/pdf.css +190 -0
- data/vendor/reveal.js/css/reveal.css +1649 -0
- data/vendor/reveal.js/css/reveal.min.css +7 -0
- data/vendor/reveal.js/css/theme/README.md +23 -0
- data/vendor/reveal.js/css/theme/beige.css +142 -0
- data/vendor/reveal.js/css/theme/default.css +142 -0
- data/vendor/reveal.js/css/theme/moon.css +142 -0
- data/vendor/reveal.js/css/theme/night.css +130 -0
- data/vendor/reveal.js/css/theme/serif.css +132 -0
- data/vendor/reveal.js/css/theme/simple.css +132 -0
- data/vendor/reveal.js/css/theme/sky.css +139 -0
- data/vendor/reveal.js/css/theme/solarized.css +142 -0
- data/vendor/reveal.js/css/theme/source/beige.scss +50 -0
- data/vendor/reveal.js/css/theme/source/default.scss +42 -0
- data/vendor/reveal.js/css/theme/source/moon.scss +68 -0
- data/vendor/reveal.js/css/theme/source/night.scss +35 -0
- data/vendor/reveal.js/css/theme/source/serif.scss +35 -0
- data/vendor/reveal.js/css/theme/source/simple.scss +38 -0
- data/vendor/reveal.js/css/theme/source/sky.scss +46 -0
- data/vendor/reveal.js/css/theme/source/solarized.scss +74 -0
- data/vendor/reveal.js/css/theme/template/mixins.scss +29 -0
- data/vendor/reveal.js/css/theme/template/settings.scss +34 -0
- data/vendor/reveal.js/css/theme/template/theme.scss +163 -0
- data/vendor/reveal.js/examples/assets/image1.png +0 -0
- data/vendor/reveal.js/examples/assets/image2.png +0 -0
- data/vendor/reveal.js/examples/barebones.html +42 -0
- data/vendor/reveal.js/examples/embedded-media.html +49 -0
- data/vendor/reveal.js/examples/math.html +185 -0
- data/vendor/reveal.js/examples/slide-backgrounds.html +101 -0
- data/vendor/reveal.js/js/reveal.js +2788 -0
- data/vendor/reveal.js/js/reveal.min.js +8 -0
- data/vendor/reveal.js/lib/css/zenburn.css +115 -0
- data/vendor/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
- data/vendor/reveal.js/lib/font/league_gothic-webfont.svg +230 -0
- data/vendor/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
- data/vendor/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
- data/vendor/reveal.js/lib/font/league_gothic_license +2 -0
- data/vendor/reveal.js/lib/js/classList.js +2 -0
- data/vendor/reveal.js/lib/js/head.min.js +8 -0
- data/vendor/reveal.js/lib/js/html5shiv.js +7 -0
- data/vendor/reveal.js/package.json +45 -0
- data/vendor/reveal.js/plugin/highlight/highlight.js +31 -0
- data/vendor/reveal.js/plugin/leap/leap.js +157 -0
- data/vendor/reveal.js/plugin/markdown/example.html +98 -0
- data/vendor/reveal.js/plugin/markdown/example.md +31 -0
- data/vendor/reveal.js/plugin/markdown/markdown.js +220 -0
- data/vendor/reveal.js/plugin/markdown/marked.js +37 -0
- data/vendor/reveal.js/plugin/math/math.js +64 -0
- data/vendor/reveal.js/plugin/multiplex/client.js +13 -0
- data/vendor/reveal.js/plugin/multiplex/index.js +56 -0
- data/vendor/reveal.js/plugin/multiplex/master.js +50 -0
- data/vendor/reveal.js/plugin/notes/notes.html +259 -0
- data/vendor/reveal.js/plugin/notes/notes.js +78 -0
- data/vendor/reveal.js/plugin/notes-server/client.js +57 -0
- data/vendor/reveal.js/plugin/notes-server/index.js +59 -0
- data/vendor/reveal.js/plugin/notes-server/notes.html +142 -0
- data/vendor/reveal.js/plugin/postmessage/example.html +39 -0
- data/vendor/reveal.js/plugin/postmessage/postmessage.js +42 -0
- data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +44 -0
- data/vendor/reveal.js/plugin/remotes/remotes.js +39 -0
- data/vendor/reveal.js/plugin/search/search.js +196 -0
- data/vendor/reveal.js/plugin/zoom-js/zoom.js +256 -0
- metadata +277 -0
@@ -0,0 +1,176 @@
|
|
1
|
+
/* Default Print Stylesheet Template
|
2
|
+
by Rob Glazebrook of CSSnewbie.com
|
3
|
+
Last Updated: June 4, 2008
|
4
|
+
|
5
|
+
Feel free (nay, compelled) to edit, append, and
|
6
|
+
manipulate this file as you see fit. */
|
7
|
+
|
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;
|
176
|
+
}
|
@@ -0,0 +1,190 @@
|
|
1
|
+
/* Default Print Stylesheet Template
|
2
|
+
by Rob Glazebrook of CSSnewbie.com
|
3
|
+
Last Updated: June 4, 2008
|
4
|
+
|
5
|
+
Feel free (nay, compelled) to edit, append, and
|
6
|
+
manipulate this file as you see fit. */
|
7
|
+
|
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
|
+
|
14
|
+
* {
|
15
|
+
-webkit-print-color-adjust: exact;
|
16
|
+
}
|
17
|
+
|
18
|
+
body {
|
19
|
+
font-size: 18pt;
|
20
|
+
width: 297mm;
|
21
|
+
height: 229mm;
|
22
|
+
margin: 0 auto !important;
|
23
|
+
border: 0;
|
24
|
+
padding: 0;
|
25
|
+
float: none !important;
|
26
|
+
overflow: visible;
|
27
|
+
}
|
28
|
+
|
29
|
+
html {
|
30
|
+
width: 100%;
|
31
|
+
height: 100%;
|
32
|
+
overflow: visible;
|
33
|
+
}
|
34
|
+
|
35
|
+
@page {
|
36
|
+
size: letter landscape;
|
37
|
+
margin: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* SECTION 2: Remove any elements not needed in print.
|
41
|
+
This would include navigation, ads, sidebars, etc. */
|
42
|
+
.nestedarrow,
|
43
|
+
.controls,
|
44
|
+
.reveal .progress,
|
45
|
+
.reveal.overview,
|
46
|
+
.fork-reveal,
|
47
|
+
.share-reveal,
|
48
|
+
.state-background {
|
49
|
+
display: none !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* SECTION 3: Set body font face, size, and color.
|
53
|
+
Consider using a serif font for readability. */
|
54
|
+
body, p, td, li, div {
|
55
|
+
font-size: 18pt;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* SECTION 4: Set heading font face, sizes, and color.
|
59
|
+
Differentiate your headings from your body text.
|
60
|
+
Perhaps use a large sans-serif for distinction. */
|
61
|
+
h1,h2,h3,h4,h5,h6 {
|
62
|
+
text-shadow: 0 0 0 #000 !important;
|
63
|
+
}
|
64
|
+
|
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: bold;
|
71
|
+
text-decoration: underline;
|
72
|
+
}
|
73
|
+
|
74
|
+
.reveal pre code {
|
75
|
+
overflow: hidden !important;
|
76
|
+
font-family: monospace !important;
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
/* SECTION 6: more reveal.js specific additions by @skypanther */
|
81
|
+
ul, ol, div, p {
|
82
|
+
visibility: visible;
|
83
|
+
position: static;
|
84
|
+
width: auto;
|
85
|
+
height: auto;
|
86
|
+
display: block;
|
87
|
+
overflow: visible;
|
88
|
+
margin: auto;
|
89
|
+
}
|
90
|
+
.reveal {
|
91
|
+
width: auto !important;
|
92
|
+
height: auto !important;
|
93
|
+
overflow: hidden !important;
|
94
|
+
}
|
95
|
+
.reveal .slides {
|
96
|
+
position: static;
|
97
|
+
width: 100%;
|
98
|
+
height: auto;
|
99
|
+
|
100
|
+
left: auto;
|
101
|
+
top: auto;
|
102
|
+
margin: 0 !important;
|
103
|
+
padding: 0 !important;
|
104
|
+
|
105
|
+
overflow: visible;
|
106
|
+
display: block;
|
107
|
+
|
108
|
+
text-align: center;
|
109
|
+
|
110
|
+
-webkit-perspective: none;
|
111
|
+
-moz-perspective: none;
|
112
|
+
-ms-perspective: none;
|
113
|
+
perspective: none;
|
114
|
+
|
115
|
+
-webkit-perspective-origin: 50% 50%; /* there isn't a none/auto value but 50-50 is the default */
|
116
|
+
-moz-perspective-origin: 50% 50%;
|
117
|
+
-ms-perspective-origin: 50% 50%;
|
118
|
+
perspective-origin: 50% 50%;
|
119
|
+
}
|
120
|
+
.reveal .slides section {
|
121
|
+
|
122
|
+
page-break-after: always !important;
|
123
|
+
|
124
|
+
visibility: visible !important;
|
125
|
+
position: relative !important;
|
126
|
+
width: 100% !important;
|
127
|
+
height: 229mm !important;
|
128
|
+
min-height: 229mm !important;
|
129
|
+
display: block !important;
|
130
|
+
overflow: hidden !important;
|
131
|
+
|
132
|
+
left: 0 !important;
|
133
|
+
top: 0 !important;
|
134
|
+
margin: 0 !important;
|
135
|
+
padding: 2cm 2cm 0 2cm !important;
|
136
|
+
box-sizing: border-box !important;
|
137
|
+
|
138
|
+
opacity: 1 !important;
|
139
|
+
|
140
|
+
-webkit-transform-style: flat !important;
|
141
|
+
-moz-transform-style: flat !important;
|
142
|
+
-ms-transform-style: flat !important;
|
143
|
+
transform-style: flat !important;
|
144
|
+
|
145
|
+
-webkit-transform: none !important;
|
146
|
+
-moz-transform: none !important;
|
147
|
+
-ms-transform: none !important;
|
148
|
+
transform: none !important;
|
149
|
+
}
|
150
|
+
.reveal section.stack {
|
151
|
+
margin: 0 !important;
|
152
|
+
padding: 0 !important;
|
153
|
+
page-break-after: avoid !important;
|
154
|
+
height: auto !important;
|
155
|
+
min-height: auto !important;
|
156
|
+
}
|
157
|
+
.reveal .absolute-element {
|
158
|
+
margin-left: 2.2cm;
|
159
|
+
margin-top: 1.8cm;
|
160
|
+
}
|
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;
|
169
|
+
}
|
170
|
+
.reveal section .slide-background {
|
171
|
+
position: absolute;
|
172
|
+
top: 0;
|
173
|
+
left: 0;
|
174
|
+
width: 100%;
|
175
|
+
z-index: 0;
|
176
|
+
}
|
177
|
+
.reveal section>* {
|
178
|
+
position: relative;
|
179
|
+
z-index: 1;
|
180
|
+
}
|
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
|
+
}
|