mdpreview 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mdpreview/version.rb +1 -1
- data/lib/mdpreview.rb +1 -1
- data/vendor/LGPL-license.txt +481 -0
- data/vendor/MIT-license.txt +21 -0
- data/vendor/ed/_locales/en/messages.json +6 -0
- data/vendor/ed/css/preview.css +64 -0
- data/vendor/ed/css/style.css +205 -0
- data/vendor/ed/image/ic128_made.png +0 -0
- data/vendor/ed/image/ic128_made_alt.png +0 -0
- data/vendor/ed/image/ic16_made.png +0 -0
- data/vendor/ed/image/ic24_made.png +0 -0
- data/vendor/ed/js/Markdown.Converter.js +1326 -0
- data/vendor/ed/js/ace.js +1 -0
- data/vendor/ed/js/jquery.js +16 -0
- data/vendor/ed/js/made.js +228 -0
- data/vendor/ed/js/mode-markdown.js +1 -0
- data/vendor/ed/js/theme-textmate.js +1 -0
- data/vendor/ed/js/theme-twilight.js +1 -0
- data/vendor/ed/manifest.json +20 -0
- data/vendor/ed/mdp.html +54 -0
- data/vendor/sample.md +52 -0
- metadata +22 -9
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/README.md +0 -29
- data/Rakefile +0 -58
- data/mdpreview.gemspec +0 -19
@@ -0,0 +1,205 @@
|
|
1
|
+
html, body, div, span, applet, object, iframe,
|
2
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
3
|
+
a, abbr, acronym, address, big, cite, code,
|
4
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
5
|
+
small, strike, strong, sub, sup, tt, var,
|
6
|
+
b, u, i, center,
|
7
|
+
dl, dt, dd, ol, ul, li,
|
8
|
+
fieldset, form, label, legend,
|
9
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
10
|
+
background: transparent;
|
11
|
+
border: 0;
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
vertical-align: baseline;
|
15
|
+
-webkit-font-smoothing: antialiased;
|
16
|
+
}
|
17
|
+
body {
|
18
|
+
line-height: 1.5em;
|
19
|
+
background: white;
|
20
|
+
}
|
21
|
+
|
22
|
+
#bar {
|
23
|
+
height: 32px;
|
24
|
+
border-bottom: 1px #ccc solid;
|
25
|
+
background-color: #f2f2f2;
|
26
|
+
box-shadow: 0 0 10px #222;
|
27
|
+
position: relative;
|
28
|
+
z-index: 99;
|
29
|
+
font-family: arial,sans-serif;
|
30
|
+
}
|
31
|
+
#control {
|
32
|
+
position: absolute;
|
33
|
+
right: 180px;
|
34
|
+
top: 2px;
|
35
|
+
height: 26px;
|
36
|
+
width: 200px;
|
37
|
+
}
|
38
|
+
#control .button {
|
39
|
+
font-size: 12px;
|
40
|
+
text-decoration: none;
|
41
|
+
color: gray;
|
42
|
+
}
|
43
|
+
#color_scheme {
|
44
|
+
position: absolute;
|
45
|
+
right: 10px;
|
46
|
+
top: 2px;
|
47
|
+
height: 20px;
|
48
|
+
}
|
49
|
+
#color_scheme label {
|
50
|
+
color: gray;
|
51
|
+
font-size: 10px;
|
52
|
+
vertical-align: middle;
|
53
|
+
}
|
54
|
+
#color_scheme > a {
|
55
|
+
padding: 2px;
|
56
|
+
display: inline-block;
|
57
|
+
background-color: #778CB9;
|
58
|
+
position: relative;
|
59
|
+
vertical-align: middle;
|
60
|
+
}
|
61
|
+
#color_scheme > a > span{
|
62
|
+
display: block;
|
63
|
+
height: 10px;
|
64
|
+
width: 10px;
|
65
|
+
}
|
66
|
+
|
67
|
+
#color_scheme_dark span {
|
68
|
+
background-color: #232223;
|
69
|
+
}
|
70
|
+
|
71
|
+
#color_scheme_light span {
|
72
|
+
background-color: #fff;
|
73
|
+
}
|
74
|
+
|
75
|
+
#color_scheme > a.selected:after {
|
76
|
+
position: absolute;
|
77
|
+
content: " ";
|
78
|
+
border-width: 3px;
|
79
|
+
border-color: transparent transparent #778CB9 transparent;
|
80
|
+
border-style: solid;
|
81
|
+
top: 12px;
|
82
|
+
left: 3px;
|
83
|
+
}
|
84
|
+
|
85
|
+
#title {
|
86
|
+
font-size: 18px;
|
87
|
+
line-height: 32px;
|
88
|
+
padding-left: 20px;
|
89
|
+
color: #232223;
|
90
|
+
font-weight: normal;
|
91
|
+
}
|
92
|
+
|
93
|
+
#title .desc {
|
94
|
+
font-size: 12px;
|
95
|
+
font-style: italic;
|
96
|
+
color: gray;
|
97
|
+
}
|
98
|
+
|
99
|
+
#container {
|
100
|
+
position: relative;
|
101
|
+
overflow: hidden;
|
102
|
+
}
|
103
|
+
#container > .pane{
|
104
|
+
position: absolute;
|
105
|
+
top:0;
|
106
|
+
bottom:0;
|
107
|
+
right:0;
|
108
|
+
left: auto;
|
109
|
+
}
|
110
|
+
#container > .pane:first-child {
|
111
|
+
left:0;
|
112
|
+
right: auto;
|
113
|
+
border-right: 1px #ccc solid;
|
114
|
+
}
|
115
|
+
::-webkit-scrollbar {
|
116
|
+
width: 10px;
|
117
|
+
height: 10px;
|
118
|
+
}
|
119
|
+
|
120
|
+
::-webkit-scrollbar-button:start:decrement,
|
121
|
+
::-webkit-scrollbar-button:end:increment {
|
122
|
+
height: 0px;
|
123
|
+
display: block;
|
124
|
+
background-color: transparent;
|
125
|
+
}
|
126
|
+
::-webkit-scrollbar-track-piece {
|
127
|
+
background: #fff;
|
128
|
+
}
|
129
|
+
::-webkit-scrollbar-thumb {
|
130
|
+
background: #fff;
|
131
|
+
}
|
132
|
+
::-webkit-scrollbar-thumb:vertical {
|
133
|
+
border-right: 4px #6f6f6f solid;
|
134
|
+
height: 50px;
|
135
|
+
}
|
136
|
+
::-webkit-scrollbar-thumb:horizontal {
|
137
|
+
border-bottom: 4px #6f6f6f solid;
|
138
|
+
width: 50px;
|
139
|
+
}
|
140
|
+
.dark::-webkit-scrollbar-track-piece {
|
141
|
+
background: #141414;
|
142
|
+
}
|
143
|
+
.dark::-webkit-scrollbar-thumb {
|
144
|
+
background: #141414;
|
145
|
+
}
|
146
|
+
::-webkit-scrollbar-thumb:hover {
|
147
|
+
background: #6f6f6f;
|
148
|
+
border:0;
|
149
|
+
}
|
150
|
+
#export_button_wrapper {
|
151
|
+
position: relative;
|
152
|
+
display: inline-block;
|
153
|
+
}
|
154
|
+
#export_menu {
|
155
|
+
display: none;
|
156
|
+
position: absolute;
|
157
|
+
top: 24px;
|
158
|
+
left: 0;
|
159
|
+
width: 150px;
|
160
|
+
background: white;
|
161
|
+
list-style-type: none;
|
162
|
+
padding: 0;
|
163
|
+
border: 1px solid #ccc;
|
164
|
+
box-shadow: 1px 1px 10px #888;
|
165
|
+
}
|
166
|
+
#export_menu a {
|
167
|
+
padding: 3px 5px 3px 20px;
|
168
|
+
font-size: 12px;
|
169
|
+
height: 20px;
|
170
|
+
line-height: 20px;
|
171
|
+
display: block;
|
172
|
+
text-decoration: none;
|
173
|
+
color: #333;
|
174
|
+
}
|
175
|
+
#export_menu a:hover {
|
176
|
+
background-color: gray;
|
177
|
+
color: white;
|
178
|
+
}
|
179
|
+
.button {
|
180
|
+
border-radius: 2px;
|
181
|
+
border: 1px #ccc solid;
|
182
|
+
min-width: 80px;
|
183
|
+
height: 20px;
|
184
|
+
display: inline-block;
|
185
|
+
text-align: center;
|
186
|
+
font-weight: bold;
|
187
|
+
color: #333;
|
188
|
+
line-height: 20px;
|
189
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,white), color-stop(4%,#F2F2F2), color-stop(100%,#EEE));
|
190
|
+
}
|
191
|
+
.button:hover, .button.hover {
|
192
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,white), color-stop(4%,#EEE), color-stop(100%,#DEDEDE));
|
193
|
+
}
|
194
|
+
.button:active, .button.active {
|
195
|
+
-webkit-box-shadow: inset #ccc 0 0 5px;
|
196
|
+
box-shadow: inset #ccc 0 0 5px;
|
197
|
+
}
|
198
|
+
#import_file_button {
|
199
|
+
position: absolute;
|
200
|
+
z-index: 999;
|
201
|
+
background-color: red;
|
202
|
+
width: 80px;
|
203
|
+
opacity: 0;
|
204
|
+
left: 0;
|
205
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|