rails31-markdown-editor 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,306 @@
1
+ /*
2
+ editor.css
3
+ Wiki editor formatting
4
+ */
5
+ body, html {
6
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ font-size: 10px; /* -> 1em */
8
+ margin: 0;
9
+ padding: 0;
10
+ }
11
+ fieldset {
12
+ border: 0;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+
18
+ #facebox .preview {
19
+ font-size: 1.3em;
20
+ }
21
+
22
+ .live-preview {
23
+ font-size: 1.3em;
24
+ clear: both;
25
+ }
26
+
27
+ #markdown-editor-dialog {
28
+ padding: 10px;
29
+ }
30
+
31
+ #markdown-editor-dialog h4 {
32
+ border-bottom: 1px solid #DDD;
33
+ color: black;
34
+ font-size: 1.8em;
35
+ font-weight: bold;
36
+ line-height: normal;
37
+ margin: 0px 0px 0.75em;
38
+ padding: 0px 0px 0.3em;
39
+ }
40
+
41
+ #markdown-editor-dialog a.minibutton {
42
+ float: left;
43
+ }
44
+ #markdown-editor-dialog input {
45
+ border: 1px solid #DDD;
46
+ display: block;
47
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
48
+ font-size: 1.2em;
49
+ line-height: 1.6em;
50
+ margin: 0.3em 0px 0px;
51
+ padding: 0.3em 0.5em;
52
+ width: 300px;
53
+ }
54
+
55
+ #markdown-editor-dialog label {
56
+ color: black;
57
+ display: block;
58
+ font-size: 1.2em;
59
+ font-weight: bold;
60
+ line-height: 1.6em;
61
+ margin: 0px;
62
+ min-width: 80px;
63
+ padding: 0px;
64
+ }
65
+
66
+ #markdown-editor-dialog a.minibutton {
67
+ margin-right: 10px;
68
+
69
+ }
70
+
71
+ #markdown-editor-dialog .buttons {
72
+ margin-top: 10px;
73
+
74
+ }
75
+
76
+
77
+ a {
78
+ -moz-outline: none !important;
79
+ }
80
+
81
+ .editor {
82
+ border: 1px solid #e4e4e4;
83
+ background: #f9f9f9;
84
+ margin: 1em 0 5em;
85
+ overflow: hidden;
86
+ padding: 1em 1em 0.4em;
87
+ }
88
+
89
+ .ie .editor {
90
+ padding-bottom: 1em;
91
+ }
92
+
93
+ /* @control function-bar */
94
+
95
+
96
+ .editor .function-bar .function-buttons {
97
+ display: block;
98
+ float: left;
99
+ overflow: hidden;
100
+ padding: 0 0 5px 0;
101
+ }
102
+
103
+ .editor .function-bar a.function-button {
104
+ background: #f7f7f7;
105
+ border: 1px solid #ddd;
106
+ color: #333;
107
+ display: block;
108
+ float: left;
109
+ height: 25px;
110
+ overflow: hidden;
111
+ margin: 0.2em 0.5em 0 0;
112
+ /* text-indent: -5000px; */
113
+ text-shadow: 0 1px 0 #fff;
114
+ width: 25px;
115
+
116
+ border-radius: 0.3em;
117
+ -moz-border-radius: 0.3em;
118
+ -webkit-border-radius: 0.3em;
119
+
120
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
121
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
122
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
123
+ }
124
+
125
+ .editor .function-bar a.function-button:hover {
126
+ color: #fff;
127
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
128
+ text-decoration: none;
129
+
130
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');
131
+ background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));
132
+ background: -moz-linear-gradient(top, #599bdc, #3072b3);
133
+ border: 1px solid;
134
+ border-color: #518cc6 #518cc6 #2a65a0;
135
+ }
136
+
137
+ .editor .function-bar a span {
138
+ background-image: url(../images/icon-sprite.png);
139
+ background-repeat: no-repeat;
140
+ display: block;
141
+ height: 25px;
142
+ overflow: hidden;
143
+ text-indent: -5000px;
144
+ width: 25px;
145
+ }
146
+
147
+ a.function-bold span { background-position: 0 0; }
148
+ a.function-italic span { background-position: -27px 0; }
149
+ a.function-underline span { background-position: -54px 0; }
150
+ a.function-code span { background-position: -82px 0; }
151
+ a.function-ul span { background-position: -109px 0; }
152
+ a.function-ol span { background-position: -136px 0; }
153
+ a.function-blockquote span { background-position: -163px 0; }
154
+ a.function-hr span { background-position: -190px 0; }
155
+ a.function-h1 span { background-position: -217px 0; }
156
+ a.function-h2 span { background-position: -244px 0; }
157
+ a.function-h3 span { background-position: -271px 0; }
158
+ a.function-link span { background-position: -298px 0; }
159
+ a.function-image span { background-position: -324px 0; }
160
+ a.function-help span { background-position: -405px 0; }
161
+
162
+ a.function-bold:hover span { background-position: 0 -28px; }
163
+ a.function-italic:hover span { background-position: -27px -28px; }
164
+ a.function-underline:hover span { background-position: -54px -28px; }
165
+ a.function-code:hover span { background-position: -82px -28px; }
166
+ a.function-ul:hover span { background-position: -109px -28px; }
167
+ a.function-ol:hover span { background-position: -136px -28px; }
168
+ a.function-blockquote:hover span { background-position: -163px -28px; }
169
+ a.function-hr:hover span { background-position: -190px -28px; }
170
+ a.function-h1:hover span { background-position: -217px -28px; }
171
+ a.function-h2:hover span { background-position: -244px -28px; }
172
+ a.function-h3:hover span { background-position: -271px -28px; }
173
+ a.function-link:hover span { background-position: -298px -28px; }
174
+ a.function-image:hover span { background-position: -324px -28px; }
175
+ a.function-help:hover span { background-position: -405px -28px; }
176
+
177
+
178
+ .editor .function-bar a.disabled {
179
+ display: none;
180
+ }
181
+
182
+ .editor .function-bar span.function-divider {
183
+ display: block;
184
+ float: left;
185
+ width: 0.5em;
186
+ }
187
+
188
+ .editor .collapsed a span,
189
+ .editor .expanded a span {
190
+ background-image: url(../images/icon-sprite.png);
191
+ background-position: -351px -1px;
192
+ background-repeat: no-repeat;
193
+ display: block;
194
+ height: 25px;
195
+ overflow: hidden;
196
+ text-indent: -5000px;
197
+ width: 25px;
198
+ }
199
+
200
+
201
+ .editor textarea {
202
+ background-color: #fff;
203
+ border: 1px solid #ddd;
204
+ clear: both;
205
+ display: block;
206
+ font-size: 1.3em;
207
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
208
+ height: 7em;
209
+ line-height: 1.8em;
210
+ margin: 0.7em 0;
211
+ padding: 0.5em;
212
+ width: 98%;
213
+ }
214
+
215
+ a.minibutton,
216
+ a.minibutton:visited {
217
+ background-color: #f7f7f7;
218
+ border: 1px solid #d4d4d4;
219
+ color: #333;
220
+ cursor: pointer;
221
+ display: block;
222
+ font-size: 1.2em;
223
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
224
+ font-weight: bold;
225
+ line-height: 1.2em;
226
+ margin: 0 0 0 0em;
227
+ padding: 0.5em 1em;
228
+ text-decoration: none;
229
+
230
+ text-shadow: 0 1px 0 #fff;
231
+
232
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
233
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
234
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
235
+
236
+ border-radius: 3px;
237
+ -moz-border-radius: 3px;
238
+ -webkit-border-radius: 3px;
239
+ }
240
+
241
+ a.minibutton:hover {
242
+ background: #3072b3;
243
+ border-color: #518cc6 #518cc6 #2a65a0;
244
+ color: #fff;
245
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
246
+ text-decoration: none;
247
+
248
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');
249
+ background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));
250
+ background: -moz-linear-gradient(top, #599bdc, #3072b3);
251
+ }
252
+ .preview {
253
+ float: left;
254
+ font-weight: normal;
255
+ padding: left;
256
+ }
257
+
258
+ input.submit {
259
+ background-color: #f7f7f7;
260
+ border: 1px solid #d4d4d4;
261
+ color: #333;
262
+ cursor: pointer;
263
+ display: block;
264
+ float: left;
265
+ font-size: 1.2em;
266
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
267
+ font-weight: bold;
268
+ margin: 0;
269
+ padding: 0.4em 1em;
270
+
271
+ text-shadow: 0 1px 0 #fff;
272
+
273
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec');
274
+ background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec));
275
+ background: -moz-linear-gradient(top, #f4f4f4, #ececec);
276
+
277
+ border-radius: 3px;
278
+ -moz-border-radius: 3px;
279
+ -webkit-border-radius: 3px;
280
+ }
281
+
282
+ .webkit input.submit {
283
+ padding: 0.5em 1em 0.45em;
284
+ }
285
+
286
+ .ie input.submit {
287
+ padding: 0.4em 1em 0.5em;
288
+ }
289
+
290
+ input.submit:hover {
291
+ background: #3072b3;
292
+ border-color: #518cc6 #518cc6 #2a65a0;
293
+ color: #fff;
294
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
295
+ text-decoration: none;
296
+
297
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3');
298
+ background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3));
299
+ background: -moz-linear-gradient(top, #599bdc, #3072b3);
300
+ }
301
+
302
+ .editor-preview {
303
+ float: left;
304
+ font-weight: normal;
305
+ padding: left;
306
+ }
@@ -0,0 +1,80 @@
1
+ #facebox {
2
+ position: absolute;
3
+ top: 0;
4
+ left: 0;
5
+ z-index: 100;
6
+ text-align: left;
7
+ }
8
+
9
+
10
+ #facebox .popup{
11
+ position:relative;
12
+ border:3px solid rgba(0,0,0,0);
13
+ -webkit-border-radius:5px;
14
+ -moz-border-radius:5px;
15
+ border-radius:5px;
16
+ -webkit-box-shadow:0 0 18px rgba(0,0,0,0.4);
17
+ -moz-box-shadow:0 0 18px rgba(0,0,0,0.4);
18
+ box-shadow:0 0 18px rgba(0,0,0,0.4);
19
+ }
20
+
21
+ #facebox .content {
22
+ display:table;
23
+ min-width: 350px;
24
+ padding: 10px;
25
+ background: #fff;
26
+ -webkit-border-radius:4px;
27
+ -moz-border-radius:4px;
28
+ border-radius:4px;
29
+ }
30
+
31
+ #facebox .content > p:first-child{
32
+ margin-top:0;
33
+ }
34
+ #facebox .content > p:last-child{
35
+ margin-bottom:0;
36
+ }
37
+
38
+ #facebox .close{
39
+ position:absolute;
40
+ top:5px;
41
+ right:5px;
42
+ padding:2px;
43
+ background:#fff;
44
+ }
45
+ #facebox .close img{
46
+ opacity:0.3;
47
+ }
48
+ #facebox .close:hover img{
49
+ opacity:1.0;
50
+ }
51
+
52
+ #facebox .loading {
53
+ text-align: center;
54
+ }
55
+
56
+ #facebox .image {
57
+ text-align: center;
58
+ }
59
+
60
+ #facebox img {
61
+ border: 0;
62
+ margin: 0;
63
+ }
64
+
65
+ #facebox_overlay {
66
+ position: fixed;
67
+ top: 0px;
68
+ left: 0px;
69
+ min-height:100%;
70
+ width:100%;
71
+ }
72
+
73
+ .facebox_hide {
74
+ z-index:-100;
75
+ }
76
+
77
+ .facebox_overlayBG {
78
+ background-color: #000;
79
+ z-index: 99;
80
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails31-markdown-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &18294520 !ruby/object:Gem::Requirement
16
+ requirement: &22889720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18294520
24
+ version_requirements: *22889720
25
25
  description: Work for rails3.1 with the assets pipeline
26
26
  email:
27
27
  - diegodorado@gmail.com
@@ -35,6 +35,17 @@ files:
35
35
  - lib/rails31-markdown-editor.rb
36
36
  - lib/rails31-markdown-editor/version.rb
37
37
  - rails31-markdown-editor.gemspec
38
+ - vendor/assets/editor.html
39
+ - vendor/assets/images/closelabel.png
40
+ - vendor/assets/images/icon-sprite.png
41
+ - vendor/assets/images/loading.gif
42
+ - vendor/assets/index.html
43
+ - vendor/assets/javascripts/application.js
44
+ - vendor/assets/javascripts/editor.js
45
+ - vendor/assets/javascripts/facebox.js
46
+ - vendor/assets/javascripts/showdown.js
47
+ - vendor/assets/stylesheets/editor.css
48
+ - vendor/assets/stylesheets/facebox.css
38
49
  homepage: ''
39
50
  licenses: []
40
51
  post_install_message: