reveal-ck 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +13 -0
  3. data/bin/reveal-ck +23 -8
  4. data/lib/reveal-ck.rb +6 -0
  5. data/lib/reveal-ck/build_task.rb +14 -0
  6. data/lib/reveal-ck/builder.rb +21 -0
  7. data/lib/reveal-ck/config.rb +43 -0
  8. data/lib/reveal-ck/file_slicer.rb +19 -17
  9. data/lib/reveal-ck/file_splicer.rb +30 -28
  10. data/lib/reveal-ck/file_string_replacer.rb +17 -0
  11. data/lib/reveal-ck/haml_processor.rb +17 -15
  12. data/lib/reveal-ck/presentation_builder.rb +69 -0
  13. data/lib/reveal-ck/slide_builder.rb +66 -0
  14. data/lib/reveal-ck/version.rb +1 -1
  15. data/rakelib/cucumber.rake +14 -1
  16. data/reveal.js/Gruntfile.js +132 -0
  17. data/reveal.js/LICENSE +1 -1
  18. data/reveal.js/README.md +362 -50
  19. data/reveal.js/css/print/paper.css +14 -14
  20. data/reveal.js/css/print/pdf.css +60 -30
  21. data/reveal.js/css/reveal.css +444 -149
  22. data/reveal.js/css/reveal.min.css +2 -2
  23. data/reveal.js/css/theme/README.md +8 -10
  24. data/reveal.js/css/theme/beige.css +24 -45
  25. data/reveal.js/css/theme/default.css +24 -45
  26. data/reveal.js/css/theme/moon.css +142 -0
  27. data/reveal.js/css/theme/night.css +24 -44
  28. data/reveal.js/css/theme/serif.css +27 -45
  29. data/reveal.js/css/theme/simple.css +25 -45
  30. data/reveal.js/css/theme/sky.css +26 -43
  31. data/reveal.js/css/theme/solarized.css +142 -0
  32. data/reveal.js/css/theme/source/beige.scss +2 -2
  33. data/reveal.js/css/theme/source/default.scss +2 -2
  34. data/reveal.js/css/theme/source/moon.scss +68 -0
  35. data/reveal.js/css/theme/source/night.scss +4 -4
  36. data/reveal.js/css/theme/source/serif.scss +8 -6
  37. data/reveal.js/css/theme/source/simple.scss +5 -5
  38. data/reveal.js/css/theme/source/sky.scss +9 -4
  39. data/reveal.js/css/theme/source/solarized.scss +74 -0
  40. data/reveal.js/css/theme/template/settings.scss +2 -2
  41. data/reveal.js/examples/assets/image1.png +0 -0
  42. data/reveal.js/examples/assets/image2.png +0 -0
  43. data/reveal.js/examples/barebones.html +42 -0
  44. data/reveal.js/examples/embedded-media.html +49 -0
  45. data/reveal.js/examples/slide-backgrounds.html +101 -0
  46. data/reveal.js/index.html +63 -56
  47. data/reveal.js/js/reveal.js +997 -216
  48. data/reveal.js/js/reveal.min.js +3 -3
  49. data/reveal.js/package.json +43 -29
  50. data/reveal.js/plugin/highlight/highlight.js +28 -6
  51. data/reveal.js/plugin/markdown/example.html +97 -0
  52. data/reveal.js/plugin/markdown/example.md +29 -0
  53. data/reveal.js/plugin/markdown/markdown.js +164 -11
  54. data/reveal.js/plugin/markdown/marked.js +37 -0
  55. data/reveal.js/plugin/multiplex/client.js +13 -0
  56. data/reveal.js/plugin/multiplex/index.js +56 -0
  57. data/reveal.js/plugin/multiplex/master.js +50 -0
  58. data/reveal.js/plugin/notes-server/index.js +1 -0
  59. data/reveal.js/plugin/notes-server/notes.html +8 -5
  60. data/reveal.js/plugin/notes/notes.html +133 -44
  61. data/reveal.js/plugin/notes/notes.js +3 -1
  62. data/reveal.js/plugin/print-pdf/print-pdf.js +8 -3
  63. data/reveal.js/plugin/remotes/remotes.js +13 -4
  64. data/reveal.js/plugin/search/search.js +196 -0
  65. data/reveal.js/plugin/zoom-js/zoom.js +26 -21
  66. data/spec/data/config/config.toml +6 -0
  67. data/spec/data/string_replacer/after_replace +4 -0
  68. data/spec/data/string_replacer/before_replace +4 -0
  69. data/spec/lib/reveal-ck/config_spec.rb +50 -0
  70. data/spec/lib/reveal-ck/file_slicer_spec.rb +29 -27
  71. data/spec/lib/reveal-ck/file_splicer_spec.rb +28 -26
  72. data/spec/lib/reveal-ck/file_string_replacer_spec.rb +32 -0
  73. data/spec/lib/reveal-ck/haml_processor_spec.rb +28 -26
  74. metadata +82 -27
  75. data/rakelib/presentation.rake +0 -41
  76. data/rakelib/reveal.rake +0 -15
  77. data/reveal.js/css/shaders/tile-flip.fs +0 -64
  78. data/reveal.js/css/shaders/tile-flip.vs +0 -141
  79. data/reveal.js/grunt.js +0 -84
  80. data/reveal.js/plugin/markdown/showdown.js +0 -62
