eggplant 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +6 -0
  3. data/Gemfile.lock +66 -0
  4. data/README.md +30 -0
  5. data/Rakefile +8 -0
  6. data/bin/eggplant +5 -0
  7. data/eggplant.gemspec +34 -0
  8. data/lib/eggplant.rb +8 -0
  9. data/lib/eggplant/assets/css/eggplant/main.css +77 -0
  10. data/lib/eggplant/assets/css/vendor/deck.core.css +393 -0
  11. data/lib/eggplant/assets/css/vendor/extensions/deck.codemirror.css +89 -0
  12. data/lib/eggplant/assets/css/vendor/extensions/deck.goto.css +41 -0
  13. data/lib/eggplant/assets/css/vendor/extensions/deck.hash.css +13 -0
  14. data/lib/eggplant/assets/css/vendor/extensions/deck.menu.css +24 -0
  15. data/lib/eggplant/assets/css/vendor/extensions/deck.navigation.css +43 -0
  16. data/lib/eggplant/assets/css/vendor/extensions/deck.scale.css +16 -0
  17. data/lib/eggplant/assets/css/vendor/extensions/deck.status.css +14 -0
  18. data/lib/eggplant/assets/css/vendor/extensions/deck.subslides.css +9 -0
  19. data/lib/eggplant/assets/css/vendor/themes/neon.css +114 -0
  20. data/lib/eggplant/assets/css/vendor/themes/swiss.css +75 -0
  21. data/lib/eggplant/assets/css/vendor/themes/web-2.0.css +187 -0
  22. data/lib/eggplant/assets/css/vendor/transitions/fade.css +43 -0
  23. data/lib/eggplant/assets/css/vendor/transitions/horizontal-slide.css +79 -0
  24. data/lib/eggplant/assets/css/vendor/transitions/vertical-slide.css +97 -0
  25. data/lib/eggplant/assets/js/eggplant/main.js +38 -0
  26. data/lib/eggplant/assets/js/eggplant/remote.js +0 -0
  27. data/lib/eggplant/assets/js/vendor/coffee-script.js +8 -0
  28. data/lib/eggplant/assets/js/vendor/deck.core.js +457 -0
  29. data/lib/eggplant/assets/js/vendor/extensions/deck.goto.js +118 -0
  30. data/lib/eggplant/assets/js/vendor/extensions/deck.hash.js +113 -0
  31. data/lib/eggplant/assets/js/vendor/extensions/deck.menu.js +127 -0
  32. data/lib/eggplant/assets/js/vendor/extensions/deck.navigation.js +83 -0
  33. data/lib/eggplant/assets/js/vendor/extensions/deck.scale.js +155 -0
  34. data/lib/eggplant/assets/js/vendor/extensions/deck.status.js +42 -0
  35. data/lib/eggplant/assets/js/vendor/extensions/deck.subslides.js +50 -0
  36. data/lib/eggplant/assets/js/vendor/jquery.js +9046 -0
  37. data/lib/eggplant/assets/js/vendor/less.js +2769 -0
  38. data/lib/eggplant/assets/js/vendor/modernizr.js +1116 -0
  39. data/lib/eggplant/cli.rb +113 -0
  40. data/lib/eggplant/markdown.rb +76 -0
  41. data/lib/eggplant/server.rb +168 -0
  42. data/lib/eggplant/slides.rb +65 -0
  43. data/lib/eggplant/version.rb +3 -0
  44. data/lib/eggplant/views/remote.slim +17 -0
  45. data/lib/eggplant/views/show.slim +47 -0
  46. metadata +281 -0
