shining 1.3.7 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +18 -2
- data/VERSION +1 -1
- data/bin/shine +1 -1
- data/css/base.css +53 -8
- data/css/shAll.css +328 -0
- data/images/default-noise.png +0 -0
- data/lib/config.ru +1 -1
- data/lib/deps.js +44 -25
- data/lib/ext/filemethods.rb +1 -1
- data/lib/jquery-1.4.2.min.js +154 -0
- data/lib/plugins/iphone.js +107 -13
- data/lib/plugins/resize.js +14 -17
- data/lib/shining.js +162 -209
- data/lib/shining.rb +1 -6
- data/lib/shining/heroku.rb +0 -1
- data/lib/shining/preso.rb +1 -1
- data/shining.gemspec +5 -11
- data/spec/cli_spec.rb +5 -14
- data/spec/preso_spec.rb +3 -3
- data/templates/config.json +1 -1
- data/templates/index.html +2 -6
- data/templates/slides/welcome.html +1 -1
- data/themes/default.css +9 -12
- data/themes/slidedown.css +1 -1
- metadata +9 -15
- data/css/iphone.css +0 -14
- data/css/shCore.css +0 -330
- data/images/help.png +0 -0
- data/images/magnifier.png +0 -0
- data/images/page_white_code.png +0 -0
- data/images/page_white_copy.png +0 -0
- data/images/printer.png +0 -0
- data/lib/jquery-1.4.1.min.js +0 -152
- data/lib/plugins/syntaxhighlighter.js +0 -6
data/CHANGELOG.txt
CHANGED
@@ -1,9 +1,25 @@
|
|
1
|
-
=
|
1
|
+
= 2.0 (17/08/2010)
|
2
|
+
|
3
|
+
* The long waited code reorganisation.
|
4
|
+
* More reliant on events rather than piling up functions one after another.
|
5
|
+
* Dropped support for Haml altogether, since haml-js is crap and I don't want to become it's new maintainer.
|
6
|
+
* Presentation notes through <aside> tags.
|
7
|
+
* Much better iPhone support. Sliding left and right navigates instead of touching.
|
8
|
+
* iPad support, though that came sort of as a bonus.
|
9
|
+
* Much stabler stage content centering.
|
10
|
+
* Updated the default theme so it's less lame.
|
11
|
+
* A kick-ass looking docs website! Check http://shining.heroku.com.
|
12
|
+
|
13
|
+
= 1.3.8 (I forgot)
|
14
|
+
|
15
|
+
* Not loading the default theme directly from the index.html template.
|
16
|
+
|
17
|
+
= 1.3.7 (14/07/2010)
|
2
18
|
|
3
19
|
* fixed slide scripts not playing at the appropriate time when opened directly.
|
4
20
|
* added a "mimic" slidedown theme.
|
5
21
|
|
6
|
-
= 1.3.6
|
22
|
+
= 1.3.6 (11/07/2010)
|
7
23
|
|
8
24
|
* slide steps, so you can progressively show content.
|
9
25
|
* deploying to Heroku now tries to use the presentation's name as the application name.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
data/bin/shine
CHANGED
@@ -62,7 +62,7 @@ def new_slide! name, format = 'html'
|
|
62
62
|
preso = Shining::Preso.open Dir.pwd
|
63
63
|
name, extension = name_and_extension(name)
|
64
64
|
extension = format if extension.blank?
|
65
|
-
preso.new_slide "#{name}.#{extension}"
|
65
|
+
preso.new_slide "#{name}.#{extension}"
|
66
66
|
end
|
67
67
|
|
68
68
|
def play
|
data/css/base.css
CHANGED
@@ -8,8 +8,8 @@ ol, ul { list-style-type : none; }
|
|
8
8
|
ins { text-decoration : none; }
|
9
9
|
del { text-decoration : line-through }
|
10
10
|
|
11
|
-
body { font: 12px/1.5 "Lucida Grande", Tahoma, serif; overflow: hidden; text-align: center }
|
12
|
-
#stage { position: relative; display: inline-block; padding: 40px 20px; max-width: 90%; text-align: left; margin: 0 auto }
|
11
|
+
body { font: 12px/1.5 "Lucida Grande", Tahoma, serif; overflow: hidden !important; text-align: center }
|
12
|
+
#stage { position: relative; top: 50%; display: inline-block; padding: 40px 20px; max-width: 90%; text-align: left; margin: 0 auto }
|
13
13
|
|
14
14
|
.no-text-shadow { text-shadow: none }
|
15
15
|
.no-drop-shadow {}
|
@@ -17,6 +17,8 @@ body { font: 12px/1.5 "Lucida Grande", Tahoma, serif; overflow: hidden; text-
|
|
17
17
|
.visible { opacity: 1; display: static }
|
18
18
|
.centered { text-align: center; margin: 0 auto }
|
19
19
|
|
20
|
+
html, body { height: 100% }
|
21
|
+
|
20
22
|
h1 { font-size: 3.6em }
|
21
23
|
h2 { font-size: 3.2em }
|
22
24
|
h3 { font-size: 3em }
|
@@ -24,15 +26,12 @@ p, li { font-size: 1.4em }
|
|
24
26
|
p { margin: 0.5em 0 }
|
25
27
|
|
26
28
|
ul { display: inline-block; margin-left: 2em }
|
29
|
+
a { cursor: pointer }
|
27
30
|
|
28
|
-
|
29
|
-
a { cursor: pointer }
|
30
|
-
|
31
|
-
.step { display: none }
|
32
|
-
|
33
|
-
div.slice { position: absolute; display: block; width: 0; top: -10px; bottom: -10px }
|
31
|
+
aside, .step { display: none }
|
34
32
|
|
35
33
|
#help {
|
34
|
+
font-family: Helvetica, sans-serif !important;
|
36
35
|
display: inline-block;
|
37
36
|
font-size: 200%;
|
38
37
|
opacity: 0;
|
@@ -45,3 +44,49 @@ div.slice { position: absolute; display: block; width: 0; top: -10px; bottom: -1
|
|
45
44
|
padding: 10px;
|
46
45
|
}
|
47
46
|
|
47
|
+
@media all and (max-device-width: 480px) {
|
48
|
+
body { position: fixed; top: 0; bottom: 0; left: 0; right: 0 }
|
49
|
+
#stage { position: static }
|
50
|
+
#help { font-size: 200% }
|
51
|
+
h1 { font-size: 3em }
|
52
|
+
h2 { font-size: 2.8em }
|
53
|
+
h3 { font-size: 2.5em }
|
54
|
+
p, li { font-size: 1.6em }
|
55
|
+
p { margin: 0.5em 0 }
|
56
|
+
div.slide { position: absolute; width: 100% }
|
57
|
+
#stage { -webkit-box-shadow: none !important; border: 0 !important }
|
58
|
+
.step { display: inline-block }
|
59
|
+
}
|
60
|
+
|
61
|
+
@media all and (min-device-width: 481px) and (max-device-width: 1024px) {
|
62
|
+
body { position: fixed; top: 0; bottom: 0; left: 0; right: 0 }
|
63
|
+
#stage { position: static }
|
64
|
+
#help { font-size: 200% }
|
65
|
+
h1 { font-size: 3em }
|
66
|
+
h2 { font-size: 2.8em }
|
67
|
+
h3 { font-size: 2.5em }
|
68
|
+
p, li { font-size: 1.6em }
|
69
|
+
p { margin: 0.5em 0 }
|
70
|
+
div.slide { position: absolute; width: 100% }
|
71
|
+
#stage { -webkit-box-shadow: none !important; border: 0 !important }
|
72
|
+
.step { display: inline-block }
|
73
|
+
}
|
74
|
+
|
75
|
+
#note {
|
76
|
+
position: fixed;
|
77
|
+
margin-bottom: 10px;
|
78
|
+
text-align: left;
|
79
|
+
font-size: 1.5em;
|
80
|
+
bottom: 40px;
|
81
|
+
right: 10px;
|
82
|
+
padding: 0.5em 1em;
|
83
|
+
color: #000;
|
84
|
+
background: #bc8a09;
|
85
|
+
background: -moz-linear-gradient(center top , #e6d15e, #cab853) repeat scroll 0 0 transparent;
|
86
|
+
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#e6d15e), to(#cab853));
|
87
|
+
-moz-border-radius: 10px;
|
88
|
+
-webkit-border-radius: 10px;
|
89
|
+
border-radius: 10px
|
90
|
+
}
|
91
|
+
#note:after { content: "\00a0"; display: block; position: absolute; bottom: -30px; right: 30%; width: 0; height: 0; border-width: 0 20px 30px 0px; border-style: solid; border-color: transparent #cab853 }
|
92
|
+
#note a { color: #000; border-bottom: 1px dotted #000 }
|
data/css/shAll.css
ADDED
@@ -0,0 +1,328 @@
|
|
1
|
+
/**
|
2
|
+
* SyntaxHighlighter
|
3
|
+
* http://alexgorbatchev.com/SyntaxHighlighter
|
4
|
+
*
|
5
|
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
6
|
+
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
|
7
|
+
*
|
8
|
+
* @version
|
9
|
+
* 3.0.83 (July 02 2010)
|
10
|
+
*
|
11
|
+
* @copyright
|
12
|
+
* Copyright (C) 2004-2010 Alex Gorbatchev.
|
13
|
+
*
|
14
|
+
* @license
|
15
|
+
* Dual licensed under the MIT and GPL licenses.
|
16
|
+
*/
|
17
|
+
.syntaxhighlighter a,
|
18
|
+
.syntaxhighlighter div,
|
19
|
+
.syntaxhighlighter code,
|
20
|
+
.syntaxhighlighter table,
|
21
|
+
.syntaxhighlighter table td,
|
22
|
+
.syntaxhighlighter table tr,
|
23
|
+
.syntaxhighlighter table tbody,
|
24
|
+
.syntaxhighlighter table thead,
|
25
|
+
.syntaxhighlighter table caption,
|
26
|
+
.syntaxhighlighter textarea {
|
27
|
+
-moz-border-radius: 0 0 0 0 !important;
|
28
|
+
-webkit-border-radius: 0 0 0 0 !important;
|
29
|
+
background: none !important;
|
30
|
+
border: 0 !important;
|
31
|
+
bottom: auto !important;
|
32
|
+
float: none !important;
|
33
|
+
height: auto !important;
|
34
|
+
left: auto !important;
|
35
|
+
line-height: 1.1em !important;
|
36
|
+
margin: 0 !important;
|
37
|
+
outline: 0 !important;
|
38
|
+
overflow: visible !important;
|
39
|
+
padding: 0 !important;
|
40
|
+
position: static !important;
|
41
|
+
right: auto !important;
|
42
|
+
text-align: left !important;
|
43
|
+
top: auto !important;
|
44
|
+
vertical-align: baseline !important;
|
45
|
+
width: auto !important;
|
46
|
+
box-sizing: content-box !important;
|
47
|
+
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
48
|
+
font-weight: normal !important;
|
49
|
+
font-style: normal !important;
|
50
|
+
font-size: 1em !important;
|
51
|
+
min-height: inherit !important;
|
52
|
+
min-height: auto !important;
|
53
|
+
}
|
54
|
+
|
55
|
+
.syntaxhighlighter {
|
56
|
+
width: 100% !important;
|
57
|
+
margin: 1em 0 1em 0 !important;
|
58
|
+
position: relative !important;
|
59
|
+
/* overflow: auto !important;*/
|
60
|
+
font-size: 1em !important;
|
61
|
+
}
|
62
|
+
.syntaxhighlighter.source {
|
63
|
+
overflow: hidden !important;
|
64
|
+
}
|
65
|
+
.syntaxhighlighter .bold {
|
66
|
+
font-weight: bold !important;
|
67
|
+
}
|
68
|
+
.syntaxhighlighter .italic {
|
69
|
+
font-style: italic !important;
|
70
|
+
}
|
71
|
+
.syntaxhighlighter .line {
|
72
|
+
/* white-space: pre !important;*/
|
73
|
+
}
|
74
|
+
.syntaxhighlighter table {
|
75
|
+
width: 100% !important;
|
76
|
+
}
|
77
|
+
.syntaxhighlighter table caption {
|
78
|
+
text-align: left !important;
|
79
|
+
padding: .5em 0 0.5em 1em !important;
|
80
|
+
}
|
81
|
+
.syntaxhighlighter table td.code {
|
82
|
+
width: 100% !important;
|
83
|
+
}
|
84
|
+
.syntaxhighlighter table td.code .container {
|
85
|
+
position: relative !important;
|
86
|
+
}
|
87
|
+
.syntaxhighlighter table td.code .container textarea {
|
88
|
+
box-sizing: border-box !important;
|
89
|
+
position: absolute !important;
|
90
|
+
left: 0 !important;
|
91
|
+
top: 0 !important;
|
92
|
+
width: 100% !important;
|
93
|
+
height: 100% !important;
|
94
|
+
border: none !important;
|
95
|
+
background: white !important;
|
96
|
+
padding-left: 1em !important;
|
97
|
+
overflow: hidden !important;
|
98
|
+
white-space: pre !important;
|
99
|
+
}
|
100
|
+
.syntaxhighlighter table td.gutter .line {
|
101
|
+
text-align: right !important;
|
102
|
+
padding: 0 0.5em 0 1em !important;
|
103
|
+
}
|
104
|
+
.syntaxhighlighter table td.code .line {
|
105
|
+
padding: 0 1em !important;
|
106
|
+
}
|
107
|
+
.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
|
108
|
+
padding-left: 0em !important;
|
109
|
+
}
|
110
|
+
.syntaxhighlighter.show {
|
111
|
+
display: block !important;
|
112
|
+
}
|
113
|
+
.syntaxhighlighter.collapsed table {
|
114
|
+
display: none !important;
|
115
|
+
}
|
116
|
+
.syntaxhighlighter.collapsed .toolbar {
|
117
|
+
padding: 0.1em 0.8em 0em 0.8em !important;
|
118
|
+
font-size: 1em !important;
|
119
|
+
position: static !important;
|
120
|
+
width: auto !important;
|
121
|
+
height: auto !important;
|
122
|
+
}
|
123
|
+
.syntaxhighlighter.collapsed .toolbar span {
|
124
|
+
display: inline !important;
|
125
|
+
margin-right: 1em !important;
|
126
|
+
}
|
127
|
+
.syntaxhighlighter.collapsed .toolbar span a {
|
128
|
+
padding: 0 !important;
|
129
|
+
display: none !important;
|
130
|
+
}
|
131
|
+
.syntaxhighlighter.collapsed .toolbar span a.expandSource {
|
132
|
+
display: inline !important;
|
133
|
+
}
|
134
|
+
.syntaxhighlighter .toolbar {
|
135
|
+
position: absolute !important;
|
136
|
+
right: 1px !important;
|
137
|
+
top: 1px !important;
|
138
|
+
width: 11px !important;
|
139
|
+
height: 11px !important;
|
140
|
+
font-size: 10px !important;
|
141
|
+
z-index: 10 !important;
|
142
|
+
}
|
143
|
+
.syntaxhighlighter .toolbar span.title {
|
144
|
+
display: inline !important;
|
145
|
+
}
|
146
|
+
.syntaxhighlighter .toolbar a {
|
147
|
+
display: block !important;
|
148
|
+
text-align: center !important;
|
149
|
+
text-decoration: none !important;
|
150
|
+
padding-top: 1px !important;
|
151
|
+
}
|
152
|
+
.syntaxhighlighter .toolbar a.expandSource {
|
153
|
+
display: none !important;
|
154
|
+
}
|
155
|
+
.syntaxhighlighter.ie {
|
156
|
+
font-size: .9em !important;
|
157
|
+
padding: 1px 0 1px 0 !important;
|
158
|
+
}
|
159
|
+
.syntaxhighlighter.ie .toolbar {
|
160
|
+
line-height: 8px !important;
|
161
|
+
}
|
162
|
+
.syntaxhighlighter.ie .toolbar a {
|
163
|
+
padding-top: 0px !important;
|
164
|
+
}
|
165
|
+
.syntaxhighlighter.printing .line.alt1 .content,
|
166
|
+
.syntaxhighlighter.printing .line.alt2 .content,
|
167
|
+
.syntaxhighlighter.printing .line.highlighted .number,
|
168
|
+
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
169
|
+
.syntaxhighlighter.printing .line.highlighted.alt2 .content {
|
170
|
+
background: none !important;
|
171
|
+
}
|
172
|
+
.syntaxhighlighter.printing .line .number {
|
173
|
+
color: #bbbbbb !important;
|
174
|
+
}
|
175
|
+
.syntaxhighlighter.printing .line .content {
|
176
|
+
color: black !important;
|
177
|
+
}
|
178
|
+
.syntaxhighlighter.printing .toolbar {
|
179
|
+
display: none !important;
|
180
|
+
}
|
181
|
+
.syntaxhighlighter.printing a {
|
182
|
+
text-decoration: none !important;
|
183
|
+
}
|
184
|
+
.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
|
185
|
+
color: black !important;
|
186
|
+
}
|
187
|
+
.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
|
188
|
+
color: #008200 !important;
|
189
|
+
}
|
190
|
+
.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
|
191
|
+
color: blue !important;
|
192
|
+
}
|
193
|
+
.syntaxhighlighter.printing .keyword {
|
194
|
+
color: #006699 !important;
|
195
|
+
font-weight: bold !important;
|
196
|
+
}
|
197
|
+
.syntaxhighlighter.printing .preprocessor {
|
198
|
+
color: gray !important;
|
199
|
+
}
|
200
|
+
.syntaxhighlighter.printing .variable {
|
201
|
+
color: #aa7700 !important;
|
202
|
+
}
|
203
|
+
.syntaxhighlighter.printing .value {
|
204
|
+
color: #009900 !important;
|
205
|
+
}
|
206
|
+
.syntaxhighlighter.printing .functions {
|
207
|
+
color: #ff1493 !important;
|
208
|
+
}
|
209
|
+
.syntaxhighlighter.printing .constants {
|
210
|
+
color: #0066cc !important;
|
211
|
+
}
|
212
|
+
.syntaxhighlighter.printing .script {
|
213
|
+
font-weight: bold !important;
|
214
|
+
}
|
215
|
+
.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
|
216
|
+
color: gray !important;
|
217
|
+
}
|
218
|
+
.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
|
219
|
+
color: #ff1493 !important;
|
220
|
+
}
|
221
|
+
.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
|
222
|
+
color: red !important;
|
223
|
+
}
|
224
|
+
.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
|
225
|
+
color: black !important;
|
226
|
+
}
|
227
|
+
|
228
|
+
.syntaxhighlighter {
|
229
|
+
background-color: #121212 !important;
|
230
|
+
}
|
231
|
+
.syntaxhighlighter .line.alt1 {
|
232
|
+
background-color: #121212 !important;
|
233
|
+
}
|
234
|
+
.syntaxhighlighter .line.alt2 {
|
235
|
+
background-color: #121212 !important;
|
236
|
+
}
|
237
|
+
.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
|
238
|
+
background-color: #2c2c29 !important;
|
239
|
+
}
|
240
|
+
.syntaxhighlighter .line.highlighted.number {
|
241
|
+
color: white !important;
|
242
|
+
}
|
243
|
+
.syntaxhighlighter table caption {
|
244
|
+
color: white !important;
|
245
|
+
}
|
246
|
+
.syntaxhighlighter .gutter {
|
247
|
+
color: #afafaf !important;
|
248
|
+
}
|
249
|
+
.syntaxhighlighter .gutter .line {
|
250
|
+
border-right: 3px solid #3185b9 !important;
|
251
|
+
}
|
252
|
+
.syntaxhighlighter .gutter .line.highlighted {
|
253
|
+
background-color: #3185b9 !important;
|
254
|
+
color: #121212 !important;
|
255
|
+
}
|
256
|
+
.syntaxhighlighter.printing .line .content {
|
257
|
+
border: none !important;
|
258
|
+
}
|
259
|
+
.syntaxhighlighter.collapsed {
|
260
|
+
overflow: visible !important;
|
261
|
+
}
|
262
|
+
.syntaxhighlighter.collapsed .toolbar {
|
263
|
+
color: #3185b9 !important;
|
264
|
+
background: black !important;
|
265
|
+
border: 1px solid #3185b9 !important;
|
266
|
+
}
|
267
|
+
.syntaxhighlighter.collapsed .toolbar a {
|
268
|
+
color: #3185b9 !important;
|
269
|
+
}
|
270
|
+
.syntaxhighlighter.collapsed .toolbar a:hover {
|
271
|
+
color: #d01d33 !important;
|
272
|
+
}
|
273
|
+
.syntaxhighlighter .toolbar {
|
274
|
+
color: white !important;
|
275
|
+
background: #3185b9 !important;
|
276
|
+
border: none !important;
|
277
|
+
}
|
278
|
+
.syntaxhighlighter .toolbar a {
|
279
|
+
color: white !important;
|
280
|
+
}
|
281
|
+
.syntaxhighlighter .toolbar a:hover {
|
282
|
+
color: #96daff !important;
|
283
|
+
}
|
284
|
+
.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
|
285
|
+
color: white !important;
|
286
|
+
}
|
287
|
+
.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
|
288
|
+
color: #696854 !important;
|
289
|
+
}
|
290
|
+
.syntaxhighlighter .string, .syntaxhighlighter .string a {
|
291
|
+
color: #e3e658 !important;
|
292
|
+
}
|
293
|
+
.syntaxhighlighter .keyword {
|
294
|
+
color: #d01d33 !important;
|
295
|
+
}
|
296
|
+
.syntaxhighlighter .preprocessor {
|
297
|
+
color: #435a5f !important;
|
298
|
+
}
|
299
|
+
.syntaxhighlighter .variable {
|
300
|
+
color: #898989 !important;
|
301
|
+
}
|
302
|
+
.syntaxhighlighter .value {
|
303
|
+
color: #009900 !important;
|
304
|
+
}
|
305
|
+
.syntaxhighlighter .functions {
|
306
|
+
color: #aaaaaa !important;
|
307
|
+
}
|
308
|
+
.syntaxhighlighter .constants {
|
309
|
+
color: #96daff !important;
|
310
|
+
}
|
311
|
+
.syntaxhighlighter .script {
|
312
|
+
font-weight: bold !important;
|
313
|
+
color: #d01d33 !important;
|
314
|
+
background-color: none !important;
|
315
|
+
}
|
316
|
+
.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
|
317
|
+
color: #ffc074 !important;
|
318
|
+
}
|
319
|
+
.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
|
320
|
+
color: #4a8cdb !important;
|
321
|
+
}
|
322
|
+
.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
|
323
|
+
color: #96daff !important;
|
324
|
+
}
|
325
|
+
|
326
|
+
.syntaxhighlighter .functions {
|
327
|
+
font-weight: bold !important;
|
328
|
+
}
|