slippery 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/assets/deck.js/core/deck.core.css +60 -0
  4. data/assets/deck.js/core/deck.core.js +728 -0
  5. data/assets/deck.js/core/deck.core.scss +65 -0
  6. data/assets/deck.js/core/print.css +25 -0
  7. data/assets/deck.js/core/print.scss +14 -0
  8. data/assets/deck.js/css/common.css +216 -0
  9. data/assets/deck.js/css/common.scss +233 -0
  10. data/assets/deck.js/css/home.css +790 -0
  11. data/assets/deck.js/css/home.scss +892 -0
  12. data/assets/deck.js/extensions/goto/deck.goto.css +36 -0
  13. data/assets/deck.js/extensions/goto/deck.goto.html +7 -0
  14. data/assets/deck.js/extensions/goto/deck.goto.js +190 -0
  15. data/assets/deck.js/extensions/goto/deck.goto.scss +39 -0
  16. data/assets/deck.js/extensions/hash/deck.hash.css +13 -0
  17. data/assets/deck.js/extensions/hash/deck.hash.html +2 -0
  18. data/assets/deck.js/extensions/hash/deck.hash.js +145 -0
  19. data/assets/deck.js/extensions/hash/deck.hash.scss +13 -0
  20. data/assets/deck.js/extensions/menu/deck.menu.css +45 -0
  21. data/assets/deck.js/extensions/menu/deck.menu.js +225 -0
  22. data/assets/deck.js/extensions/menu/deck.menu.scss +55 -0
  23. data/assets/deck.js/extensions/navigation/deck.navigation.css +42 -0
  24. data/assets/deck.js/extensions/navigation/deck.navigation.html +5 -0
  25. data/assets/deck.js/extensions/navigation/deck.navigation.js +94 -0
  26. data/assets/deck.js/extensions/navigation/deck.navigation.scss +44 -0
  27. data/assets/deck.js/extensions/scale/deck.scale.css +20 -0
  28. data/assets/deck.js/extensions/scale/deck.scale.js +190 -0
  29. data/assets/deck.js/extensions/scale/deck.scale.scss +22 -0
  30. data/assets/deck.js/extensions/status/deck.status.css +18 -0
  31. data/assets/deck.js/extensions/status/deck.status.html +6 -0
  32. data/assets/deck.js/extensions/status/deck.status.js +108 -0
  33. data/assets/deck.js/extensions/status/deck.status.scss +18 -0
  34. data/assets/deck.js/modernizr.custom.js +4 -0
  35. data/assets/deck.js/themes/style/_reset.scss +300 -0
  36. data/assets/deck.js/themes/style/neon.css +421 -0
  37. data/assets/deck.js/themes/style/neon.scss +148 -0
  38. data/assets/deck.js/themes/style/swiss.css +389 -0
  39. data/assets/deck.js/themes/style/swiss.scss +109 -0
  40. data/assets/deck.js/themes/style/web-2.0.css +500 -0
  41. data/assets/deck.js/themes/style/web-2.0.scss +228 -0
  42. data/assets/deck.js/themes/transition/fade.css +35 -0
  43. data/assets/deck.js/themes/transition/fade.scss +59 -0
  44. data/assets/deck.js/themes/transition/horizontal-slide.css +53 -0
  45. data/assets/deck.js/themes/transition/horizontal-slide.scss +72 -0
  46. data/assets/deck.js/themes/transition/vertical-slide.css +67 -0
  47. data/assets/deck.js/themes/transition/vertical-slide.scss +92 -0
  48. data/assets/highlight.js/CHANGES.md +953 -0
  49. data/assets/highlight.js/LICENSE +24 -0
  50. data/assets/highlight.js/README.md +101 -0
  51. data/assets/highlight.js/README.ru.md +101 -0
  52. data/assets/highlight.js/highlight-0.8.default.min.css +1 -0
  53. data/assets/highlight.js/highlight-0.8.min.js +1 -0
  54. data/assets/highlight.js/highlight.pack.js +1 -0
  55. data/assets/highlight.js/styles/arta.css +141 -0
  56. data/assets/highlight.js/styles/ascetic.css +53 -0
  57. data/assets/highlight.js/styles/atelier-dune.dark.css +95 -0
  58. data/assets/highlight.js/styles/atelier-dune.light.css +95 -0
  59. data/assets/highlight.js/styles/atelier-forest.dark.css +95 -0
  60. data/assets/highlight.js/styles/atelier-forest.light.css +95 -0
  61. data/assets/highlight.js/styles/atelier-heath.dark.css +95 -0
  62. data/assets/highlight.js/styles/atelier-heath.light.css +95 -0
  63. data/assets/highlight.js/styles/atelier-lakeside.dark.css +95 -0
  64. data/assets/highlight.js/styles/atelier-lakeside.light.css +95 -0
  65. data/assets/highlight.js/styles/atelier-seaside.dark.css +95 -0
  66. data/assets/highlight.js/styles/atelier-seaside.light.css +95 -0
  67. data/assets/highlight.js/styles/brown_paper.css +105 -0
  68. data/assets/highlight.js/styles/brown_papersq.png +0 -0
  69. data/assets/highlight.js/styles/codepen-embed.css +108 -0
  70. data/assets/highlight.js/styles/color-brewer.css +169 -0
  71. data/assets/highlight.js/styles/dark.css +105 -0
  72. data/assets/highlight.js/styles/default.css +153 -0
  73. data/assets/highlight.js/styles/docco.css +136 -0
  74. data/assets/highlight.js/styles/far.css +112 -0
  75. data/assets/highlight.js/styles/foundation.css +136 -0
  76. data/assets/highlight.js/styles/github.css +127 -0
  77. data/assets/highlight.js/styles/googlecode.css +148 -0
  78. data/assets/highlight.js/styles/hybrid.css +171 -0
  79. data/assets/highlight.js/styles/idea.css +126 -0
  80. data/assets/highlight.js/styles/ir_black.css +110 -0
  81. data/assets/highlight.js/styles/kimbie.dark.css +96 -0
  82. data/assets/highlight.js/styles/kimbie.light.css +96 -0
  83. data/assets/highlight.js/styles/magula.css +122 -0
  84. data/assets/highlight.js/styles/mono-blue.css +70 -0
  85. data/assets/highlight.js/styles/monokai.css +127 -0
  86. data/assets/highlight.js/styles/monokai_sublime.css +148 -0
  87. data/assets/highlight.js/styles/obsidian.css +154 -0
  88. data/assets/highlight.js/styles/paraiso.dark.css +95 -0
  89. data/assets/highlight.js/styles/paraiso.light.css +95 -0
  90. data/assets/highlight.js/styles/pojoaque.css +108 -0
  91. data/assets/highlight.js/styles/pojoaque.jpg +0 -0
  92. data/assets/highlight.js/styles/railscasts.css +185 -0
  93. data/assets/highlight.js/styles/rainbow.css +109 -0
  94. data/assets/highlight.js/styles/school_book.css +113 -0
  95. data/assets/highlight.js/styles/school_book.png +0 -0
  96. data/assets/highlight.js/styles/solarized_dark.css +109 -0
  97. data/assets/highlight.js/styles/solarized_light.css +109 -0
  98. data/assets/highlight.js/styles/sunburst.css +165 -0
  99. data/assets/highlight.js/styles/tomorrow-night-blue.css +95 -0
  100. data/assets/highlight.js/styles/tomorrow-night-bright.css +94 -0
  101. data/assets/highlight.js/styles/tomorrow-night-eighties.css +94 -0
  102. data/assets/highlight.js/styles/tomorrow-night.css +95 -0
  103. data/assets/highlight.js/styles/tomorrow.css +92 -0
  104. data/assets/highlight.js/styles/vs.css +94 -0
  105. data/assets/highlight.js/styles/xcode.css +159 -0
  106. data/assets/highlight.js/styles/zenburn.css +119 -0
  107. data/assets/jquery/jquery-2.1.0.min.js +4 -0
  108. data/assets/reveal.js/css/print/paper.css +1 -1
  109. data/assets/reveal.js/css/print/pdf.css +2 -2
  110. data/assets/reveal.js/css/reveal.css +372 -108
  111. data/assets/reveal.js/css/reveal.min.css +2 -2
  112. data/assets/reveal.js/css/theme/README.md +3 -1
  113. data/assets/reveal.js/css/theme/beige.css +7 -1
  114. data/assets/reveal.js/css/theme/blood.css +175 -0
  115. data/assets/reveal.js/css/theme/default.css +7 -1
  116. data/assets/reveal.js/css/theme/moon.css +7 -1
  117. data/assets/reveal.js/css/theme/night.css +7 -1
  118. data/assets/reveal.js/css/theme/serif.css +7 -1
  119. data/assets/reveal.js/css/theme/simple.css +7 -1
  120. data/assets/reveal.js/css/theme/sky.css +7 -1
  121. data/assets/reveal.js/css/theme/solarized.css +7 -1
  122. data/assets/reveal.js/css/theme/source/blood.scss +91 -0
  123. data/assets/reveal.js/css/theme/template/settings.scss +1 -0
  124. data/assets/reveal.js/css/theme/template/theme.scss +9 -2
  125. data/assets/reveal.js/js/reveal.js +1238 -433
  126. data/assets/reveal.js/js/reveal.min.js +4 -3
  127. data/assets/reveal.js/lib/css/zenburn.css +16 -17
  128. data/assets/reveal.js/plugin/highlight/highlight.js +3 -2
  129. data/assets/reveal.js/plugin/leap/leap.js +3 -0
  130. data/assets/reveal.js/plugin/markdown/example.html +37 -5
  131. data/assets/reveal.js/plugin/markdown/example.md +2 -0
  132. data/assets/reveal.js/plugin/markdown/markdown.js +373 -171
  133. data/assets/reveal.js/plugin/math/math.js +64 -0
  134. data/assets/reveal.js/plugin/multiplex/master.js +2 -1
  135. data/assets/reveal.js/plugin/notes/notes.html +33 -19
  136. data/assets/reveal.js/plugin/notes/notes.js +25 -47
  137. data/assets/reveal.js/plugin/remotes/remotes.js +4 -4
  138. data/assets/reveal.js/plugin/zoom-js/zoom.js +3 -1
  139. data/assets/reveal.old/css/print/paper.css +176 -0
  140. data/assets/reveal.old/css/print/pdf.css +190 -0
  141. data/assets/reveal.old/css/reveal.css +1616 -0
  142. data/assets/reveal.old/css/reveal.min.css +7 -0
  143. data/assets/reveal.old/css/theme/README.md +23 -0
  144. data/assets/reveal.old/css/theme/beige.css +142 -0
  145. data/assets/reveal.old/css/theme/default.css +142 -0
  146. data/assets/reveal.old/css/theme/moon.css +142 -0
  147. data/assets/reveal.old/css/theme/night.css +130 -0
  148. data/assets/reveal.old/css/theme/serif.css +132 -0
  149. data/assets/reveal.old/css/theme/simple.css +132 -0
  150. data/assets/reveal.old/css/theme/sky.css +139 -0
  151. data/assets/reveal.old/css/theme/solarized.css +142 -0
  152. data/assets/reveal.old/css/theme/source/beige.scss +50 -0
  153. data/assets/reveal.old/css/theme/source/default.scss +42 -0
  154. data/assets/reveal.old/css/theme/source/moon.scss +68 -0
  155. data/assets/reveal.old/css/theme/source/night.scss +35 -0
  156. data/assets/reveal.old/css/theme/source/serif.scss +35 -0
  157. data/assets/reveal.old/css/theme/source/simple.scss +38 -0
  158. data/assets/reveal.old/css/theme/source/sky.scss +46 -0
  159. data/assets/reveal.old/css/theme/source/solarized.scss +74 -0
  160. data/assets/reveal.old/css/theme/template/mixins.scss +29 -0
  161. data/assets/reveal.old/css/theme/template/settings.scss +33 -0
  162. data/assets/reveal.old/css/theme/template/theme.scss +163 -0
  163. data/assets/{reveal.js → reveal.old}/js/head.min.js +0 -0
  164. data/assets/reveal.old/js/reveal.js +2577 -0
  165. data/assets/reveal.old/js/reveal.min.js +8 -0
  166. data/assets/reveal.old/lib/css/zenburn.css +115 -0
  167. data/assets/reveal.old/lib/font/league_gothic-webfont.eot +0 -0
  168. data/assets/reveal.old/lib/font/league_gothic-webfont.svg +230 -0
  169. data/assets/reveal.old/lib/font/league_gothic-webfont.ttf +0 -0
  170. data/assets/reveal.old/lib/font/league_gothic-webfont.woff +0 -0
  171. data/assets/reveal.old/lib/font/league_gothic_license +2 -0
  172. data/assets/reveal.old/lib/js/classList.js +2 -0
  173. data/assets/reveal.old/lib/js/head.min.js +8 -0
  174. data/assets/reveal.old/lib/js/html5shiv.js +7 -0
  175. data/assets/reveal.old/plugin/highlight/highlight.js +31 -0
  176. data/assets/reveal.old/plugin/leap/leap.js +154 -0
  177. data/assets/reveal.old/plugin/markdown/example.html +97 -0
  178. data/assets/reveal.old/plugin/markdown/example.md +29 -0
  179. data/assets/reveal.old/plugin/markdown/markdown.js +190 -0
  180. data/assets/reveal.old/plugin/markdown/marked.js +37 -0
  181. data/assets/reveal.old/plugin/multiplex/client.js +13 -0
  182. data/assets/reveal.old/plugin/multiplex/index.js +56 -0
  183. data/assets/reveal.old/plugin/multiplex/master.js +50 -0
  184. data/assets/reveal.old/plugin/notes-server/client.js +57 -0
  185. data/assets/reveal.old/plugin/notes-server/index.js +59 -0
  186. data/assets/reveal.old/plugin/notes-server/notes.html +142 -0
  187. data/assets/reveal.old/plugin/notes/notes.html +253 -0
  188. data/assets/reveal.old/plugin/notes/notes.js +100 -0
  189. data/assets/reveal.old/plugin/postmessage/example.html +39 -0
  190. data/assets/reveal.old/plugin/postmessage/postmessage.js +42 -0
  191. data/assets/reveal.old/plugin/print-pdf/print-pdf.js +44 -0
  192. data/assets/reveal.old/plugin/remotes/remotes.js +39 -0
  193. data/assets/reveal.old/plugin/search/search.js +196 -0
  194. data/assets/reveal.old/plugin/zoom-js/zoom.js +256 -0
  195. data/bin/slippery +1 -0
  196. data/code_of_conduct.md +32 -0
  197. data/lib/slippery.rb +5 -3
  198. data/lib/slippery/document.rb +2 -2
  199. data/lib/slippery/presentation.rb +10 -1
  200. data/lib/slippery/processor.rb +18 -0
  201. data/lib/slippery/processor_helpers.rb +16 -2
  202. data/lib/slippery/processors/add_highlight.rb +9 -2
  203. data/lib/slippery/processors/deck_js.rb +81 -0
  204. data/lib/slippery/processors/fathom_js.rb +31 -0
  205. data/lib/slippery/processors/impress_js/add_impress_js.rb +2 -2
  206. data/lib/slippery/processors/jquery.rb +12 -0
  207. data/lib/slippery/processors/reveal_js/add_reveal_js.rb +12 -9
  208. data/lib/slippery/rake_tasks.rb +59 -31
  209. data/lib/slippery/version.rb +1 -1
  210. data/slippery.gemspec +5 -4
  211. metadata +215 -33
  212. data/lib/slippery/converter.rb +0 -132
