deckrb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/README.md +17 -17
  2. data/lib/deck/version.rb +1 -1
  3. data/public/deck.js/GPL-license.txt +0 -0
  4. data/public/deck.js/MIT-license.txt +0 -0
  5. data/public/deck.js/README.md +1 -0
  6. data/public/deck.js/core/deck.core.css +0 -0
  7. data/public/deck.js/core/deck.core.html +0 -0
  8. data/public/deck.js/core/deck.core.js +0 -0
  9. data/public/deck.js/extensions/goto/deck.goto.css +0 -0
  10. data/public/deck.js/extensions/goto/deck.goto.html +0 -0
  11. data/public/deck.js/extensions/goto/deck.goto.js +62 -26
  12. data/public/deck.js/extensions/hash/deck.hash.css +0 -0
  13. data/public/deck.js/extensions/hash/deck.hash.html +0 -0
  14. data/public/deck.js/extensions/hash/deck.hash.js +0 -0
  15. data/public/deck.js/extensions/hash/deck.hash.scss +0 -0
  16. data/public/deck.js/extensions/menu/deck.menu.css +5 -5
  17. data/public/deck.js/extensions/menu/deck.menu.js +0 -0
  18. data/public/deck.js/extensions/menu/deck.menu.scss +5 -5
  19. data/public/deck.js/extensions/navigation/deck.navigation.css +0 -0
  20. data/public/deck.js/extensions/navigation/deck.navigation.html +0 -0
  21. data/public/deck.js/extensions/navigation/deck.navigation.js +0 -0
  22. data/public/deck.js/extensions/scale/deck.scale.css +18 -9
  23. data/public/deck.js/extensions/scale/deck.scale.js +62 -48
  24. data/public/deck.js/extensions/scale/deck.scale.scss +26 -16
  25. data/public/deck.js/extensions/status/deck.status.css +0 -0
  26. data/public/deck.js/extensions/status/deck.status.html +0 -0
  27. data/public/deck.js/extensions/status/deck.status.js +0 -0
  28. data/public/deck.js/introduction/index.html +18 -30
  29. data/public/deck.js/jquery-1.7.min.js +0 -0
  30. data/public/deck.js/modernizr.custom.js +0 -0
  31. data/public/deck.js/test/fixtures/complex.html +0 -0
  32. data/public/deck.js/test/fixtures/empty.html +0 -0
  33. data/public/deck.js/test/fixtures/iframe_simple.html +0 -0
  34. data/public/deck.js/test/fixtures/iframes.html +0 -0
  35. data/public/deck.js/test/fixtures/nesteds.html +1 -1
  36. data/public/deck.js/test/fixtures/standard.html +0 -0
  37. data/public/deck.js/test/index.html +0 -0
  38. data/public/deck.js/test/spec.goto.js +41 -18
  39. data/public/deck.js/test/spec.hash.js +0 -0
  40. data/public/deck.js/test/spec.menu.js +0 -0
  41. data/public/deck.js/test/spec.navigation.js +0 -0
  42. data/public/deck.js/test/spec.scale.js +0 -0
  43. data/public/deck.js/test/spec.status.js +0 -0
  44. data/public/deck.js/themes/style/neon.css +3 -0
  45. data/public/deck.js/themes/style/neon.scss +20 -14
  46. data/public/deck.js/themes/style/swiss.css +3 -0
  47. data/public/deck.js/themes/style/swiss.scss +14 -8
  48. data/public/deck.js/themes/style/web-2.0.css +3 -0
  49. data/public/deck.js/themes/style/web-2.0.scss +16 -12
  50. data/public/deck.js/themes/transition/fade.css +2 -3
  51. data/public/deck.js/themes/transition/fade.scss +2 -3
  52. data/public/deck.js/themes/transition/horizontal-slide.css +0 -3
  53. data/public/deck.js/themes/transition/horizontal-slide.scss +0 -4
  54. data/public/deck.js/themes/transition/vertical-slide.css +0 -3
  55. data/public/deck.js/themes/transition/vertical-slide.scss +0 -4
  56. metadata +18 -19
  57. data/public/deck.js/introduction/index.rb +0 -101
@@ -2,10 +2,10 @@
2
2
  font-family: "Helvetica Neue", sans-serif;
3
3
  font-size:1.25em;
4
4
  background:#fff;
5
-
5
+
6
6
  .slide {
7
7
  background:#fff;
8
-
8
+
9
9
  h1 {
10
10
  color:#000;
11
11
  }
@@ -60,30 +60,36 @@
60
60
  }
