reveal-ck 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/.gitmodules +3 -0
  2. data/.rspec +2 -0
  3. data/.rvmrc +16 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +15 -0
  6. data/Gemfile.lock +52 -0
  7. data/LICENSE +20 -0
  8. data/README.md +103 -0
  9. data/Rakefile +16 -0
  10. data/VERSION +1 -0
  11. data/bin/reveal-ck +46 -0
  12. data/features/data/images/ruby100.png +0 -0
  13. data/features/generate.feature +63 -0
  14. data/features/help.feature +18 -0
  15. data/features/step_definitions/file_management_steps.rb +3 -0
  16. data/features/support/env.rb +15 -0
  17. data/features/support/file_management.rb +16 -0
  18. data/lib/reveal-ck.rb +4 -0
  19. data/lib/reveal-ck/file_slicer.rb +23 -0
  20. data/lib/reveal-ck/file_splicer.rb +39 -0
  21. data/lib/reveal-ck/haml_processor.rb +24 -0
  22. data/lib/reveal-ck/version.rb +4 -0
  23. data/rakelib/cucumber.rake +2 -0
  24. data/rakelib/jeweler.rake +12 -0
  25. data/rakelib/presentation.rake +40 -0
  26. data/rakelib/reveal.rake +15 -0
  27. data/rakelib/rspec.rake +5 -0
  28. data/reveal-ck.gemspec +152 -0
  29. data/reveal.js/LICENSE +19 -0
  30. data/reveal.js/README.md +374 -0
  31. data/reveal.js/css/print/paper.css +176 -0
  32. data/reveal.js/css/print/pdf.css +160 -0
  33. data/reveal.js/css/reveal.css +1312 -0
  34. data/reveal.js/css/reveal.min.css +7 -0
  35. data/reveal.js/css/shaders/tile-flip.fs +64 -0
  36. data/reveal.js/css/shaders/tile-flip.vs +141 -0
  37. data/reveal.js/css/theme/README.md +25 -0
  38. data/reveal.js/css/theme/beige.css +163 -0
  39. data/reveal.js/css/theme/default.css +163 -0
  40. data/reveal.js/css/theme/night.css +150 -0
  41. data/reveal.js/css/theme/serif.css +150 -0
  42. data/reveal.js/css/theme/simple.css +152 -0
  43. data/reveal.js/css/theme/sky.css +156 -0
  44. data/reveal.js/css/theme/source/beige.scss +50 -0
  45. data/reveal.js/css/theme/source/default.scss +42 -0
  46. data/reveal.js/css/theme/source/night.scss +35 -0
  47. data/reveal.js/css/theme/source/serif.scss +33 -0
  48. data/reveal.js/css/theme/source/simple.scss +38 -0
  49. data/reveal.js/css/theme/source/sky.scss +41 -0
  50. data/reveal.js/css/theme/template/mixins.scss +29 -0
  51. data/reveal.js/css/theme/template/settings.scss +33 -0
  52. data/reveal.js/css/theme/template/theme.scss +163 -0
  53. data/reveal.js/grunt.js +84 -0
  54. data/reveal.js/index.html +375 -0
  55. data/reveal.js/js/reveal.js +1796 -0
  56. data/reveal.js/js/reveal.min.js +8 -0
  57. data/reveal.js/lib/css/zenburn.css +115 -0
  58. data/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
  59. data/reveal.js/lib/font/league_gothic-webfont.svg +230 -0
  60. data/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
  61. data/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
  62. data/reveal.js/lib/font/league_gothic_license +2 -0
  63. data/reveal.js/lib/js/classList.js +2 -0
  64. data/reveal.js/lib/js/head.min.js +8 -0
  65. data/reveal.js/lib/js/html5shiv.js +7 -0
  66. data/reveal.js/package.json +31 -0
  67. data/reveal.js/plugin/highlight/highlight.js +9 -0
  68. data/reveal.js/plugin/markdown/markdown.js +37 -0
  69. data/reveal.js/plugin/markdown/showdown.js +62 -0
  70. data/reveal.js/plugin/notes-server/client.js +57 -0
  71. data/reveal.js/plugin/notes-server/index.js +58 -0
  72. data/reveal.js/plugin/notes-server/notes.html +139 -0
  73. data/reveal.js/plugin/notes/notes.html +164 -0
  74. data/reveal.js/plugin/notes/notes.js +98 -0
  75. data/reveal.js/plugin/postmessage/example.html +39 -0
  76. data/reveal.js/plugin/postmessage/postmessage.js +42 -0
  77. data/reveal.js/plugin/print-pdf/print-pdf.js +39 -0
  78. data/reveal.js/plugin/remotes/remotes.js +30 -0
  79. data/reveal.js/plugin/zoom-js/zoom.js +251 -0
  80. data/spec/data/haml/basic.haml +7 -0
  81. data/spec/data/html/converted_basic_haml.html +10 -0
  82. data/spec/data/html/reveal-js-index.html +375 -0
  83. data/spec/data/slicer/after_remove +6 -0
  84. data/spec/data/slicer/before_remove +10 -0
  85. data/spec/data/splicer/abcd +4 -0
  86. data/spec/data/splicer/after_insert +14 -0
  87. data/spec/data/splicer/before_insert +10 -0
  88. data/spec/lib/reveal-ck/file_slicer_spec.rb +42 -0
  89. data/spec/lib/reveal-ck/file_splicer_spec.rb +41 -0
  90. data/spec/lib/reveal-ck/haml_processor_spec.rb +38 -0
  91. data/spec/spec_helper.rb +27 -0
  92. metadata +271 -0