@@ -0,0 +1,89 @@
1
+ .deck-container .slide {
2
+ font-weight: normal; }
3
+ .deck-container .slide .deck-codemirror-result {
4
+ border: 1px solid #ddd;
5
+ border-top: none;
6
+ padding: 10px;
7
+ font-family: monospace; }
8
+ .deck-container .slide .CodeMirror {
9
+ line-height: 1em;
10
+ font-family: monospace;
11
+ overflow: auto;
12
+ height: 100%;
13
+ border: 1px solid #ddd; }
14
+ .deck-container .slide .CodeMirror .button {
15
+ padding: 5px;
16
+ cursor: pointer;
17
+ background-color: #ddd;
18
+ position: relative;
19
+ float: right;
20
+ font-size: 11px;
21
+ line-height: 16px;
22
+ padding: 2px 6px;
23
+ margin-bottom: -20px;
24
+ margin-right: 10px;
25
+ border-radius: 4px;
26
+ -moz-border-radius: 4px;
27
+ -webkit-border-radius: 4px;
28
+ z-index: 1;
29
+ top: 8px; }
30
+ .deck-container .slide .CodeMirror .button:hover {
31
+ background-color: #eee; }
32
+ .deck-container .slide .CodeMirror-scroll {
33
+ /* overflow: auto; */
34
+ /* This is needed to prevent an IE[67] bug where the scrolled content
35
+ is visible outside of the scrolling box. */
36
+ position: relative;
37
+ height: auto;
38
+ overflow-y: hidden;
39
+ overflow-x: auto;
40
+ width: 100%; }
41
+ .deck-container .slide .CodeMirror-gutter {
42
+ position: absolute;
43
+ left: 0;
44
+ top: 0;
45
+ z-index: 10;
46
+ background-color: #f7f7f7;
47
+ border-right: 1px solid #eee;
48
+ min-width: 2em;
49
+ height: 100%; }
50
+ .deck-container .slide .CodeMirror-gutter-text {
51
+ color: #aaa;
52
+ text-align: right;
53
+ padding: .4em .2em .4em .4em; }
54
+ .deck-container .slide .CodeMirror-lines {
55
+ padding: .4em; }
56
+ .deck-container .slide .CodeMirror pre {
57
+ -moz-border-radius: 0;
58
+ -webkit-border-radius: 0;
59
+ -o-border-radius: 0;
60
+ border-radius: 0;
61
+ border-width: 0;
62
+ margin: 0;
63
+ padding: 0;
64
+ background: transparent;
65
+ font-family: inherit;
66
+ font-size: inherit;
67
+ padding: 0;
68
+ margin: 0;
69
+ white-space: pre;
70
+ word-wrap: normal; }
71
+ .deck-container .slide .CodeMirror textarea {
72
+ font-family: inherit !important;
73
+ font-size: inherit !important; }
74
+ .deck-container .slide .CodeMirror-cursor {
75
+ z-index: 10;
76
+ position: absolute;
77
+ visibility: hidden;
78
+ border-left: 1px solid black !important; }
79
+ .deck-container .slide .CodeMirror-focused .CodeMirror-cursor {
80
+ visibility: visible; }
81
+ .deck-container .slide span.CodeMirror-selected {
82
+ background: #ccc !important;
83
+ color: HighlightText !important; }
84
+ .deck-container .slide .CodeMirror-focused span.CodeMirror-selected {
85
+ background: Highlight !important; }
86
+ .deck-container .slide .CodeMirror-matchingbracket {
87
+ color: #0f0 !important; }
88
+ .deck-container .slide .CodeMirror-nonmatchingbracket {
89
+ color: #f22 !important; }
@@ -0,0 +1,41 @@
1
+ .deck-container .goto-form {
2
+ position: absolute;
3
+ z-index: 3;
4
+ bottom: 10px;
5
+ left: 50%;
6
+ height: 1.75em;
7
+ margin: 0 0 0 -7.125em;
8
+ line-height: 1.75em;
9
+ padding: 0.625em;
10
+ display: none;
11
+ background: #ccc;
12
+ overflow: hidden;
13
+ }
14
+ .borderradius .deck-container .goto-form {
15
+ -webkit-border-radius: 10px;
16
+ -moz-border-radius: 10px;
17
+ border-radius: 10px;
18
+ }
19
+ .deck-container .goto-form label {
20
+ font-weight: bold;
21
+ }
22
+ .deck-container .goto-form label, .deck-container .goto-form input {
23
+ display: inline-block;
24
+ font-family: inherit;
25
+ }
26
+
27
+ .deck-goto .goto-form {
28
+ display: block;
29
+ }
30
+
31
+ #goto-slide {
32
+ width: 4.375em;
33
+ margin: 0 0.625em;
34
+ height: 1.4375em;
35
+ }
36
+
37
+ @media print {
38
+ .goto-form, #goto-slide {
39
+ display: none !important;
40
+ }
41
+ }
@@ -0,0 +1,13 @@
1
+ .deck-container .deck-permalink {
2
+ display: none;
3
+ position: absolute;
4
+ z-index: 4;
5
+ bottom: 30px;
6
+ right: 0;
7
+ width: 48px;
8
+ text-align: center;
9
+ }
10
+
11
+ .no-history .deck-container:hover .deck-permalink {
12
+ display: block;
13
+ }
@@ -0,0 +1,24 @@
1
+ .deck-menu > .slide {
2
+ float: left;
3
+ width: 22%;
4
+ height: 22%;
5
+ min-height: 0;
6
+ margin: 1%;
7
+ font-size: 0.22em;
8
+ overflow: hidden;
9
+ padding: 0 0.5%;
10
+ }
11
+ .deck-menu .slide {
12
+ background: #eee;
13
+ position: relative;
14
+ left: 0;
15
+ top: 0;
16
+ visibility: visible;
17
+ cursor: pointer;
18
+ }
19
+ .deck-menu iframe, .deck-menu img, .deck-menu video {
20
+ max-width: 100%;
21
+ }
22
+ .deck-menu .deck-current, .no-touch .deck-menu .slide:hover {
23
+ background: #ddf;
24
+ }
@@ -0,0 +1,43 @@
1
+ .deck-container .deck-prev-link, .deck-container .deck-next-link {
2
+ display: none;
3
+ position: absolute;
4
+ z-index: 3;
5
+ top: 50%;
6
+ width: 32px;
7
+ height: 32px;
8
+ margin-top: -16px;
9
+ font-size: 20px;
10
+ font-weight: bold;
11
+ line-height: 32px;
12
+ vertical-align: middle;
13
+ text-align: center;
14
+ text-decoration: none;
15
+ color: #fff;
16
+ background: #888;
17
+ }
18
+ .borderradius .deck-container .deck-prev-link, .borderradius .deck-container .deck-next-link {
19
+ -webkit-border-radius: 16px;
20
+ -moz-border-radius: 16px;
21
+ border-radius: 16px;
22
+ }
23
+ .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:hover, .deck-container .deck-next-link:focus, .deck-container .deck-next-link:active, .deck-container .deck-next-link:visited {
24
+ color: #fff;
25
+ }
26
+ .deck-container .deck-prev-link {
27
+ left: 8px;
28
+ }
29
+ .deck-container .deck-next-link {
30
+ right: 8px;
31
+ }
32
+ .deck-container:hover .deck-prev-link, .deck-container:hover .deck-next-link {
33
+ display: block;
34
+ }
35
+ .deck-container:hover .deck-prev-link.deck-nav-disabled, .touch .deck-container:hover .deck-prev-link, .deck-container:hover .deck-next-link.deck-nav-disabled, .touch .deck-container:hover .deck-next-link {
36
+ display: none;
37
+ }
38
+
39
+ @media print {
40
+ .deck-prev-link, .deck-next-link {
41
+ display: none !important;
42
+ }
43
+ }
@@ -0,0 +1,16 @@
1
+ .csstransforms .deck-container.deck-scale {
2
+ width: auto;
3
+ -webkit-transform-origin: 50% 0;
4
+ -moz-transform-origin: 50% 0;
5
+ -o-transform-origin: 50% 0;
6
+ -ms-transform-origin: 50% 0;
7
+ transform-origin: 50% 0;
8
+ }
9
+ .csstransforms .deck-container.deck-scale.deck-menu {
10
+ width: 70%;
11
+ -webkit-transform: none !important;
12
+ -moz-transform: none !important;
13
+ -o-transform: none !important;
14
+ -ms-transform: none !important;
15
+ transform: none !important;
16
+ }
@@ -0,0 +1,14 @@
1
+ .deck-container .deck-status {
2
+ position: absolute;
3
+ bottom: 10px;
4
+ right: 5px;
5
+ color: #888;
6
+ z-index: 3;
7
+ margin: 0;
8
+ }
9
+
10
+ @media print {
11
+ .deck-status {
12
+ display: none;
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ .deck-offscreen {
2
+ top: 10000px;
3
+ left: 10000px;
4
+ }
5
+
6
+ .incremental .subslide {
7
+ position: absolute;
8
+ z-index: 100;
9
+ }
@@ -0,0 +1,114 @@
1
+ .deck-container {
2
+ font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
3
+ font-size: 1.25em;
4
+ color: #aaa;
5
+ background: #000;
6
+ }
7
+ .deck-container .slide {
8
+ background: #000;
9
+ }
10
+ .deck-container h1 {
11
+ color: #0af;
12
+ font-weight: normal;
13
+ font-weight: 100;
14
+ text-shadow: 0 0 50px #0af, 0 0 3px #fff;
15
+ }
16
+ .deck-container h2 {
17
+ color: #af0;
18
+ border-bottom-color: #ccc;
19
+ font-weight: normal;
20
+ font-weight: 100;
21
+ text-shadow: 0 0 15px #af0, 0 0 2px #fff;
22
+ border-bottom: 1px solid #333;
23
+ }
24
+ .deck-container h3 {
25
+ color: #fff;
26
+ font-weight: normal;
27
+ font-weight: 100;
28
+ text-shadow: 0 0 10px #fff, 0 0 2px #fff;
29
+ }
30
+ .deck-container pre {
31
+ border-color: #333;
32
+ }
33
+ .deck-container pre code {
34
+ color: #fff;
35
+ }
36
+ .deck-container code {
37
+ color: #f0a;
38
+ }
39
+ .deck-container blockquote {
40
+ font-size: 2em;
41
+ padding: 1em 2em;
42
+ color: #fff;
43
+ border-left: 5px solid #fff;
44
+ }
45
+ .deck-container blockquote p {
46
+ margin: 0;
47
+ }
48
+ .deck-container blockquote cite {
49
+ font-size: .5em;
50
+ font-style: normal;
51
+ font-weight: normal;
52
+ font-weight: 100;
53
+ color: #aaa;
54
+ text-shadow: 0 0 15px #fff, 0 0 2px #fff;
55
+ }
56
+ .deck-container ::-moz-selection {
57
+ background: #a0f;
58
+ }
59
+ .deck-container ::selection {
60
+ background: #a0f;
61
+ }
62
+ .deck-container a, .deck-container a:hover, .deck-container a:focus, .deck-container a:active, .deck-container a:visited {
63
+ color: #f0a;
64
+ text-decoration: none;
65
+ }
66
+ .deck-container a:hover, .deck-container a:focus {
67
+ text-decoration: underline;
68
+ }
69
+ .deck-container .deck-prev-link, .deck-container .deck-next-link {
70
+ background: #f0a;
71
+ text-shadow: 0 0 3px #fff;
72
+ }
73
+ .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 {
74
+ color: #fff;
75
+ }
76
+ .deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus {
77
+ text-decoration: none;
78
+ }
79
+ .boxshadow .deck-container .deck-prev-link:hover, .boxshadow .deck-container .deck-prev-link:focus, .boxshadow .deck-container .deck-next-link:hover, .boxshadow .deck-container .deck-next-link:focus {
80
+ -webkit-box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
81
+ -moz-box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
82
+ box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
83
+ }
84
+ .deck-container .deck-status {
85
+ font-size: 0.6666em;
86
+ }
87
+ .deck-container .goto-form {
88
+ background: #000;
89
+ border: 1px solid #f0a;
90
+ }
91
+ .deck-container .goto-form label {
92
+ color: #fff;
93
+ }
94
+ .deck-container.deck-menu .slide {
95
+ background: #333;
96
+ }
97
+ .deck-container.deck-menu .deck-current {
98
+ background: #444;
99
+ }
100
+ .boxshadow .deck-container.deck-menu .deck-current {
101
+ background: #000;
102
+ -webkit-box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
103
+ -moz-box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
104
+ box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
105
+ }
106
+ .no-touch .deck-container.deck-menu .slide:hover {
107
+ background: #444;
108
+ }
109
+ .no-touch.boxshadow .deck-container.deck-menu .slide:hover {
110
+ background: #000;
111
+ -webkit-box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
112
+ -moz-box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
113
+ box-shadow: 0 0 20px #f0a, 0 0 5px #fff;
114
+ }
@@ -0,0 +1,75 @@
1
+ .deck-container {
2
+ font-family: "Helvetica Neue", sans-serif;
3
+ font-size: 1.25em;
4
+ background: #fff;
5
+ }
6
+ .deck-container .slide {
7
+ background: #fff;
8
+ }
9
+ .deck-container h1 {
10
+ color: #000;
11
+ }
12
+ .deck-container h2 {
13
+ color: #c00;
14
+ border-bottom-color: #ccc;
15
+ }
16
+ .deck-container h3 {
17
+ color: #888;
18
+ }
19
+ .deck-container pre {
20
+ border-color: #ccc;
21
+ }
22
+ .deck-container code {
23
+ color: #888;
24
+ }
25
+ .deck-container blockquote {
26
+ font-size: 2em;
27
+ font-style: italic;
28
+ padding: 1em 2em;
29
+ color: #000;
30
+ border-left: 5px solid #ccc;
31
+ }
32
+ .deck-container blockquote p {
33
+ margin: 0;
34
+ }
35
+ .deck-container blockquote cite {
36
+ font-size: .5em;
37
+ font-style: normal;
38
+ font-weight: bold;
39
+ color: #888;
40
+ }
41
+ .deck-container ::-moz-selection {
42
+ background: #c00;
43
+ color: #fff;
44
+ }
45
+ .deck-container ::selection {
46
+ background: #c00;
47
+ color: #fff;
48
+ }
49
+ .deck-container a, .deck-container a:hover, .deck-container a:focus, .deck-container a:active, .deck-container a:visited {
50
+ color: #c00;
51
+ text-decoration: none;
52
+ }
53
+ .deck-container a:hover, .deck-container a:focus {
54
+ text-decoration: underline;
55
+ }
56
+ .deck-container .deck-prev-link, .deck-container .deck-next-link {
57
+ background: #ccc;
58
+ font-family: serif;
59
+ }
60
+ .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 {
61
+ color: #fff;
62
+ }
63
+ .deck-container .deck-prev-link:hover, .deck-container .deck-prev-link:focus, .deck-container .deck-next-link:hover, .deck-container .deck-next-link:focus {
64
+ background: #c00;
65
+ text-decoration: none;
66
+ }
67
+ .deck-container .deck-status {
68
+ font-size: 0.6666em;
69
+ }
70
+ .deck-container.deck-menu .slide {
71
+ background: #eee;
72
+ }
73
+ .deck-container.deck-menu .deck-current, .no-touch .deck-container.deck-menu .slide:hover {
74
+ background: #ddf;
75
+ }