slider 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/lib/slider/version.rb +1 -1
  2. data/templates/basic.erb +50 -0
  3. data/templates/basic/deck.js/core/deck.core.css +404 -0
  4. data/templates/basic/deck.js/core/deck.core.html +39 -0
  5. data/templates/basic/deck.js/core/deck.core.js +498 -0
  6. data/templates/basic/deck.js/core/deck.core.scss +447 -0
  7. data/templates/basic/deck.js/goto/deck.goto.css +41 -0
  8. data/templates/basic/deck.js/goto/deck.goto.html +7 -0
  9. data/templates/basic/deck.js/goto/deck.goto.js +134 -0
  10. data/templates/basic/deck.js/goto/deck.goto.scss +46 -0
  11. data/templates/basic/deck.js/hash/deck.hash.css +13 -0
  12. data/templates/basic/deck.js/hash/deck.hash.html +2 -0
  13. data/templates/basic/deck.js/hash/deck.hash.js +129 -0
  14. data/templates/basic/deck.js/hash/deck.hash.scss +15 -0
  15. data/templates/basic/deck.js/menu/deck.menu.css +47 -0
  16. data/templates/basic/deck.js/menu/deck.menu.js +183 -0
  17. data/templates/basic/deck.js/menu/deck.menu.scss +58 -0
  18. data/templates/basic/deck.js/navigation/deck.navigation.css +43 -0
  19. data/templates/basic/deck.js/navigation/deck.navigation.html +3 -0
  20. data/templates/basic/deck.js/navigation/deck.navigation.js +83 -0
  21. data/templates/basic/deck.js/navigation/deck.navigation.scss +56 -0
  22. data/templates/basic/deck.js/scale/deck.scale.css +16 -0
  23. data/templates/basic/deck.js/scale/deck.scale.js +155 -0
  24. data/templates/basic/deck.js/scale/deck.scale.scss +17 -0
  25. data/templates/basic/deck.js/status/deck.status.css +18 -0
  26. data/templates/basic/deck.js/status/deck.status.html +6 -0
  27. data/templates/basic/deck.js/status/deck.status.js +83 -0
  28. data/templates/basic/deck.js/status/deck.status.scss +22 -0
  29. data/templates/basic/deck.js/style/neon.css +114 -0
  30. data/templates/basic/deck.js/style/neon.scss +139 -0
  31. data/templates/basic/deck.js/style/swiss.css +76 -0
  32. data/templates/basic/deck.js/style/swiss.scss +91 -0
  33. data/templates/basic/deck.js/style/web-2.0.css +205 -0
  34. data/templates/basic/deck.js/style/web-2.0.scss +236 -0
  35. data/templates/basic/deck.js/transition/fade.css +44 -0
  36. data/templates/basic/deck.js/transition/fade.scss +70 -0
  37. data/templates/basic/deck.js/transition/horizontal-slide.css +79 -0
  38. data/templates/basic/deck.js/transition/horizontal-slide.scss +94 -0
  39. data/templates/basic/deck.js/transition/vertical-slide.css +97 -0
  40. data/templates/basic/deck.js/transition/vertical-slide.scss +116 -0
  41. data/templates/basic/jquery.min.js +4 -0
  42. data/templates/basic/modernizr.custom.js +4 -0
  43. data/templates/basic/railscasts.css +64 -0
  44. metadata +43 -1
@@ -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
+ }