@@ -1,8 +1,8 @@
1
- @import url(http://fonts.googleapis.com/css?family=Montserrat:700);
2
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
1
+ @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
2
+ @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
3
3
  /**
4
4
  * Black theme for reveal.js.
5
- *
5
+ *
6
6
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7
7
  */
8
8
  /*********************************************
@@ -10,22 +10,19 @@
10
10
  *********************************************/
11
11
  body {
12
12
  background: #111111;
13
- background-color: #111111;
14
- }
13
+ background-color: #111111; }
15
14
 
16
15
  .reveal {
17
- font-family: "Open Sans", Times, "Times New Roman", serif;
16
+ font-family: "Open Sans", sans-serif;
18
17
  font-size: 30px;
19
18
  font-weight: 200;
20
19
  letter-spacing: -0.02em;
21
- color: #eeeeee;
22
- }
20
+ color: #eeeeee; }
23
21
 
24
22
  ::selection {
25
23
  color: white;
26
24
  background: #e7ad52;
27
- text-shadow: none;
28
- }
25
+ text-shadow: none; }
29
26
 
30
27
  /*********************************************
31
28
  * HEADERS
@@ -42,12 +39,10 @@ body {
42
39
  line-height: 0.9em;
43
40
  letter-spacing: -0.03em;
44
41
  text-transform: none;
45
- text-shadow: none;
46
- }
42
+ text-shadow: none; }
47
43
 
48
44
  .reveal h1 {
49
- text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
50
- }
45
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
51
46
 
52
47
  /*********************************************
53
48
  * LINKS
@@ -59,19 +54,16 @@ body {
59
54
  -moz-transition: color .15s ease;
60
55
  -ms-transition: color .15s ease;
61
56
  -o-transition: color .15s ease;
62
- transition: color .15s ease;
63
- }
57
+ transition: color .15s ease; }
64
58
 
65
59
  .reveal a:not(.image):hover {
66
60
  color: #f3d7ac;
67
61
  text-shadow: none;
68
- border: none;
69
- }
62
+ border: none; }
70
63
 
71
64
  .reveal .roll span:after {
72
65
  color: #fff;
73
- background: #d08a1d;
74
- }
66
+ background: #d08a1d; }
75
67
 
76
68
  /*********************************************
77
69
  * IMAGES
@@ -85,60 +77,49 @@ body {
85
77
  -moz-transition: all .2s linear;
86
78
  -ms-transition: all .2s linear;
87
79
  -o-transition: all .2s linear;
88
- transition: all .2s linear;
89
- }
80
+ transition: all .2s linear; }
90
81
 
91
82
  .reveal a:hover img {
92
83
  background: rgba(255, 255, 255, 0.2);
93
84
  border-color: #e7ad52;
94
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
95
- }
85
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
96
86
 
97
87
  /*********************************************
98
88
  * NAVIGATION CONTROLS
99
89
  *********************************************/
100
90
  .reveal .controls div.navigate-left,
