honey-cms 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/vendor/assets/images/epiceditor/images/edit.png +0 -0
- data/vendor/assets/images/epiceditor/images/fullscreen.png +0 -0
- data/vendor/assets/images/epiceditor/images/preview.png +0 -0
- data/vendor/assets/javascripts/cms.js.coffee +1 -0
- data/vendor/assets/javascripts/epiceditor.js +2017 -0
- data/vendor/assets/stylesheets/cms.css.scss +0 -1
- data/vendor/assets/stylesheets/epiceditor/themes/base/epiceditor.css +31 -0
- data/vendor/assets/stylesheets/epiceditor/themes/editor/epic-dark.css +14 -0
- data/vendor/assets/stylesheets/epiceditor/themes/editor/epic-light.css +12 -0
- data/vendor/assets/stylesheets/epiceditor/themes/preview/github.css +368 -0
- data/vendor/assets/stylesheets/epiceditor/themes/preview/preview-dark.css +121 -0
- metadata +10 -1
@@ -0,0 +1,31 @@
|
|
1
|
+
html, body, iframe, div { margin:0; padding:0; }
|
2
|
+
|
3
|
+
#epiceditor-utilbar {
|
4
|
+
position:fixed;
|
5
|
+
bottom:10px;
|
6
|
+
right:10px;
|
7
|
+
padding:5px;
|
8
|
+
}
|
9
|
+
|
10
|
+
#epiceditor-utilbar img {
|
11
|
+
display:block;
|
12
|
+
float:left;
|
13
|
+
width: 30px;
|
14
|
+
height: 30px;
|
15
|
+
}
|
16
|
+
|
17
|
+
#epiceditor-utilbar img:last-child {
|
18
|
+
margin-left: 15px;
|
19
|
+
}
|
20
|
+
|
21
|
+
#epiceditor-utilbar img:hover {
|
22
|
+
cursor:pointer;
|
23
|
+
}
|
24
|
+
|
25
|
+
.epiceditor-edit-mode #epiceditor-utilbar img.epiceditor-toggle-edit-btn {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
|
29
|
+
.epiceditor-preview-mode #epiceditor-utilbar img.epiceditor-toggle-preview-btn {
|
30
|
+
display: none;
|
31
|
+
}
|
@@ -0,0 +1,368 @@
|
|
1
|
+
html { padding:0 10px; }
|
2
|
+
|
3
|
+
body {
|
4
|
+
margin:0;
|
5
|
+
padding:0;
|
6
|
+
background:#fff;
|
7
|
+
}
|
8
|
+
|
9
|
+
#epiceditor-wrapper{
|
10
|
+
background:white;
|
11
|
+
}
|
12
|
+
|
13
|
+
#epiceditor-preview{
|
14
|
+
padding-top:10px;
|
15
|
+
padding-bottom:10px;
|
16
|
+
font-family: Helvetica,arial,freesans,clean,sans-serif;
|
17
|
+
font-size:13px;
|
18
|
+
line-height:1.6;
|
19
|
+
}
|
20
|
+
|
21
|
+
#epiceditor-preview>*:first-child{
|
22
|
+
margin-top:0!important;
|
23
|
+
}
|
24
|
+
|
25
|
+
#epiceditor-preview>*:last-child{
|
26
|
+
margin-bottom:0!important;
|
27
|
+
}
|
28
|
+
|
29
|
+
#epiceditor-preview a{
|
30
|
+
color:#4183C4;
|
31
|
+
text-decoration:none;
|
32
|
+
}
|
33
|
+
|
34
|
+
#epiceditor-preview a:hover{
|
35
|
+
text-decoration:underline;
|
36
|
+
}
|
37
|
+
|
38
|
+
#epiceditor-preview h1,
|
39
|
+
#epiceditor-preview h2,
|
40
|
+
#epiceditor-preview h3,
|
41
|
+
#epiceditor-preview h4,
|
42
|
+
#epiceditor-preview h5,
|
43
|
+
#epiceditor-preview h6{
|
44
|
+
margin:20px 0 10px;
|
45
|
+
padding:0;
|
46
|
+
font-weight:bold;
|
47
|
+
-webkit-font-smoothing:antialiased;
|
48
|
+
}
|
49
|
+
|
50
|
+
#epiceditor-preview h1 tt,
|
51
|
+
#epiceditor-preview h1 code,
|
52
|
+
#epiceditor-preview h2 tt,
|
53
|
+
#epiceditor-preview h2 code,
|
54
|
+
#epiceditor-preview h3 tt,
|
55
|
+
#epiceditor-preview h3 code,
|
56
|
+
#epiceditor-preview h4 tt,
|
57
|
+
#epiceditor-preview h4 code,
|
58
|
+
#epiceditor-preview h5 tt,
|
59
|
+
#epiceditor-preview h5 code,
|
60
|
+
#epiceditor-preview h6 tt,
|
61
|
+
#epiceditor-preview h6 code{
|
62
|
+
font-size:inherit;
|
63
|
+
}
|
64
|
+
|
65
|
+
#epiceditor-preview h1{
|
66
|
+
font-size:28px;
|
67
|
+
color:#000;
|
68
|
+
}
|
69
|
+
|
70
|
+
#epiceditor-preview h2{
|
71
|
+
font-size:24px;
|
72
|
+
border-bottom:1px solid #ccc;
|
73
|
+
color:#000;
|
74
|
+
}
|
75
|
+
|
76
|
+
#epiceditor-preview h3{
|
77
|
+
font-size:18px;
|
78
|
+
}
|
79
|
+
|
80
|
+
#epiceditor-preview h4{
|
81
|
+
font-size:16px;
|
82
|
+
}
|
83
|
+
|
84
|
+
#epiceditor-preview h5{
|
85
|
+
font-size:14px;
|
86
|
+
}
|
87
|
+
|
88
|
+
#epiceditor-preview h6{
|
89
|
+
color:#777;
|
90
|
+
font-size:14px;
|
91
|
+
}
|
92
|
+
|
93
|
+
#epiceditor-preview p,
|
94
|
+
#epiceditor-preview blockquote,
|
95
|
+
#epiceditor-preview ul,
|
96
|
+
#epiceditor-preview ol,
|
97
|
+
#epiceditor-preview dl,
|
98
|
+
#epiceditor-preview li,
|
99
|
+
#epiceditor-preview table,
|
100
|
+
#epiceditor-preview pre{
|
101
|
+
margin:15px 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
#epiceditor-preview hr{
|
105
|
+
background:transparent url('../../images/modules/pulls/dirty-shade.png') repeat-x 0 0;
|
106
|
+
border:0 none;
|
107
|
+
color:#ccc;
|
108
|
+
height:4px;
|
109
|
+
padding:0;
|
110
|
+
}
|
111
|
+
|
112
|
+
#epiceditor-preview>h2:first-child,
|
113
|
+
#epiceditor-preview>h1:first-child,
|
114
|
+
#epiceditor-preview>h1:first-child+h2,
|
115
|
+
#epiceditor-preview>h3:first-child,
|
116
|
+
#epiceditor-preview>h4:first-child,
|
117
|
+
#epiceditor-preview>h5:first-child,
|
118
|
+
#epiceditor-preview>h6:first-child{
|
119
|
+
margin-top:0;
|
120
|
+
padding-top:0;
|
121
|
+
}
|
122
|
+
|
123
|
+
#epiceditor-preview h1+p,
|
124
|
+
#epiceditor-preview h2+p,
|
125
|
+
#epiceditor-preview h3+p,
|
126
|
+
#epiceditor-preview h4+p,
|
127
|
+
#epiceditor-preview h5+p,
|
128
|
+
#epiceditor-preview h6+p{
|
129
|
+
margin-top:0;
|
130
|
+
}
|
131
|
+
|
132
|
+
#epiceditor-preview li p.first{
|
133
|
+
display:inline-block;
|
134
|
+
}
|
135
|
+
|
136
|
+
#epiceditor-preview ul,
|
137
|
+
#epiceditor-preview ol{
|
138
|
+
padding-left:30px;
|
139
|
+
}
|
140
|
+
|
141
|
+
#epiceditor-preview ul li>:first-child,
|
142
|
+
#epiceditor-preview ol li>:first-child{
|
143
|
+
margin-top:0;
|
144
|
+
}
|
145
|
+
|
146
|
+
#epiceditor-preview ul li>:last-child,
|
147
|
+
#epiceditor-preview ol li>:last-child{
|
148
|
+
margin-bottom:0;
|
149
|
+
}
|
150
|
+
|
151
|
+
#epiceditor-preview dl{
|
152
|
+
padding:0;
|
153
|
+
}
|
154
|
+
|
155
|
+
#epiceditor-preview dl dt{
|
156
|
+
font-size:14px;
|
157
|
+
font-weight:bold;
|
158
|
+
font-style:italic;
|
159
|
+
padding:0;
|
160
|
+
margin:15px 0 5px;
|
161
|
+
}
|
162
|
+
|
163
|
+
#epiceditor-preview dl dt:first-child{
|
164
|
+
padding:0;
|
165
|
+
}
|
166
|
+
|
167
|
+
#epiceditor-preview dl dt>:first-child{
|
168
|
+
margin-top:0;
|
169
|
+
}
|
170
|
+
|
171
|
+
#epiceditor-preview dl dt>:last-child{
|
172
|
+
margin-bottom:0;
|
173
|
+
}
|
174
|
+
|
175
|
+
#epiceditor-preview dl dd{
|
176
|
+
margin:0 0 15px;
|
177
|
+
padding:0 15px;
|
178
|
+
}
|
179
|
+
|
180
|
+
#epiceditor-preview dl dd>:first-child{
|
181
|
+
margin-top:0;
|
182
|
+
}
|
183
|
+
|
184
|
+
#epiceditor-preview dl dd>:last-child{
|
185
|
+
margin-bottom:0;
|
186
|
+
}
|
187
|
+
|
188
|
+
#epiceditor-preview blockquote{
|
189
|
+
border-left:4px solid #DDD;
|
190
|
+
padding:0 15px;
|
191
|
+
color:#777;
|
192
|
+
}
|
193
|
+
|
194
|
+
#epiceditor-preview blockquote>:first-child{
|
195
|
+
margin-top:0;
|
196
|
+
}
|
197
|
+
|
198
|
+
#epiceditor-preview blockquote>:last-child{
|
199
|
+
margin-bottom:0;
|
200
|
+
}
|
201
|
+
|
202
|
+
#epiceditor-preview table{
|
203
|
+
padding:0;
|
204
|
+
border-collapse: collapse;
|
205
|
+
border-spacing: 0;
|
206
|
+
font-size: 100%;
|
207
|
+
font: inherit;
|
208
|
+
}
|
209
|
+
|
210
|
+
#epiceditor-preview table tr{
|
211
|
+
border-top:1px solid #ccc;
|
212
|
+
background-color:#fff;
|
213
|
+
margin:0;
|
214
|
+
padding:0;
|
215
|
+
}
|
216
|
+
|
217
|
+
#epiceditor-preview table tr:nth-child(2n){
|
218
|
+
background-color:#f8f8f8;
|
219
|
+
}
|
220
|
+
|
221
|
+
#epiceditor-preview table tr th{
|
222
|
+
font-weight:bold;
|
223
|
+
}
|
224
|
+
|
225
|
+
#epiceditor-preview table tr th,
|
226
|
+
#epiceditor-preview table tr td{
|
227
|
+
border:1px solid #ccc;
|
228
|
+
text-align:left;
|
229
|
+
margin:0;
|
230
|
+
padding:6px 13px;
|
231
|
+
}
|
232
|
+
|
233
|
+
#epiceditor-preview table tr th>:first-child,
|
234
|
+
#epiceditor-preview table tr td>:first-child{
|
235
|
+
margin-top:0;
|
236
|
+
}
|
237
|
+
|
238
|
+
#epiceditor-preview table tr th>:last-child,
|
239
|
+
#epiceditor-preview table tr td>:last-child{
|
240
|
+
margin-bottom:0;
|
241
|
+
}
|
242
|
+
|
243
|
+
#epiceditor-preview img{
|
244
|
+
max-width:100%;
|
245
|
+
}
|
246
|
+
|
247
|
+
#epiceditor-preview span.frame{
|
248
|
+
display:block;
|
249
|
+
overflow:hidden;
|
250
|
+
}
|
251
|
+
|
252
|
+
#epiceditor-preview span.frame>span{
|
253
|
+
border:1px solid #ddd;
|
254
|
+
display:block;
|
255
|
+
float:left;
|
256
|
+
overflow:hidden;
|
257
|
+
margin:13px 0 0;
|
258
|
+
padding:7px;
|
259
|
+
width:auto;
|
260
|
+
}
|
261
|
+
|
262
|
+
#epiceditor-preview span.frame span img{
|
263
|
+
display:block;
|
264
|
+
float:left;
|
265
|
+
}
|
266
|
+
|
267
|
+
#epiceditor-preview span.frame span span{
|
268
|
+
clear:both;
|
269
|
+
color:#333;
|
270
|
+
display:block;
|
271
|
+
padding:5px 0 0;
|
272
|
+
}
|
273
|
+
|
274
|
+
#epiceditor-preview span.align-center{
|
275
|
+
display:block;
|
276
|
+
overflow:hidden;
|
277
|
+
clear:both;
|
278
|
+
}
|
279
|
+
|
280
|
+
#epiceditor-preview span.align-center>span{
|
281
|
+
display:block;
|
282
|
+
overflow:hidden;
|
283
|
+
margin:13px auto 0;
|
284
|
+
text-align:center;
|
285
|
+
}
|
286
|
+
|
287
|
+
#epiceditor-preview span.align-center span img{
|
288
|
+
margin:0 auto;
|
289
|
+
text-align:center;
|
290
|
+
}
|
291
|
+
|
292
|
+
#epiceditor-preview span.align-right{
|
293
|
+
display:block;
|
294
|
+
overflow:hidden;
|
295
|
+
clear:both;
|
296
|
+
}
|
297
|
+
|
298
|
+
#epiceditor-preview span.align-right>span{
|
299
|
+
display:block;
|
300
|
+
overflow:hidden;
|
301
|
+
margin:13px 0 0;
|
302
|
+
text-align:right;
|
303
|
+
}
|
304
|
+
|
305
|
+
#epiceditor-preview span.align-right span img{
|
306
|
+
margin:0;
|
307
|
+
text-align:right;
|
308
|
+
}
|
309
|
+
|
310
|
+
#epiceditor-preview span.float-left{
|
311
|
+
display:block;
|
312
|
+
margin-right:13px;
|
313
|
+
overflow:hidden;
|
314
|
+
float:left;
|
315
|
+
}
|
316
|
+
|
317
|
+
#epiceditor-preview span.float-left span{
|
318
|
+
margin:13px 0 0;
|
319
|
+
}
|
320
|
+
|
321
|
+
#epiceditor-preview span.float-right{
|
322
|
+
display:block;
|
323
|
+
margin-left:13px;
|
324
|
+
overflow:hidden;
|
325
|
+
float:right;
|
326
|
+
}
|
327
|
+
|
328
|
+
#epiceditor-preview span.float-right>span{
|
329
|
+
display:block;
|
330
|
+
overflow:hidden;
|
331
|
+
margin:13px auto 0;
|
332
|
+
text-align:right;
|
333
|
+
}
|
334
|
+
|
335
|
+
#epiceditor-preview code,
|
336
|
+
#epiceditor-preview tt{
|
337
|
+
margin:0 2px;
|
338
|
+
padding:0 5px;
|
339
|
+
white-space:nowrap;
|
340
|
+
border:1px solid #eaeaea;
|
341
|
+
background-color:#f8f8f8;
|
342
|
+
border-radius:3px;
|
343
|
+
}
|
344
|
+
|
345
|
+
#epiceditor-preview pre>code{
|
346
|
+
margin:0;
|
347
|
+
padding:0;
|
348
|
+
white-space:pre;
|
349
|
+
border:none;
|
350
|
+
background:transparent;
|
351
|
+
}
|
352
|
+
|
353
|
+
#epiceditor-preview .highlight pre,
|
354
|
+
#epiceditor-preview pre{
|
355
|
+
background-color:#f8f8f8;
|
356
|
+
border:1px solid #ccc;
|
357
|
+
font-size:13px;
|
358
|
+
line-height:19px;
|
359
|
+
overflow:auto;
|
360
|
+
padding:6px 10px;
|
361
|
+
border-radius:3px;
|
362
|
+
}
|
363
|
+
|
364
|
+
#epiceditor-preview pre code,
|
365
|
+
#epiceditor-preview pre tt{
|
366
|
+
background-color:transparent;
|
367
|
+
border:none;
|
368
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
html { padding:0 10px; }
|
2
|
+
|
3
|
+
body {
|
4
|
+
margin:0;
|
5
|
+
padding:10px 0;
|
6
|
+
background:#000;
|
7
|
+
}
|
8
|
+
|
9
|
+
#epiceditor-preview h1,
|
10
|
+
#epiceditor-preview h2,
|
11
|
+
#epiceditor-preview h3,
|
12
|
+
#epiceditor-preview h4,
|
13
|
+
#epiceditor-preview h5,
|
14
|
+
#epiceditor-preview h6,
|
15
|
+
#epiceditor-preview p,
|
16
|
+
#epiceditor-preview blockquote {
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
|
+
}
|
20
|
+
#epiceditor-preview {
|
21
|
+
background:#000;
|
22
|
+
font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
|
23
|
+
font-size: 13px;
|
24
|
+
line-height: 18px;
|
25
|
+
color: #ccc;
|
26
|
+
}
|
27
|
+
#epiceditor-preview a {
|
28
|
+
color: #fff;
|
29
|
+
}
|
30
|
+
#epiceditor-preview a:hover {
|
31
|
+
color: #00ff00;
|
32
|
+
text-decoration: none;
|
33
|
+
}
|
34
|
+
#epiceditor-preview a img {
|
35
|
+
border: none;
|
36
|
+
}
|
37
|
+
#epiceditor-preview p {
|
38
|
+
margin-bottom: 9px;
|
39
|
+
}
|
40
|
+
#epiceditor-preview h1,
|
41
|
+
#epiceditor-preview h2,
|
42
|
+
#epiceditor-preview h3,
|
43
|
+
#epiceditor-preview h4,
|
44
|
+
#epiceditor-preview h5,
|
45
|
+
#epiceditor-preview h6 {
|
46
|
+
color: #cdcdcd;
|
47
|
+
line-height: 36px;
|
48
|
+
}
|
49
|
+
#epiceditor-preview h1 {
|
50
|
+
margin-bottom: 18px;
|
51
|
+
font-size: 30px;
|
52
|
+
}
|
53
|
+
#epiceditor-preview h2 {
|
54
|
+
font-size: 24px;
|
55
|
+
}
|
56
|
+
#epiceditor-preview h3 {
|
57
|
+
font-size: 18px;
|
58
|
+
}
|
59
|
+
#epiceditor-preview h4 {
|
60
|
+
font-size: 16px;
|
61
|
+
}
|
62
|
+
#epiceditor-preview h5 {
|
63
|
+
font-size: 14px;
|
64
|
+
}
|
65
|
+
#epiceditor-preview h6 {
|
66
|
+
font-size: 13px;
|
67
|
+
}
|
68
|
+
#epiceditor-preview hr {
|
69
|
+
margin: 0 0 19px;
|
70
|
+
border: 0;
|
71
|
+
border-bottom: 1px solid #ccc;
|
72
|
+
}
|
73
|
+
#epiceditor-preview blockquote {
|
74
|
+
padding: 13px 13px 21px 15px;
|
75
|
+
margin-bottom: 18px;
|
76
|
+
font-family:georgia,serif;
|
77
|
+
font-style: italic;
|
78
|
+
}
|
79
|
+
#epiceditor-preview blockquote:before {
|
80
|
+
content:"\201C";
|
81
|
+
font-size:40px;
|
82
|
+
margin-left:-10px;
|
83
|
+
font-family:georgia,serif;
|
84
|
+
color:#eee;
|
85
|
+
}
|
86
|
+
#epiceditor-preview blockquote p {
|
87
|
+
font-size: 14px;
|
88
|
+
font-weight: 300;
|
89
|
+
line-height: 18px;
|
90
|
+
margin-bottom: 0;
|
91
|
+
font-style: italic;
|
92
|
+
}
|
93
|
+
#epiceditor-preview code, #epiceditor-preview pre {
|
94
|
+
font-family: Monaco, Andale Mono, Courier New, monospace;
|
95
|
+
}
|
96
|
+
#epiceditor-preview code {
|
97
|
+
background-color: #000;
|
98
|
+
color: #f92672;
|
99
|
+
padding: 1px 3px;
|
100
|
+
font-size: 12px;
|
101
|
+
-webkit-border-radius: 3px;
|
102
|
+
-moz-border-radius: 3px;
|
103
|
+
border-radius: 3px;
|
104
|
+
}
|
105
|
+
#epiceditor-preview pre {
|
106
|
+
display: block;
|
107
|
+
padding: 14px;
|
108
|
+
color:#66d9ef;
|
109
|
+
margin: 0 0 18px;
|
110
|
+
line-height: 16px;
|
111
|
+
font-size: 11px;
|
112
|
+
border: 1px solid #d9d9d9;
|
113
|
+
white-space: pre-wrap;
|
114
|
+
word-wrap: break-word;
|
115
|
+
}
|
116
|
+
#epiceditor-preview pre code {
|
117
|
+
background-color: #000;
|
118
|
+
color:#ccc;
|
119
|
+
font-size: 11px;
|
120
|
+
padding: 0;
|
121
|
+
}
|