@@ -0,0 +1,228 @@
1
+ @mixin rotate($deg) {
2
+ -webkit-transform:rotate($deg);
3
+ -ms-transform:rotate($deg);
4
+ transform:rotate($deg);
5
+ }
6
+
7
+ @import "reset";
8
+
9
+ h1, h2, h3, h4, h5, h6 {
10
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
11
+ }
12
+
13
+ h1 {
14
+ color:#08455f;
15
+ }
16
+
17
+ h2 {
18
+ color:#0b7495;
19
+ border-bottom:0;
20
+
21
+ .cssreflections & {
22
+ line-height:1;
23
+ -webkit-box-reflect:below -0.5555em -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.3, transparent), color-stop(0.7, rgba(255,255,255,.1)), to(transparent));
24
+ -moz-box-reflect:below -0.5555em -moz-linear-gradient(top, transparent 0%, transparent 30%, rgba(255,255,255,.3) 100%);
25
+ }
26
+ }
27
+
28
+ h3 {
29
+ color:#000;
30
+ }
31
+
32
+ pre {
33
+ border-color:#cde;
34
+ background:#fff;
35
+ position:relative;
36
+ z-index:auto;
37
+ border-radius:5px;
38
+
39
+ /* http://nicolasgallagher.com/css-drop-shadows-without-images/ */
40
+ .csstransforms.boxshadow & {
41
+ > :first-child:before {
42
+ content:"";
43
+ position:absolute;
44
+ z-index:-1;
45
+ background:#fff;
46
+ top:0;
47
+ bottom:0;
48
+ left:0;
49
+ right:0;
50
+ }
51
+
52
+ &:before, &:after {
53
+ content:"";
54
+ position:absolute;
55
+ z-index:-2;
56
+ bottom:15px;
57
+ width:50%;
58
+ height:20%;
59
+ max-width:300px;
60
+ box-shadow:0 15px 10px rgba(0, 0, 0, 0.7);
61
+ }
62
+
63
+ &:before {
64
+ left:10px;
65
+ @include rotate(-3deg);
66
+ }
67
+
68
+ &:after {
69
+ right:10px;
70
+ @include rotate(3deg);
71
+ }
72
+ }
73
+ }
74
+
75
+ code {
76
+ color:#789;
77
+ }
78
+
79
+ blockquote {
80
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
81
+ font-size:2em;
82
+ padding:1em 2em .5em 2em;
83
+ color:#000;
84
+ background:#fff;
85
+ position:relative;
86
+ border:1px solid #cde;
87
+ z-index:auto;
88
+ border-radius:5px;
89
+
90
+ .boxshadow & {
91
+ > :first-child:before {
92
+ content:"";
93
+ position:absolute;
94
+ z-index:-1;
95
+ background:#fff;
96
+ top:0;
97
+ bottom:0;
98
+ left:0;
99
+ right:0;
100
+ }
101
+
102
+ &:after {
103
+ content:"";
104
+ position:absolute;
105
+ z-index:-2;
106
+ top: 10px;
107
+ bottom: 10px;
108
+ left: 0;
109
+ right: 50%;
110
+ -moz-border-radius: 10px / 100px;
111
+ border-radius: 10px / 100px;
112
+ box-shadow:0 0 15px rgba(0,0,0,0.6);
113
+ }
114
+ }
115
+
116
+ p {
117
+ margin:0;
118
+ }
119
+
120
+ cite {
121
+ font-size:.5em;
122
+ font-style:normal;
123
+ font-weight:bold;
124
+ color:#888;
125
+ }
126
+
127
+ &:before {
128
+ content:"“";
129
+ position:absolute;
130
+ top:0;
131
+ left:0;
132
+ font-size:5em;
133
+ line-height:1;
134
+ color:#ccf0f0;
135
+ z-index:1;
136
+ }
137
+ }
138
+
139
+ ::-moz-selection{ background:#08455f; color:#fff; }
140
+ ::selection { background:#08455f; color:#fff; }
141
+
142
+ a {
143
+ &, &:hover, &:focus, &:active, &:visited {
144
+ color:#599;
145
+ text-decoration:none;
146
+ }
147
+
148
+ &:hover, &:focus {
149
+ text-decoration:underline;
150
+ }
151
+ }
152
+
153
+ .deck-container {
154
+ font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
155
+ font-size:1.75em;
156
+ background: rgb(244,250,254); /* Old browsers */
157
+ background: -moz-linear-gradient(top, rgba(244,250,254,1) 0%, rgba(204,240,240,1) 100%); /* FF3.6+ */
158
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(244,250,254,1)), color-stop(100%,rgba(204,240,240,1))); /* Chrome,Safari4+ */
159
+ background: -webkit-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* Chrome10+,Safari5.1+ */
160
+ background: -o-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* Opera11.10+ */
161
+ background: -ms-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* IE10+ */
162
+ background: linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* W3C */
163
+ background-attachment: fixed;
164
+ text-shadow:1px 1px 1px rgba(255,255,255,.5);
165
+
166
+ > .slide {
167
+ padding:0 48px;
168
+ }
169
+ }
170
+
171
+ .slide {
172
+ .deck-before, .deck-previous {
173
+ opacity:0.4;
174
+
175
+ &:not(.deck-child-current) {
176
+ .deck-before, .deck-previous {
177
+ opacity:1;
178
+ }
179
+ }
180
+ }
181
+
182
+ .deck-child-current {
183
+ opacity:1;
184
+ }
185
+ }
186
+
187
+ .deck-prev-link, .deck-next-link {
188
+ background:#fff;
189
+ opacity:0.5;
190
+
191
+ &, &:hover, &:focus, &:active, &:visited {
192
+ color:#599;
193
+ }
194
+
195
+ &:hover, &:focus {
196
+ opacity:1;
197
+ text-decoration:none;
198
+ }
199
+ }
200
+
201
+ .deck-status {
202
+ font-size:0.6666em;
203
+ }
204
+
205
+ .deck-menu {
206
+ .slide {
207
+ background:transparent;
208
+ border-radius:5px;
209
+
210
+ .rgba & {
211
+ background:rgba(0,0,0,.1);
212
+ }
213
+
214
+ &.deck-current, .rgba &.deck-current, .no-touch &:hover {
215
+ background:#fff;
216
+ }
217
+ }
218
+ }
219
+
220
+ .goto-form {
221
+ background:#fff;
222
+ border:1px solid #cde;
223
+ border-radius:5px;
224
+
225
+ .boxshadow & {
226
+ 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;
227
+ }
228
+ }
@@ -0,0 +1,35 @@
1
+ .csstransitions.csstransforms .deck-container .slide {
2
+ -webkit-transition: opacity 500ms ease-in-out 0ms;
3
+ transition: opacity 500ms ease-in-out 0ms;
4
+ }
5
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide {
6
+ position: absolute;
7
+ top: 0;
8
+ left: 0;
9
+ }
10
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .slide {
11
+ position: relative;
12
+ left: 0;
13
+ top: 0;
14
+ }
15
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-after {
16
+ opacity: 0;
17
+ }
18
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-current {
19
+ opacity: 1;
20
+ }
21
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-after {
22
+ opacity: 0;
23
+ pointer-events: none;
24
+ }
25
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before .slide, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous .slide {
26
+ visibility: visible;
27
+ }
28
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current {
29
+ opacity: 1;
30
+ visibility: visible;
31
+ pointer-events: auto;
32
+ }
33
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current .deck-after {
34
+ visibility: hidden;
35
+ }
@@ -0,0 +1,59 @@
1
+ @mixin translate($x: 0, $y: 0, $z: 0) {
2
+ -webkit-transform:translate3d($x, $y, $z);
3
+ -ms-transform:translate($x, $y);
4
+ transform:translate3d($x, $y, $z);
5
+ }
6
+
7
+ @mixin transition($prop, $duration, $easing: ease-in-out, $delay: 0ms) {
8
+ -webkit-transition:$prop $duration $easing $delay;
9
+ transition:$prop $duration $easing $delay;
10
+ }
11
+
12
+ .csstransitions.csstransforms {
13
+ .deck-container .slide {
14
+ @include transition(opacity, 500ms);
15
+ }
16
+
17
+ .deck-container:not(.deck-menu) {
18
+ > .slide {
19
+ position:absolute;
20
+ top:0;
21
+ left:0;
22
+
23
+ .slide {
24
+ position:relative;
25
+ left:0;
26
+ top:0;
27
+ }
28
+
29
+ .deck-next, .deck-after {
30
+ opacity:0;
31
+ }
32
+
33
+ .deck-current {
34
+ opacity:1;
35
+ }
36
+ }
37
+
38
+ > .deck-previous, > .deck-before, > .deck-next, > .deck-after {
39
+ opacity:0;
40
+ pointer-events:none;
41
+ }
42
+
43
+ > .deck-before, > .deck-previous {
44
+ .slide {
45
+ visibility:visible;
46
+ }
47
+ }
48
+
49
+ > .deck-child-current {
50
+ opacity:1;
51
+ visibility:visible;
52
+ pointer-events:auto;
53
+
54
+ .deck-next, .deck-after {
55
+ visibility:hidden;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,53 @@
1
+ .csstransitions.csstransforms {
2
+ overflow-x: hidden;
3
+ }
4
+ .csstransitions.csstransforms .deck-container > .slide {
5
+ -webkit-transition: -webkit-transform 500ms ease-in-out;
6
+ transition: transform 500ms ease-in-out;
7
+ }
8
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide {
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ }
13
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .slide {
14
+ position: relative;
15
+ left: 0;
16
+ top: 0;
17
+ -webkit-transition: -webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
18
+ transition: transform 500ms ease-in-out, opacity 500ms ease-in-out;
19
+ }
20
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-after {
21
+ visibility: visible;
22
+ -webkit-transform: translate3d(200%, 0, 0);
23
+ -ms-transform: translate(200%, 0);
24
+ transform: translate3d(200%, 0, 0);
25
+ }
26
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous {
27
+ -webkit-transform: translate3d(-200%, 0, 0);
28
+ -ms-transform: translate(-200%, 0);
29
+ transform: translate3d(-200%, 0, 0);
30
+ }
31
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before {
32
+ -webkit-transform: translate3d(-400%, 0, 0);
33
+ -ms-transform: translate(-400%, 0);
34
+ transform: translate3d(-400%, 0, 0);
35
+ }
36
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-next {
37
+ -webkit-transform: translate3d(200%, 0, 0);
38
+ -ms-transform: translate(200%, 0);
39
+ transform: translate3d(200%, 0, 0);
40
+ }
41
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-after {
42
+ -webkit-transform: translate3d(400%, 0, 0);
43
+ -ms-transform: translate(400%, 0);
44
+ transform: translate3d(400%, 0, 0);
45
+ }
46
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before .slide, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous .slide {
47
+ visibility: visible;
48
+ }
49
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current {
50
+ -webkit-transform: none;
51
+ -ms-transform: none;
52
+ transform: none;
53
+ }
@@ -0,0 +1,72 @@
1
+ @mixin translate($x: 0, $y: 0, $z: 0) {
2
+ -webkit-transform:translate3d($x, $y, $z);
3
+ -ms-transform:translate($x, $y);
4
+ transform:translate3d($x, $y, $z);
5
+ }
6
+
7
+ @mixin transition($prop, $duration, $easing: ease-in-out, $delay: 0ms) {
8
+ -webkit-transition:$prop $duration $easing $delay;
9
+ transition:$prop $duration $easing $delay;
10
+ }
11
+
12
+ @mixin transform($val) {
13
+ -webkit-transform:$val;
14
+ -ms-transform:$val;
15
+ transform:$val;
16
+ }
17
+
18
+ .csstransitions.csstransforms {
19
+ overflow-x:hidden;
20
+
21
+ .deck-container > .slide {
22
+ -webkit-transition:-webkit-transform 500ms ease-in-out;
23
+ transition:transform 500ms ease-in-out;
24
+ }
25
+
26
+ .deck-container:not(.deck-menu) {
27
+ > .slide {
28
+ position:absolute;
29
+ top:0;
30
+ left:0;
31
+
32
+ .slide {
33
+ position:relative;
34
+ left:0;
35
+ top:0;
36
+ -webkit-transition:-webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
37
+ transition:transform 500ms ease-in-out, opacity 500ms ease-in-out;
38
+ }
39
+
40
+ .deck-next, .deck-after {
41
+ visibility:visible;
42
+ @include translate(200%);
43
+ }
44
+ }
45
+
46
+ > .deck-previous {
47
+ @include translate(-200%);
48
+ }
49
+
50
+ > .deck-before {
51
+ @include translate(-400%);
52
+ }
53
+
54
+ > .deck-next {
55
+ @include translate(200%);
56
+ }
57
+
58
+ > .deck-after {
59
+ @include translate(400%);
60
+ }
61
+
62
+ > .deck-before, > .deck-previous {
63
+ .slide {
64
+ visibility:visible;
65
+ }
66
+ }
67
+
68
+ > .deck-child-current {
69
+ @include transform(none);
70
+ }
71
+ }
72
+ }