101
91
  .reveal .controls div.navigate-left.enabled {
102
- border-right-color: #e7ad52;
103
- }
92
+ border-right-color: #e7ad52; }
104
93
 
105
94
  .reveal .controls div.navigate-right,
106
95
  .reveal .controls div.navigate-right.enabled {
107
- border-left-color: #e7ad52;
108
- }
96
+ border-left-color: #e7ad52; }
109
97
 
110
98
  .reveal .controls div.navigate-up,
111
99
  .reveal .controls div.navigate-up.enabled {
112
- border-bottom-color: #e7ad52;
113
- }
100
+ border-bottom-color: #e7ad52; }
114
101
 
115
102
  .reveal .controls div.navigate-down,
116
103
  .reveal .controls div.navigate-down.enabled {
117
- border-top-color: #e7ad52;
118
- }
104
+ border-top-color: #e7ad52; }
119
105
 
120
106
  .reveal .controls div.navigate-left.enabled:hover {
121
- border-right-color: #f3d7ac;
122
- }
107
+ border-right-color: #f3d7ac; }
123
108
 
124
109
  .reveal .controls div.navigate-right.enabled:hover {
125
- border-left-color: #f3d7ac;
126
- }
110
+ border-left-color: #f3d7ac; }
127
111
 
128
112
  .reveal .controls div.navigate-up.enabled:hover {
129
- border-bottom-color: #f3d7ac;
130
- }
113
+ border-bottom-color: #f3d7ac; }
131
114
 
132
115
  .reveal .controls div.navigate-down.enabled:hover {
133
- border-top-color: #f3d7ac;
134
- }
116
+ border-top-color: #f3d7ac; }
135
117
 
136
118
  /*********************************************
137
119
  * PROGRESS BAR
138
120
  *********************************************/
139
121
  .reveal .progress {
140
- background: rgba(0, 0, 0, 0.2);
141
- }
122
+ background: rgba(0, 0, 0, 0.2); }
142
123
 
143
124
  .reveal .progress span {
144
125
  background: #e7ad52;
@@ -146,5 +127,4 @@ body {
146
127
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
147
128
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
148
129
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
149
- transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
150
- }
130
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
@@ -1,31 +1,30 @@
1
1
  /**
2
- * A simple theme for reveal.js presentations, similar
3
- * to the default theme. The accent color is darkblue.
4
- *
5
- * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6
- * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se; so is the theme - beige.css - that this is based off of.
2
+ * A simple theme for reveal.js presentations, similar
3
+ * to the default theme. The accent color is brown.
4
+ *
5
+ * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
7
6
  */
7
+ .reveal a:not(.image) {
8
+ line-height: 1.3em; }
9
+
8
10
  /*********************************************
9
11
  * GLOBAL STYLES
10
12
  *********************************************/
11
13
  body {
12
14
  background: #f0f1eb;
13
- background-color: #f0f1eb;
14
- }
15
+ background-color: #f0f1eb; }
15
16
 
16
17
  .reveal {
17
18
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
18
19
  font-size: 36px;
19
20
  font-weight: 200;
20
21
  letter-spacing: -0.02em;
21
- color: black;
22
- }
22
+ color: black; }
23
23
 
24
24
  ::selection {
25
25
  color: white;
26
26
  background: #26351c;
27
- text-shadow: none;
28
- }
27
+ text-shadow: none; }
29
28
 
