slideshow-service 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Manifest.txt +42 -0
  3. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.css +391 -0
  4. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.html +39 -0
  5. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.js +460 -0
  6. data/lib/slideshow/service/public/slideshow-deck.js/core/deck.core.scss +432 -0
  7. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.css +41 -0
  8. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.html +6 -0
  9. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.js +118 -0
  10. data/lib/slideshow/service/public/slideshow-deck.js/extensions/goto/deck.goto.scss +46 -0
  11. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.css +13 -0
  12. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.html +2 -0
  13. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.js +126 -0
  14. data/lib/slideshow/service/public/slideshow-deck.js/extensions/hash/deck.hash.scss +15 -0
  15. data/lib/slideshow/service/public/slideshow-deck.js/extensions/menu/deck.menu.css +46 -0
  16. data/lib/slideshow/service/public/slideshow-deck.js/extensions/menu/deck.menu.js +182 -0
  17. data/lib/slideshow/service/public/slideshow-deck.js/extensions/menu/deck.menu.scss +57 -0
  18. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.css +43 -0
  19. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.html +3 -0
  20. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.js +83 -0
  21. data/lib/slideshow/service/public/slideshow-deck.js/extensions/navigation/deck.navigation.scss +56 -0
  22. data/lib/slideshow/service/public/slideshow-deck.js/extensions/scale/deck.scale.css +16 -0
  23. data/lib/slideshow/service/public/slideshow-deck.js/extensions/scale/deck.scale.js +155 -0
  24. data/lib/slideshow/service/public/slideshow-deck.js/extensions/scale/deck.scale.scss +17 -0
  25. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.css +14 -0
  26. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.html +6 -0
  27. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.js +83 -0
  28. data/lib/slideshow/service/public/slideshow-deck.js/extensions/status/deck.status.scss +16 -0
  29. data/lib/slideshow/service/public/slideshow-deck.js/lib/jquery-1.6.4.min.js +4 -0
  30. data/lib/slideshow/service/public/slideshow-deck.js/lib/modernizr.custom.js +4 -0
  31. data/lib/slideshow/service/public/slideshow-deck.js/slides.html +119 -0
  32. data/lib/slideshow/service/public/slideshow-deck.js/style.css +59 -0
  33. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/neon.css +114 -0
  34. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/neon.scss +139 -0
  35. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/swiss.css +75 -0
  36. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/swiss.scss +91 -0
  37. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/web-2.0.css +210 -0
  38. data/lib/slideshow/service/public/slideshow-deck.js/themes/style/web-2.0.scss +238 -0
  39. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/fade.css +44 -0
  40. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/fade.scss +70 -0
  41. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/horizontal-slide.css +79 -0
  42. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/horizontal-slide.scss +94 -0
  43. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/vertical-slide.css +97 -0
  44. data/lib/slideshow/service/public/slideshow-deck.js/themes/transition/vertical-slide.scss +116 -0
  45. data/lib/slideshow/service/version.rb +1 -1
  46. metadata +43 -1
@@ -0,0 +1,210 @@
1
+ @charset "UTF-8";
2
+ .deck-container {
3
+ font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
4
+ font-size: 1.25em;
5
+ background: #f4fafe;
6
+ /* Old browsers */
7
+ background: -moz-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
8
+ /* FF3.6+ */
9
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4fafe), color-stop(100%, #ccf0f0));
10
+ /* Chrome,Safari4+ */
11
+ background: -webkit-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
12
+ /* Chrome10+,Safari5.1+ */
13
+ background: -o-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
14
+ /* Opera11.10+ */
15
+ background: -ms-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
16
+ /* IE10+ */
17
+ background: linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
18
+ /* W3C */
19
+ background-attachment: fixed;
20
+ }
21
+ .deck-container > .slide {
22
+ text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
23
+ }
24
+ .deck-container h1, .deck-container h2, .deck-container h3, .deck-container h4, .deck-container h5, .deck-container h6 {
25
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
26
+ }
27
+ .deck-container h1 {
28
+ color: #08455f;
29
+ }
30
+ .deck-container h2 {
31
+ color: #0b7495;
32
+ border-bottom: 0;
33
+ }
34
+ .cssreflections .deck-container h2 {
35
+ line-height: 1;
36
+ -webkit-box-reflect: below -0.556em -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.3, transparent), color-stop(0.7, rgba(255, 255, 255, 0.1)), to(transparent));
37
+ -moz-box-reflect: below -0.556em -moz-linear-gradient(top, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.3) 100%);
38
+ }
39
+ .deck-container h3 {
40
+ color: #000;
41
+ }
42
+ .deck-container pre {
43
+ border-color: #cde;
44
+ background: #fff;
45
+ position: relative;
46
+ z-index: auto;
47
+ /* http://nicolasgallagher.com/css-drop-shadows-without-images/ */
48
+ }
49
+ .borderradius .deck-container pre {
50
+ -webkit-border-radius: 5px;
51
+ -moz-border-radius: 5px;
52
+ border-radius: 5px;
53
+ }
54
+ .csstransforms.boxshadow .deck-container pre > :first-child:before {
55
+ content: "";
56
+ position: absolute;
57
+ z-index: -1;
58
+ background: #fff;
59
+ top: 0;
60
+ bottom: 0;
61
+ left: 0;
62
+ right: 0;
63
+ }
64
+ .csstransforms.boxshadow .deck-container pre:before, .csstransforms.boxshadow .deck-container pre:after {
65
+ content: "";
66
+ position: absolute;
67
+ z-index: -2;
68
+ bottom: 15px;
69
+ width: 50%;
70
+ height: 20%;
71
+ max-width: 300px;
72
+ -webkit-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
73
+ -moz-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
74
+ box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
75
+ }
76
+ .csstransforms.boxshadow .deck-container pre:before {
77
+ left: 10px;
78
+ -webkit-transform: rotate(-3deg);
79
+ -moz-transform: rotate(-3deg);
80
+ -ms-transform: rotate(-3deg);
81
+ -o-transform: rotate(-3deg);
82
+ transform: rotate(-3deg);
83
+ }
84
+ .csstransforms.boxshadow .deck-container pre:after {
85
+ right: 10px;
86
+ -webkit-transform: rotate(3deg);
87
+ -moz-transform: rotate(3deg);
88
+ -ms-transform: rotate(3deg);
89
+ -o-transform: rotate(3deg);
90
+ transform: rotate(3deg);
91
+ }
92
+ .deck-container code {
93
+ color: #789;
94
+ }
95
+ .deck-container blockquote {
96
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
97
+ font-size: 2em;
98
+ padding: 1em 2em .5em 2em;
99
+ color: #000;
100
+ background: #fff;
101
+ position: relative;
102
+ border: 1px solid #cde;
103
+ z-index: auto;
104
+ }
105
+ .borderradius .deck-container blockquote {
106
+ -webkit-border-radius: 5px;
107
+ -moz-border-radius: 5px;
108
+ border-radius: 5px;
109
+ }
110
+ .boxshadow .deck-container blockquote > :first-child:before {
111
+ content: "";
112
+ position: absolute;
113
+ z-index: -1;
114
+ background: #fff;
115
+ top: 0;
116
+ bottom: 0;
117
+ left: 0;
118
+ right: 0;
119
+ }
120
+ .boxshadow .deck-container blockquote:after {
121
+ content: "";
122
+ position: absolute;
123
+ z-index: -2;
124
+ top: 10px;
125
+ bottom: 10px;
126
+ left: 0;
127
+ right: 50%;
128
+ -moz-border-radius: 10px/100px;
129
+ border-radius: 10px/100px;
130
+ -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
131
+ -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
132
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
133
+ }
134
+ .deck-container blockquote p {
135
+ margin: 0;
136
+ }
137
+ .deck-container blockquote cite {
138
+ font-size: .5em;
139
+ font-style: normal;
140
+ font-weight: bold;
141
+ color: #888;
142
+ }
143
+ .deck-container blockquote:before {
144
+ content: "“";
145
+ position: absolute;
146
+ top: 0;
147
+ left: 0;
148
+ font-size: 5em;
149
+ line-height: 1;
150
+ color: #ccf0f0;
151
+ z-index: 1;
152
+ }
153
+ .deck-container .borderradius img {
154
+ -webkit-border-radius: 5px;
155
+ -moz-border-radius: 5px;
156
+ border-radius: 5px;
157
+ }
158
+ .deck-container ::-moz-selection {
159
+ background: #08455f;
160
+ color: #fff;
161
+ }
162
+ .deck-container ::selection {
163
+ background: #08455f;
164
+ color: #fff;
165
+ }
166
+ .deck-container a, .deck-container a:hover, .deck-container a:focus, .deck-container a:active, .deck-container a:visited {
167
+ color: #599;
168
+ text-decoration: none;
169
+ }
170
+ .deck-container a:hover, .deck-container a:focus {
171
+ text-decoration: underline;
172
+ }
173
+ .deck-container .deck-prev-link, .deck-container .deck-next-link {
174
+ background: #fff;
175
+ opacity: 0.5;
176
+ }
177
+ .deck-container .deck-prev-link, .deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-prev-link:active, .deck-container .deck-prev-link:visited, .deck-container .deck-next-link, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus, .deck-container .deck-next-link:active, .deck-container .deck-next-link:visited {
178
+ color: #599;
179
+ }
180
+ .deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus {
181
+ opacity: 1;
182
+ text-decoration: none;
183
+ }
184
+ .deck-container .deck-status {
185
+ font-size: 0.6666em;
186
+ }
187
+ .deck-container.deck-menu .slide {
188
+ background: transparent;
189
+ -webkit-border-radius: 5px;
190
+ -moz-border-radius: 5px;
191
+ border-radius: 5px;
192
+ }
193
+ .rgba .deck-container.deck-menu .slide {
194
+ background: rgba(0, 0, 0, 0.1);
195
+ }
196
+ .deck-container.deck-menu .slide.deck-current, .rgba .deck-container.deck-menu .slide.deck-current, .no-touch .deck-container.deck-menu .slide:hover {
197
+ background: #fff;
198
+ }
199
+ .deck-container .goto-form {
200
+ background: #fff;
201
+ border: 1px solid #cde;
202
+ -webkit-border-radius: 5px;
203
+ -moz-border-radius: 5px;
204
+ border-radius: 5px;
205
+ }
206
+ .boxshadow .deck-container .goto-form {
207
+ -webkit-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;
208
+ -moz-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;
209
+ 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;
210
+ }
@@ -0,0 +1,238 @@
1
+ @mixin border-radius($r) {
2
+ -webkit-border-radius:$r;
3
+ -moz-border-radius:$r;
4
+ border-radius:$r;
5
+ }
6
+
7
+ @mixin rotate($deg) {
8
+ -webkit-transform:rotate($deg);
9
+ -moz-transform:rotate($deg);
10
+ -ms-transform:rotate($deg);
11
+ -o-transform:rotate($deg);
12
+ transform:rotate($deg);
13
+ }
14
+
15
+ @mixin box-shadow($x, $y, $blur, $color) {
16
+ -webkit-box-shadow:$x $y $blur $color;
17
+ -moz-box-shadow:$x $y $blur $color;
18
+ box-shadow:$x $y $blur $color;
19
+ }
20
+
21
+
22
+ .deck-container {
23
+ font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
24
+ font-size:1.25em;
25
+ background: rgb(244,250,254); /* Old browsers */
26
+ background: -moz-linear-gradient(top, rgba(244,250,254,1) 0%, rgba(204,240,240,1) 100%); /* FF3.6+ */
27
+ 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+ */
28
+ background: -webkit-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* Chrome10+,Safari5.1+ */
29
+ background: -o-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* Opera11.10+ */
30
+ background: -ms-linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* IE10+ */
31
+ background: linear-gradient(top, rgba(244,250,254,1) 0%,rgba(204,240,240,1) 100%); /* W3C */
32
+ background-attachment: fixed;
33
+
34
+ > .slide {
35
+ text-shadow:1px 1px 1px rgba(255,255,255,.5);
36
+ }
37
+
38
+ h1, h2, h3, h4, h5, h6 {
39
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
40
+ }
41
+
42
+ h1 {
43
+ color:#08455f;
44
+ }
45
+
46
+ h2 {
47
+ color:#0b7495;
48
+ border-bottom:0;
49
+
50
+ .cssreflections & {
51
+ line-height:1;
52
+ -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));
53
+ -moz-box-reflect:below -0.5555em -moz-linear-gradient(top, transparent 0%, transparent 30%, rgba(255,255,255,.3) 100%);
54
+ }
55
+ }
56
+
57
+ h3 {
58
+ color:#000;
59
+ }
60
+
61
+ pre {
62
+ border-color:#cde;
63
+ background:#fff;
64
+ position:relative;
65
+ z-index:auto;
66
+
67
+ .borderradius & {
68
+ @include border-radius(5px);
69
+ }
70
+
71
+ /* http://nicolasgallagher.com/css-drop-shadows-without-images/ */
72
+ .csstransforms.boxshadow & {
73
+ > :first-child:before {
74
+ content:"";
75
+ position:absolute;
76
+ z-index:-1;
77
+ background:#fff;
78
+ top:0;
79
+ bottom:0;
80
+ left:0;
81
+ right:0;
82
+ }
83
+
84
+ &:before, &:after {
85
+ content:"";
86
+ position:absolute;
87
+ z-index:-2;
88
+ bottom:15px;
89
+ width:50%;
90
+ height:20%;
91
+ max-width:300px;
92
+ @include box-shadow(0, 15px, 10px, rgba(0, 0, 0, 0.7));
93
+ }
94
+
95
+ &:before {
96
+ left:10px;
97
+ @include rotate(-3deg);
98
+ }
99
+
100
+ &:after {
101
+ right:10px;
102
+ @include rotate(3deg);
103
+ }
104
+ }
105
+ }
106
+
107
+ code {
108
+ color:#789;
109
+ }
110
+
111
+ blockquote {
112
+ font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
113
+ font-size:2em;
114
+ padding:1em 2em .5em 2em;
115
+ color:#000;
116
+ background:#fff;
117
+ position:relative;
118
+ border:1px solid #cde;
119
+ z-index:auto;
120
+
121
+ .borderradius & {
122
+ @include border-radius(5px);
123
+ }
124
+
125
+ .boxshadow & {
126
+ > :first-child:before {
127
+ content:"";
128
+ position:absolute;
129
+ z-index:-1;
130
+ background:#fff;
131
+ top:0;
132
+ bottom:0;
133
+ left:0;
134
+ right:0;
135
+ }
136
+
137
+ &:after {
138
+ content:"";
139
+ position:absolute;
140
+ z-index:-2;
141
+ top: 10px;
142
+ bottom: 10px;
143
+ left: 0;
144
+ right: 50%;
145
+ -moz-border-radius: 10px / 100px;
146
+ border-radius: 10px / 100px;
147
+ @include box-shadow(0, 0, 15px, rgba(0,0,0,0.6));
148
+ }
149
+ }
150
+
151
+ p {
152
+ margin:0;
153
+ }
154
+
155
+ cite {
156
+ font-size:.5em;
157
+ font-style:normal;
158
+ font-weight:bold;
159
+ color:#888;
160
+ }
161
+
162
+ &:before {
163
+ content:"“";
164
+ position:absolute;
165
+ top:0;
166
+ left:0;
167
+ font-size:5em;
168
+ line-height:1;
169
+ color:#ccf0f0;
170
+ z-index:1;
171
+ }
172
+ }
173
+
174
+ .borderradius img {
175
+ @include border-radius(5px);
176
+ }
177
+
178
+ ::-moz-selection{ background:#08455f; color:#fff; }
179
+ ::selection { background:#08455f; color:#fff; }
180
+
181
+ a {
182
+ &, &:hover, &:focus, &:active, &:visited {
183
+ color:#599;
184
+ text-decoration:none;
185
+ }
186
+
187
+ &:hover, &:focus {
188
+ text-decoration:underline;
189
+ }
190
+ }
191
+
192
+ .deck-prev-link, .deck-next-link {
193
+ background:#fff;
194
+ opacity:0.5;
195
+
196
+ &, &:hover, &:focus, &:active, &:visited {
197
+ color:#599;
198
+ }
199
+
200
+ &:hover, &:focus {
201
+ opacity:1;
202
+ text-decoration:none;
203
+ }
204
+ }
205
+
206
+ .deck-status {
207
+ font-size:0.6666em;
208
+ }
209
+
210
+ &.deck-menu {
211
+ .slide {
212
+ background:transparent;
213
+ @include border-radius(5px);
214
+
215
+ .rgba & {
216
+ background:rgba(0,0,0,.1);
217
+ }
218
+
219
+ &.deck-current, .rgba &.deck-current, .no-touch &:hover {
220
+ background:#fff;
221
+ }
222
+ }
223
+ }
224
+
225
+ .goto-form {
226
+ background:#fff;
227
+ border:1px solid #cde;
228
+ @include border-radius(5px);
229
+
230
+ .boxshadow & {
231
+ -webkit-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;
232
+ -moz-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;
233
+ 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;
234
+ }
235
+ }
236
+ }
237
+
238
+
@@ -0,0 +1,44 @@
1
+ .csstransitions.csstransforms .deck-container .slide {
2
+ -webkit-transition: opacity 500ms ease-in-out 0ms;
3
+ -moz-transition: opacity 500ms ease-in-out 0ms;
4
+ -ms-transition: opacity 500ms ease-in-out 0ms;
5
+ -o-transition: opacity 500ms ease-in-out 0ms;
6
+ transition: opacity 500ms ease-in-out 0ms;
7
+ }
8
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide {
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ -webkit-box-sizing: border-box;
13
+ -moz-box-sizing: border-box;
14
+ box-sizing: border-box;
15
+ width: 100%;
16
+ padding: 0 48px;
17
+ }
18
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .slide {
19
+ position: relative;
20
+ left: 0;
21
+ top: 0;
22
+ opacity: 0;
23
+ }
24
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-before, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-previous {
25
+ opacity: 0.4;
26
+ }
27
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-current {
28
+ opacity: 1;
29
+ }
30
+ .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 {
31
+ opacity: 0;
32
+ pointer-events: none;
33
+ }
34
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before .slide, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous .slide {
35
+ visibility: visible;
36
+ }
37
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current {
38
+ opacity: 1;
39
+ visibility: visible;
40
+ pointer-events: auto;
41
+ }
42
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current .deck-after {
43
+ visibility: hidden;
44
+ }
@@ -0,0 +1,70 @@
1
+ @mixin translate($x: 0, $y: 0, $z: 0) {
2
+ -webkit-transform:translate3d($x, $y, $z);
3
+ -moz-transform:translate($x, $y);
4
+ -ms-transform:translate($x, $y);
5
+ -o-transform:translate($x, $y);
6
+ transform:translate3d($x, $y, $z);
7
+ }
8
+
9
+ @mixin transition($prop, $duration, $easing: ease-in-out, $delay: 0ms) {
10
+ -webkit-transition:$prop $duration $easing $delay;
11
+ -moz-transition:$prop $duration $easing $delay;
12
+ -ms-transition:$prop $duration $easing $delay;
13
+ -o-transition:$prop $duration $easing $delay;
14
+ transition:$prop $duration $easing $delay;
15
+ }
16
+
17
+ .csstransitions.csstransforms {
18
+ .deck-container .slide {
19
+ @include transition(opacity, 500ms);
20
+ }
21
+
22
+ .deck-container:not(.deck-menu) {
23
+ > .slide {
24
+ position:absolute;
25
+ top:0;
26
+ left:0;
27
+ -webkit-box-sizing: border-box;
28
+ -moz-box-sizing: border-box;
29
+ box-sizing: border-box;
30
+ width:100%;
31
+ padding:0 48px;
32
+
33
+ .slide {
34
+ position:relative;
35
+ left:0;
36
+ top:0;
37
+ opacity:0;
38
+ }
39
+
40
+ .deck-before, .deck-previous {
41
+ opacity:0.4;
42
+ }
43
+
44
+ .deck-current {
45
+ opacity:1;
46
+ }
47
+ }
48
+
49
+ > .deck-previous, > .deck-before, > .deck-next, > .deck-after {
50
+ opacity:0;
51
+ pointer-events:none;
52
+ }
53
+
54
+ > .deck-before, > .deck-previous {
55
+ .slide {
56
+ visibility:visible;
57
+ }
58
+ }
59
+
60
+ > .deck-child-current {
61
+ opacity:1;
62
+ visibility:visible;
63
+ pointer-events:auto;
64
+
65
+ .deck-next, .deck-after {
66
+ visibility:hidden;
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,79 @@
1
+ .csstransitions.csstransforms {
2
+ overflow-x: hidden;
3
+ }
4
+ .csstransitions.csstransforms .deck-container > .slide {
5
+ -webkit-transition: -webkit-transform 500ms ease-in-out;
6
+ -moz-transition: -moz-transform 500ms ease-in-out;
7
+ -ms-transition: -ms-transform 500ms ease-in-out;
8
+ -o-transition: -o-transform 500ms ease-in-out;
9
+ transition: transform 500ms ease-in-out;
10
+ }
11
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide {
12
+ position: absolute;
13
+ top: 0;
14
+ left: 0;
15
+ -webkit-box-sizing: border-box;
16
+ -moz-box-sizing: border-box;
17
+ box-sizing: border-box;
18
+ width: 100%;
19
+ padding: 0 48px;
20
+ }
21
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .slide {
22
+ position: relative;
23
+ left: 0;
24
+ top: 0;
25
+ -webkit-transition: -webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
26
+ -moz-transition: -moz-transform 500ms ease-in-out, opacity 500ms ease-in-out;
27
+ -ms-transition: -ms-transform 500ms ease-in-out, opacity 500ms ease-in-out;
28
+ -o-transition: -o-transform 500ms ease-in-out, opacity 500ms ease-in-out;
29
+ transition: -webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
30
+ }
31
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-after {
32
+ visibility: visible;
33
+ -webkit-transform: translate3d(200%, 0, 0);
34
+ -moz-transform: translate(200%, 0);
35
+ -ms-transform: translate(200%, 0);
36
+ -o-transform: translate(200%, 0);
37
+ transform: translate3d(200%, 0, 0);
38
+ }
39
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-before, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-previous {
40
+ opacity: 0.4;
41
+ }
42
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous {
43
+ -webkit-transform: translate3d(-200%, 0, 0);
44
+ -moz-transform: translate(-200%, 0);
45
+ -ms-transform: translate(-200%, 0);
46
+ -o-transform: translate(-200%, 0);
47
+ transform: translate3d(-200%, 0, 0);
48
+ }
49
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before {
50
+ -webkit-transform: translate3d(-400%, 0, 0);
51
+ -moz-transform: translate(-400%, 0);
52
+ -ms-transform: translate(-400%, 0);
53
+ -o-transform: translate(-400%, 0);
54
+ transform: translate3d(-400%, 0, 0);
55
+ }
56
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-next {
57
+ -webkit-transform: translate3d(200%, 0, 0);
58
+ -moz-transform: translate(200%, 0);
59
+ -ms-transform: translate(200%, 0);
60
+ -o-transform: translate(200%, 0);
61
+ transform: translate3d(200%, 0, 0);
62
+ }
63
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-after {
64
+ -webkit-transform: translate3d(400%, 0, 0);
65
+ -moz-transform: translate(400%, 0);
66
+ -ms-transform: translate(400%, 0);
67
+ -o-transform: translate(400%, 0);
68
+ transform: translate3d(400%, 0, 0);
69
+ }
70
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before .slide, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous .slide {
71
+ visibility: visible;
72
+ }
73
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current {
74
+ -webkit-transform: none;
75
+ -moz-transform: none;
76
+ -ms-transform: none;
77
+ -o-transform: none;
78
+ transform: none;
79
+ }