@@ -0,0 +1,150 @@
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);
3
+ /**
4
+ * Black theme for reveal.js.
5
+ *
6
+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7
+ */
8
+ /*********************************************
9
+ * GLOBAL STYLES
10
+ *********************************************/
11
+ body {
12
+ background: #111111;
13
+ background-color: #111111;
14
+ }
15
+
16
+ .reveal {
17
+ font-family: "Open Sans", Times, "Times New Roman", serif;
18
+ font-size: 30px;
19
+ font-weight: 200;
20
+ letter-spacing: -0.02em;
21
+ color: #eeeeee;
22
+ }
23
+
24
+ ::selection {
25
+ color: white;
26
+ background: #e7ad52;
27
+ text-shadow: none;
28
+ }
29
+
30
+ /*********************************************
31
+ * HEADERS
32
+ *********************************************/
33
+ .reveal h1,
34
+ .reveal h2,
35
+ .reveal h3,
36
+ .reveal h4,
37
+ .reveal h5,
38
+ .reveal h6 {
39
+ margin: 0 0 20px 0;
40
+ color: #eeeeee;
41
+ font-family: "Montserrat", Impact, sans-serif;
42
+ line-height: 0.9em;
43
+ letter-spacing: -0.03em;
44
+ text-transform: none;
45
+ text-shadow: none;
46
+ }
47
+
48
+ .reveal h1 {
49
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
50
+ }
51
+
52
+ /*********************************************
53
+ * LINKS
54
+ *********************************************/
55
+ .reveal a:not(.image) {
56
+ color: #e7ad52;
57
+ text-decoration: none;
58
+ -webkit-transition: color .15s ease;
59
+ -moz-transition: color .15s ease;
60
+ -ms-transition: color .15s ease;
61
+ -o-transition: color .15s ease;
62
+ transition: color .15s ease;
63
+ }
64
+
65
+ .reveal a:not(.image):hover {
66
+ color: #f3d7ac;
67
+ text-shadow: none;
68
+ border: none;
69
+ }
70
+
71
+ .reveal .roll span:after {
72
+ color: #fff;
73
+ background: #d08a1d;
74
+ }
75
+
76
+ /*********************************************
77
+ * IMAGES
78
+ *********************************************/
79
+ .reveal section img {
80
+ margin: 15px 0px;
81
+ background: rgba(255, 255, 255, 0.12);
82
+ border: 4px solid #eeeeee;
83
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
84
+ -webkit-transition: all .2s linear;
85
+ -moz-transition: all .2s linear;
86
+ -ms-transition: all .2s linear;
87
+ -o-transition: all .2s linear;
88
+ transition: all .2s linear;
89
+ }
90
+
91
+ .reveal a:hover img {
92
+ background: rgba(255, 255, 255, 0.2);
93
+ border-color: #e7ad52;
94
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
95
+ }
96
+
97
+ /*********************************************
98
+ * NAVIGATION CONTROLS
99
+ *********************************************/
100
+ .reveal .controls div.navigate-left,
101
+ .reveal .controls div.navigate-left.enabled {
102
+ border-right-color: #e7ad52;
103
+ }
104
+
105
+ .reveal .controls div.navigate-right,
106
+ .reveal .controls div.navigate-right.enabled {
107
+ border-left-color: #e7ad52;
108
+ }
109
+
110
+ .reveal .controls div.navigate-up,
111
+ .reveal .controls div.navigate-up.enabled {
112
+ border-bottom-color: #e7ad52;
113
+ }
114
+
115
+ .reveal .controls div.navigate-down,
116
+ .reveal .controls div.navigate-down.enabled {
117
+ border-top-color: #e7ad52;
118
+ }
119
+
120
+ .reveal .controls div.navigate-left.enabled:hover {
121
+ border-right-color: #f3d7ac;
122
+ }
123
+
124
+ .reveal .controls div.navigate-right.enabled:hover {
125
+ border-left-color: #f3d7ac;
126
+ }
127
+
128
+ .reveal .controls div.navigate-up.enabled:hover {
129
+ border-bottom-color: #f3d7ac;
130
+ }
131
+
132
+ .reveal .controls div.navigate-down.enabled:hover {
133
+ border-top-color: #f3d7ac;
134
+ }
135
+
136
+ /*********************************************
137
+ * PROGRESS BAR
138
+ *********************************************/
139
+ .reveal .progress {
140
+ background: rgba(0, 0, 0, 0.2);
141
+ }
142
+
143
+ .reveal .progress span {
144
+ background: #e7ad52;
145
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
146
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
147
+ -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
148
+ -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
+ }
@@ -0,0 +1,150 @@
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.
7
+ */
8
+ /*********************************************
9
+ * GLOBAL STYLES
10
+ *********************************************/
11
+ body {
12
+ background: #f0f1eb;
13
+ background-color: #f0f1eb;
14
+ }
15
+
16
+ .reveal {
17
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
18
+ font-size: 36px;
19
+ font-weight: 200;
20
+ letter-spacing: -0.02em;
21
+ color: black;
22
+ }
23
+
24
+ ::selection {
25
+ color: white;
26
+ background: #26351c;
27
+ text-shadow: none;
28
+ }
29
+
30
+ /*********************************************
31
+ * HEADERS
32
+ *********************************************/
33
+ .reveal h1,
34
+ .reveal h2,
35
+ .reveal h3,
36
+ .reveal h4,
37
+ .reveal h5,
38
+ .reveal h6 {
39
+ margin: 0 0 20px 0;
40
+ color: #383d3d;
41
+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
42
+ line-height: 0.9em;
43
+ letter-spacing: 0.02em;
44
+ text-transform: none;
45
+ text-shadow: none;
46
+ }
47
+
48
+ .reveal h1 {
49
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
50
+ }
51
+
52
+ /*********************************************
53
+ * LINKS
54
+ *********************************************/
55
+ .reveal a:not(.image) {
56
+ color: #51483d;
57
+ text-decoration: none;
58
+ -webkit-transition: color .15s ease;
59
+ -moz-transition: color .15s ease;
60
+ -ms-transition: color .15s ease;
61
+ -o-transition: color .15s ease;
62
+ transition: color .15s ease;
63
+ }
64
+
65
+ .reveal a:not(.image):hover {
66
+ color: #8b7c69;
67
+ text-shadow: none;
68
+ border: none;
69
+ }
70
+
71
+ .reveal .roll span:after {
72
+ color: #fff;
73
+ background: #25211c;
74
+ }
75
+
76
+ /*********************************************
77
+ * IMAGES
78
+ *********************************************/
79
+ .reveal section img {
80
+ margin: 15px 0px;
81
+ background: rgba(255, 255, 255, 0.12);
82
+ border: 4px solid black;
83
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
84
+ -webkit-transition: all .2s linear;
85
+ -moz-transition: all .2s linear;
86
+ -ms-transition: all .2s linear;
87
+ -o-transition: all .2s linear;
88
+ transition: all .2s linear;
89
+ }
90
+
91
+ .reveal a:hover img {
92
+ background: rgba(255, 255, 255, 0.2);
93
+ border-color: #51483d;
94
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
95
+ }
96
+
97
+ /*********************************************
98
+ * NAVIGATION CONTROLS
99
+ *********************************************/
100
+ .reveal .controls div.navigate-left,
101
+ .reveal .controls div.navigate-left.enabled {
102
+ border-right-color: #51483d;
103
+ }
104
+
105
+ .reveal .controls div.navigate-right,
106
+ .reveal .controls div.navigate-right.enabled {
107
+ border-left-color: #51483d;
108
+ }
109
+
110
+ .reveal .controls div.navigate-up,
111
+ .reveal .controls div.navigate-up.enabled {
112
+ border-bottom-color: #51483d;
113
+ }
114
+
115
+ .reveal .controls div.navigate-down,
116
+ .reveal .controls div.navigate-down.enabled {
117
+ border-top-color: #51483d;
118
+ }
119
+
120
+ .reveal .controls div.navigate-left.enabled:hover {
121
+ border-right-color: #8b7c69;
122
+ }
123
+
124
+ .reveal .controls div.navigate-right.enabled:hover {
125
+ border-left-color: #8b7c69;
126
+ }
127
+
128
+ .reveal .controls div.navigate-up.enabled:hover {
129
+ border-bottom-color: #8b7c69;
130
+ }
131
+
132
+ .reveal .controls div.navigate-down.enabled:hover {
133
+ border-top-color: #8b7c69;
134
+ }
135
+
136
+ /*********************************************
137
+ * PROGRESS BAR
138
+ *********************************************/
139
+ .reveal .progress {
140
+ background: rgba(0, 0, 0, 0.2);
141
+ }
142
+
143
+ .reveal .progress span {
144
+ background: #51483d;
145
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
146
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
147
+ -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
148
+ -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
+ }
@@ -0,0 +1,152 @@
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);
3
+ /**
4
+ * A simple theme for reveal.js presentations, similar
5
+ * to the default theme. The accent color is darkblue.
6
+ *
7
+ * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
8
+ * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
9
+ */
10
+ /*********************************************
11
+ * GLOBAL STYLES
12
+ *********************************************/
13
+ body {
14
+ background: white;
15
+ background-color: white;
16
+ }
17
+
18
+ .reveal {
19
+ font-family: "Lato", Times, "Times New Roman", serif;
20
+ font-size: 36px;
21
+ font-weight: 200;
22
+ letter-spacing: -0.02em;
23
+ color: black;
24
+ }
25
+
26
+ ::selection {
27
+ color: white;
28
+ background: rgba(0, 0, 0, 0.99);
29
+ text-shadow: none;
30
+ }
31
+
32
+ /*********************************************
33
+ * HEADERS
34
+ *********************************************/
35
+ .reveal h1,
36
+ .reveal h2,
37
+ .reveal h3,
38
+ .reveal h4,
39
+ .reveal h5,
40
+ .reveal h6 {
41
+ margin: 0 0 20px 0;
42
+ color: black;
43
+ font-family: "News Cycle", Impact, sans-serif;
44
+ line-height: 0.9em;
45
+ letter-spacing: 0.02em;
46
+ text-transform: none;
47
+ text-shadow: none;
48
+ }
49
+
50
+ .reveal h1 {
51
+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
52
+ }
53
+
54
+ /*********************************************
55
+ * LINKS
56
+ *********************************************/
57
+ .reveal a:not(.image) {
58
+ color: darkblue;
59
+ text-decoration: none;
60
+ -webkit-transition: color .15s ease;
61
+ -moz-transition: color .15s ease;
62
+ -ms-transition: color .15s ease;
63
+ -o-transition: color .15s ease;
64
+ transition: color .15s ease;
65
+ }
66
+
67
+ .reveal a:not(.image):hover {
68
+ color: #0000f1;
69
+ text-shadow: none;
70
+ border: none;
71
+ }
72
+
73
+ .reveal .roll span:after {
74
+ color: #fff;
75
+ background: #00003f;
76
+ }
77
+
78
+ /*********************************************
79
+ * IMAGES
80
+ *********************************************/
81
+ .reveal section img {
82
+ margin: 15px 0px;
83
+ background: rgba(255, 255, 255, 0.12);
84
+ border: 4px solid black;
85
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
86
+ -webkit-transition: all .2s linear;
87
+ -moz-transition: all .2s linear;
88
+ -ms-transition: all .2s linear;
89
+ -o-transition: all .2s linear;
90
+ transition: all .2s linear;
91
+ }
92
+
93
+ .reveal a:hover img {
94
+ background: rgba(255, 255, 255, 0.2);
95
+ border-color: darkblue;
96
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
97
+ }
98
+
99
+ /*********************************************
100
+ * NAVIGATION CONTROLS
101
+ *********************************************/
102
+ .reveal .controls div.navigate-left,
103
+ .reveal .controls div.navigate-left.enabled {
104
+ border-right-color: darkblue;
105
+ }
106
+
107
+ .reveal .controls div.navigate-right,
108
+ .reveal .controls div.navigate-right.enabled {
109
+ border-left-color: darkblue;
110
+ }
111
+
112
+ .reveal .controls div.navigate-up,
113
+ .reveal .controls div.navigate-up.enabled {
114
+ border-bottom-color: darkblue;
115
+ }
116
+
117
+ .reveal .controls div.navigate-down,
118
+ .reveal .controls div.navigate-down.enabled {
119
+ border-top-color: darkblue;
120
+ }
121
+
122
+ .reveal .controls div.navigate-left.enabled:hover {
123
+ border-right-color: #0000f1;
124
+ }
125
+
126
+ .reveal .controls div.navigate-right.enabled:hover {
127
+ border-left-color: #0000f1;
128
+ }
129
+
130
+ .reveal .controls div.navigate-up.enabled:hover {
131
+ border-bottom-color: #0000f1;
132
+ }
133
+
134
+ .reveal .controls div.navigate-down.enabled:hover {
135
+ border-top-color: #0000f1;
136
+ }
137
+
138
+ /*********************************************
139
+ * PROGRESS BAR
140
+ *********************************************/
141
+ .reveal .progress {
142
+ background: rgba(0, 0, 0, 0.2);
143
+ }
144
+
145
+ .reveal .progress span {
146
+ background: darkblue;
147
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
148
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
149
+ -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
150
+ -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
+ }