30
29
  /*********************************************
31
30
  * HEADERS
@@ -42,12 +41,10 @@ body {
42
41
  line-height: 0.9em;
43
42
  letter-spacing: 0.02em;
44
43
  text-transform: none;
45
- text-shadow: none;
46
- }
44
+ text-shadow: none; }
47
45
 
48
46
  .reveal h1 {
49
- text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
50
- }
47
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
51
48
 
52
49
  /*********************************************
53
50
  * LINKS
@@ -59,19 +56,16 @@ body {
59
56
  -moz-transition: color .15s ease;
60
57
  -ms-transition: color .15s ease;
61
58
  -o-transition: color .15s ease;
62
- transition: color .15s ease;
63
- }
59
+ transition: color .15s ease; }
64
60
 
65
61
  .reveal a:not(.image):hover {
66
62
  color: #8b7c69;
67
63
  text-shadow: none;
68
- border: none;
69
- }
64
+ border: none; }
70
65
 
71
66
  .reveal .roll span:after {
72
67
  color: #fff;
73
- background: #25211c;
74
- }
68
+ background: #25211c; }
75
69
 
76
70
  /*********************************************
77
71
  * IMAGES
@@ -85,60 +79,49 @@ body {
85
79
  -moz-transition: all .2s linear;
86
80
  -ms-transition: all .2s linear;
87
81
  -o-transition: all .2s linear;
88
- transition: all .2s linear;
89
- }
82
+ transition: all .2s linear; }
90
83
 
91
84
  .reveal a:hover img {
92
85
  background: rgba(255, 255, 255, 0.2);
93
86
  border-color: #51483d;
94
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
95
- }
87
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
96
88
 
97
89
  /*********************************************
98
90
  * NAVIGATION CONTROLS
99
91
  *********************************************/
100
92
  .reveal .controls div.navigate-left,
101
93
  .reveal .controls div.navigate-left.enabled {
102
- border-right-color: #51483d;
103
- }
94
+ border-right-color: #51483d; }
104
95
 
105
96
  .reveal .controls div.navigate-right,
106
97
  .reveal .controls div.navigate-right.enabled {
107
- border-left-color: #51483d;
108
- }
98
+ border-left-color: #51483d; }
109
99
 
110
100
  .reveal .controls div.navigate-up,
111
101
  .reveal .controls div.navigate-up.enabled {
112
- border-bottom-color: #51483d;
113
- }
102
+ border-bottom-color: #51483d; }
114
103
 
115
104
  .reveal .controls div.navigate-down,
116
105
  .reveal .controls div.navigate-down.enabled {
117
- border-top-color: #51483d;
118
- }
106
+ border-top-color: #51483d; }
119
107
 
120
108
  .reveal .controls div.navigate-left.enabled:hover {
121
- border-right-color: #8b7c69;
122
- }
109
+ border-right-color: #8b7c69; }
123
110
 
124
111
  .reveal .controls div.navigate-right.enabled:hover {
125
- border-left-color: #8b7c69;
126
- }
112
+ border-left-color: #8b7c69; }
127
113
 
128
114
  .reveal .controls div.navigate-up.enabled:hover {
129
- border-bottom-color: #8b7c69;
130
- }
115
+ border-bottom-color: #8b7c69; }
131
116
 
132
117
  .reveal .controls div.navigate-down.enabled:hover {
133
- border-top-color: #8b7c69;
134
- }
118
+ border-top-color: #8b7c69; }
135
119
 
136
120
  /*********************************************
137
121
  * PROGRESS BAR
138
122
  *********************************************/
139
123
  .reveal .progress {
140
- background: rgba(0, 0, 0, 0.2);
141
- }
124
+ background: rgba(0, 0, 0, 0.2); }
142
125
 
143
126
  .reveal .progress span {
144
127
  background: #51483d;
@@ -146,5 +129,4 @@ body {
146
129
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
147
130
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
148
131
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
149
- transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
150
- }
132
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
@@ -1,9 +1,9 @@
1
- @import url(http://fonts.googleapis.com/css?family=News+Cycle:400,700);
2
- @import url(http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
1
+ @import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
2
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
3
3
  /**
4
- * A simple theme for reveal.js presentations, similar
4
+ * A simple theme for reveal.js presentations, similar
5
5
  * to the default theme. The accent color is darkblue.
6
- *
6
+ *
7
7
  * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
8
8
  * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
9
9
  */
@@ -12,22 +12,19 @@
12
12
  *********************************************/
13
13
  body {
14
14
  background: white;
15
- background-color: white;
16
- }
15
+ background-color: white; }
17
16
 
18
17
  .reveal {
19
- font-family: "Lato", Times, "Times New Roman", serif;
18
+ font-family: "Lato", sans-serif;
20
19
  font-size: 36px;
21
20
  font-weight: 200;
22
21
  letter-spacing: -0.02em;
23
- color: black;
24
- }
22
+ color: black; }
25
23
 
26
24
  ::selection {
27
25
  color: white;
28
26
  background: rgba(0, 0, 0, 0.99);
29
- text-shadow: none;
30
- }
27
+ text-shadow: none; }
31
28
 
