pen 0.1.2 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +29 -0
- data/.csslintrc +2 -0
- data/.eslintignore +1 -0
- data/.eslintrc +213 -0
- data/.rubocop.yml +1156 -0
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/app/assets/fonts/pen/fontello.eot +0 -0
- data/app/assets/fonts/pen/fontello.svg +0 -0
- data/app/assets/fonts/pen/fontello.ttf +0 -0
- data/app/assets/fonts/pen/fontello.woff +0 -0
- data/app/assets/javascripts/pen/markdown.js +19 -13
- data/app/assets/javascripts/pen/pen.js +692 -230
- data/app/assets/stylesheets/pen/pen.css.scss +78 -7
- data/lib/pen/version.rb +1 -1
- metadata +15 -10
@@ -7,7 +7,7 @@
|
|
7
7
|
.pen blockquote{padding-left:10px;margin-left:-14px;border-left:4px solid #1abf89;}
|
8
8
|
.pen a{color:#1abf89;}
|
9
9
|
.pen del{text-decoration:line-through;}
|
10
|
-
.pen sub, .pen sup {font-size:75%;position:relative;vertical-align:text-top
|
10
|
+
.pen sub, .pen sup {font-size:75%;position:relative;vertical-align:text-top;}
|
11
11
|
:root .pen sub, :root .pen sup{vertical-align:baseline; /* for ie9 and other mordern browsers */}
|
12
12
|
.pen sup {top:-0.5em;}
|
13
13
|
.pen sub {bottom:-0.25em;}
|
@@ -35,10 +35,16 @@
|
|
35
35
|
.pen li ul, .pen-ul ul, .pen-ol ul{list-style: circle;}
|
36
36
|
|
37
37
|
/* pen menu */
|
38
|
+
.pen-menu [class^="icon-"], .pen-menu [class*=" icon-"] { /* reset to avoid conflicts with Bootstrap */
|
39
|
+
background: transparent;
|
40
|
+
background-image: none;
|
41
|
+
}
|
42
|
+
.pen-menu { min-width: 320px; }
|
38
43
|
.pen-menu, .pen-input{font-size:14px;line-height:1;}
|
39
44
|
.pen-menu{white-space:nowrap;box-shadow:1px 2px 3px -2px #222;background:#333;background-image:linear-gradient(to bottom, #222, #333);opacity:0.9;position:fixed;height:36px;border:1px solid #333;border-radius:3px;display:none;z-index:1000;}
|
40
45
|
.pen-menu:after {top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;}
|
41
46
|
.pen-menu:after {border-color:rgba(51, 51, 51, 0);border-top-color:#333;border-width:6px;left:50%;margin-left:-6px;}
|
47
|
+
.pen-menu-below:after {top: -11px; display:block; -moz-transform: rotate(180deg); -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg);}
|
42
48
|
.pen-icon{font:normal 900 16px/40px Georgia serif;min-width:20px;display:inline-block;padding:0 10px;height:36px;overflow:hidden;color:#fff;text-align:center;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}
|
43
49
|
.pen-icon:first-of-type{border-top-left-radius:3px;border-bottom-left-radius:3px;}
|
44
50
|
.pen-icon:last-of-type{border-top-right-radius:3px;border-bottom-right-radius:3px;}
|
@@ -52,11 +58,11 @@
|
|
52
58
|
|
53
59
|
@font-face {
|
54
60
|
font-family: 'pen';
|
55
|
-
src:
|
56
|
-
src:
|
57
|
-
|
58
|
-
|
59
|
-
|
61
|
+
src: url('font/fontello.eot?370dad08');
|
62
|
+
src: url('font/fontello.eot?370dad08#iefix') format('embedded-opentype'),
|
63
|
+
url('font/fontello.woff?370dad08') format('woff'),
|
64
|
+
url('font/fontello.ttf?370dad08') format('truetype'),
|
65
|
+
url('font/fontello.svg?370dad08#fontello') format('svg');
|
60
66
|
font-weight: normal;
|
61
67
|
font-style: normal;
|
62
68
|
}
|
@@ -76,7 +82,6 @@
|
|
76
82
|
line-height: 1em;
|
77
83
|
margin-left: .2em;
|
78
84
|
}
|
79
|
-
|
80
85
|
.pen-menu .icon-location:before { content: '\e815'; } /* '' */
|
81
86
|
.pen-menu .icon-fit:before { content: '\e80f'; } /* '' */
|
82
87
|
.pen-menu .icon-bold:before { content: '\e805'; } /* '' */
|
@@ -95,6 +100,7 @@
|
|
95
100
|
.pen-menu .icon-underline:before { content: '\e804'; } /* '' */
|
96
101
|
.pen-menu .icon-blockquote:before { content: '\e814'; } /* '' */
|
97
102
|
.pen-menu .icon-undo:before { content: '\e817'; } /* '' */
|
103
|
+
.pen-menu .icon-code:before { content: '\e816'; } /* '' */
|
98
104
|
.pen-menu .icon-pre:before { content: '\e816'; } /* '' */
|
99
105
|
.pen-menu .icon-unlink:before { content: '\e811'; } /* '' */
|
100
106
|
.pen-menu .icon-superscript:before { content: '\e808'; } /* '' */
|
@@ -102,3 +108,68 @@
|
|
102
108
|
.pen-menu .icon-inserthorizontalrule:before { content: '\e818'; } /* '' */
|
103
109
|
.pen-menu .icon-pin:before { content: '\e812'; } /* '' */
|
104
110
|
.pen-menu .icon-createlink:before { content: '\e810'; } /* '' */
|
111
|
+
.pen-menu .icon-h1:before { content: 'H1'; }
|
112
|
+
.pen-menu .icon-h2:before { content: 'H2'; }
|
113
|
+
.pen-menu .icon-h3:before { content: 'H3'; }
|
114
|
+
.pen-menu .icon-h4:before { content: 'H4'; }
|
115
|
+
.pen-menu .icon-h5:before { content: 'H5'; }
|
116
|
+
.pen-menu .icon-h6:before { content: 'H6'; }
|
117
|
+
.pen-menu .icon-p:before { content: 'P'; }
|
118
|
+
.pen-menu .icon-insertimage:before { width:1.8em;margin:0;position:relative;top:-2px;content:'IMG';font-size:12px;border:1px solid #fff;padding:2px;border-radius:2px; }
|
119
|
+
.pen {
|
120
|
+
position: relative;
|
121
|
+
}
|
122
|
+
.pen.hinted h1:before,
|
123
|
+
.pen.hinted h2:before,
|
124
|
+
.pen.hinted h3:before,
|
125
|
+
.pen.hinted h4:before,
|
126
|
+
.pen.hinted h5:before,
|
127
|
+
.pen.hinted h6:before,
|
128
|
+
.pen.hinted blockquote:before,
|
129
|
+
.pen.hinted hr:before {
|
130
|
+
color: #eee;
|
131
|
+
position: absolute;
|
132
|
+
right: 100%;
|
133
|
+
white-space: nowrap;
|
134
|
+
padding-right: 10px;
|
135
|
+
}
|
136
|
+
.pen.hinted blockquote { border-left: 0; margin-left: 0; padding-left: 0; }
|
137
|
+
.pen.hinted blockquote:before {
|
138
|
+
color: #1abf89;
|
139
|
+
content: ">";
|
140
|
+
font-weight: bold;
|
141
|
+
vertical-align: center;
|
142
|
+
}
|
143
|
+
.pen.hinted h1:before { content: "#";}
|
144
|
+
.pen.hinted h2:before { content: "##";}
|
145
|
+
.pen.hinted h3:before { content: "###";}
|
146
|
+
.pen.hinted h4:before { content: "####";}
|
147
|
+
.pen.hinted h5:before { content: "#####";}
|
148
|
+
.pen.hinted h6:before { content: "######";}
|
149
|
+
.pen.hinted hr:before { content: "﹘﹘﹘"; line-height: 1.2; vertical-align: bottom; }
|
150
|
+
|
151
|
+
.pen.hinted pre:before, .pen.hinted pre:after {
|
152
|
+
content: "```";
|
153
|
+
display: block;
|
154
|
+
color: #ccc;
|
155
|
+
}
|
156
|
+
|
157
|
+
.pen.hinted ul { list-style: none; }
|
158
|
+
.pen.hinted ul li:before {
|
159
|
+
content: "*";
|
160
|
+
color: #999;
|
161
|
+
line-height: 1;
|
162
|
+
vertical-align: bottom;
|
163
|
+
margin-left: -1.2em;
|
164
|
+
display: inline-block;
|
165
|
+
width: 1.2em;
|
166
|
+
}
|
167
|
+
|
168
|
+
.pen.hinted b:before, .pen.hinted b:after { content: "**"; color: #eee; font-weight: normal; }
|
169
|
+
.pen.hinted i:before, .pen.hinted i:after { content: "*"; color: #eee; }
|
170
|
+
|
171
|
+
.pen.hinted a { text-decoration: none; }
|
172
|
+
.pen.hinted a:before {content: "["; color: #ddd; }
|
173
|
+
.pen.hinted a:after { content: "](" attr(href) ")"; color: #ddd; }
|
174
|
+
|
175
|
+
.pen-placeholder:after { position: absolute; top: 0; left: 0; content: attr(data-placeholder); color: #999; cursor: text; }
|
data/lib/pen/version.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Torsten Trautwein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Pen Editor for Rails
|
@@ -45,7 +45,12 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .
|
48
|
+
- ".codeclimate.yml"
|
49
|
+
- ".csslintrc"
|
50
|
+
- ".eslintignore"
|
51
|
+
- ".eslintrc"
|
52
|
+
- ".gitignore"
|
53
|
+
- ".rubocop.yml"
|
49
54
|
- Gemfile
|
50
55
|
- LICENSE.txt
|
51
56
|
- README.md
|
@@ -74,17 +79,17 @@ require_paths:
|
|
74
79
|
- lib
|
75
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
76
81
|
requirements:
|
77
|
-
- -
|
82
|
+
- - ">="
|
78
83
|
- !ruby/object:Gem::Version
|
79
84
|
version: '0'
|
80
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
86
|
requirements:
|
82
|
-
- -
|
87
|
+
- - ">="
|
83
88
|
- !ruby/object:Gem::Version
|
84
89
|
version: '0'
|
85
90
|
requirements: []
|
86
91
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.5.1
|
88
93
|
signing_key:
|
89
94
|
specification_version: 4
|
90
95
|
summary: Pen Editor for Rails
|