eggplant 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +66 -0
- data/README.md +30 -0
- data/Rakefile +8 -0
- data/bin/eggplant +5 -0
- data/eggplant.gemspec +34 -0
- data/lib/eggplant.rb +8 -0
- data/lib/eggplant/assets/css/eggplant/main.css +77 -0
- data/lib/eggplant/assets/css/vendor/deck.core.css +393 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.codemirror.css +89 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.goto.css +41 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.hash.css +13 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.menu.css +24 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.navigation.css +43 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.scale.css +16 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.status.css +14 -0
- data/lib/eggplant/assets/css/vendor/extensions/deck.subslides.css +9 -0
- data/lib/eggplant/assets/css/vendor/themes/neon.css +114 -0
- data/lib/eggplant/assets/css/vendor/themes/swiss.css +75 -0
- data/lib/eggplant/assets/css/vendor/themes/web-2.0.css +187 -0
- data/lib/eggplant/assets/css/vendor/transitions/fade.css +43 -0
- data/lib/eggplant/assets/css/vendor/transitions/horizontal-slide.css +79 -0
- data/lib/eggplant/assets/css/vendor/transitions/vertical-slide.css +97 -0
- data/lib/eggplant/assets/js/eggplant/main.js +38 -0
- data/lib/eggplant/assets/js/eggplant/remote.js +0 -0
- data/lib/eggplant/assets/js/vendor/coffee-script.js +8 -0
- data/lib/eggplant/assets/js/vendor/deck.core.js +457 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.goto.js +118 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.hash.js +113 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.menu.js +127 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.navigation.js +83 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.scale.js +155 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.status.js +42 -0
- data/lib/eggplant/assets/js/vendor/extensions/deck.subslides.js +50 -0
- data/lib/eggplant/assets/js/vendor/jquery.js +9046 -0
- data/lib/eggplant/assets/js/vendor/less.js +2769 -0
- data/lib/eggplant/assets/js/vendor/modernizr.js +1116 -0
- data/lib/eggplant/cli.rb +113 -0
- data/lib/eggplant/markdown.rb +76 -0
- data/lib/eggplant/server.rb +168 -0
- data/lib/eggplant/slides.rb +65 -0
- data/lib/eggplant/version.rb +3 -0
- data/lib/eggplant/views/remote.slim +17 -0
- data/lib/eggplant/views/show.slim +47 -0
- metadata +281 -0
@@ -0,0 +1,187 @@
|
|
1
|
+
.deck-container {
|
2
|
+
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
|
3
|
+
font-size: 1.25em;
|
4
|
+
background: #f4fafe;
|
5
|
+
/* Old browsers */
|
6
|
+
background: -moz-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
|
7
|
+
/* FF3.6+ */
|
8
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f4fafe), color-stop(100%, #ccf0f0));
|
9
|
+
/* Chrome,Safari4+ */
|
10
|
+
background: -webkit-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
|
11
|
+
/* Chrome10+,Safari5.1+ */
|
12
|
+
background: -o-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
|
13
|
+
/* Opera11.10+ */
|
14
|
+
background: -ms-linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
|
15
|
+
/* IE10+ */
|
16
|
+
background: linear-gradient(top, #f4fafe 0%, #ccf0f0 100%);
|
17
|
+
/* W3C */
|
18
|
+
background-attachment: fixed;
|
19
|
+
}
|
20
|
+
.deck-container > .slide {
|
21
|
+
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
|
22
|
+
}
|
23
|
+
.deck-container h1, .deck-container h2, .deck-container h3, .deck-container h4, .deck-container h5, .deck-container h6 {
|
24
|
+
font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
|
25
|
+
}
|
26
|
+
.deck-container h1 {
|
27
|
+
color: #08455f;
|
28
|
+
}
|
29
|
+
.deck-container h2 {
|
30
|
+
color: #0b7495;
|
31
|
+
border-bottom: 0;
|
32
|
+
}
|
33
|
+
.cssreflections .deck-container h2 {
|
34
|
+
line-height: 1;
|
35
|
+
-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));
|
36
|
+
-moz-box-reflect: below -0.556em -moz-linear-gradient(top, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.3) 100%);
|
37
|
+
}
|
38
|
+
.deck-container h3 {
|
39
|
+
color: #000;
|
40
|
+
}
|
41
|
+
.deck-container pre {
|
42
|
+
border-color: #cde;
|
43
|
+
background: #fff;
|
44
|
+
position: relative;
|
45
|
+
/* http://nicolasgallagher.com/css-drop-shadows-without-images/ */
|
46
|
+
}
|
47
|
+
.borderradius .deck-container pre {
|
48
|
+
-webkit-border-radius: 5px;
|
49
|
+
-moz-border-radius: 5px;
|
50
|
+
border-radius: 5px;
|
51
|
+
}
|
52
|
+
.csstransforms.boxshadow .deck-container pre:before, .csstransforms.boxshadow .deck-container pre:after {
|
53
|
+
content: "";
|
54
|
+
position: absolute;
|
55
|
+
z-index: -1;
|
56
|
+
bottom: 15px;
|
57
|
+
width: 50%;
|
58
|
+
height: 20%;
|
59
|
+
max-width: 300px;
|
60
|
+
-webkit-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
|
61
|
+
-moz-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
|
62
|
+
box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7);
|
63
|
+
}
|
64
|
+
.csstransforms.boxshadow .deck-container pre:before {
|
65
|
+
left: 10px;
|
66
|
+
-webkit-transform: rotate(-3deg);
|
67
|
+
-moz-transform: rotate(-3deg);
|
68
|
+
-ms-transform: rotate(-3deg);
|
69
|
+
-o-transform: rotate(-3deg);
|
70
|
+
transform: rotate(-3deg);
|
71
|
+
}
|
72
|
+
.csstransforms.boxshadow .deck-container pre:after {
|
73
|
+
right: 10px;
|
74
|
+
-webkit-transform: rotate(3deg);
|
75
|
+
-moz-transform: rotate(3deg);
|
76
|
+
-ms-transform: rotate(3deg);
|
77
|
+
-o-transform: rotate(3deg);
|
78
|
+
transform: rotate(3deg);
|
79
|
+
}
|
80
|
+
.deck-container code {
|
81
|
+
color: #789;
|
82
|
+
}
|
83
|
+
.deck-container blockquote {
|
84
|
+
font-family: "Hoefler Text", Constantia, Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
|
85
|
+
font-size: 2em;
|
86
|
+
padding: 1em 2em .5em 2em;
|
87
|
+
color: #000;
|
88
|
+
background: #fff;
|
89
|
+
position: relative;
|
90
|
+
border: 1px solid #cde;
|
91
|
+
}
|
92
|
+
.borderradius .deck-container blockquote {
|
93
|
+
-webkit-border-radius: 5px;
|
94
|
+
-moz-border-radius: 5px;
|
95
|
+
border-radius: 5px;
|
96
|
+
}
|
97
|
+
.boxshadow .deck-container blockquote:after {
|
98
|
+
content: "";
|
99
|
+
position: absolute;
|
100
|
+
z-index: -1;
|
101
|
+
top: 10px;
|
102
|
+
bottom: 10px;
|
103
|
+
left: 0;
|
104
|
+
right: 50%;
|
105
|
+
-moz-border-radius: 10px/100px;
|
106
|
+
border-radius: 10px/100px;
|
107
|
+
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
|
108
|
+
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
|
109
|
+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
|
110
|
+
}
|
111
|
+
.deck-container blockquote p {
|
112
|
+
margin: 0;
|
113
|
+
}
|
114
|
+
.deck-container blockquote cite {
|
115
|
+
font-size: .5em;
|
116
|
+
font-style: normal;
|
117
|
+
font-weight: bold;
|
118
|
+
color: #888;
|
119
|
+
}
|
120
|
+
.deck-container blockquote:before {
|
121
|
+
content: "“";
|
122
|
+
position: absolute;
|
123
|
+
top: 0;
|
124
|
+
left: 0;
|
125
|
+
font-size: 5em;
|
126
|
+
line-height: 1;
|
127
|
+
color: #ccf0f0;
|
128
|
+
z-index: 1;
|
129
|
+
}
|
130
|
+
.deck-container .borderradius img {
|
131
|
+
-webkit-border-radius: 5px;
|
132
|
+
-moz-border-radius: 5px;
|
133
|
+
border-radius: 5px;
|
134
|
+
}
|
135
|
+
.deck-container ::-moz-selection {
|
136
|
+
background: #08455f;
|
137
|
+
color: #fff;
|
138
|
+
}
|
139
|
+
.deck-container ::selection {
|
140
|
+
background: #08455f;
|
141
|
+
color: #fff;
|
142
|
+
}
|
143
|
+
.deck-container a, .deck-container a:hover, .deck-container a:focus, .deck-container a:active, .deck-container a:visited {
|
144
|
+
color: #599;
|
145
|
+
text-decoration: none;
|
146
|
+
}
|
147
|
+
.deck-container a:hover, .deck-container a:focus {
|
148
|
+
text-decoration: underline;
|
149
|
+
}
|
150
|
+
.deck-container .deck-prev-link, .deck-container .deck-next-link {
|
151
|
+
background: #fff;
|
152
|
+
opacity: 0.5;
|
153
|
+
}
|
154
|
+
.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 {
|
155
|
+
color: #599;
|
156
|
+
}
|
157
|
+
.deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus {
|
158
|
+
opacity: 1;
|
159
|
+
text-decoration: none;
|
160
|
+
}
|
161
|
+
.deck-container .deck-status {
|
162
|
+
font-size: 0.6666em;
|
163
|
+
}
|
164
|
+
.deck-container.deck-menu .slide {
|
165
|
+
background: transparent;
|
166
|
+
-webkit-border-radius: 5px;
|
167
|
+
-moz-border-radius: 5px;
|
168
|
+
border-radius: 5px;
|
169
|
+
}
|
170
|
+
.rgba .deck-container.deck-menu .slide {
|
171
|
+
background: rgba(0, 0, 0, 0.1);
|
172
|
+
}
|
173
|
+
.deck-container.deck-menu .slide.deck-current, .rgba .deck-container.deck-menu .slide.deck-current, .no-touch .deck-container.deck-menu .slide:hover {
|
174
|
+
background: #fff;
|
175
|
+
}
|
176
|
+
.deck-container .goto-form {
|
177
|
+
background: #fff;
|
178
|
+
border: 1px solid #cde;
|
179
|
+
-webkit-border-radius: 5px;
|
180
|
+
-moz-border-radius: 5px;
|
181
|
+
border-radius: 5px;
|
182
|
+
}
|
183
|
+
.boxshadow .deck-container .goto-form {
|
184
|
+
-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;
|
185
|
+
-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;
|
186
|
+
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;
|
187
|
+
}
|
@@ -0,0 +1,43 @@
|
|
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
|
+
}
|
41
|
+
.csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current .deck-after {
|
42
|
+
visibility: hidden;
|
43
|
+
}
|
@@ -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,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,38 @@
|
|
1
|
+
$(function() {
|
2
|
+
|
3
|
+
var $d = $(document);
|
4
|
+
|
5
|
+
// // Default CodeMirror Theme
|
6
|
+
// $.extend(true, $.deck.defaults, {
|
7
|
+
// codemirror : {
|
8
|
+
// theme : this.CODE_HIGHLIGHT_THEME || "night"
|
9
|
+
// },
|
10
|
+
// selectors: {
|
11
|
+
// codemirroritem: 'pre.highlight > code'
|
12
|
+
// }
|
13
|
+
// });
|
14
|
+
|
15
|
+
// Extract Notes
|
16
|
+
$d.bind('deck.init', function() {
|
17
|
+
$.each($.deck('getSlides'), function() {
|
18
|
+
var notes = $(this).find('.notes').map(function() {
|
19
|
+
return $(this).text();
|
20
|
+
});
|
21
|
+
$(this).data('notes', notes);
|
22
|
+
});
|
23
|
+
});
|
24
|
+
|
25
|
+
// Show Slide Title
|
26
|
+
$d.bind('deck.change', function(e, from, to) {
|
27
|
+
var slide = $.deck('getSlide', to)
|
28
|
+
var title = slide.data('title') || 'Eggplant';
|
29
|
+
$('head title').text(title);
|
30
|
+
});
|
31
|
+
|
32
|
+
// Incremetal bullets lists
|
33
|
+
$('.slide.incremental').find('li, article').addClass('slide');
|
34
|
+
|
35
|
+
// Render slides
|
36
|
+
$.deck('.slide');
|
37
|
+
|
38
|
+
});
|
File without changes
|