medium-editor-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +63 -0
- data/Rakefile +1 -0
- data/lib/medium-editor-rails.rb +12 -0
- data/lib/medium-editor-rails/engine.rb +6 -0
- data/lib/medium-editor-rails/railtie.rb +5 -0
- data/lib/medium-editor-rails/version.rb +6 -0
- data/medium-editor-rails.gemspec +22 -0
- data/vendor/assets/javascripts/medium-editor.js +764 -0
- data/vendor/assets/stylesheets/medium-editor.css +1 -0
- data/vendor/assets/stylesheets/themes/bootstrap.css +1 -0
- data/vendor/assets/stylesheets/themes/flat.css +1 -0
- data/vendor/assets/stylesheets/themes/mani.css +1 -0
- data/vendor/assets/stylesheets/themes/roman.css +1 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 57cd623aacf0cdba05b8468994c356f969513991
|
4
|
+
data.tar.gz: 94902bd7847406ffe85fb9c4f173e68bd2985dd2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8e578fd345ab307bc0a74055103bd2f401f11045391bbd1e2a282c13f1b1ed1e4b4bd2484ae0d560cae60b3baa97c2e735a0c2a53dfb435ea142d458f8bdcf1c
|
7
|
+
data.tar.gz: 1b158e2d0236d68f5b7ab1379f8b6aaf48864e2b5ba0eb79743ab9e62ad0fc3e7a1b8c96b1431a1dfc21e4cddfafe3e6d72be16bdb2ad755ae38eb43522a6d58
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Ahmet Sezgin Duran
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# Medium Editor for Rails
|
2
|
+
|
3
|
+
This gem integrates [Medium Editor](https://github.com/daviferreira/medium-editor) with Rails asset pipeline.
|
4
|
+
|
5
|
+
## Version
|
6
|
+
|
7
|
+
The latest version of Medium Editor bundled by this gem is [1.5.3](https://github.com/daviferreira/medium-editor/releases)
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Include **medium-editor-rails** in your Rails project's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'medium-editor-rails'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
```bash
|
20
|
+
$ bundle install
|
21
|
+
```
|
22
|
+
|
23
|
+
## Configuration
|
24
|
+
|
25
|
+
Include javascript file in **app/assets/javascripts/application.js**:
|
26
|
+
|
27
|
+
```javascript
|
28
|
+
//= require medium-edior
|
29
|
+
```
|
30
|
+
|
31
|
+
Include stylesheet file on **app/assets/stylesheets/application.css**:
|
32
|
+
|
33
|
+
```scss
|
34
|
+
*= require medium-editor
|
35
|
+
```
|
36
|
+
|
37
|
+
You can also include themes from **themes** folder, example:
|
38
|
+
|
39
|
+
```scss
|
40
|
+
*= require medium-editor/themes/flat
|
41
|
+
```
|
42
|
+
|
43
|
+
## Using Medium Editor with Rails
|
44
|
+
|
45
|
+
You need to initialize Medium Editor with any selector of div, example:
|
46
|
+
|
47
|
+
```html
|
48
|
+
<div class="editable"></div>
|
49
|
+
|
50
|
+
<script>var editor = new MediumEditor('.editable');</script>
|
51
|
+
```
|
52
|
+
|
53
|
+
For extra options, visit this page:
|
54
|
+
|
55
|
+
https://github.com/daviferreira/medium-editor#initialization-options
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
1. Fork it ( http://github.com/<my-github-username>/medium-editor-rails/fork )
|
60
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
61
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
62
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
63
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'medium-editor-rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'medium-editor-rails'
|
8
|
+
s.version = MediumEditorRails::Rails::VERSION
|
9
|
+
s.authors = ['Ahmet Sezgin Duran']
|
10
|
+
s.email = ['marjinalist1@gmail.com']
|
11
|
+
s.summary = %q{Medium Editor integrated in Rails asset pipeline}
|
12
|
+
s.description = s.summary
|
13
|
+
s.homepage = 'https://github.com/marjinal1st/medium-editor-rails'
|
14
|
+
s.license = 'MIT'
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split($/)
|
17
|
+
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
19
|
+
s.require_paths = ['lib']
|
20
|
+
|
21
|
+
s.add_dependency 'rails', '~> 3.1'
|
22
|
+
end
|
@@ -0,0 +1,764 @@
|
|
1
|
+
function MediumEditor(elements, options) {
|
2
|
+
'use strict';
|
3
|
+
return this.init(elements, options);
|
4
|
+
}
|
5
|
+
|
6
|
+
if (typeof module === 'object') {
|
7
|
+
module.exports = MediumEditor;
|
8
|
+
}
|
9
|
+
|
10
|
+
(function (window, document) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
function extend(b, a) {
|
14
|
+
var prop;
|
15
|
+
if (b === undefined) {
|
16
|
+
return a;
|
17
|
+
}
|
18
|
+
for (prop in a) {
|
19
|
+
if (a.hasOwnProperty(prop) && b.hasOwnProperty(prop) === false) {
|
20
|
+
b[prop] = a[prop];
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return b;
|
24
|
+
}
|
25
|
+
|
26
|
+
// http://stackoverflow.com/questions/5605401/insert-link-in-contenteditable-element
|
27
|
+
// by Tim Down
|
28
|
+
function saveSelection() {
|
29
|
+
var i,
|
30
|
+
len,
|
31
|
+
ranges,
|
32
|
+
sel = window.getSelection();
|
33
|
+
if (sel.getRangeAt && sel.rangeCount) {
|
34
|
+
ranges = [];
|
35
|
+
for (i = 0, len = sel.rangeCount; i < len; i += 1) {
|
36
|
+
ranges.push(sel.getRangeAt(i));
|
37
|
+
}
|
38
|
+
return ranges;
|
39
|
+
}
|
40
|
+
return null;
|
41
|
+
}
|
42
|
+
|
43
|
+
function restoreSelection(savedSel) {
|
44
|
+
var i,
|
45
|
+
len,
|
46
|
+
sel = window.getSelection();
|
47
|
+
if (savedSel) {
|
48
|
+
sel.removeAllRanges();
|
49
|
+
for (i = 0, len = savedSel.length; i < len; i += 1) {
|
50
|
+
sel.addRange(savedSel[i]);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
// http://stackoverflow.com/questions/1197401/how-can-i-get-the-element-the-caret-is-in-with-javascript-when-using-contentedi
|
56
|
+
// by You
|
57
|
+
function getSelectionStart() {
|
58
|
+
var node = document.getSelection().anchorNode,
|
59
|
+
startNode = (node && node.nodeType === 3 ? node.parentNode : node);
|
60
|
+
return startNode;
|
61
|
+
}
|
62
|
+
|
63
|
+
// http://stackoverflow.com/questions/4176923/html-of-selected-text
|
64
|
+
// by Tim Down
|
65
|
+
function getSelectionHtml() {
|
66
|
+
var i,
|
67
|
+
html = '',
|
68
|
+
sel,
|
69
|
+
len,
|
70
|
+
container;
|
71
|
+
if (window.getSelection !== undefined) {
|
72
|
+
sel = window.getSelection();
|
73
|
+
if (sel.rangeCount) {
|
74
|
+
container = document.createElement('div');
|
75
|
+
for (i = 0, len = sel.rangeCount; i < len; i += 1) {
|
76
|
+
container.appendChild(sel.getRangeAt(i).cloneContents());
|
77
|
+
}
|
78
|
+
html = container.innerHTML;
|
79
|
+
}
|
80
|
+
} else if (document.selection !== undefined) {
|
81
|
+
if (document.selection.type === 'Text') {
|
82
|
+
html = document.selection.createRange().htmlText;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
return html;
|
86
|
+
}
|
87
|
+
|
88
|
+
MediumEditor.prototype = {
|
89
|
+
defaults: {
|
90
|
+
allowMultiParagraphSelection: true,
|
91
|
+
anchorInputPlaceholder: 'Paste or type a link',
|
92
|
+
buttons: ['bold', 'italic', 'underline', 'anchor', 'header1', 'header2', 'quote'],
|
93
|
+
buttonLabels: false,
|
94
|
+
delay: 0,
|
95
|
+
diffLeft: 0,
|
96
|
+
diffTop: -10,
|
97
|
+
disableReturn: false,
|
98
|
+
disableToolbar: false,
|
99
|
+
firstHeader: 'h3',
|
100
|
+
forcePlainText: true,
|
101
|
+
placeholder: 'Type your text',
|
102
|
+
secondHeader: 'h4',
|
103
|
+
targetBlank: false
|
104
|
+
},
|
105
|
+
|
106
|
+
init: function (elements, options) {
|
107
|
+
this.elements = typeof elements === 'string' ? document.querySelectorAll(elements) : elements;
|
108
|
+
if (this.elements.length === 0) {
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
this.isActive = true;
|
112
|
+
this.parentElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'pre'];
|
113
|
+
this.id = document.querySelectorAll('.medium-editor-toolbar').length + 1;
|
114
|
+
this.options = extend(options, this.defaults);
|
115
|
+
return this.initElements()
|
116
|
+
.bindSelect()
|
117
|
+
.bindPaste()
|
118
|
+
.setPlaceholders()
|
119
|
+
.bindWindowActions();
|
120
|
+
},
|
121
|
+
|
122
|
+
initElements: function () {
|
123
|
+
var i,
|
124
|
+
addToolbar = false;
|
125
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
126
|
+
this.elements[i].setAttribute('contentEditable', true);
|
127
|
+
if (!this.elements[i].getAttribute('data-placeholder')) {
|
128
|
+
this.elements[i].setAttribute('data-placeholder', this.options.placeholder);
|
129
|
+
}
|
130
|
+
this.elements[i].setAttribute('data-medium-element', true);
|
131
|
+
this.bindParagraphCreation(i).bindReturn(i).bindTab(i);
|
132
|
+
if (!this.options.disableToolbar && !this.elements[i].getAttribute('data-disable-toolbar')) {
|
133
|
+
addToolbar = true;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
// Init toolbar
|
137
|
+
if (addToolbar) {
|
138
|
+
this.initToolbar()
|
139
|
+
.bindButtons()
|
140
|
+
.bindAnchorForm();
|
141
|
+
}
|
142
|
+
return this;
|
143
|
+
},
|
144
|
+
|
145
|
+
serialize: function () {
|
146
|
+
var i,
|
147
|
+
elementid,
|
148
|
+
content = {};
|
149
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
150
|
+
elementid = (this.elements[i].id !== '') ? this.elements[i].id : 'element-' + i;
|
151
|
+
content[elementid] = {
|
152
|
+
value: this.elements[i].innerHTML.trim()
|
153
|
+
};
|
154
|
+
}
|
155
|
+
return content;
|
156
|
+
},
|
157
|
+
|
158
|
+
bindParagraphCreation: function (index) {
|
159
|
+
var self = this;
|
160
|
+
this.elements[index].addEventListener('keyup', function (e) {
|
161
|
+
var node = getSelectionStart(),
|
162
|
+
tagName;
|
163
|
+
if (node && node.getAttribute('data-medium-element') && node.children.length === 0
|
164
|
+
&& !(self.options.disableReturn || node.getAttribute('data-disable-return'))) {
|
165
|
+
document.execCommand('formatBlock', false, 'p');
|
166
|
+
}
|
167
|
+
if (e.which === 13 && !e.shiftKey) {
|
168
|
+
node = getSelectionStart();
|
169
|
+
tagName = node.tagName.toLowerCase();
|
170
|
+
if (!(self.options.disableReturn || this.getAttribute('data-disable-return'))
|
171
|
+
&& tagName !== 'li' && !self.isListItemChild(node)) {
|
172
|
+
document.execCommand('formatBlock', false, 'p');
|
173
|
+
if (tagName === 'a') {
|
174
|
+
document.execCommand('unlink', false, null);
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
});
|
179
|
+
return this;
|
180
|
+
},
|
181
|
+
|
182
|
+
isListItemChild: function (node) {
|
183
|
+
var parentNode = node.parentNode,
|
184
|
+
tagName = parentNode.tagName.toLowerCase();
|
185
|
+
while (this.parentElements.indexOf(tagName) === -1 && tagName !== 'div') {
|
186
|
+
if (tagName === 'li') {
|
187
|
+
return true;
|
188
|
+
}
|
189
|
+
parentNode = parentNode.parentNode;
|
190
|
+
if (parentNode && parentNode.tagName) {
|
191
|
+
tagName = parentNode.tagName.toLowerCase();
|
192
|
+
} else {
|
193
|
+
return false;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
return false;
|
197
|
+
},
|
198
|
+
|
199
|
+
bindReturn: function (index) {
|
200
|
+
var self = this;
|
201
|
+
this.elements[index].addEventListener('keypress', function (e) {
|
202
|
+
if (e.which === 13) {
|
203
|
+
if (self.options.disableReturn || this.getAttribute('data-disable-return')) {
|
204
|
+
e.preventDefault();
|
205
|
+
}
|
206
|
+
}
|
207
|
+
});
|
208
|
+
return this;
|
209
|
+
},
|
210
|
+
|
211
|
+
bindTab: function (index) {
|
212
|
+
this.elements[index].addEventListener('keydown', function (e) {
|
213
|
+
if (e.which === 9) {
|
214
|
+
// Override tab only for pre nodes
|
215
|
+
var tag = getSelectionStart().tagName.toLowerCase();
|
216
|
+
if (tag === "pre") {
|
217
|
+
e.preventDefault();
|
218
|
+
document.execCommand('insertHtml', null, ' ');
|
219
|
+
}
|
220
|
+
}
|
221
|
+
});
|
222
|
+
},
|
223
|
+
|
224
|
+
buttonTemplate: function (btnType) {
|
225
|
+
var buttonLabels = this.getButtonLabels(this.options.buttonLabels),
|
226
|
+
buttonTemplates = {
|
227
|
+
'bold': '<li><button class="medium-editor-action medium-editor-action-bold" data-action="bold" data-element="b">' + buttonLabels.bold + '</button></li>',
|
228
|
+
'italic': '<li><button class="medium-editor-action medium-editor-action-italic" data-action="italic" data-element="i">' + buttonLabels.italic + '</button></li>',
|
229
|
+
'underline': '<li><button class="medium-editor-action medium-editor-action-underline" data-action="underline" data-element="u">' + buttonLabels.underline + '</button></li>',
|
230
|
+
'strikethrough': '<li><button class="medium-editor-action medium-editor-action-strikethrough" data-action="strikethrough" data-element="strike"><strike>A</strike></button></li>',
|
231
|
+
'superscript': '<li><button class="medium-editor-action medium-editor-action-superscript" data-action="superscript" data-element="sup">' + buttonLabels.superscript + '</button></li>',
|
232
|
+
'subscript': '<li><button class="medium-editor-action medium-editor-action-subscript" data-action="subscript" data-element="sub">' + buttonLabels.subscript + '</button></li>',
|
233
|
+
'anchor': '<li><button class="medium-editor-action medium-editor-action-anchor" data-action="anchor" data-element="a">' + buttonLabels.anchor + '</button></li>',
|
234
|
+
'header1': '<li><button class="medium-editor-action medium-editor-action-header1" data-action="append-' + this.options.firstHeader + '" data-element="' + this.options.firstHeader + '">' + buttonLabels.header1 + '</button></li>',
|
235
|
+
'header2': '<li><button class="medium-editor-action medium-editor-action-header2" data-action="append-' + this.options.secondHeader + '" data-element="' + this.options.secondHeader + '">' + buttonLabels.header2 + '</button></li>',
|
236
|
+
'quote': '<li><button class="medium-editor-action medium-editor-action-quote" data-action="append-blockquote" data-element="blockquote">' + buttonLabels.quote + '</button></li>',
|
237
|
+
'orderedlist': '<li><button class="medium-editor-action medium-editor-action-orderedlist" data-action="insertorderedlist" data-element="ol">' + buttonLabels.orderedlist + '</button></li>',
|
238
|
+
'unorderedlist': '<li><button class="medium-editor-action medium-editor-action-unorderedlist" data-action="insertunorderedlist" data-element="ul">' + buttonLabels.unorderedlist + '</button></li>',
|
239
|
+
'pre': '<li><button class="medium-editor-action medium-editor-action-pre" data-action="append-pre" data-element="pre">' + buttonLabels.pre + '</button></li>'
|
240
|
+
};
|
241
|
+
return buttonTemplates[btnType] || false;
|
242
|
+
},
|
243
|
+
|
244
|
+
// TODO: break method
|
245
|
+
getButtonLabels: function (buttonLabelType) {
|
246
|
+
var customButtonLabels,
|
247
|
+
attrname,
|
248
|
+
buttonLabels = {
|
249
|
+
'bold': '<b>B</b>',
|
250
|
+
'italic' : '<b><i>I</i></b>',
|
251
|
+
'underline': '<b><u>U</u></b>',
|
252
|
+
'superscript': '<b>x<sup>1</sup></b>',
|
253
|
+
'subscript': '<b>x<sub>1</sup></b>',
|
254
|
+
'anchor': '<b>#</b>',
|
255
|
+
'header1': '<b>H1</b>',
|
256
|
+
'header2': '<b>H2</b>',
|
257
|
+
'quote': '<b>“</b>',
|
258
|
+
'orderedlist': '<b>1.</b>',
|
259
|
+
'unorderedlist': '<b>•</b>',
|
260
|
+
'pre': '<b>0101</b>'
|
261
|
+
};
|
262
|
+
if (buttonLabelType === 'fontawesome') {
|
263
|
+
customButtonLabels = {
|
264
|
+
'bold': '<i class="fa fa-bold"></i>',
|
265
|
+
'italic' : '<i class="fa fa-italic"></i>',
|
266
|
+
'underline': '<i class="fa fa-underline"></i>',
|
267
|
+
'superscript': '<i class="fa fa-superscript"></i>',
|
268
|
+
'subscript': '<i class="fa fa-subscript"></i>',
|
269
|
+
'anchor': '<i class="fa fa-link"></i>',
|
270
|
+
'quote': '<i class="fa fa-quote-right"></i>',
|
271
|
+
'orderedlist': '<i class="fa fa-list-ol"></i>',
|
272
|
+
'unorderedlist': '<i class="fa fa-list-ul"></i>',
|
273
|
+
'pre': '<i class="fa fa-code fa-lg"></i>'
|
274
|
+
};
|
275
|
+
} else if (typeof buttonLabelType === 'object') {
|
276
|
+
customButtonLabels = buttonLabelType;
|
277
|
+
}
|
278
|
+
if (typeof customButtonLabels === 'object') {
|
279
|
+
for (attrname in customButtonLabels) {
|
280
|
+
if (customButtonLabels.hasOwnProperty(attrname)) {
|
281
|
+
buttonLabels[attrname] = customButtonLabels[attrname];
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
return buttonLabels;
|
286
|
+
},
|
287
|
+
|
288
|
+
//TODO: actionTemplate
|
289
|
+
toolbarTemplate: function () {
|
290
|
+
var btns = this.options.buttons,
|
291
|
+
html = '<ul id="medium-editor-toolbar-actions" class="medium-editor-toolbar-actions clearfix">',
|
292
|
+
i,
|
293
|
+
tpl;
|
294
|
+
|
295
|
+
for (i = 0; i < btns.length; i += 1) {
|
296
|
+
tpl = this.buttonTemplate(btns[i]);
|
297
|
+
if (tpl) {
|
298
|
+
html += tpl;
|
299
|
+
}
|
300
|
+
}
|
301
|
+
html += '</ul>' +
|
302
|
+
'<div class="medium-editor-toolbar-form-anchor" id="medium-editor-toolbar-form-anchor">' +
|
303
|
+
' <input type="text" value="" placeholder="' + this.options.anchorInputPlaceholder + '">' +
|
304
|
+
' <a href="#">×</a>' +
|
305
|
+
'</div>';
|
306
|
+
return html;
|
307
|
+
},
|
308
|
+
|
309
|
+
initToolbar: function () {
|
310
|
+
if (this.toolbar) {
|
311
|
+
return this;
|
312
|
+
}
|
313
|
+
this.toolbar = this.createToolbar();
|
314
|
+
this.keepToolbarAlive = false;
|
315
|
+
this.anchorForm = this.toolbar.querySelector('.medium-editor-toolbar-form-anchor');
|
316
|
+
this.anchorInput = this.anchorForm.querySelector('input');
|
317
|
+
this.toolbarActions = this.toolbar.querySelector('.medium-editor-toolbar-actions');
|
318
|
+
return this;
|
319
|
+
},
|
320
|
+
|
321
|
+
createToolbar: function () {
|
322
|
+
var toolbar = document.createElement('div');
|
323
|
+
toolbar.id = 'medium-editor-toolbar-' + this.id;
|
324
|
+
toolbar.className = 'medium-editor-toolbar';
|
325
|
+
toolbar.innerHTML = this.toolbarTemplate();
|
326
|
+
document.getElementsByTagName('body')[0].appendChild(toolbar);
|
327
|
+
return toolbar;
|
328
|
+
},
|
329
|
+
|
330
|
+
bindSelect: function () {
|
331
|
+
var self = this,
|
332
|
+
timer = '',
|
333
|
+
i;
|
334
|
+
this.checkSelectionWrapper = function (e) {
|
335
|
+
clearTimeout(timer);
|
336
|
+
timer = setTimeout(function () {
|
337
|
+
self.checkSelection();
|
338
|
+
}, self.options.delay);
|
339
|
+
};
|
340
|
+
|
341
|
+
document.documentElement.addEventListener('mouseup', this.checkSelectionWrapper);
|
342
|
+
|
343
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
344
|
+
this.elements[i].addEventListener('keyup', this.checkSelectionWrapper);
|
345
|
+
this.elements[i].addEventListener('blur', this.checkSelectionWrapper);
|
346
|
+
}
|
347
|
+
return this;
|
348
|
+
},
|
349
|
+
|
350
|
+
checkSelection: function () {
|
351
|
+
var i,
|
352
|
+
newSelection,
|
353
|
+
hasMultiParagraphs,
|
354
|
+
selectionHtml,
|
355
|
+
selectionElement;
|
356
|
+
if (this.keepToolbarAlive !== true && !this.options.disableToolbar) {
|
357
|
+
newSelection = window.getSelection();
|
358
|
+
selectionHtml = getSelectionHtml();
|
359
|
+
selectionHtml = selectionHtml.replace(/<[\S]+><\/[\S]+>/gim, '');
|
360
|
+
// Check if selection is between multi paragraph <p>.
|
361
|
+
hasMultiParagraphs = selectionHtml.match(/<(p|h[0-6]|blockquote)>([\s\S]*?)<\/(p|h[0-6]|blockquote)>/g);
|
362
|
+
hasMultiParagraphs = hasMultiParagraphs ? hasMultiParagraphs.length : 0;
|
363
|
+
if (newSelection.toString().trim() === ''
|
364
|
+
|| (this.options.allowMultiParagraphSelection === false && hasMultiParagraphs)) {
|
365
|
+
this.hideToolbarActions();
|
366
|
+
} else {
|
367
|
+
selectionElement = this.getSelectionElement();
|
368
|
+
if (!selectionElement || selectionElement.getAttribute('data-disable-toolbar')) {
|
369
|
+
this.hideToolbarActions();
|
370
|
+
} else {
|
371
|
+
this.selection = newSelection;
|
372
|
+
this.selectionRange = this.selection.getRangeAt(0);
|
373
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
374
|
+
if (this.elements[i] === selectionElement) {
|
375
|
+
this.setToolbarButtonStates()
|
376
|
+
.setToolbarPosition()
|
377
|
+
.showToolbarActions();
|
378
|
+
return;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
this.hideToolbarActions();
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
return this;
|
386
|
+
},
|
387
|
+
|
388
|
+
getSelectionElement: function () {
|
389
|
+
var selection = window.getSelection(),
|
390
|
+
range = selection.getRangeAt(0),
|
391
|
+
current = range.commonAncestorContainer,
|
392
|
+
parent = current.parentNode,
|
393
|
+
result,
|
394
|
+
getMediumElement = function(e) {
|
395
|
+
var parent = e;
|
396
|
+
try {
|
397
|
+
while (!parent.getAttribute('data-medium-element')) {
|
398
|
+
parent = parent.parentNode;
|
399
|
+
}
|
400
|
+
} catch (errb) {
|
401
|
+
return false;
|
402
|
+
}
|
403
|
+
return parent;
|
404
|
+
};
|
405
|
+
// First try on current node
|
406
|
+
try {
|
407
|
+
if (current.getAttribute('data-medium-element')) {
|
408
|
+
result = current;
|
409
|
+
} else {
|
410
|
+
result = getMediumElement(parent);
|
411
|
+
}
|
412
|
+
// If not search in the parent nodes.
|
413
|
+
} catch (err) {
|
414
|
+
result = getMediumElement(parent);
|
415
|
+
}
|
416
|
+
return result;
|
417
|
+
},
|
418
|
+
|
419
|
+
setToolbarPosition: function () {
|
420
|
+
var buttonHeight = 50,
|
421
|
+
selection = window.getSelection(),
|
422
|
+
range = selection.getRangeAt(0),
|
423
|
+
boundary = range.getBoundingClientRect(),
|
424
|
+
defaultLeft = (this.options.diffLeft) - (this.toolbar.offsetWidth / 2),
|
425
|
+
middleBoundary = (boundary.left + boundary.right) / 2,
|
426
|
+
halfOffsetWidth = this.toolbar.offsetWidth / 2;
|
427
|
+
if (boundary.top < buttonHeight) {
|
428
|
+
this.toolbar.classList.add('medium-toolbar-arrow-over');
|
429
|
+
this.toolbar.classList.remove('medium-toolbar-arrow-under');
|
430
|
+
this.toolbar.style.top = buttonHeight + boundary.bottom - this.options.diffTop + window.pageYOffset - this.toolbar.offsetHeight + 'px';
|
431
|
+
} else {
|
432
|
+
this.toolbar.classList.add('medium-toolbar-arrow-under');
|
433
|
+
this.toolbar.classList.remove('medium-toolbar-arrow-over');
|
434
|
+
this.toolbar.style.top = boundary.top + this.options.diffTop + window.pageYOffset - this.toolbar.offsetHeight + 'px';
|
435
|
+
}
|
436
|
+
if (middleBoundary < halfOffsetWidth) {
|
437
|
+
this.toolbar.style.left = defaultLeft + halfOffsetWidth + 'px';
|
438
|
+
} else if ((window.innerWidth - middleBoundary) < halfOffsetWidth) {
|
439
|
+
this.toolbar.style.left = window.innerWidth + defaultLeft - halfOffsetWidth + 'px';
|
440
|
+
} else {
|
441
|
+
this.toolbar.style.left = defaultLeft + middleBoundary + 'px';
|
442
|
+
}
|
443
|
+
return this;
|
444
|
+
},
|
445
|
+
|
446
|
+
setToolbarButtonStates: function () {
|
447
|
+
var buttons = this.toolbarActions.querySelectorAll('button'),
|
448
|
+
i;
|
449
|
+
for (i = 0; i < buttons.length; i += 1) {
|
450
|
+
buttons[i].classList.remove('medium-editor-button-active');
|
451
|
+
}
|
452
|
+
this.checkActiveButtons();
|
453
|
+
return this;
|
454
|
+
},
|
455
|
+
|
456
|
+
checkActiveButtons: function () {
|
457
|
+
var parentNode = this.selection.anchorNode;
|
458
|
+
if (!parentNode.tagName) {
|
459
|
+
parentNode = this.selection.anchorNode.parentNode;
|
460
|
+
}
|
461
|
+
while (parentNode.tagName !== undefined && this.parentElements.indexOf(parentNode.tagName) === -1) {
|
462
|
+
this.activateButton(parentNode.tagName.toLowerCase());
|
463
|
+
parentNode = parentNode.parentNode;
|
464
|
+
}
|
465
|
+
},
|
466
|
+
|
467
|
+
activateButton: function (tag) {
|
468
|
+
var el = this.toolbar.querySelector('[data-element="' + tag + '"]');
|
469
|
+
if (el !== null && el.className.indexOf('medium-editor-button-active') === -1) {
|
470
|
+
el.className += ' medium-editor-button-active';
|
471
|
+
}
|
472
|
+
},
|
473
|
+
|
474
|
+
bindButtons: function () {
|
475
|
+
var buttons = this.toolbar.querySelectorAll('button'),
|
476
|
+
i,
|
477
|
+
self = this,
|
478
|
+
triggerAction = function (e) {
|
479
|
+
e.preventDefault();
|
480
|
+
e.stopPropagation();
|
481
|
+
if (self.selection === undefined) {
|
482
|
+
self.checkSelection();
|
483
|
+
}
|
484
|
+
if (this.className.indexOf('medium-editor-button-active') > -1) {
|
485
|
+
this.classList.remove('medium-editor-button-active');
|
486
|
+
} else {
|
487
|
+
this.className += ' medium-editor-button-active';
|
488
|
+
}
|
489
|
+
self.execAction(this.getAttribute('data-action'), e);
|
490
|
+
};
|
491
|
+
for (i = 0; i < buttons.length; i += 1) {
|
492
|
+
buttons[i].addEventListener('click', triggerAction);
|
493
|
+
}
|
494
|
+
this.setFirstAndLastItems(buttons);
|
495
|
+
return this;
|
496
|
+
},
|
497
|
+
|
498
|
+
setFirstAndLastItems: function (buttons) {
|
499
|
+
buttons[0].className += ' medium-editor-button-first';
|
500
|
+
buttons[buttons.length - 1].className += ' medium-editor-button-last';
|
501
|
+
return this;
|
502
|
+
},
|
503
|
+
|
504
|
+
execAction: function (action, e) {
|
505
|
+
if (action.indexOf('append-') > -1) {
|
506
|
+
this.execFormatBlock(action.replace('append-', ''));
|
507
|
+
this.setToolbarPosition();
|
508
|
+
this.setToolbarButtonStates();
|
509
|
+
} else if (action === 'anchor') {
|
510
|
+
this.triggerAnchorAction(e);
|
511
|
+
} else {
|
512
|
+
document.execCommand(action, false, null);
|
513
|
+
this.setToolbarPosition();
|
514
|
+
}
|
515
|
+
},
|
516
|
+
|
517
|
+
triggerAnchorAction: function () {
|
518
|
+
if (this.selection.anchorNode.parentNode.tagName.toLowerCase() === 'a') {
|
519
|
+
document.execCommand('unlink', false, null);
|
520
|
+
} else {
|
521
|
+
if (this.anchorForm.style.display === 'block') {
|
522
|
+
this.showToolbarActions();
|
523
|
+
} else {
|
524
|
+
this.showAnchorForm();
|
525
|
+
}
|
526
|
+
}
|
527
|
+
return this;
|
528
|
+
},
|
529
|
+
|
530
|
+
execFormatBlock: function (el) {
|
531
|
+
var selectionData = this.getSelectionData(this.selection.anchorNode);
|
532
|
+
// FF handles blockquote differently on formatBlock
|
533
|
+
// allowing nesting, we need to use outdent
|
534
|
+
// https://developer.mozilla.org/en-US/docs/Rich-Text_Editing_in_Mozilla
|
535
|
+
if (el === 'blockquote' && selectionData.el
|
536
|
+
&& selectionData.el.parentNode.tagName.toLowerCase() === 'blockquote') {
|
537
|
+
return document.execCommand('outdent', false, null);
|
538
|
+
}
|
539
|
+
if (selectionData.tagName === el) {
|
540
|
+
el = 'p';
|
541
|
+
}
|
542
|
+
return document.execCommand('formatBlock', false, el);
|
543
|
+
},
|
544
|
+
|
545
|
+
getSelectionData: function (el) {
|
546
|
+
var tagName;
|
547
|
+
|
548
|
+
if (el && el.tagName) {
|
549
|
+
tagName = el.tagName.toLowerCase();
|
550
|
+
}
|
551
|
+
|
552
|
+
while (el && this.parentElements.indexOf(tagName) === -1) {
|
553
|
+
el = el.parentNode;
|
554
|
+
if (el && el.tagName) {
|
555
|
+
tagName = el.tagName.toLowerCase();
|
556
|
+
}
|
557
|
+
}
|
558
|
+
|
559
|
+
return {
|
560
|
+
el: el,
|
561
|
+
tagName: tagName
|
562
|
+
};
|
563
|
+
},
|
564
|
+
|
565
|
+
getFirstChild: function (el) {
|
566
|
+
var firstChild = el.firstChild;
|
567
|
+
while (firstChild !== null && firstChild.nodeType !== 1) {
|
568
|
+
firstChild = firstChild.nextSibling;
|
569
|
+
}
|
570
|
+
return firstChild;
|
571
|
+
},
|
572
|
+
|
573
|
+
bindElementToolbarEvents: function (el) {
|
574
|
+
var self = this;
|
575
|
+
el.addEventListener('mouseup', function (e) {
|
576
|
+
self.checkSelection();
|
577
|
+
});
|
578
|
+
el.addEventListener('keyup', function (e) {
|
579
|
+
self.checkSelection();
|
580
|
+
});
|
581
|
+
},
|
582
|
+
|
583
|
+
hideToolbarActions: function () {
|
584
|
+
this.keepToolbarAlive = false;
|
585
|
+
this.toolbar.classList.remove('medium-editor-toolbar-active');
|
586
|
+
},
|
587
|
+
|
588
|
+
showToolbarActions: function () {
|
589
|
+
var self = this,
|
590
|
+
timer;
|
591
|
+
this.anchorForm.style.display = 'none';
|
592
|
+
this.toolbarActions.style.display = 'block';
|
593
|
+
this.keepToolbarAlive = false;
|
594
|
+
clearTimeout(timer);
|
595
|
+
timer = setTimeout(function() {
|
596
|
+
if (!self.toolbar.classList.contains('medium-editor-toolbar-active')) {
|
597
|
+
self.toolbar.classList.add('medium-editor-toolbar-active');
|
598
|
+
}
|
599
|
+
}, 100);
|
600
|
+
},
|
601
|
+
|
602
|
+
showAnchorForm: function () {
|
603
|
+
this.toolbarActions.style.display = 'none';
|
604
|
+
this.savedSelection = saveSelection();
|
605
|
+
this.anchorForm.style.display = 'block';
|
606
|
+
this.keepToolbarAlive = true;
|
607
|
+
this.anchorInput.focus();
|
608
|
+
this.anchorInput.value = '';
|
609
|
+
},
|
610
|
+
|
611
|
+
bindAnchorForm: function () {
|
612
|
+
var linkCancel = this.anchorForm.querySelector('a'),
|
613
|
+
self = this;
|
614
|
+
this.anchorForm.addEventListener('click', function (e) {
|
615
|
+
e.stopPropagation();
|
616
|
+
});
|
617
|
+
this.anchorInput.addEventListener('keyup', function (e) {
|
618
|
+
if (e.keyCode === 13) {
|
619
|
+
e.preventDefault();
|
620
|
+
self.createLink(this);
|
621
|
+
}
|
622
|
+
});
|
623
|
+
this.anchorInput.addEventListener('blur', function (e) {
|
624
|
+
self.keepToolbarAlive = false;
|
625
|
+
self.checkSelection();
|
626
|
+
});
|
627
|
+
linkCancel.addEventListener('click', function (e) {
|
628
|
+
e.preventDefault();
|
629
|
+
self.showToolbarActions();
|
630
|
+
restoreSelection(self.savedSelection);
|
631
|
+
});
|
632
|
+
return this;
|
633
|
+
},
|
634
|
+
|
635
|
+
setTargetBlank: function () {
|
636
|
+
var el = getSelectionStart(),
|
637
|
+
i;
|
638
|
+
if (el.tagName.toLowerCase() === 'a') {
|
639
|
+
el.target = '_blank';
|
640
|
+
} else {
|
641
|
+
el = el.getElementsByTagName('a');
|
642
|
+
for (i = 0; i < el.length; i += 1) {
|
643
|
+
el[i].target = '_blank';
|
644
|
+
}
|
645
|
+
}
|
646
|
+
},
|
647
|
+
|
648
|
+
createLink: function (input) {
|
649
|
+
restoreSelection(this.savedSelection);
|
650
|
+
document.execCommand('createLink', false, input.value);
|
651
|
+
if (this.options.targetBlank) {
|
652
|
+
this.setTargetBlank();
|
653
|
+
}
|
654
|
+
this.showToolbarActions();
|
655
|
+
input.value = '';
|
656
|
+
},
|
657
|
+
|
658
|
+
bindWindowActions: function () {
|
659
|
+
var timerResize,
|
660
|
+
self = this;
|
661
|
+
window.addEventListener('resize', function () {
|
662
|
+
clearTimeout(timerResize);
|
663
|
+
timerResize = setTimeout(function () {
|
664
|
+
if (self.toolbar.classList.contains('medium-editor-toolbar-active')) {
|
665
|
+
self.setToolbarPosition();
|
666
|
+
}
|
667
|
+
}, 100);
|
668
|
+
});
|
669
|
+
return this;
|
670
|
+
},
|
671
|
+
|
672
|
+
activate: function () {
|
673
|
+
var i;
|
674
|
+
if (this.isActive) {
|
675
|
+
return;
|
676
|
+
}
|
677
|
+
|
678
|
+
if (this.toolbar !== undefined) {
|
679
|
+
this.toolbar.style.display = 'block';
|
680
|
+
}
|
681
|
+
|
682
|
+
this.isActive = true;
|
683
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
684
|
+
this.elements[i].setAttribute('contentEditable', true);
|
685
|
+
}
|
686
|
+
this.bindSelect();
|
687
|
+
},
|
688
|
+
|
689
|
+
deactivate: function () {
|
690
|
+
var i;
|
691
|
+
if (!this.isActive) {
|
692
|
+
return;
|
693
|
+
}
|
694
|
+
this.isActive = false;
|
695
|
+
|
696
|
+
if (this.toolbar !== undefined) {
|
697
|
+
this.toolbar.style.display = 'none';
|
698
|
+
}
|
699
|
+
|
700
|
+
document.documentElement.removeEventListener('mouseup', this.checkSelectionWrapper);
|
701
|
+
|
702
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
703
|
+
this.elements[i].removeEventListener('keyup', this.checkSelectionWrapper);
|
704
|
+
this.elements[i].removeEventListener('blur', this.checkSelectionWrapper);
|
705
|
+
this.elements[i].removeAttribute('contentEditable');
|
706
|
+
}
|
707
|
+
},
|
708
|
+
|
709
|
+
bindPaste: function () {
|
710
|
+
if (!this.options.forcePlainText) {
|
711
|
+
return this;
|
712
|
+
}
|
713
|
+
var i,
|
714
|
+
self = this,
|
715
|
+
pasteWrapper = function (e) {
|
716
|
+
var paragraphs,
|
717
|
+
html = '',
|
718
|
+
p;
|
719
|
+
this.classList.remove('medium-editor-placeholder');
|
720
|
+
if (e.clipboardData && e.clipboardData.getData) {
|
721
|
+
e.preventDefault();
|
722
|
+
if (!self.options.disableReturn) {
|
723
|
+
paragraphs = e.clipboardData.getData('text/plain').split(/[\r\n]/g);
|
724
|
+
for (p = 0; p < paragraphs.length; p += 1) {
|
725
|
+
if (paragraphs[p] !== '') {
|
726
|
+
html += '<p>' + paragraphs[p] + '</p>';
|
727
|
+
}
|
728
|
+
}
|
729
|
+
document.execCommand('insertHTML', false, html);
|
730
|
+
} else {
|
731
|
+
document.execCommand('insertHTML', false, e.clipboardData.getData('text/plain'));
|
732
|
+
}
|
733
|
+
}
|
734
|
+
};
|
735
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
736
|
+
this.elements[i].addEventListener('paste', pasteWrapper);
|
737
|
+
}
|
738
|
+
return this;
|
739
|
+
},
|
740
|
+
|
741
|
+
setPlaceholders: function () {
|
742
|
+
var i,
|
743
|
+
activatePlaceholder = function (el) {
|
744
|
+
if (el.textContent.replace(/^\s+|\s+$/g, '') === '') {
|
745
|
+
el.classList.add('medium-editor-placeholder');
|
746
|
+
}
|
747
|
+
},
|
748
|
+
placeholderWrapper = function (e) {
|
749
|
+
this.classList.remove('medium-editor-placeholder');
|
750
|
+
if (e.type !== 'keypress') {
|
751
|
+
activatePlaceholder(this);
|
752
|
+
}
|
753
|
+
};
|
754
|
+
for (i = 0; i < this.elements.length; i += 1) {
|
755
|
+
activatePlaceholder(this.elements[i]);
|
756
|
+
this.elements[i].addEventListener('blur', placeholderWrapper);
|
757
|
+
this.elements[i].addEventListener('keypress', placeholderWrapper);
|
758
|
+
}
|
759
|
+
return this;
|
760
|
+
}
|
761
|
+
|
762
|
+
};
|
763
|
+
|
764
|
+
}(window, document));
|
@@ -0,0 +1 @@
|
|
1
|
+
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-moz-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-o-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}.medium-toolbar-arrow-under:after,.medium-toolbar-arrow-over:before{content:"";display:block;position:absolute;left:50%;margin-left:-8px;width:0;height:0;border-style:solid}.medium-toolbar-arrow-under:after{top:50px;border-width:8px 8px 0 8px;border-color:#242424 transparent transparent transparent}.medium-toolbar-arrow-over:before{top:-8px;border-width:0 8px 8px 8px;border-color:transparent transparent #242424 transparent}.medium-editor-toolbar{position:absolute;top:0;left:0;z-index:2000;visibility:hidden;background-color:#242424;border:1px solid #000;font-family:HelveticaNeue, Helvetica, Arial, sans-serif;font-size:16px;background:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #242424), color-stop(100%, rgba(36,36,36,0.75)));background:-webkit-linear-gradient(bottom, #242424,rgba(36,36,36,0.75));background:-moz-linear-gradient(bottom, #242424,rgba(36,36,36,0.75));background:-o-linear-gradient(bottom, #242424,rgba(36,36,36,0.75));background:linear-gradient(bottom, #242424,rgba(36,36,36,0.75));-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 0 3px #000;-moz-box-shadow:0 0 3px #000;box-shadow:0 0 3px #000;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-toolbar ul{margin:0;padding:0}.medium-editor-toolbar li{float:left;list-style:none;margin:0;padding:0}.medium-editor-toolbar li button{display:block;padding:15px;height:50px;min-width:50px;background-color:#242424;color:#fff;border:0;border-right:1px solid #000;border-left:1px solid #333;border-left:1px solid rgba(255,255,255,0.1);text-decoration:none;background:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #242424), color-stop(100%, rgba(36,36,36,0.89)));background:-webkit-linear-gradient(bottom, #242424,rgba(36,36,36,0.89));background:-moz-linear-gradient(bottom, #242424,rgba(36,36,36,0.89));background:-o-linear-gradient(bottom, #242424,rgba(36,36,36,0.89));background:linear-gradient(bottom, #242424,rgba(36,36,36,0.89));-webkit-box-shadow:0 2px 2px rgba(0,0,0,0.3);-moz-box-shadow:0 2px 2px rgba(0,0,0,0.3);box-shadow:0 2px 2px rgba(0,0,0,0.3);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color 0.2s ease-in;-moz-transition:background-color 0.2s ease-in;-o-transition:background-color 0.2s ease-in;transition:background-color 0.2s ease-in}.medium-editor-toolbar li button:hover{color:yellow;background-color:#000}.medium-editor-toolbar li .medium-editor-button-first{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.medium-editor-toolbar li .medium-editor-button-last{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.medium-editor-toolbar li .medium-editor-button-active{background-color:#000;background:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #242424), color-stop(100%, rgba(0,0,0,0.89)));background:-webkit-linear-gradient(bottom, #242424,rgba(0,0,0,0.89));background:-moz-linear-gradient(bottom, #242424,rgba(0,0,0,0.89));background:-o-linear-gradient(bottom, #242424,rgba(0,0,0,0.89));background:linear-gradient(bottom, #242424,rgba(0,0,0,0.89));color:#fff}.medium-editor-toolbar li .medium-editor-action-underline{text-decoration:underline}.medium-editor-toolbar li .medium-editor-action-pre{font-family:'Menlo', monospace;font-size:12px;font-weight:100;padding:15px 0}.medium-editor-toolbar-active{visibility:visible;-webkit-animation:pop-upwards 160ms forwards linear;-moz-animation:pop-upwards 160ms forwards linear;-ms-animation:pop-upwards 160ms forwards linear;-o-animation:pop-upwards 160ms forwards linear;animation:pop-upwards 160ms forwards linear;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-action-bold{font-weight:bolder}.medium-editor-action-italic{font-style:italic}.medium-editor-toolbar-form-anchor{display:none;background:#242424;color:#999;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px}.medium-editor-toolbar-form-anchor input,.medium-editor-toolbar-form-anchor a{font-family:HelveticaNeue, Helvetica, Arial, sans-serif}.medium-editor-toolbar-form-anchor input{margin:0;padding:6px;height:50px;width:316px;background:#242424;border:none;color:#ccc;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.medium-editor-toolbar-form-anchor input:focus{outline:0;-moz-appearance:none;-webkit-appearance:none;border:none;box-shadow:none}.medium-editor-toolbar-form-anchor a{color:#fff;font-weight:bolder;font-size:24px;display:inline-block;margin:0 10px;text-decoration:none}.medium-editor-placeholder{position:relative}.medium-editor-placeholder:after{position:absolute;top:0;left:0;content:attr(data-placeholder);color:#b3b3b1;font-style:italic}
|
@@ -0,0 +1 @@
|
|
1
|
+
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-moz-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-o-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}.medium-toolbar-arrow-under:after,.medium-toolbar-arrow-over:before{content:"";display:block;position:absolute;left:50%;margin-left:-8px;width:0;height:0;border-style:solid}.medium-toolbar-arrow-under:after{top:60px;border-width:8px 8px 0 8px;border-color:#428bca transparent transparent transparent}.medium-toolbar-arrow-over:before{top:-8px;border-width:0 8px 8px 8px;border-color:transparent transparent #428bca transparent}.medium-editor-toolbar{position:absolute;top:0;left:0;z-index:2000;visibility:hidden;background-color:#428bca;border:1px solid #357ebd;font-family:HelveticaNeue, Helvetica, Arial, sans-serif;font-size:16px;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-toolbar ul{margin:0;padding:0}.medium-editor-toolbar li{float:left;list-style:none;margin:0;padding:0}.medium-editor-toolbar li button{display:block;padding:15px;height:60px;min-width:60px;background-color:transparent;color:#fff;border:none;border-right:1px solid #357ebd;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color 0.2s ease-in,color 0.2s ease-in;-moz-transition:background-color 0.2s ease-in,color 0.2s ease-in;-o-transition:background-color 0.2s ease-in,color 0.2s ease-in;transition:background-color 0.2s ease-in,color 0.2s ease-in}.medium-editor-toolbar li button:hover{background-color:#3276b1;color:#fff}.medium-editor-toolbar li .medium-editor-button-active{background-color:#3276b1;color:#fff}.medium-editor-toolbar li .medium-editor-action-underline{text-decoration:underline}.medium-editor-toolbar li .medium-editor-button-first{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.medium-editor-toolbar li .medium-editor-button-last{border-right:none;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.medium-editor-toolbar li .medium-editor-action-pre{font-family:'Menlo', monospace;font-size:12px;font-weight:100;padding:15px 0}.medium-editor-toolbar-active{visibility:visible;-webkit-animation:pop-upwards 160ms forwards linear;-moz-animation:pop-upwards 160ms forwards linear;-ms-animation:pop-upwards 160ms forwards linear;-o-animation:pop-upwards 160ms forwards linear;animation:pop-upwards 160ms forwards linear;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-action-bold{font-weight:bolder}.medium-editor-action-italic{font-style:italic}.medium-editor-toolbar-form-anchor{display:none;background:#428bca;color:#fff;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.medium-editor-toolbar-form-anchor input,.medium-editor-toolbar-form-anchor a{font-family:HelveticaNeue, Helvetica, Arial, sans-serif}.medium-editor-toolbar-form-anchor input{margin:0;padding:6px;height:60px;width:316px;background:#428bca;border:none;color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.medium-editor-toolbar-form-anchor input:focus{outline:0;-moz-appearance:none;-webkit-appearance:none;border:none;box-shadow:none}.medium-editor-toolbar-form-anchor input::-webkit-input-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor input:-moz-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor input::-moz-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor input:-ms-input-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor a{color:#fff;font-weight:bolder;font-size:24px;display:inline-block;margin:0 10px;text-decoration:none}.medium-editor-placeholder{position:relative}.medium-editor-placeholder:after{position:absolute;top:0;left:0;content:attr(data-placeholder);color:#357ebd;font-style:italic}
|
@@ -0,0 +1 @@
|
|
1
|
+
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-moz-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-o-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}.medium-toolbar-arrow-under:after,.medium-toolbar-arrow-over:before{content:"";display:block;position:absolute;left:50%;margin-left:-8px;width:0;height:0;border-style:solid}.medium-toolbar-arrow-under:after{top:60px;border-width:8px 8px 0 8px;border-color:#57ad68 transparent transparent transparent}.medium-toolbar-arrow-over:before{top:-8px;border-width:0 8px 8px 8px;border-color:transparent transparent #57ad68 transparent}.medium-editor-toolbar{position:absolute;top:0;left:0;z-index:2000;visibility:hidden;background-color:#57ad68;font-family:HelveticaNeue, Helvetica, Arial, sans-serif;font-size:16px;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-toolbar ul{margin:0;padding:0}.medium-editor-toolbar li{float:left;list-style:none;margin:0;padding:0}.medium-editor-toolbar li button{display:block;padding:15px;height:60px;min-width:60px;background-color:transparent;color:#fff;border:none;border-right:1px solid #9ccea6;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color 0.2s ease-in,color 0.2s ease-in;-moz-transition:background-color 0.2s ease-in,color 0.2s ease-in;-o-transition:background-color 0.2s ease-in,color 0.2s ease-in;transition:background-color 0.2s ease-in,color 0.2s ease-in}.medium-editor-toolbar li button:hover{background-color:#346a3f;color:#fff}.medium-editor-toolbar li .medium-editor-button-active{background-color:#23482a;color:#fff}.medium-editor-toolbar li .medium-editor-action-underline{text-decoration:underline}.medium-editor-toolbar li .medium-editor-button-last{border-right:none}.medium-editor-toolbar li .medium-editor-action-pre{font-family:'Menlo', monospace;font-size:12px;font-weight:100;padding:15px 0}.medium-editor-toolbar-active{visibility:visible;-webkit-animation:pop-upwards 160ms forwards linear;-moz-animation:pop-upwards 160ms forwards linear;-ms-animation:pop-upwards 160ms forwards linear;-o-animation:pop-upwards 160ms forwards linear;animation:pop-upwards 160ms forwards linear;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-action-bold{font-weight:bolder}.medium-editor-action-italic{font-style:italic}.medium-editor-toolbar-form-anchor{display:none;background:#57ad68;color:#fff}.medium-editor-toolbar-form-anchor input,.medium-editor-toolbar-form-anchor a{font-family:HelveticaNeue, Helvetica, Arial, sans-serif}.medium-editor-toolbar-form-anchor input{margin:0;padding:6px;height:60px;width:316px;background:#57ad68;border:none;color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.medium-editor-toolbar-form-anchor input:focus{outline:0;-moz-appearance:none;-webkit-appearance:none;border:none;box-shadow:none}.medium-editor-toolbar-form-anchor input::-webkit-input-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor input:-moz-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor input::-moz-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor input:-ms-input-placeholder{color:#fff;color:rgba(255,255,255,0.8)}.medium-editor-toolbar-form-anchor a{color:#fff;font-weight:bolder;font-size:24px;display:inline-block;margin:0 10px;text-decoration:none}.medium-editor-placeholder{position:relative}.medium-editor-placeholder:after{position:absolute;top:0;left:0;content:attr(data-placeholder);color:#fff;font-style:italic}
|
@@ -0,0 +1 @@
|
|
1
|
+
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-moz-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-o-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}.medium-toolbar-arrow-under:after,.medium-toolbar-arrow-over:before{display:none}.medium-editor-toolbar{position:absolute;top:0;left:0;z-index:2000;visibility:hidden;background-color:#dee7f0;background-color:rgba(222,231,240,0.95);border:1px solid #cdd6e0;font-family:HelveticaNeue, Helvetica, Arial, sans-serif;font-size:16px;background:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #dee7f0), color-stop(100%, #ffffff));background:-webkit-linear-gradient(bottom, #dee7f0,#ffffff);background:-moz-linear-gradient(bottom, #dee7f0,#ffffff);background:-o-linear-gradient(bottom, #dee7f0,#ffffff);background:linear-gradient(bottom, #dee7f0,#ffffff);-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.45);-moz-box-shadow:0 2px 6px rgba(0,0,0,0.45);box-shadow:0 2px 6px rgba(0,0,0,0.45);-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-toolbar ul{margin:0;padding:0}.medium-editor-toolbar li{float:left;list-style:none;margin:0;padding:0}.medium-editor-toolbar li button{display:block;padding:15px;height:50px;min-width:50px;background-color:transparent;color:#40648a;border:none;border-right:1px solid #cdd6e0;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color 0.2s ease-in,color 0.2s ease-in;-moz-transition:background-color 0.2s ease-in,color 0.2s ease-in;-o-transition:background-color 0.2s ease-in,color 0.2s ease-in;transition:background-color 0.2s ease-in,color 0.2s ease-in}.medium-editor-toolbar li button:hover{background-color:#5c90c7;background-color:rgba(92,144,199,0.45);color:#fff}.medium-editor-toolbar li .medium-editor-button-first{-moz-border-radius-topleft:2px;-webkit-border-top-left-radius:2px;border-top-left-radius:2px;-moz-border-radius-bottomleft:2px;-webkit-border-bottom-left-radius:2px;border-bottom-left-radius:2px}.medium-editor-toolbar li .medium-editor-button-last{-moz-border-radius-topright:2px;-webkit-border-top-right-radius:2px;border-top-right-radius:2px;-moz-border-radius-bottomright:2px;-webkit-border-bottom-right-radius:2px;border-bottom-right-radius:2px}.medium-editor-toolbar li .medium-editor-button-active{background-color:#5c90c7;background-color:rgba(92,144,199,0.45);color:#000;background:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #dee7f0), color-stop(100%, rgba(0,0,0,0.1)));background:-webkit-linear-gradient(bottom, #dee7f0,rgba(0,0,0,0.1));background:-moz-linear-gradient(bottom, #dee7f0,rgba(0,0,0,0.1));background:-o-linear-gradient(bottom, #dee7f0,rgba(0,0,0,0.1));background:linear-gradient(bottom, #dee7f0,rgba(0,0,0,0.1))}.medium-editor-toolbar li .medium-editor-action-underline{text-decoration:underline}.medium-editor-toolbar li .medium-editor-action-pre{font-family:'Menlo', monospace;font-size:12px;font-weight:100;padding:15px 0}.medium-editor-toolbar-active{visibility:visible;-webkit-animation:pop-upwards 160ms forwards linear;-moz-animation:pop-upwards 160ms forwards linear;-ms-animation:pop-upwards 160ms forwards linear;-o-animation:pop-upwards 160ms forwards linear;animation:pop-upwards 160ms forwards linear;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-action-bold{font-weight:bolder}.medium-editor-action-italic{font-style:italic}.medium-editor-toolbar-form-anchor{display:none;background:#dee7f0;color:#999;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px}.medium-editor-toolbar-form-anchor input,.medium-editor-toolbar-form-anchor a{font-family:HelveticaNeue, Helvetica, Arial, sans-serif}.medium-editor-toolbar-form-anchor input{margin:0;padding:6px;height:50px;width:316px;background:#dee7f0;border:none;color:#40648a;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.medium-editor-toolbar-form-anchor input:focus{outline:0;-moz-appearance:none;-webkit-appearance:none;border:none;box-shadow:none}.medium-editor-toolbar-form-anchor a{color:#40648a;font-weight:bolder;font-size:24px;display:inline-block;margin:0 10px;text-decoration:none}.medium-editor-placeholder{position:relative}.medium-editor-placeholder:after{position:absolute;top:0;left:0;content:attr(data-placeholder);color:#cdd6e0;font-style:italic}
|
@@ -0,0 +1 @@
|
|
1
|
+
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-moz-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@-o-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-moz-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);-o-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);opacity:0}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-moz-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);-o-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);opacity:0.7}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-moz-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);-o-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-moz-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);-o-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}}.medium-toolbar-arrow-under:after,.medium-toolbar-arrow-over:before{display:none}.medium-editor-toolbar{position:absolute;top:0;left:0;z-index:2000;visibility:hidden;background-color:#fff;background-color:rgba(255,255,255,0.95);font-family:HelveticaNeue, Helvetica, Arial, sans-serif;font-size:16px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.45);-moz-box-shadow:0 2px 6px rgba(0,0,0,0.45);box-shadow:0 2px 6px rgba(0,0,0,0.45);-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-toolbar ul{margin:0;padding:0}.medium-editor-toolbar li{float:left;list-style:none;margin:0;padding:0}.medium-editor-toolbar li button{display:block;padding:15px;height:50px;min-width:50px;background-color:transparent;color:#889aac;border:none;border-right:1px solid #a8a8a8;text-decoration:none;-webkit-box-shadow:inset 0 0 3px #f8f8e6;-moz-box-shadow:inset 0 0 3px #f8f8e6;box-shadow:inset 0 0 3px #f8f8e6;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, rgba(0,0,0,0.1)));background:-webkit-linear-gradient(top, #ffffff,rgba(0,0,0,0.1));background:-moz-linear-gradient(top, #ffffff,rgba(0,0,0,0.1));background:-o-linear-gradient(top, #ffffff,rgba(0,0,0,0.1));background:linear-gradient(top, #ffffff,rgba(0,0,0,0.1));text-shadow:1px 4px 6px #def,0 0 0 #000,1px 4px 6px #def;-webkit-transition:background-color 0.2s ease-in;-moz-transition:background-color 0.2s ease-in;-o-transition:background-color 0.2s ease-in;transition:background-color 0.2s ease-in}.medium-editor-toolbar li button:hover{background-color:#fff;color:#000;color:rgba(0,0,0,0.8)}.medium-editor-toolbar li .medium-editor-button-first{-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px}.medium-editor-toolbar li .medium-editor-button-last{-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.medium-editor-toolbar li .medium-editor-button-active{background-color:#ccc;color:#000;color:rgba(0,0,0,0.8);background:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(0%, #ffffff), color-stop(100%, rgba(0,0,0,0.2)));background:-webkit-linear-gradient(bottom, #ffffff,rgba(0,0,0,0.2));background:-moz-linear-gradient(bottom, #ffffff,rgba(0,0,0,0.2));background:-o-linear-gradient(bottom, #ffffff,rgba(0,0,0,0.2));background:linear-gradient(bottom, #ffffff,rgba(0,0,0,0.2))}.medium-editor-toolbar li .medium-editor-action-underline{text-decoration:underline}.medium-editor-toolbar li .medium-editor-action-pre{font-family:'Menlo', monospace;font-size:12px;font-weight:100;padding:15px 0}.medium-editor-toolbar-active{visibility:visible;-webkit-animation:pop-upwards 160ms forwards linear;-moz-animation:pop-upwards 160ms forwards linear;-ms-animation:pop-upwards 160ms forwards linear;-o-animation:pop-upwards 160ms forwards linear;animation:pop-upwards 160ms forwards linear;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;-moz-transition:top 0.075s ease-out,left 0.075s ease-out;-o-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out}.medium-editor-action-bold{font-weight:bolder}.medium-editor-action-italic{font-style:italic}.medium-editor-toolbar-form-anchor{display:none;background:#fff;color:#999;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px}.medium-editor-toolbar-form-anchor input,.medium-editor-toolbar-form-anchor a{font-family:HelveticaNeue, Helvetica, Arial, sans-serif}.medium-editor-toolbar-form-anchor input{margin:0;padding:6px;height:50px;width:316px;background:#fff;border:none;color:#a8a8a8;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.medium-editor-toolbar-form-anchor input:focus{outline:0;-moz-appearance:none;-webkit-appearance:none;border:none;box-shadow:none}.medium-editor-toolbar-form-anchor a{color:#889aac;font-weight:bolder;font-size:24px;display:inline-block;margin:0 10px;text-decoration:none}.medium-editor-placeholder{position:relative}.medium-editor-placeholder:after{position:absolute;top:0;left:0;content:attr(data-placeholder);color:#a8a8a8;font-style:italic}
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: medium-editor-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ahmet Sezgin Duran
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
description: Medium Editor integrated in Rails asset pipeline
|
28
|
+
email:
|
29
|
+
- marjinalist1@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- Gemfile
|
36
|
+
- LICENSE.txt
|
37
|
+
- README.md
|
38
|
+
- Rakefile
|
39
|
+
- lib/medium-editor-rails.rb
|
40
|
+
- lib/medium-editor-rails/engine.rb
|
41
|
+
- lib/medium-editor-rails/railtie.rb
|
42
|
+
- lib/medium-editor-rails/version.rb
|
43
|
+
- medium-editor-rails.gemspec
|
44
|
+
- vendor/assets/javascripts/medium-editor.js
|
45
|
+
- vendor/assets/stylesheets/medium-editor.css
|
46
|
+
- vendor/assets/stylesheets/themes/bootstrap.css
|
47
|
+
- vendor/assets/stylesheets/themes/flat.css
|
48
|
+
- vendor/assets/stylesheets/themes/mani.css
|
49
|
+
- vendor/assets/stylesheets/themes/roman.css
|
50
|
+
homepage: https://github.com/marjinal1st/medium-editor-rails
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
metadata: {}
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 2.2.0
|
71
|
+
signing_key:
|
72
|
+
specification_version: 4
|
73
|
+
summary: Medium Editor integrated in Rails asset pipeline
|
74
|
+
test_files: []
|