reveal-ck 0.1.2 → 0.1.3

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 (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,10 +1,13 @@
1
- @import url(http://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
2
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
1
+ @import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
2
+ @import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
3
3
  /**
4
4
  * Sky theme for reveal.js.
5
- *
5
+ *
6
6
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7
7
  */
8
+ .reveal a:not(.image) {
9
+ line-height: 1.3em; }
10
+
8
11
  /*********************************************
9
12
  * GLOBAL STYLES
10
13
  *********************************************/
@@ -16,22 +19,19 @@ body {
16
19
  background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
17
20
  background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
18
21
  background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
19
- background-color: #f7fbfc;
20
- }
22
+ background-color: #f7fbfc; }
21
23
 
22
24
  .reveal {
23
25
  font-family: "Open Sans", sans-serif;
24
26
  font-size: 36px;
25
27
  font-weight: 200;
26
28
  letter-spacing: -0.02em;
27
- color: #333333;
28
- }
29
+ color: #333333; }
29
30
 
30
31
  ::selection {
31
32
  color: white;
32
33
  background: #134674;
33
- text-shadow: none;
34
- }
34
+ text-shadow: none; }
35
35
 
36
36
  /*********************************************
37
37
  * HEADERS
@@ -48,12 +48,10 @@ body {
48
48
  line-height: 0.9em;
49
49
  letter-spacing: -0.08em;
50
50
  text-transform: uppercase;
51
- text-shadow: none;
52
- }
51
+ text-shadow: none; }
53
52
 
54
53
  .reveal h1 {
55
- text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
56
- }
54
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
57
55
 
58
56
  /*********************************************
59
57
  * LINKS
@@ -65,19 +63,16 @@ body {
65
63
  -moz-transition: color .15s ease;
66
64
  -ms-transition: color .15s ease;
67
65
  -o-transition: color .15s ease;
68
- transition: color .15s ease;
69
- }
66
+ transition: color .15s ease; }
70
67
 
71
68
  .reveal a:not(.image):hover {
72
69
  color: #74a7cb;
73
70
  text-shadow: none;
74
- border: none;
75
- }
71
+ border: none; }
76
72
 
77
73
  .reveal .roll span:after {
78
74
  color: #fff;
79
- background: #264c66;
80
- }
75
+ background: #264c66; }
81
76
 
82
77
  /*********************************************
83
78
  * IMAGES
@@ -91,60 +86,49 @@ body {
91
86
  -moz-transition: all .2s linear;
92
87
  -ms-transition: all .2s linear;
93
88
  -o-transition: all .2s linear;
94
- transition: all .2s linear;
95
- }
89
+ transition: all .2s linear; }
96
90
 
97
91
  .reveal a:hover img {
98
92
  background: rgba(255, 255, 255, 0.2);
99
93
  border-color: #3b759e;
100
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
101
- }
94
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
102
95
 
103
96
  /*********************************************
104
97
  * NAVIGATION CONTROLS
105
98
  *********************************************/
106
99
  .reveal .controls div.navigate-left,
107
100
  .reveal .controls div.navigate-left.enabled {
108
- border-right-color: #3b759e;
109
- }
101
+ border-right-color: #3b759e; }
110
102
 
111
103
  .reveal .controls div.navigate-right,
112
104
  .reveal .controls div.navigate-right.enabled {
113
- border-left-color: #3b759e;
114
- }
105
+ border-left-color: #3b759e; }
115
106
 
116
107
  .reveal .controls div.navigate-up,
117
108
  .reveal .controls div.navigate-up.enabled {
118
- border-bottom-color: #3b759e;
119
- }
109
+ border-bottom-color: #3b759e; }
120
110
 
121
111
  .reveal .controls div.navigate-down,
122
112
  .reveal .controls div.navigate-down.enabled {
123
- border-top-color: #3b759e;
124
- }
113
+ border-top-color: #3b759e; }
125
114
 
126
115
  .reveal .controls div.navigate-left.enabled:hover {
127
- border-right-color: #74a7cb;
128
- }
116
+ border-right-color: #74a7cb; }
129
117
 
130
118
  .reveal .controls div.navigate-right.enabled:hover {
131
- border-left-color: #74a7cb;
132
- }
119
+ border-left-color: #74a7cb; }
133
120
 
134
121
  .reveal .controls div.navigate-up.enabled:hover {
135
- border-bottom-color: #74a7cb;
136
- }
122
+ border-bottom-color: #74a7cb; }
137
123
 
138
124
  .reveal .controls div.navigate-down.enabled:hover {
139
- border-top-color: #74a7cb;
140
- }
125
+ border-top-color: #74a7cb; }
141
126
 
142
127
  /*********************************************
143
128
  * PROGRESS BAR
144
129
  *********************************************/
145
130
  .reveal .progress {
146
- background: rgba(0, 0, 0, 0.2);
147
- }
131
+ background: rgba(0, 0, 0, 0.2); }
148
132
 
