slide_hero 0.0.3 → 0.0.4

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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/slide_hero/code.rb +1 -1
  3. data/lib/slide_hero/grouped_slides.rb +1 -1
  4. data/lib/slide_hero/list.rb +6 -3
  5. data/lib/slide_hero/list_point.rb +1 -1
  6. data/lib/slide_hero/presentation.rb +1 -2
  7. data/lib/slide_hero/slide.rb +1 -2
  8. data/lib/slide_hero/version.rb +1 -1
  9. data/lib/slide_hero/views/ordered_list.html.erb +1 -1
  10. data/lib/slide_hero/views/unordered_list.html.erb +1 -1
  11. data/lib/slide_hero.rb +9 -0
  12. data/slide_hero.gemspec +7 -7
  13. data/test/slide_hero/list_spec.rb +31 -9
  14. data/vendor/reveal.js/.gitignore +0 -0
  15. data/vendor/reveal.js/.travis.yml +0 -0
  16. data/vendor/reveal.js/Gruntfile.js +12 -7
  17. data/vendor/reveal.js/LICENSE +0 -0
  18. data/vendor/reveal.js/README.md +168 -33
  19. data/vendor/reveal.js/css/print/paper.css +0 -0
  20. data/vendor/reveal.js/css/print/pdf.css +1 -1
  21. data/vendor/reveal.js/css/reveal.css +248 -17
  22. data/vendor/reveal.js/css/reveal.min.css +1 -1
  23. data/vendor/reveal.js/css/theme/README.md +3 -1
  24. data/vendor/reveal.js/css/theme/beige.css +7 -1
  25. data/vendor/reveal.js/css/theme/blood.css +175 -0
  26. data/vendor/reveal.js/css/theme/default.css +7 -1
  27. data/vendor/reveal.js/css/theme/moon.css +7 -1
  28. data/vendor/reveal.js/css/theme/night.css +7 -1
  29. data/vendor/reveal.js/css/theme/serif.css +7 -1
  30. data/vendor/reveal.js/css/theme/simple.css +7 -1
  31. data/vendor/reveal.js/css/theme/sky.css +7 -1
  32. data/vendor/reveal.js/css/theme/solarized.css +7 -1
  33. data/vendor/reveal.js/css/theme/source/beige.scss +0 -0
  34. data/vendor/reveal.js/css/theme/source/blood.scss +91 -0
  35. data/vendor/reveal.js/css/theme/source/default.scss +0 -0
  36. data/vendor/reveal.js/css/theme/source/moon.scss +0 -0
  37. data/vendor/reveal.js/css/theme/source/night.scss +0 -0
  38. data/vendor/reveal.js/css/theme/source/serif.scss +0 -0
  39. data/vendor/reveal.js/css/theme/source/simple.scss +0 -0
  40. data/vendor/reveal.js/css/theme/source/sky.scss +0 -0
  41. data/vendor/reveal.js/css/theme/source/solarized.scss +0 -0
  42. data/vendor/reveal.js/css/theme/template/mixins.scss +0 -0
  43. data/vendor/reveal.js/css/theme/template/settings.scss +0 -0
  44. data/vendor/reveal.js/css/theme/template/theme.scss +8 -1
  45. data/vendor/reveal.js/index.html +388 -0
  46. data/vendor/reveal.js/js/reveal.js +887 -293
  47. data/vendor/reveal.js/js/reveal.min.js +3 -2
  48. data/vendor/reveal.js/lib/css/zenburn.css +16 -17
  49. data/vendor/reveal.js/lib/font/league_gothic-webfont.svg +0 -0
  50. data/vendor/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
  51. data/vendor/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
  52. data/vendor/reveal.js/lib/font/league_gothic_license +0 -0
  53. data/vendor/reveal.js/lib/js/classList.js +0 -0
  54. data/vendor/reveal.js/lib/js/head.min.js +0 -0
  55. data/vendor/reveal.js/lib/js/html5shiv.js +0 -0
  56. data/vendor/reveal.js/package.json +10 -9
  57. data/vendor/reveal.js/plugin/highlight/highlight.js +3 -2
  58. data/vendor/reveal.js/plugin/leap/leap.js +0 -0
  59. data/vendor/reveal.js/plugin/markdown/example.html +34 -3
  60. data/vendor/reveal.js/plugin/markdown/example.md +0 -0
  61. data/vendor/reveal.js/plugin/markdown/markdown.js +373 -201
  62. data/vendor/reveal.js/plugin/markdown/marked.js +0 -0
  63. data/vendor/reveal.js/plugin/multiplex/client.js +0 -0
  64. data/vendor/reveal.js/plugin/multiplex/index.js +0 -0
  65. data/vendor/reveal.js/plugin/multiplex/master.js +2 -1
  66. data/vendor/reveal.js/plugin/notes/notes.html +10 -2
  67. data/vendor/reveal.js/plugin/notes/notes.js +0 -0
  68. data/vendor/reveal.js/plugin/notes-server/client.js +0 -0
  69. data/vendor/reveal.js/plugin/notes-server/index.js +0 -0
  70. data/vendor/reveal.js/plugin/notes-server/notes.html +0 -0
  71. data/vendor/reveal.js/plugin/postmessage/example.html +0 -0
  72. data/vendor/reveal.js/plugin/postmessage/postmessage.js +0 -0
  73. data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +0 -0
  74. data/vendor/reveal.js/plugin/remotes/remotes.js +4 -4
  75. data/vendor/reveal.js/plugin/search/search.js +0 -0
  76. data/vendor/reveal.js/plugin/zoom-js/zoom.js +3 -1
  77. data/vendor/reveal.js/{examples → test/examples}/assets/image1.png +0 -0
  78. data/vendor/reveal.js/{examples → test/examples}/assets/image2.png +0 -0
  79. data/vendor/reveal.js/{examples → test/examples}/barebones.html +2 -3
  80. data/vendor/reveal.js/{examples → test/examples}/embedded-media.html +4 -4
  81. data/vendor/reveal.js/{examples → test/examples}/math.html +6 -6
  82. data/vendor/reveal.js/{examples → test/examples}/slide-backgrounds.html +26 -5
  83. data/vendor/reveal.js/test/qunit-1.12.0.css +244 -0
  84. data/vendor/reveal.js/test/qunit-1.12.0.js +2212 -0
  85. data/vendor/reveal.js/test/test-markdown-element-attributes.html +134 -0
  86. data/vendor/reveal.js/test/test-markdown-element-attributes.js +46 -0
  87. data/vendor/reveal.js/test/test-markdown-slide-attributes.html +128 -0
  88. data/vendor/reveal.js/test/test-markdown-slide-attributes.js +47 -0
  89. data/vendor/reveal.js/test/test-markdown.html +52 -0
  90. data/vendor/reveal.js/test/test-markdown.js +15 -0
  91. data/vendor/reveal.js/test/test.html +81 -0
  92. data/vendor/reveal.js/test/test.js +438 -0
  93. metadata +58 -45