32
29
  /*********************************************
33
30
  * HEADERS
@@ -44,12 +41,10 @@ body {
44
41
  line-height: 0.9em;
45
42
  letter-spacing: 0.02em;
46
43
  text-transform: none;
47
- text-shadow: none;
48
- }
44
+ text-shadow: none; }
49
45
 
50
46
  .reveal h1 {
51
- text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
52
- }
47
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
53
48
 
54
49
  /*********************************************
55
50
  * LINKS
@@ -61,19 +56,16 @@ body {
61
56
  -moz-transition: color .15s ease;
62
57
  -ms-transition: color .15s ease;
63
58
  -o-transition: color .15s ease;
64
- transition: color .15s ease;
65
- }
59
+ transition: color .15s ease; }
66
60
 
67
61
  .reveal a:not(.image):hover {
68
62
  color: #0000f1;
69
63
  text-shadow: none;
70
- border: none;
71
- }
64
+ border: none; }
72
65
 
73
66
  .reveal .roll span:after {
74
67
  color: #fff;
75
- background: #00003f;
76
- }
68
+ background: #00003f; }
77
69
 
78
70
  /*********************************************
79
71
  * IMAGES
@@ -87,60 +79,49 @@ body {
87
79
  -moz-transition: all .2s linear;
88
80
  -ms-transition: all .2s linear;
89
81
  -o-transition: all .2s linear;
90
- transition: all .2s linear;
91
- }
82
+ transition: all .2s linear; }
92
83
 
93
84
  .reveal a:hover img {
94
85
  background: rgba(255, 255, 255, 0.2);
95
86
  border-color: darkblue;
96
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
97
- }
87
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
98
88
 
99
89
  /*********************************************
100
90
  * NAVIGATION CONTROLS
101
91
  *********************************************/
102
92
  .reveal .controls div.navigate-left,
103
93
  .reveal .controls div.navigate-left.enabled {
104
- border-right-color: darkblue;
105
- }
94
+ border-right-color: darkblue; }
106
95
 
107
96
  .reveal .controls div.navigate-right,
108
97
  .reveal .controls div.navigate-right.enabled {
109
- border-left-color: darkblue;
110
- }
98
+ border-left-color: darkblue; }
111
99
 
112
100
  .reveal .controls div.navigate-up,
113
101
  .reveal .controls div.navigate-up.enabled {
114
- border-bottom-color: darkblue;
115
- }
102
+ border-bottom-color: darkblue; }
116
103
 
117
104
  .reveal .controls div.navigate-down,
118
105
  .reveal .controls div.navigate-down.enabled {
119
- border-top-color: darkblue;
120
- }
106
+ border-top-color: darkblue; }
121
107
 
122
108
  .reveal .controls div.navigate-left.enabled:hover {
123
- border-right-color: #0000f1;
124
- }
109
+ border-right-color: #0000f1; }
125
110
 
126
111
  .reveal .controls div.navigate-right.enabled:hover {
127
- border-left-color: #0000f1;
128
- }
112
+ border-left-color: #0000f1; }
129
113
 
130
114
  .reveal .controls div.navigate-up.enabled:hover {
131
- border-bottom-color: #0000f1;
132
- }
115
+ border-bottom-color: #0000f1; }
133
116
 
134
117
  .reveal .controls div.navigate-down.enabled:hover {
135
- border-top-color: #0000f1;
136
- }
118
+ border-top-color: #0000f1; }
137
119
 
138
120
  /*********************************************
139
121
  * PROGRESS BAR
140
122
  *********************************************/
141
123
  .reveal .progress {
142
- background: rgba(0, 0, 0, 0.2);
143
- }
124
+ background: rgba(0, 0, 0, 0.2); }
144
125
 
145
126
  .reveal .progress span {
146
127
  background: darkblue;
@@ -148,5 +129,4 @@ body {
148
129
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
149
130
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
150
131
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
151
- transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
152
- }
132
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }