deckrb 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/README.md +84 -25
  2. data/bin/deck +3 -4
  3. data/lib/deck/rack_app.rb +39 -7
  4. data/lib/deck/slide.rb +9 -2
  5. data/lib/deck/slide_deck.rb +10 -13
  6. data/lib/deck/version.rb +1 -1
  7. data/public/coderay.css +84 -0
  8. data/public/deck.js/GPL-license.txt +278 -0
  9. data/public/deck.js/MIT-license.txt +21 -0
  10. data/public/deck.js/README.md +57 -0
  11. data/public/deck.js/core/deck.core.css +404 -0
  12. data/public/deck.js/core/deck.core.html +39 -0
  13. data/public/deck.js/core/deck.core.js +498 -0
  14. data/public/deck.js/core/deck.core.scss +447 -0
  15. data/public/deck.js/extensions/goto/deck.goto.css +41 -0
  16. data/public/deck.js/extensions/goto/deck.goto.html +7 -0
  17. data/public/deck.js/extensions/goto/deck.goto.js +134 -0
  18. data/public/deck.js/extensions/goto/deck.goto.scss +46 -0
  19. data/public/deck.js/extensions/hash/deck.hash.css +13 -0
  20. data/public/deck.js/extensions/hash/deck.hash.html +2 -0
  21. data/public/deck.js/extensions/hash/deck.hash.js +129 -0
  22. data/public/deck.js/extensions/hash/deck.hash.scss +15 -0
  23. data/public/deck.js/extensions/menu/deck.menu.css +47 -0
  24. data/public/deck.js/extensions/menu/deck.menu.js +187 -0
  25. data/public/deck.js/extensions/menu/deck.menu.scss +58 -0
  26. data/public/deck.js/extensions/navigation/deck.navigation.css +43 -0
  27. data/public/deck.js/extensions/navigation/deck.navigation.html +3 -0
  28. data/public/deck.js/extensions/navigation/deck.navigation.js +91 -0
  29. data/public/deck.js/extensions/navigation/deck.navigation.scss +56 -0
  30. data/public/deck.js/extensions/scale/deck.scale.css +16 -0
  31. data/public/deck.js/extensions/scale/deck.scale.js +156 -0
  32. data/public/deck.js/extensions/scale/deck.scale.scss +17 -0
  33. data/public/deck.js/extensions/status/deck.status.css +18 -0
  34. data/public/deck.js/extensions/status/deck.status.html +6 -0
  35. data/public/deck.js/extensions/status/deck.status.js +95 -0
  36. data/public/deck.js/extensions/status/deck.status.scss +22 -0
  37. data/public/deck.js/extensions/theme-picker/deck.theme-picker.css +55 -0
  38. data/public/deck.js/extensions/theme-picker/deck.theme-picker.js +13 -0
  39. data/public/deck.js/introduction/index.html +221 -0
  40. data/public/deck.js/introduction/index.rb +101 -0
  41. data/public/deck.js/jquery-1.7.min.js +4 -0
  42. data/public/deck.js/modernizr.custom.js +4 -0
  43. data/public/deck.js/test/fixtures/complex.html +24 -0
  44. data/public/deck.js/test/fixtures/empty.html +19 -0
  45. data/public/deck.js/test/fixtures/iframe_simple.html +10 -0
  46. data/public/deck.js/test/fixtures/iframes.html +32 -0
  47. data/public/deck.js/test/fixtures/nesteds.html +36 -0
  48. data/public/deck.js/test/fixtures/standard.html +42 -0
  49. data/public/deck.js/test/index.html +39 -0
  50. data/public/deck.js/test/lib/jasmine-html.js +190 -0
  51. data/public/deck.js/test/lib/jasmine-jquery.js +288 -0
  52. data/public/deck.js/test/lib/jasmine.css +166 -0
  53. data/public/deck.js/test/lib/jasmine.js +2477 -0
  54. data/public/deck.js/test/settings.js +3 -0
  55. data/public/deck.js/test/spec.core.js +434 -0
  56. data/public/deck.js/test/spec.goto.js +119 -0
  57. data/public/deck.js/test/spec.hash.js +81 -0
  58. data/public/deck.js/test/spec.menu.js +66 -0
  59. data/public/deck.js/test/spec.navigation.js +51 -0
  60. data/public/deck.js/test/spec.scale.js +57 -0
  61. data/public/deck.js/test/spec.status.js +58 -0
  62. data/public/deck.js/themes/style/neon.css +114 -0
  63. data/public/deck.js/themes/style/neon.scss +139 -0
  64. data/public/deck.js/themes/style/swiss.css +75 -0
  65. data/public/deck.js/themes/style/swiss.scss +91 -0
  66. data/public/deck.js/themes/style/web-2.0.css +205 -0
  67. data/public/deck.js/themes/style/web-2.0.scss +236 -0
  68. data/public/deck.js/themes/transition/fade.css +44 -0
  69. data/public/deck.js/themes/transition/fade.scss +70 -0
  70. data/public/deck.js/themes/transition/horizontal-slide.css +79 -0
  71. data/public/deck.js/themes/transition/horizontal-slide.scss +94 -0
  72. data/public/deck.js/themes/transition/vertical-slide.css +97 -0
  73. data/public/deck.js/themes/transition/vertical-slide.scss +116 -0
  74. data/public/favicon.ico +0 -0
  75. data/spec/rack_app_spec.rb +101 -33
  76. data/spec/slide_deck_spec.rb +6 -7
  77. data/spec/slide_spec.rb +19 -0
  78. metadata +95 -16
@@ -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
+ }
@@ -0,0 +1,94 @@
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
+ @mixin transform($val) {
18
+ -webkit-transform:$val;
19
+ -moz-transform:$val;
20
+ -ms-transform:$val;
21
+ -o-transform:$val;
22
+ transform:$val;
23
+ }
24
+
25
+ .csstransitions.csstransforms {
26
+ overflow-x:hidden;
27
+
28
+ .deck-container > .slide {
29
+ -webkit-transition:-webkit-transform 500ms ease-in-out;
30
+ -moz-transition:-moz-transform 500ms ease-in-out;
31
+ -ms-transition:-ms-transform 500ms ease-in-out;
32
+ -o-transition:-o-transform 500ms ease-in-out;
33
+ transition:transform 500ms ease-in-out;
34
+ }
35
+
36
+ .deck-container:not(.deck-menu) {
37
+ > .slide {
38
+ position:absolute;
39
+ top:0;
40
+ left:0;
41
+ -webkit-box-sizing: border-box;
42
+ -moz-box-sizing: border-box;
43
+ box-sizing: border-box;
44
+ width:100%;
45
+ padding:0 48px;
46
+
47
+ .slide {
48
+ position:relative;
49
+ left:0;
50
+ top:0;
51
+ -webkit-transition:-webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
52
+ -moz-transition:-moz-transform 500ms ease-in-out, opacity 500ms ease-in-out;
53
+ -ms-transition:-ms-transform 500ms ease-in-out, opacity 500ms ease-in-out;
54
+ -o-transition:-o-transform 500ms ease-in-out, opacity 500ms ease-in-out;
55
+ transition:-webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
56
+ }
57
+
58
+ .deck-next, .deck-after {
59
+ visibility:visible;
60
+ @include translate(200%);
61
+ }
62
+
63
+ .deck-before, .deck-previous {
64
+ opacity:0.4;
65
+ }
66
+ }
67
+
68
+ > .deck-previous {
69
+ @include translate(-200%);
70
+ }
71
+
72
+ > .deck-before {
73
+ @include translate(-400%);
74
+ }
75
+
76
+ > .deck-next {
77
+ @include translate(200%);
78
+ }
79
+
80
+ > .deck-after {
81
+ @include translate(400%);
82
+ }
83
+
84
+ > .deck-before, > .deck-previous {
85
+ .slide {
86
+ visibility:visible;
87
+ }
88
+ }
89
+
90
+ > .deck-child-current {
91
+ @include transform(none);
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,97 @@
1
+ .csstransitions.csstransforms .deck-container {
2
+ overflow-y: 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(0, 1600px, 0);
34
+ -moz-transform: translate(0, 1600px);
35
+ -ms-transform: translate(0, 1600px);
36
+ -o-transform: translate(0, 1600px);
37
+ transform: translate3d(0, 1600px, 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(0, -200%, 0);
44
+ -moz-transform: translate(0, -200%);
45
+ -ms-transform: translate(0, -200%);
46
+ -o-transform: translate(0, -200%);
47
+ transform: translate3d(0, -200%, 0);
48
+ }
49
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before {
50
+ -webkit-transform: translate3d(0, -400%, 0);
51
+ -moz-transform: translate(0, -400%);
52
+ -ms-transform: translate(0, -400%);
53
+ -o-transform: translate(0, -400%);
54
+ transform: translate3d(0, -400%, 0);
55
+ }
56
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-next {
57
+ -webkit-transform: translate3d(0, 200%, 0);
58
+ -moz-transform: translate(0, 200%);
59
+ -ms-transform: translate(0, 200%);
60
+ -o-transform: translate(0, 200%);
61
+ transform: translate3d(0, 200%, 0);
62
+ }
63
+ .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-after {
64
+ -webkit-transform: translate3d(0, 400%, 0);
65
+ -moz-transform: translate(0, 400%);
66
+ -ms-transform: translate(0, 400%);
67
+ -o-transform: translate(0, 400%);
68
+ transform: translate3d(0, 400%, 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
+ }
80
+ .csstransitions.csstransforms .deck-prev-link {
81
+ left: auto;
82
+ right: 8px;
83
+ top: 59px;
84
+ -webkit-transform: rotate(90deg);
85
+ -moz-transform: rotate(90deg);
86
+ -ms-transform: rotate(90deg);
87
+ -o-transform: rotate(90deg);
88
+ transform: rotate(90deg);
89
+ }
90
+ .csstransitions.csstransforms .deck-next-link {
91
+ top: 99px;
92
+ -webkit-transform: rotate(90deg);
93
+ -moz-transform: rotate(90deg);
94
+ -ms-transform: rotate(90deg);
95
+ -o-transform: rotate(90deg);
96
+ transform: rotate(90deg);
97
+ }
@@ -0,0 +1,116 @@
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 rotate($deg) {
10
+ -webkit-transform:rotate($deg);
11
+ -moz-transform:rotate($deg);
12
+ -ms-transform:rotate($deg);
13
+ -o-transform:rotate($deg);
14
+ transform:rotate($deg);
15
+ }
16
+
17
+ @mixin transition($prop, $duration, $easing: ease-in-out, $delay: 0ms) {
18
+ -webkit-transition:$prop $duration $easing $delay;
19
+ -moz-transition:$prop $duration $easing $delay;
20
+ -ms-transition:$prop $duration $easing $delay;
21
+ -o-transition:$prop $duration $easing $delay;
22
+ transition:$prop $duration $easing $delay;
23
+ }
24
+
25
+ @mixin transform($val) {
26
+ -webkit-transform:$val;
27
+ -moz-transform:$val;
28
+ -ms-transform:$val;
29
+ -o-transform:$val;
30
+ transform:$val;
31
+ }
32
+
33
+ .csstransitions.csstransforms {
34
+ .deck-container {
35
+ overflow-y:hidden;
36
+
37
+ > .slide {
38
+ -webkit-transition:-webkit-transform 500ms ease-in-out;
39
+ -moz-transition:-moz-transform 500ms ease-in-out;
40
+ -ms-transition:-ms-transform 500ms ease-in-out;
41
+ -o-transition:-o-transform 500ms ease-in-out;
42
+ transition:transform 500ms ease-in-out;
43
+ }
44
+ }
45
+
46
+ .deck-container:not(.deck-menu) {
47
+ > .slide {
48
+ position:absolute;
49
+ top:0;
50
+ left:0;
51
+ -webkit-box-sizing: border-box;
52
+ -moz-box-sizing: border-box;
53
+ box-sizing: border-box;
54
+ width:100%;
55
+ padding:0 48px;
56
+
57
+ .slide {
58
+ position:relative;
59
+ left:0;
60
+ top:0;
61
+ -webkit-transition:-webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
62
+ -moz-transition:-moz-transform 500ms ease-in-out, opacity 500ms ease-in-out;
63
+ -ms-transition:-ms-transform 500ms ease-in-out, opacity 500ms ease-in-out;
64
+ -o-transition:-o-transform 500ms ease-in-out, opacity 500ms ease-in-out;
65
+ transition:-webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out;
66
+ }
67
+
68
+ .deck-next, .deck-after {
69
+ visibility:visible;
70
+ @include translate(0, 1600px);
71
+ }
72
+
73
+ .deck-before, .deck-previous {
74
+ opacity:0.4;
75
+ }
76
+ }
77
+
78
+ > .deck-previous {
79
+ @include translate(0, -200%);
80
+ }
81
+
82
+ > .deck-before {
83
+ @include translate(0, -400%);
84
+ }
85
+
86
+ > .deck-next {
87
+ @include translate(0, 200%);
88
+ }
89
+
90
+ > .deck-after {
91
+ @include translate(0, 400%);
92
+ }
93
+
94
+ > .deck-before, > .deck-previous {
95
+ .slide {
96
+ visibility:visible;
97
+ }
98
+ }
99
+
100
+ > .deck-child-current {
101
+ @include transform(none);
102
+ }
103
+ }
104
+
105
+ .deck-prev-link {
106
+ left:auto;
107
+ right:8px;
108
+ top:59px;
109
+ @include rotate(90deg);
110
+ }
111
+
112
+ .deck-next-link {
113
+ top:99px;
114
+ @include rotate(90deg);
115
+ }
116
+ }