@@ -0,0 +1,175 @@
1
+ @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
2
+ /**
3
+ * Blood theme for reveal.js
4
+ * Author: Walther http://github.com/Walther
5
+ *
6
+ * Designed to be used with highlight.js theme
7
+ * "monokai_sublime.css" available from
8
+ * https://github.com/isagalaev/highlight.js/
9
+ *
10
+ * For other themes, change $codeBackground accordingly.
11
+ *
12
+ */
13
+ /*********************************************
14
+ * GLOBAL STYLES
15
+ *********************************************/
16
+ body {
17
+ background: #222222;
18
+ background: -moz-radial-gradient(center, circle cover, #626262 0%, #222222 100%);
19
+ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #626262), color-stop(100%, #222222));
20
+ background: -webkit-radial-gradient(center, circle cover, #626262 0%, #222222 100%);
21
+ background: -o-radial-gradient(center, circle cover, #626262 0%, #222222 100%);
22
+ background: -ms-radial-gradient(center, circle cover, #626262 0%, #222222 100%);
23
+ background: radial-gradient(center, circle cover, #626262 0%, #222222 100%);
24
+ background-color: #2b2b2b; }
25
+
26
+ .reveal {
27
+ font-family: Ubuntu, "sans-serif";
28
+ font-size: 36px;
29
+ font-weight: normal;
30
+ letter-spacing: -0.02em;
31
+ color: #eeeeee; }
32
+
33
+ ::selection {
34
+ color: white;
35
+ background: #aa2233;
36
+ text-shadow: none; }
37
+
38
+ /*********************************************
39
+ * HEADERS
40
+ *********************************************/
41
+ .reveal h1,
42
+ .reveal h2,
43
+ .reveal h3,
44
+ .reveal h4,
45
+ .reveal h5,
46
+ .reveal h6 {
47
+ margin: 0 0 20px 0;
48
+ color: #eeeeee;
49
+ font-family: Ubuntu, "sans-serif";
50
+ line-height: 0.9em;
51
+ letter-spacing: 0.02em;
52
+ text-transform: uppercase;
53
+ text-shadow: 2px 2px 2px #222222; }
54
+
55
+ .reveal h1 {
56
+ text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbbbbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
57
+
58
+ /*********************************************
59
+ * LINKS
60
+ *********************************************/
61
+ .reveal a:not(.image) {
62
+ color: #aa2233;
63
+ text-decoration: none;
64
+ -webkit-transition: color .15s ease;
65
+ -moz-transition: color .15s ease;
66
+ -ms-transition: color .15s ease;
67
+ -o-transition: color .15s ease;
68
+ transition: color .15s ease; }
69
+
70
+ .reveal a:not(.image):hover {
71
+ color: #dd5566;
72
+ text-shadow: none;
73
+ border: none; }
74
+
75
+ .reveal .roll span:after {
76
+ color: #fff;
77
+ background: #6a1520; }
78
+
79
+ /*********************************************
80
+ * IMAGES
81
+ *********************************************/
82
+ .reveal section img {
83
+ margin: 15px 0px;
84
+ background: rgba(255, 255, 255, 0.12);
85
+ border: 4px solid #eeeeee;
86
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
87
+ -webkit-transition: all .2s linear;
88
+ -moz-transition: all .2s linear;
89
+ -ms-transition: all .2s linear;
90
+ -o-transition: all .2s linear;
91
+ transition: all .2s linear; }
92
+
93
+ .reveal a:hover img {
94
+ background: rgba(255, 255, 255, 0.2);
95
+ border-color: #aa2233;
96
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
97
+
98
+ /*********************************************
99
+ * NAVIGATION CONTROLS
100
+ *********************************************/
101
+ .reveal .controls div.navigate-left,
102
+ .reveal .controls div.navigate-left.enabled {
103
+ border-right-color: #aa2233; }
104
+
105
+ .reveal .controls div.navigate-right,
106
+ .reveal .controls div.navigate-right.enabled {
107
+ border-left-color: #aa2233; }
108
+
109
+ .reveal .controls div.navigate-up,
110
+ .reveal .controls div.navigate-up.enabled {
111
+ border-bottom-color: #aa2233; }
112
+
113
+ .reveal .controls div.navigate-down,
114
+ .reveal .controls div.navigate-down.enabled {
115
+ border-top-color: #aa2233; }
116
+
117
+ .reveal .controls div.navigate-left.enabled:hover {
118
+ border-right-color: #dd5566; }
119
+
120
+ .reveal .controls div.navigate-right.enabled:hover {
121
+ border-left-color: #dd5566; }
122
+
123
+ .reveal .controls div.navigate-up.enabled:hover {
124
+ border-bottom-color: #dd5566; }
125
+
126
+ .reveal .controls div.navigate-down.enabled:hover {
127
+ border-top-color: #dd5566; }
128
+
129
+ /*********************************************
130
+ * PROGRESS BAR
131
+ *********************************************/
132
+ .reveal .progress {
133
+ background: rgba(0, 0, 0, 0.2); }
134
+
135
+ .reveal .progress span {
136
+ background: #aa2233;
137
+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
138
+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139
+ -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
140
+ -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141
+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
142
+
143
+ /*********************************************
144
+ * SLIDE NUMBER
145
+ *********************************************/
146
+ .reveal .slide-number {
147
+ color: #aa2233; }
148
+
149
+ .reveal p {
150
+ font-weight: 300;
151
+ text-shadow: 1px 1px #222222; }
152
+
153
+ .reveal h1,
154
+ .reveal h2,
155
+ .reveal h3,
156
+ .reveal h4,
157
+ .reveal h5,
158
+ .reveal h6 {
159
+ font-weight: 700; }
160
+
161
+ .reveal a:not(.image),
162
+ .reveal a:not(.image):hover {
163
+ text-shadow: 2px 2px 2px #000; }
164
+
165
+ .reveal small a:not(.image),
166
+ .reveal small a:not(.image):hover {
167
+ text-shadow: 1px 1px 1px #000; }
168
+
169
+ .reveal p code {
170
+ background-color: #23241f;
171
+ display: inline-block;
172
+ border-radius: 7px; }
173
+
174
+ .reveal small code {
175
+ vertical-align: baseline; }
@@ -27,7 +27,7 @@ body {
27
27
  .reveal {
28
28
  font-family: "Lato", sans-serif;
29
29
  font-size: 36px;
30
- font-weight: 200;
30
+ font-weight: normal;
31
31
  letter-spacing: -0.02em;
32
32
  color: #eeeeee; }
33
33
 
@@ -140,3 +140,9 @@ body {
140
140
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141
141
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142
142
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143
+
144
+ /*********************************************
145
+ * SLIDE NUMBER
146
+ *********************************************/
147
+ .reveal .slide-number {
148
+ color: #13daec; }
@@ -27,7 +27,7 @@ body {
27
27
  .reveal {
28
28
  font-family: "Lato", sans-serif;
29
29
  font-size: 36px;
30
- font-weight: 200;
30
+ font-weight: normal;
31
31
  letter-spacing: -0.02em;
32
32
  color: #93a1a1; }
33
33
 
@@ -140,3 +140,9 @@ body {
140
140
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141
141
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142
142
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143
+
144
+ /*********************************************
145
+ * SLIDE NUMBER
146
+ *********************************************/
147
+ .reveal .slide-number {
148
+ color: #268bd2; }
@@ -15,7 +15,7 @@ body {
15
15
  .reveal {
16
16
  font-family: "Open Sans", sans-serif;
17
17
  font-size: 30px;
18
- font-weight: 200;
18
+ font-weight: normal;
19
19
  letter-spacing: -0.02em;
20
20
  color: #eeeeee; }
21
21
 
@@ -128,3 +128,9 @@ body {
128
128
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
129
129
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
130
130
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
131
+
132
+ /*********************************************
133
+ * SLIDE NUMBER
134
+ *********************************************/
135
+ .reveal .slide-number {
136
+ color: #e7ad52; }
@@ -17,7 +17,7 @@ body {
17
17
  .reveal {
18
18
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
19
19
  font-size: 36px;
20
- font-weight: 200;
20
+ font-weight: normal;
21
21
  letter-spacing: -0.02em;
22
22
  color: black; }
23
23
 
@@ -130,3 +130,9 @@ body {
130
130
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
131
131
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
132
132
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
133
+
134
+ /*********************************************
135
+ * SLIDE NUMBER
136
+ *********************************************/
137
+ .reveal .slide-number {
138
+ color: #51483d; }
@@ -17,7 +17,7 @@ body {
17
17
  .reveal {
18
18
  font-family: "Lato", sans-serif;
19
19
  font-size: 36px;
20
- font-weight: 200;
20
+ font-weight: normal;
21
21
  letter-spacing: -0.02em;
22
22
  color: black; }
23
23
 
@@ -130,3 +130,9 @@ body {
130
130
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
131
131
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
132
132
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
133
+
134
+ /*********************************************
135
+ * SLIDE NUMBER
136
+ *********************************************/
137
+ .reveal .slide-number {
138
+ color: darkblue; }
@@ -24,7 +24,7 @@ body {
24
24
  .reveal {
25
25
  font-family: "Open Sans", sans-serif;
26
26
  font-size: 36px;
27
- font-weight: 200;
27
+ font-weight: normal;
28
28
  letter-spacing: -0.02em;
29
29
  color: #333333; }
30
30
 
@@ -137,3 +137,9 @@ body {
137
137
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
138
138
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
139
139
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
140
+
141
+ /*********************************************
142
+ * SLIDE NUMBER
143
+ *********************************************/
144
+ .reveal .slide-number {
145
+ color: #3b759e; }
@@ -27,7 +27,7 @@ body {
27
27
  .reveal {
28
28
  font-family: "Lato", sans-serif;
29
29
  font-size: 36px;
30
- font-weight: 200;
30
+ font-weight: normal;
31
31
  letter-spacing: -0.02em;
32
32
  color: #657b83; }
33
33
 
@@ -140,3 +140,9 @@ body {
140
140
  -ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
141
141
  -o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
142
142
  transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
143
+
144
+ /*********************************************
145
+ * SLIDE NUMBER
146
+ *********************************************/
147
+ .reveal .slide-number {
148
+ color: #268bd2; }
File without changes
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Blood theme for reveal.js
3
+ * Author: Walther http://github.com/Walther
4
+ *
5
+ * Designed to be used with highlight.js theme
6
+ * "monokai_sublime.css" available from
7
+ * https://github.com/isagalaev/highlight.js/
8
+ *
9
+ * For other themes, change $codeBackground accordingly.
10
+ *
11
+ */
12
+
13
+ // Default mixins and settings -----------------
14
+ @import "../template/mixins";
15
+ @import "../template/settings";
16
+ // ---------------------------------------------
17
+
18
+ // Include theme-specific fonts
19
+
20
+ @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21
+
22
+ // Colors used in the theme
23
+ $blood: #a23;
24
+ $coal: #222;
25
+ $codeBackground: #23241f;
26
+
27
+ // Main text
28
+ $mainFont: Ubuntu, 'sans-serif';
29
+ $mainFontSize: 36px;
30
+ $mainColor: #eee;
31
+
32
+ // Headings
33
+ $headingFont: Ubuntu, 'sans-serif';
34
+ $headingTextShadow: 2px 2px 2px $coal;
35
+
36
+ // h1 shadow, borrowed humbly from
37
+ // (c) Default theme by Hakim El Hattab
38
+ $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);
39
+
40
+ // Links
41
+ $linkColor: $blood;
42
+ $linkColorHover: lighten( $linkColor, 20% );
43
+
44
+ // Text selection
45
+ $selectionBackgroundColor: $blood;
46
+ $selectionColor: #fff;
47
+
48
+ // Background generator
49
+ @mixin bodyBackground() {
50
+ @include radial-gradient( $coal, lighten( $coal, 25% ) );
51
+ }
52
+
53
+ // Theme template ------------------------------
54
+ @import "../template/theme";
55
+ // ---------------------------------------------
56
+
57
+ // some overrides after theme template import
58
+
59
+ .reveal p {
60
+ font-weight: 300;
61
+ text-shadow: 1px 1px $coal;
62
+ }
63
+
64
+ .reveal h1,
65
+ .reveal h2,
66
+ .reveal h3,
67
+ .reveal h4,
68
+ .reveal h5,
69
+ .reveal h6 {
70
+ font-weight: 700;
71
+ }
72
+
73
+ .reveal a:not(.image),
74
+ .reveal a:not(.image):hover {
75
+ text-shadow: 2px 2px 2px #000;
76
+ }
77
+
78
+ .reveal small a:not(.image),
79
+ .reveal small a:not(.image):hover {
80
+ text-shadow: 1px 1px 1px #000;
81
+ }
82
+
83
+ .reveal p code {
84
+ background-color: $codeBackground;
85
+ display: inline-block;
86
+ border-radius: 7px;
87
+ }
88
+
89
+ .reveal small code {
90
+ vertical-align: baseline;
91
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -12,7 +12,7 @@ body {
12
12
  .reveal {
13
13
  font-family: $mainFont;
14
14
  font-size: $mainFontSize;
15
- font-weight: 200;
15
+ font-weight: normal;
16
16
  letter-spacing: -0.02em;
17
17
  color: $mainColor;
18
18
  }
@@ -160,4 +160,11 @@ body {
160
160
  transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
161
161
  }
162
162
 
163
+ /*********************************************
164
+ * SLIDE NUMBER
165
+ *********************************************/
166
+ .reveal .slide-number {
167
+ color: $linkColor;
168
+ }
169
+
163
170