61
61
  }
62
62
  }
63
-
63
+
64
+ > .slide {
65
+ .deck-before, .deck-previous {
66
+ opacity:0.4;
67
+ }
68
+ }
69
+
64
70
  .deck-prev-link, .deck-next-link {
65
71
  background:#ccc;
66
72
  font-family:serif; // sans-serif arrows x-browser fail
67
-
73
+
68
74
  &, &:hover, &:focus, &:active, &:visited {
69
75
  color:#fff;
70
76
  }
71
-
77
+
72
78
  &:hover, &:focus {
73
79
  background:#c00;
74
80
  text-decoration:none;
75
81
  }
76
82
  }
77
-
83
+
78
84
  .deck-status {
79
85
  font-size:0.6666em;
80
86
  }
81
-
87
+
82
88
  &.deck-menu {
83
89
  .slide {
84
90
  background:#eee;
85
91
  }
86
-
92
+
87
93
  .deck-current, .no-touch & .slide:hover {
88
94
  background:#ddf;
89
95
  }
@@ -21,6 +21,9 @@
21
21
  .deck-container > .slide {
22
22
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
23
23
  }
24
+ .deck-container > .slide .deck-before, .deck-container > .slide .deck-previous {
25
+ opacity: 0.4;
26
+ }
24
27
  .deck-container .slide h1, .deck-container .slide h2, .deck-container .slide h3, .deck-container .slide h4, .deck-container .slide h5, .deck-container .slide h6 {
25
28
  font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
26
29
  }
@@ -5,9 +5,9 @@
5
5
  }
6
6
 
7
7
  @mixin rotate($deg) {
8
- -webkit-transform:rotate($deg);
9
- -moz-transform:rotate($deg);
10
- -ms-transform:rotate($deg);
8
+ -webkit-transform:rotate($deg);
9
+ -moz-transform:rotate($deg);
10
+ -ms-transform:rotate($deg);
11
11
  -o-transform:rotate($deg);
12
12
  transform:rotate($deg);
13
13
  }
@@ -30,11 +30,15 @@
30
30
  background: -ms-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* IE10+ */
31
31
  background: linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* W3C */
32
32
  background-attachment: fixed;
33
-
33
+
34
34
  > .slide {
35
35
  text-shadow:1px 1px 1px rgba(255,255,255,.5);
36
+
37
+ .deck-before, .deck-previous {
38
+ opacity:0.4;
39
+ }
36
40
  }
37
-
41
+
38
42
  .slide {
39
43
  h1, h2, h3, h4, h5, h6 {
40
44
  font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
@@ -186,7 +190,7 @@
186
190
  }
187
191
  }
188
192
  }
189
-
193
+
190
194
  .deck-prev-link, .deck-next-link {
191
195
  background:#fff;
192
196
  opacity:0.5;
@@ -200,31 +204,31 @@
200
204
  text-decoration:none;
201
205
  }
202
206
  }
203
-
207
+
204
208
  .deck-status {
205
209
  font-size:0.6666em;
206
210
  }
207
-
211
+
208
212
  &.deck-menu {
209
213
  .slide {
210
214
  background:transparent;
211
215
  @include border-radius(5px);
212
-
216
+
213
217
  .rgba & {
214
218
  background:rgba(0,0,0,.1);
215
219
  }
216
-
220
+
217
221
  &.deck-current, .rgba &.deck-current, .no-touch &:hover {
218
222
  background:#fff;
219
223
  }
220
224
  }
221
225
  }