149
133
  .reveal .progress span {
150
134
  background: #3b759e;
@@ -152,5 +136,4 @@ body {
152
136
  -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
153
137
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
154
138
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
155
- transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
156
- }
139
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
@@ -0,0 +1,142 @@
1
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
2
+ /**
3
+ * Solarized Light theme for reveal.js.
4
+ * Author: Achim Staebler
5
+ */
6
+ @font-face {
7
+ font-family: 'League Gothic';
8
+ src: url("../../lib/font/league_gothic-webfont.eot");
9
+ src: url("../../lib/font/league_gothic-webfont.eot?#iefix") format("embedded-opentype"), url("../../lib/font/league_gothic-webfont.woff") format("woff"), url("../../lib/font/league_gothic-webfont.ttf") format("truetype"), url("../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular") format("svg");
10
+ font-weight: normal;
11
+ font-style: normal; }
12
+
13
+ /**
14
+ * Solarized colors by Ethan Schoonover
15
+ */
16
+ html * {
17
+ color-profile: sRGB;
18
+ rendering-intent: auto; }
19
+
20
+ /*********************************************
21
+ * GLOBAL STYLES
22
+ *********************************************/
23
+ body {
24
+ background: #fdf6e3;
25
+ background-color: #fdf6e3; }
26
+
27
+ .reveal {
28
+ font-family: "Lato", sans-serif;
29
+ font-size: 36px;
30
+ font-weight: 200;
31
+ letter-spacing: -0.02em;
32
+ color: #657b83; }
33
+
34
+ ::selection {
35
+ color: white;
36
+ background: #d33682;
37
+ text-shadow: none; }
38
+
39
+ /*********************************************
40
+ * HEADERS
41
+ *********************************************/
42
+ .reveal h1,
43
+ .reveal h2,
44
+ .reveal h3,
45
+ .reveal h4,
46
+ .reveal h5,
47
+ .reveal h6 {
48
+ margin: 0 0 20px 0;
49
+ color: #586e75;
50
+ font-family: "League Gothic", Impact, sans-serif;
51
+ line-height: 0.9em;
52
+ letter-spacing: 0.02em;
53
+ text-transform: uppercase;
54
+ text-shadow: none; }
55
+
56
+ .reveal h1 {
57
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); }
58
+
59
+ /*********************************************
60
+ * LINKS
61
+ *********************************************/
62
+ .reveal a:not(.image) {
63
+ color: #268bd2;
64
+ text-decoration: none;
65
+ -webkit-transition: color .15s ease;
66
+ -moz-transition: color .15s ease;
67
+ -ms-transition: color .15s ease;
68
+ -o-transition: color .15s ease;
69
+ transition: color .15s ease; }
70
+
71
+ .reveal a:not(.image):hover {
72
+ color: #78b9e6;
73
+ text-shadow: none;
74
+ border: none; }
75
+
76
+ .reveal .roll span:after {
77
+ color: #fff;
78
+ background: #1a6091; }
79
+
80
+ /*********************************************
81
+ * IMAGES
82
+ *********************************************/
83
+ .reveal section img {
84
+ margin: 15px 0px;
85
+ background: rgba(255, 255, 255, 0.12);
86
+ border: 4px solid #657b83;
87
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
88
+ -webkit-transition: all .2s linear;
89
+ -moz-transition: all .2s linear;
90
+ -ms-transition: all .2s linear;
91
+ -o-transition: all .2s linear;
92
+ transition: all .2s linear; }
93
+
94
+ .reveal a:hover img {
95
+ background: rgba(255, 255, 255, 0.2);
96
+ border-color: #268bd2;
97
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
98
+
99
+ /*********************************************
100
+ * NAVIGATION CONTROLS
101
+ *********************************************/
102
+ .reveal .controls div.navigate-left,
103
+ .reveal .controls div.navigate-left.enabled {
104
+ border-right-color: #268bd2; }
105
+
106
+ .reveal .controls div.navigate-right,
107
+ .reveal .controls div.navigate-right.enabled {
108
+ border-left-color: #268bd2; }
109
+
110
+ .reveal .controls div.navigate-up,
111
+ .reveal .controls div.navigate-up.enabled {
112
+ border-bottom-color: #268bd2; }
113
+
114
+ .reveal .controls div.navigate-down,
115
+ .reveal .controls div.navigate-down.enabled {
116
+ border-top-color: #268bd2; }
117
+
118
+ .reveal .controls div.navigate-left.enabled:hover {
119
+ border-right-color: #78b9e6; }
120
+
121
+ .reveal .controls div.navigate-right.enabled:hover {
122
+ border-left-color: #78b9e6; }
123
+
124
+ .reveal .controls div.navigate-up.enabled:hover {
125
+ border-bottom-color: #78b9e6; }
126
+
127
+ .reveal .controls div.navigate-down.enabled:hover {
128
+ border-top-color: #78b9e6; }
129
+
130
+ /*********************************************
131
+ * PROGRESS BAR
132
+ *********************************************/
133
+ .reveal .progress {
134
+ background: rgba(0, 0, 0, 0.2); }
135
+
136
+ .reveal .progress span {
137
+ background: #268bd2;
138
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
140
+ -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141
+ -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Beige theme for reveal.js.
3
- *
3
+ *
4
4
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5
5
  */
6
6
 
@@ -25,7 +25,7 @@
25
25
  font-style: normal;
26
26
  }
27
27
 
28
- @import url(http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
28
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
29
29
 
30
30
 
31
31
  // Override theme settings (see ../template/settings.scss)
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Default theme for reveal.js.
3
- *
3
+ *
4
4
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5
5
  */
6
6
 
@@ -25,7 +25,7 @@
25
25
  font-style: normal;
26
26
  }
27
27
 
28
- @import url(http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
28
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
29
29
 
30
30
  // Override theme settings (see ../template/settings.scss)
31
31
  $heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Solarized Dark theme for reveal.js.
3
+ * Author: Achim Staebler
4
+ */
5
+
6
+
7
+ // Default mixins and settings -----------------
8
+ @import "../template/mixins";
9
+ @import "../template/settings";
10
+ // ---------------------------------------------
11
+
12
+
13
+
14
+ // Include theme-specific fonts
15
+ @font-face {
16
+ font-family: 'League Gothic';
17
+ src: url('../../lib/font/league_gothic-webfont.eot');
18
+ src: url('../../lib/font/league_gothic-webfont.eot?#iefix') format('embedded-opentype'),
19
+ url('../../lib/font/league_gothic-webfont.woff') format('woff'),
20
+ url('../../lib/font/league_gothic-webfont.ttf') format('truetype'),
21
+ url('../../lib/font/league_gothic-webfont.svg#LeagueGothicRegular') format('svg');
22
+
23
+ font-weight: normal;
24
+ font-style: normal;
25
+ }
26
+
27
+ @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
28
+
29
+ /**
30
+ * Solarized colors by Ethan Schoonover
31
+ */
32
+ html * {
33
+ color-profile: sRGB;
34
+ rendering-intent: auto;
35
+ }
36
+
37
+ // Solarized colors
38
+ $base03: #002b36;
39
+ $base02: #073642;
40
+ $base01: #586e75;
41
+ $base00: #657b83;
42
+ $base0: #839496;
43
+ $base1: #93a1a1;
44
+ $base2: #eee8d5;
45
+ $base3: #fdf6e3;
46
+ $yellow: #b58900;
47
+ $orange: #cb4b16;
48
+ $red: #dc322f;
49
+ $magenta: #d33682;
50
+ $violet: #6c71c4;
51
+ $blue: #268bd2;
52
+ $cyan: #2aa198;
53
+ $green: #859900;
54
+
55
+ // Override theme settings (see ../template/settings.scss)
56
+ $mainColor: $base1;
57
+ $headingColor: $base2;
58
+ $headingTextShadow: none;
59
+ $backgroundColor: $base03;
60
+ $linkColor: $blue;
61
+ $linkColorHover: lighten( $linkColor, 20% );
62
+ $selectionBackgroundColor: $magenta;
63
+
64
+
65
+
66
+ // Theme template ------------------------------
67
+ @import "../template/theme";
68
+ // ---------------------------------------------
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Black theme for reveal.js.
3
- *
3
+ *
4
4
  * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5
5
  */
6
6
 
@@ -12,14 +12,14 @@
12
12
 
13
13
 
14
14
  // Include theme-specific fonts
15
- @import url(http://fonts.googleapis.com/css?family=Montserrat:700);
16
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
15
+ @import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16
+ @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17
17
 
18
18
 
19
19
  // Override theme settings (see ../template/settings.scss)
20
20
  $backgroundColor: #111;
21
21
 
22
- $mainFont: 'Open Sans', Times, 'Times New Roman', serif;
22
+ $mainFont: 'Open Sans', sans-serif;
23
23
  $linkColor: #e7ad52;
24
24
  $linkColorHover: lighten( $linkColor, 20% );
25
25
  $headingFont: 'Montserrat', Impact, sans-serif;
@@ -1,9 +1,8 @@
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
  */
8
7
 
9
8
 
@@ -26,8 +25,11 @@ $linkColor: #51483D;
26
25
  $linkColorHover: lighten( $linkColor, 20% );
27
26
  $selectionBackgroundColor: #26351C;
28
27
 
28
+ .reveal a:not(.image) {
29
+ line-height: 1.3em;
30
+ }
29
31
 
30
32
 
31
33
  // Theme template ------------------------------
32
34
  @import "../template/theme";
33
- // ---------------------------------------------
35
+ // ---------------------------------------------