222
-
226
+
223
227
  .goto-form {
224
228
  background:#fff;
225
229
  border:1px solid #cde;
226
230
  @include border-radius(5px);
227
-
231
+
228
232
  .boxshadow & {
229
233
  -webkit-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
230
234
  -moz-box-shadow: 0 15px 10px -10px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
@@ -19,10 +19,9 @@
19
19
  position: relative;
20
20
  left: 0;
21
21
  top: 0;
22
- opacity: 0;
23
22
  }
24
- .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-before, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-previous {
25
- opacity: 0.4;
23
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-after {
24
+ opacity: 0;
26
25
  }
27
26
  .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-current {
28
27
  opacity: 1;
@@ -34,11 +34,10 @@
34
34
  position:relative;
35
35
  left:0;
36
36
  top:0;
37
- opacity:0;
38
37
  }
39
38
 
40
- .deck-before, .deck-previous {
41
- opacity:0.4;
39
+ .deck-next, .deck-after {
40
+ opacity:0;
42
41
  }
43
42
 
44
43
  .deck-current {
@@ -36,9 +36,6 @@
36
36
  -o-transform: translate(200%, 0);
37
37
  transform: translate3d(200%, 0, 0);
38
38
  }
39
- .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-before, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-previous {
40
- opacity: 0.4;
41
- }
42
39
  .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous {
43
40
  -webkit-transform: translate3d(-200%, 0, 0);
44
41
  -moz-transform: translate(-200%, 0);
@@ -59,10 +59,6 @@
59
59
  visibility:visible;
60
60
  @include translate(200%);
61
61
  }
62
-
63
- .deck-before, .deck-previous {
64
- opacity:0.4;
65
- }
66
62
  }
67
63
 
68
64
  > .deck-previous {
@@ -36,9 +36,6 @@
36
36
  -o-transform: translate(0, 1600px);
37
37
  transform: translate3d(0, 1600px, 0);
38
38
  }
39
- .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-before, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-previous {
40
- opacity: 0.4;
41
- }
42
39
  .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous {
43
40
  -webkit-transform: translate3d(0, -200%, 0);
44
41
  -moz-transform: translate(0, -200%);
@@ -69,10 +69,6 @@
69
69
  visibility:visible;
70
70
  @include translate(0, 1600px);
71
71
  }
72
-
73
- .deck-before, .deck-previous {
74
- opacity:0.4;
75
- }
76
72
  }
77
73
 
78
74
  > .deck-previous {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deckrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-26 00:00:00.000000000Z
12
+ date: 2012-02-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erector
16
- requirement: &70245840655320 !ruby/object:Gem::Requirement
16
+ requirement: &70106368069620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.0.pre1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70245840655320
24
+ version_requirements: *70106368069620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: redcarpet
27
- requirement: &70245840654820 !ruby/object:Gem::Requirement
27
+ requirement: &70106368069120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '2'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70245840654820
35
+ version_requirements: *70106368069120
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rack
38
- requirement: &70245831700820 !ruby/object:Gem::Requirement
38
+ requirement: &70106368068740 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70245831700820
46
+ version_requirements: *70106368068740
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: nokogiri
49
- requirement: &70245831700360 !ruby/object:Gem::Requirement
49
+ requirement: &70106368068280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70245831700360
57
+ version_requirements: *70106368068280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: coderay
60
- requirement: &70245831699940 !ruby/object:Gem::Requirement
60
+ requirement: &70106368067860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70245831699940
68
+ version_requirements: *70106368067860
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: json
71
- requirement: &70245831699520 !ruby/object:Gem::Requirement
71
+ requirement: &70106368067440 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70245831699520
79
+ version_requirements: *70106368067440
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rack-codehighlighter
82
- requirement: &70245831699100 !ruby/object:Gem::Requirement
82
+ requirement: &70106368067020 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70245831699100
90
+ version_requirements: *70106368067020
91
91
  description: deck.js (http://imakewebthings.github.com/deck.js) is a JavaScript library
92
92
  for building slide presentations using HTML 5. deck.rb (http://github.com/alexch/deck.rb)
93
93
  builds on top of deck.js, adding some features and letting you focus on your slides,
@@ -137,7 +137,6 @@ files:
137
137
  - public/deck.js/extensions/theme-picker/deck.theme-picker.js
138
138
  - public/deck.js/GPL-license.txt
139
139
  - public/deck.js/introduction/index.html
140
- - public/deck.js/introduction/index.rb
141
140
  - public/deck.js/jquery-1.7.min.js
142
141
  - public/deck.js/MIT-license.txt
143
142
  - public/deck.js/modernizr.custom.js
@@ -196,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
195
  version: '0'
197
196
  segments:
198
197
  - 0
199
- hash: -3033484796585204259
198
+ hash: -1853799301992505698
200
199
  required_rubygems_version: !ruby/object:Gem::Requirement
201
200
  none: false
202
201
  requirements:
@@ -205,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
204
  version: '0'
206
205
  segments:
207
206
  - 0
208
- hash: -3033484796585204259
207
+ hash: -1853799301992505698
209
208
  requirements: []
210
209
  rubyforge_project:
211
210
  rubygems_version: 1.8.6
@@ -1,101 +0,0 @@
1
- class Index < Erector::Widget
2
- def content
3
- rawtext '<!DOCTYPE html>'
4
- rawtext '<!--[if lt IE 7]>'
5
- html :class => 'no-js ie6', :lang => 'en' do
6
- rawtext '<![endif]-->'
7
- rawtext '<!--[if IE 7]>'
8
- html :class => 'no-js ie7', :lang => 'en' do
9
- rawtext '<![endif]-->'
10
- rawtext '<!--[if IE 8]>'
11
- html :class => 'no-js ie8', :lang => 'en' do
12
- rawtext '<![endif]-->'
13
- rawtext '<!--[if gt IE 8]>'
14
- rawtext '<!-->'
15
- html :class => 'no-js', :lang => 'en' do
16
- rawtext '<!--<![endif]-->'
17
- head do
18
- meta :charset => 'utf-8' do
19
- meta 'http-equiv' => 'X-UA-Compatible', :content => 'IE=edge,chrome=1' do
20
- title do
21
- text 'Getting Started with deck.js'
22
- end
23
- meta :name => 'description', :content => 'A jQuery library for modern HTML presentations' do
24
- meta :name => 'author', :content => 'Caleb Troughton' do
25
- meta :name => 'viewport', :content => 'width=1024, user-scalable=no' do
26
- rawtext '<!-- Core and extension CSS files -->'
27
- link :rel => 'stylesheet', :href => '../core/deck.core.css' do
28
- link :rel => 'stylesheet', :href => '../extensions/goto/deck.goto.css' do
29
- link :rel => 'stylesheet', :href => '../extensions/menu/deck.menu.css' do
30
- link :rel => 'stylesheet', :href => '../extensions/navigation/deck.navigation.css' do
31
- link :rel => 'stylesheet', :href => '../extensions/status/deck.status.css' do
32
- link :rel => 'stylesheet', :href => '../extensions/hash/deck.hash.css' do
33
- rawtext '<!-- Theme CSS files (menu swaps these out) -->'
34
- link :rel => 'stylesheet', :id => 'style-theme-link', :href => '../themes/style/web-2.0.css' do
35
- link :rel => 'stylesheet', :id => 'transition-theme-link', :href => '../themes/transition/horizontal-slide.css' do
36
- rawtext '<!-- Custom CSS just for this page -->'
37
- link :rel => 'stylesheet', :href => 'introduction.css' do
38
- script :src => '../modernizr.custom.js' do
39
- end
40
- end
41
- body :class => 'deck-container' do
42
- section :class => 'slide', :id => 'title-slide' do
43
- h1 do
44
- text 'Getting Started with deck.js'
45
- end
46
- end
47
- a :href => '#', :class => 'deck-prev-link', :title => 'Previous' do
48
- text '←'
49
- end
50
- a :href => '#', :class => 'deck-next-link', :title => 'Next' do
51
- text '→'
52
- end
53
- p :class => 'deck-status' do
54
- span :class => 'deck-status-current' do
55
- end
56
- text '/'
57
- span :class => 'deck-status-total' do
58
- end
59
- end
60
- form :action => '.', :method => 'get', :class => 'goto-form' do
61
- label :for => 'goto-slide' do
62
- text 'Go to slide:'
63
- end
64
- input :type => 'text', :name => 'slidenum', :id => 'goto-slide', :list => 'goto-datalist' do
65
- datalist :id => 'goto-datalist' do
66
- end
67
- input :type => 'submit', :value => 'Go' do
68
- end
69
-
70
-
71
- a :href => '.', :title => 'Permalink to this slide', :class => 'deck-permalink' do
72
- text '#'
73
- end
74
- rawtext '<!-- Grab CDN jQuery, with a protocol relative URL; fall back to local if offline -->'
75
- script :src => '//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js' do
76
- end
77
- script do
78
- text 'window.jQuery || document.write(\''
79
- script :src => '../jquery-1.7.min.js' do
80
- text '<\/script>\')'
81
- end
82
- rawtext '<!-- Deck Core and extensions -->'
83
- script :src => '../core/deck.core.js' do
84
- end
85
- script :src => '../extensions/hash/deck.hash.js' do
86
- end
87
- script :src => '../extensions/menu/deck.menu.js' do
88
- end
89
- script :src => '../extensions/goto/deck.goto.js' do
90
- end
91
- script :src => '../extensions/status/deck.status.js' do
92
- end
93
- script :src => '../extensions/navigation/deck.navigation.js' do
94
- end
95
- rawtext '<!-- Specific to this page -->'
96
- script :src => 'introduction.js' do
97
- end
98
- end
99
- end
100
- end
101
- end