godmin-medium 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 +14 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -0
- data/MIT-LICENSE +20 -0
- data/README.md +52 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/godmin-medium/index.js +38 -0
- data/app/assets/stylesheets/godmin-medium/index.css +15 -0
- data/godmin-medium.gemspec +26 -0
- data/lib/godmin/medium/engine.rb +6 -0
- data/lib/godmin/medium/helper.rb +14 -0
- data/lib/godmin/medium/version.rb +5 -0
- data/lib/godmin/medium.rb +9 -0
- data/vendor/assets/javascripts/godmin-medium/medium-editor.js +4445 -0
- data/vendor/assets/stylesheets/godmin-medium/medium-editor.css +210 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/bootstrap.css +67 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/bootstrap.min.css +1 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/default.css +63 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/default.min.css +1 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/flat.css +57 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/flat.min.css +1 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/mani.css +56 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/mani.min.css +1 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/roman.css +57 -0
- data/vendor/assets/stylesheets/godmin-medium/themes/roman.min.css +1 -0
- metadata +118 -0
@@ -0,0 +1,210 @@
|
|
1
|
+
.clearfix:after {
|
2
|
+
display: block;
|
3
|
+
visibility: hidden;
|
4
|
+
clear: both;
|
5
|
+
height: 0;
|
6
|
+
content: " ";
|
7
|
+
font-size: 0; }
|
8
|
+
|
9
|
+
@-webkit-keyframes pop-upwards {
|
10
|
+
0% {
|
11
|
+
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12);
|
12
|
+
transform: matrix(0.97, 0, 0, 1, 0, 12);
|
13
|
+
opacity: 0; }
|
14
|
+
|
15
|
+
20% {
|
16
|
+
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2);
|
17
|
+
transform: matrix(0.99, 0, 0, 1, 0, 2);
|
18
|
+
opacity: .7; }
|
19
|
+
|
20
|
+
40% {
|
21
|
+
-webkit-transform: matrix(1, 0, 0, 1, 0, -1);
|
22
|
+
transform: matrix(1, 0, 0, 1, 0, -1);
|
23
|
+
opacity: 1; }
|
24
|
+
|
25
|
+
70% {
|
26
|
+
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
|
27
|
+
transform: matrix(1, 0, 0, 1, 0, 0);
|
28
|
+
opacity: 1; }
|
29
|
+
|
30
|
+
100% {
|
31
|
+
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
|
32
|
+
transform: matrix(1, 0, 0, 1, 0, 0);
|
33
|
+
opacity: 1; } }
|
34
|
+
|
35
|
+
@keyframes pop-upwards {
|
36
|
+
0% {
|
37
|
+
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12);
|
38
|
+
transform: matrix(0.97, 0, 0, 1, 0, 12);
|
39
|
+
opacity: 0; }
|
40
|
+
|
41
|
+
20% {
|
42
|
+
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2);
|
43
|
+
transform: matrix(0.99, 0, 0, 1, 0, 2);
|
44
|
+
opacity: .7; }
|
45
|
+
|
46
|
+
40% {
|
47
|
+
-webkit-transform: matrix(1, 0, 0, 1, 0, -1);
|
48
|
+
transform: matrix(1, 0, 0, 1, 0, -1);
|
49
|
+
opacity: 1; }
|
50
|
+
|
51
|
+
70% {
|
52
|
+
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
|
53
|
+
transform: matrix(1, 0, 0, 1, 0, 0);
|
54
|
+
opacity: 1; }
|
55
|
+
|
56
|
+
100% {
|
57
|
+
-webkit-transform: matrix(1, 0, 0, 1, 0, 0);
|
58
|
+
transform: matrix(1, 0, 0, 1, 0, 0);
|
59
|
+
opacity: 1; } }
|
60
|
+
|
61
|
+
.data-medium-element sup {
|
62
|
+
vertical-align: super; }
|
63
|
+
.data-medium-element sub {
|
64
|
+
vertical-align: sub; }
|
65
|
+
.data-medium-element img {
|
66
|
+
max-width: 100%; }
|
67
|
+
|
68
|
+
.medium-editor-hidden {
|
69
|
+
display: none; }
|
70
|
+
|
71
|
+
.medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
|
72
|
+
position: absolute;
|
73
|
+
left: 50%;
|
74
|
+
display: block;
|
75
|
+
margin-left: -8px;
|
76
|
+
width: 0;
|
77
|
+
height: 0;
|
78
|
+
border-style: solid;
|
79
|
+
content: ""; }
|
80
|
+
|
81
|
+
.medium-toolbar-arrow-under:after {
|
82
|
+
border-width: 8px 8px 0 8px; }
|
83
|
+
|
84
|
+
.medium-toolbar-arrow-over:before {
|
85
|
+
top: -8px;
|
86
|
+
border-width: 0 8px 8px 8px; }
|
87
|
+
|
88
|
+
.medium-editor-toolbar, .medium-editor-anchor-preview {
|
89
|
+
position: absolute;
|
90
|
+
top: 0;
|
91
|
+
left: 0;
|
92
|
+
z-index: 2000;
|
93
|
+
visibility: hidden;
|
94
|
+
font-size: 16px;
|
95
|
+
font-family: HelveticaNeue, Helvetica, Arial, sans-serif; }
|
96
|
+
.medium-editor-toolbar ul, .medium-editor-anchor-preview ul {
|
97
|
+
margin: 0;
|
98
|
+
padding: 0; }
|
99
|
+
.medium-editor-toolbar li, .medium-editor-anchor-preview li {
|
100
|
+
float: left;
|
101
|
+
margin: 0;
|
102
|
+
padding: 0;
|
103
|
+
list-style: none; }
|
104
|
+
.medium-editor-toolbar li button, .medium-editor-anchor-preview li button {
|
105
|
+
display: block;
|
106
|
+
margin: 0;
|
107
|
+
padding: 15px;
|
108
|
+
cursor: pointer;
|
109
|
+
font-size: 14px;
|
110
|
+
line-height: 1.33;
|
111
|
+
text-decoration: none;
|
112
|
+
box-sizing: border-box; }
|
113
|
+
.medium-editor-toolbar li button:focus, .medium-editor-anchor-preview li button:focus {
|
114
|
+
outline: none; }
|
115
|
+
.medium-editor-toolbar li .medium-editor-action-underline, .medium-editor-anchor-preview li .medium-editor-action-underline {
|
116
|
+
text-decoration: underline; }
|
117
|
+
.medium-editor-toolbar li .medium-editor-action-pre, .medium-editor-anchor-preview li .medium-editor-action-pre {
|
118
|
+
padding: 15px 0;
|
119
|
+
font-weight: 100;
|
120
|
+
font-size: 12px;
|
121
|
+
font-family: 'Menlo', monospace; }
|
122
|
+
|
123
|
+
.medium-editor-anchor-preview a {
|
124
|
+
display: inline-block;
|
125
|
+
margin: 5px 5px 5px 10px;
|
126
|
+
color: #fff; }
|
127
|
+
|
128
|
+
.medium-editor-toolbar-active, .medium-editor-anchor-preview-active {
|
129
|
+
visibility: visible; }
|
130
|
+
|
131
|
+
.sticky-toolbar {
|
132
|
+
position: fixed;
|
133
|
+
top: 1px; }
|
134
|
+
|
135
|
+
.medium-editor-toolbar-active.stalker-toolbar {
|
136
|
+
-webkit-animation: pop-upwards 160ms forwards linear;
|
137
|
+
animation: pop-upwards 160ms forwards linear; }
|
138
|
+
|
139
|
+
.medium-editor-action-bold {
|
140
|
+
font-weight: bolder; }
|
141
|
+
|
142
|
+
.medium-editor-action-italic {
|
143
|
+
font-style: italic; }
|
144
|
+
|
145
|
+
.medium-editor-toolbar-form {
|
146
|
+
display: none; }
|
147
|
+
.medium-editor-toolbar-form input, .medium-editor-toolbar-form a {
|
148
|
+
font-family: HelveticaNeue, Helvetica, Arial, sans-serif; }
|
149
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input, .medium-editor-toolbar-form label {
|
150
|
+
margin: 0;
|
151
|
+
padding: 6px;
|
152
|
+
width: 316px;
|
153
|
+
border: none;
|
154
|
+
font-size: 14px;
|
155
|
+
box-sizing: border-box; }
|
156
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input:focus, .medium-editor-toolbar-form label:focus {
|
157
|
+
outline: 0;
|
158
|
+
border: none;
|
159
|
+
box-shadow: none;
|
160
|
+
appearance: none; }
|
161
|
+
.medium-editor-toolbar-form label {
|
162
|
+
display: block; }
|
163
|
+
.medium-editor-toolbar-form a {
|
164
|
+
display: inline-block;
|
165
|
+
margin: 0 10px;
|
166
|
+
text-decoration: none;
|
167
|
+
font-weight: bolder;
|
168
|
+
font-size: 24px; }
|
169
|
+
|
170
|
+
.medium-editor-placeholder {
|
171
|
+
position: relative; }
|
172
|
+
.medium-editor-placeholder:after {
|
173
|
+
position: absolute;
|
174
|
+
top: 0;
|
175
|
+
left: 0;
|
176
|
+
content: attr(data-placeholder) !important;
|
177
|
+
font-style: italic;
|
178
|
+
white-space: pre; }
|
179
|
+
|
180
|
+
.medium-editor-dragover {
|
181
|
+
background: #ddd; }
|
182
|
+
|
183
|
+
.medium-image-loading {
|
184
|
+
width: 40px;
|
185
|
+
height: 40px;
|
186
|
+
background-color: #333;
|
187
|
+
display: inline-block;
|
188
|
+
border-radius: 100%;
|
189
|
+
-webkit-animation: medium-image-loading-animation 1s infinite ease-in-out;
|
190
|
+
animation: medium-image-loading-animation 1s infinite ease-in-out; }
|
191
|
+
|
192
|
+
@-webkit-keyframes medium-image-loading-animation {
|
193
|
+
0% {
|
194
|
+
-webkit-transform: scale(0);
|
195
|
+
transform: scale(0); }
|
196
|
+
|
197
|
+
100% {
|
198
|
+
-webkit-transform: scale(1);
|
199
|
+
transform: scale(1);
|
200
|
+
opacity: 0; } }
|
201
|
+
|
202
|
+
@keyframes medium-image-loading-animation {
|
203
|
+
0% {
|
204
|
+
-webkit-transform: scale(0);
|
205
|
+
transform: scale(0); }
|
206
|
+
|
207
|
+
100% {
|
208
|
+
-webkit-transform: scale(1);
|
209
|
+
transform: scale(1);
|
210
|
+
opacity: 0; } }
|
@@ -0,0 +1,67 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after {
|
2
|
+
top: 60px;
|
3
|
+
border-color: #428bca transparent transparent transparent; }
|
4
|
+
|
5
|
+
.medium-toolbar-arrow-over:before {
|
6
|
+
border-color: transparent transparent #428bca transparent; }
|
7
|
+
|
8
|
+
.medium-editor-toolbar {
|
9
|
+
border: 1px solid #357ebd;
|
10
|
+
background-color: #428bca;
|
11
|
+
border-radius: 4px; }
|
12
|
+
.medium-editor-toolbar li button {
|
13
|
+
min-width: 60px;
|
14
|
+
height: 60px;
|
15
|
+
border: none;
|
16
|
+
border-right: 1px solid #357ebd;
|
17
|
+
background-color: transparent;
|
18
|
+
color: #fff;
|
19
|
+
box-sizing: border-box;
|
20
|
+
-webkit-transition: background-color .2s ease-in, color .2s ease-in;
|
21
|
+
transition: background-color .2s ease-in, color .2s ease-in; }
|
22
|
+
.medium-editor-toolbar li button:hover {
|
23
|
+
background-color: #3276b1;
|
24
|
+
color: #fff; }
|
25
|
+
.medium-editor-toolbar li .medium-editor-button-first {
|
26
|
+
border-top-left-radius: 4px;
|
27
|
+
border-bottom-left-radius: 4px; }
|
28
|
+
.medium-editor-toolbar li .medium-editor-button-last {
|
29
|
+
border-right: none;
|
30
|
+
border-top-right-radius: 4px;
|
31
|
+
border-bottom-right-radius: 4px; }
|
32
|
+
.medium-editor-toolbar li .medium-editor-button-active {
|
33
|
+
background-color: #3276b1;
|
34
|
+
color: #fff; }
|
35
|
+
|
36
|
+
.medium-editor-toolbar-form {
|
37
|
+
background: #428bca;
|
38
|
+
color: #fff;
|
39
|
+
border-radius: 4px; }
|
40
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input {
|
41
|
+
height: 60px;
|
42
|
+
background: #428bca;
|
43
|
+
color: #fff; }
|
44
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder {
|
45
|
+
color: #fff;
|
46
|
+
color: rgba(255, 255, 255, 0.8); }
|
47
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder {
|
48
|
+
/* Firefox 18- */
|
49
|
+
color: #fff;
|
50
|
+
color: rgba(255, 255, 255, 0.8); }
|
51
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder {
|
52
|
+
/* Firefox 19+ */
|
53
|
+
color: #fff;
|
54
|
+
color: rgba(255, 255, 255, 0.8); }
|
55
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder {
|
56
|
+
color: #fff;
|
57
|
+
color: rgba(255, 255, 255, 0.8); }
|
58
|
+
.medium-editor-toolbar-form a {
|
59
|
+
color: #fff; }
|
60
|
+
|
61
|
+
.medium-editor-toolbar-anchor-preview {
|
62
|
+
background: #428bca;
|
63
|
+
color: #fff;
|
64
|
+
border-radius: 4px; }
|
65
|
+
|
66
|
+
.medium-editor-placeholder:after {
|
67
|
+
color: #357ebd; }
|
@@ -0,0 +1 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after{top:60px;border-color:#428bca transparent transparent}.medium-toolbar-arrow-over:before{border-color:transparent transparent #428bca}.medium-editor-toolbar{border:1px solid #357ebd;background-color:#428bca;border-radius:4px}.medium-editor-toolbar li button{min-width:60px;height:60px;border:none;border-right:1px solid #357ebd;background-color:transparent;color:#fff;box-sizing:border-box;-webkit-transition:background-color .2s ease-in,color .2s ease-in;transition:background-color .2s ease-in,color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#3276b1;color:#fff}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:4px;border-bottom-left-radius:4px}.medium-editor-toolbar li .medium-editor-button-last{border-right:none;border-top-right-radius:4px;border-bottom-right-radius:4px}.medium-editor-toolbar li .medium-editor-button-active{background-color:#3276b1;color:#fff}.medium-editor-toolbar-form{background:#428bca;color:#fff;border-radius:4px}.medium-editor-toolbar-form .medium-editor-toolbar-input{height:60px;background:#428bca;color:#fff}.medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form a{color:#fff}.medium-editor-toolbar-anchor-preview{background:#428bca;color:#fff;border-radius:4px}.medium-editor-placeholder:after{color:#357ebd}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after {
|
2
|
+
top: 50px;
|
3
|
+
border-color: #242424 transparent transparent transparent; }
|
4
|
+
|
5
|
+
.medium-toolbar-arrow-over:before {
|
6
|
+
top: -8px;
|
7
|
+
border-color: transparent transparent #242424 transparent; }
|
8
|
+
|
9
|
+
.medium-editor-toolbar {
|
10
|
+
border: 1px solid #000;
|
11
|
+
background-color: #242424;
|
12
|
+
background: -webkit-linear-gradient(top, #242424, rgba(36, 36, 36, 0.75));
|
13
|
+
background: linear-gradient(to bottom, #242424, rgba(36, 36, 36, 0.75));
|
14
|
+
border-radius: 5px;
|
15
|
+
box-shadow: 0 0 3px #000; }
|
16
|
+
.medium-editor-toolbar li button {
|
17
|
+
min-width: 50px;
|
18
|
+
height: 50px;
|
19
|
+
border: 0;
|
20
|
+
border-right: 1px solid #000;
|
21
|
+
border-left: 1px solid #333;
|
22
|
+
border-left: 1px solid rgba(255, 255, 255, 0.1);
|
23
|
+
background-color: #242424;
|
24
|
+
color: #fff;
|
25
|
+
background: -webkit-linear-gradient(top, #242424, rgba(36, 36, 36, 0.89));
|
26
|
+
background: linear-gradient(to bottom, #242424, rgba(36, 36, 36, 0.89));
|
27
|
+
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
|
28
|
+
-webkit-transition: background-color .2s ease-in;
|
29
|
+
transition: background-color .2s ease-in; }
|
30
|
+
.medium-editor-toolbar li button:hover {
|
31
|
+
background-color: #000;
|
32
|
+
color: yellow; }
|
33
|
+
.medium-editor-toolbar li .medium-editor-button-first {
|
34
|
+
border-top-left-radius: 5px;
|
35
|
+
border-bottom-left-radius: 5px; }
|
36
|
+
.medium-editor-toolbar li .medium-editor-button-last {
|
37
|
+
border-top-right-radius: 5px;
|
38
|
+
border-bottom-right-radius: 5px; }
|
39
|
+
.medium-editor-toolbar li .medium-editor-button-active {
|
40
|
+
background-color: #000;
|
41
|
+
color: #fff;
|
42
|
+
background: -webkit-linear-gradient(top, #242424, rgba(0, 0, 0, 0.89));
|
43
|
+
background: linear-gradient(to bottom, #242424, rgba(0, 0, 0, 0.89)); }
|
44
|
+
|
45
|
+
.medium-editor-toolbar-form {
|
46
|
+
background: #242424;
|
47
|
+
color: #999;
|
48
|
+
border-radius: 5px; }
|
49
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input {
|
50
|
+
height: 50px;
|
51
|
+
background: #242424;
|
52
|
+
color: #ccc;
|
53
|
+
box-sizing: border-box; }
|
54
|
+
.medium-editor-toolbar-form a {
|
55
|
+
color: #fff; }
|
56
|
+
|
57
|
+
.medium-editor-toolbar-anchor-preview {
|
58
|
+
background: #242424;
|
59
|
+
color: #fff;
|
60
|
+
border-radius: 5px; }
|
61
|
+
|
62
|
+
.medium-editor-placeholder:after {
|
63
|
+
color: #b3b3b1; }
|
@@ -0,0 +1 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after{top:50px;border-color:#242424 transparent transparent}.medium-toolbar-arrow-over:before{top:-8px;border-color:transparent transparent #242424}.medium-editor-toolbar{border:1px solid #000;background:-webkit-linear-gradient(top,#242424,rgba(36,36,36,.75));background:linear-gradient(to bottom,#242424,rgba(36,36,36,.75));border-radius:5px;box-shadow:0 0 3px #000}.medium-editor-toolbar li button{min-width:50px;height:50px;border:0;border-right:1px solid #000;border-left:1px solid #333;border-left:1px solid rgba(255,255,255,.1);color:#fff;background:-webkit-linear-gradient(top,#242424,rgba(36,36,36,.89));background:linear-gradient(to bottom,#242424,rgba(36,36,36,.89));box-shadow:0 2px 2px rgba(0,0,0,.3);-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#000;color:#ff0}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:5px;border-bottom-left-radius:5px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:5px;border-bottom-right-radius:5px}.medium-editor-toolbar li .medium-editor-button-active{color:#fff;background:-webkit-linear-gradient(top,#242424,rgba(0,0,0,.89));background:linear-gradient(to bottom,#242424,rgba(0,0,0,.89))}.medium-editor-toolbar-form{background:#242424;color:#999;border-radius:5px}.medium-editor-toolbar-form .medium-editor-toolbar-input{height:50px;background:#242424;color:#ccc;box-sizing:border-box}.medium-editor-toolbar-form a{color:#fff}.medium-editor-toolbar-anchor-preview{background:#242424;color:#fff;border-radius:5px}.medium-editor-placeholder:after{color:#b3b3b1}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after {
|
2
|
+
top: 60px;
|
3
|
+
border-color: #57ad68 transparent transparent transparent; }
|
4
|
+
|
5
|
+
.medium-toolbar-arrow-over:before {
|
6
|
+
top: -8px;
|
7
|
+
border-color: transparent transparent #57ad68 transparent; }
|
8
|
+
|
9
|
+
.medium-editor-toolbar {
|
10
|
+
background-color: #57ad68; }
|
11
|
+
.medium-editor-toolbar li {
|
12
|
+
padding: 0; }
|
13
|
+
.medium-editor-toolbar li button {
|
14
|
+
min-width: 60px;
|
15
|
+
height: 60px;
|
16
|
+
border: none;
|
17
|
+
border-right: 1px solid #9ccea6;
|
18
|
+
background-color: transparent;
|
19
|
+
color: #fff;
|
20
|
+
-webkit-transition: background-color .2s ease-in, color .2s ease-in;
|
21
|
+
transition: background-color .2s ease-in, color .2s ease-in; }
|
22
|
+
.medium-editor-toolbar li button:hover {
|
23
|
+
background-color: #346a3f;
|
24
|
+
color: #fff; }
|
25
|
+
.medium-editor-toolbar li .medium-editor-button-active {
|
26
|
+
background-color: #23482a;
|
27
|
+
color: #fff; }
|
28
|
+
.medium-editor-toolbar li .medium-editor-button-last {
|
29
|
+
border-right: none; }
|
30
|
+
|
31
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input {
|
32
|
+
height: 60px;
|
33
|
+
background: #57ad68;
|
34
|
+
color: #fff; }
|
35
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder {
|
36
|
+
color: #fff;
|
37
|
+
color: rgba(255, 255, 255, 0.8); }
|
38
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder {
|
39
|
+
/* Firefox 18- */
|
40
|
+
color: #fff;
|
41
|
+
color: rgba(255, 255, 255, 0.8); }
|
42
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder {
|
43
|
+
/* Firefox 19+ */
|
44
|
+
color: #fff;
|
45
|
+
color: rgba(255, 255, 255, 0.8); }
|
46
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder {
|
47
|
+
color: #fff;
|
48
|
+
color: rgba(255, 255, 255, 0.8); }
|
49
|
+
.medium-editor-toolbar-form a {
|
50
|
+
color: #fff; }
|
51
|
+
|
52
|
+
.medium-editor-toolbar-anchor-preview {
|
53
|
+
background: #57ad68;
|
54
|
+
color: #fff; }
|
55
|
+
|
56
|
+
.medium-editor-placeholder:after {
|
57
|
+
color: #fff; }
|
@@ -0,0 +1 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after{top:60px;border-color:#57ad68 transparent transparent}.medium-toolbar-arrow-over:before{top:-8px;border-color:transparent transparent #57ad68}.medium-editor-toolbar{background-color:#57ad68}.medium-editor-toolbar li{padding:0}.medium-editor-toolbar li button{min-width:60px;height:60px;border:none;border-right:1px solid #9ccea6;background-color:transparent;color:#fff;-webkit-transition:background-color .2s ease-in,color .2s ease-in;transition:background-color .2s ease-in,color .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-button-last{border-right:none}.medium-editor-toolbar-form .medium-editor-toolbar-input{height:60px;background:#57ad68;color:#fff}.medium-editor-toolbar-form .medium-editor-toolbar-input::-webkit-input-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input:-moz-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input::-moz-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form .medium-editor-toolbar-input:-ms-input-placeholder{color:#fff;color:rgba(255,255,255,.8)}.medium-editor-toolbar-form a{color:#fff}.medium-editor-toolbar-anchor-preview{background:#57ad68;color:#fff}.medium-editor-placeholder:after{color:#fff}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
|
2
|
+
display: none; }
|
3
|
+
|
4
|
+
.medium-editor-toolbar {
|
5
|
+
border: 1px solid #cdd6e0;
|
6
|
+
background-color: #dee7f0;
|
7
|
+
background-color: rgba(222, 231, 240, 0.95);
|
8
|
+
background: -webkit-linear-gradient(bottom, #dee7f0, #ffffff);
|
9
|
+
background: linear-gradient(to top, #dee7f0, #ffffff);
|
10
|
+
border-radius: 2px;
|
11
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
|
12
|
+
.medium-editor-toolbar li button {
|
13
|
+
min-width: 50px;
|
14
|
+
height: 50px;
|
15
|
+
border: none;
|
16
|
+
border-right: 1px solid #cdd6e0;
|
17
|
+
background-color: transparent;
|
18
|
+
color: #40648a;
|
19
|
+
-webkit-transition: background-color .2s ease-in, color .2s ease-in;
|
20
|
+
transition: background-color .2s ease-in, color .2s ease-in; }
|
21
|
+
.medium-editor-toolbar li button:hover {
|
22
|
+
background-color: #5c90c7;
|
23
|
+
background-color: rgba(92, 144, 199, 0.45);
|
24
|
+
color: #fff; }
|
25
|
+
.medium-editor-toolbar li .medium-editor-button-first {
|
26
|
+
border-top-left-radius: 2px;
|
27
|
+
border-bottom-left-radius: 2px; }
|
28
|
+
.medium-editor-toolbar li .medium-editor-button-last {
|
29
|
+
border-top-right-radius: 2px;
|
30
|
+
border-bottom-right-radius: 2px; }
|
31
|
+
.medium-editor-toolbar li .medium-editor-button-active {
|
32
|
+
background-color: #5c90c7;
|
33
|
+
background-color: rgba(92, 144, 199, 0.45);
|
34
|
+
color: #000;
|
35
|
+
background: -webkit-linear-gradient(top, #dee7f0, rgba(0, 0, 0, 0.1));
|
36
|
+
background: linear-gradient(to bottom, #dee7f0, rgba(0, 0, 0, 0.1)); }
|
37
|
+
|
38
|
+
.medium-editor-toolbar-form {
|
39
|
+
background: #dee7f0;
|
40
|
+
color: #999;
|
41
|
+
border-radius: 2px; }
|
42
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input {
|
43
|
+
height: 50px;
|
44
|
+
background: #dee7f0;
|
45
|
+
color: #40648a;
|
46
|
+
box-sizing: border-box; }
|
47
|
+
.medium-editor-toolbar-form a {
|
48
|
+
color: #40648a; }
|
49
|
+
|
50
|
+
.medium-editor-toolbar-anchor-preview {
|
51
|
+
background: #dee7f0;
|
52
|
+
color: #40648a;
|
53
|
+
border-radius: 2px; }
|
54
|
+
|
55
|
+
.medium-editor-placeholder:after {
|
56
|
+
color: #cdd6e0; }
|
@@ -0,0 +1 @@
|
|
1
|
+
.medium-toolbar-arrow-over:before,.medium-toolbar-arrow-under:after{display:none}.medium-editor-toolbar{border:1px solid #cdd6e0;background:-webkit-linear-gradient(bottom,#dee7f0,#fff);background:linear-gradient(to top,#dee7f0,#fff);border-radius:2px;box-shadow:0 2px 6px rgba(0,0,0,.45)}.medium-editor-toolbar li button{min-width:50px;height:50px;border:none;border-right:1px solid #cdd6e0;background-color:transparent;color:#40648a;-webkit-transition:background-color .2s ease-in,color .2s ease-in;transition:background-color .2s ease-in,color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#5c90c7;background-color:rgba(92,144,199,.45);color:#fff}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:2px;border-bottom-left-radius:2px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:2px;border-bottom-right-radius:2px}.medium-editor-toolbar li .medium-editor-button-active{color:#000;background:-webkit-linear-gradient(top,#dee7f0,rgba(0,0,0,.1));background:linear-gradient(to bottom,#dee7f0,rgba(0,0,0,.1))}.medium-editor-toolbar-form{background:#dee7f0;color:#999;border-radius:2px}.medium-editor-toolbar-form .medium-editor-toolbar-input{height:50px;background:#dee7f0;color:#40648a;box-sizing:border-box}.medium-editor-toolbar-form a{color:#40648a}.medium-editor-toolbar-anchor-preview{background:#dee7f0;color:#40648a;border-radius:2px}.medium-editor-placeholder:after{color:#cdd6e0}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
.medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before {
|
2
|
+
display: none; }
|
3
|
+
|
4
|
+
.medium-editor-toolbar {
|
5
|
+
background-color: #fff;
|
6
|
+
background-color: rgba(255, 255, 255, 0.95);
|
7
|
+
border-radius: 5px;
|
8
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
|
9
|
+
.medium-editor-toolbar li button {
|
10
|
+
min-width: 50px;
|
11
|
+
height: 50px;
|
12
|
+
border: none;
|
13
|
+
border-right: 1px solid #a8a8a8;
|
14
|
+
background-color: transparent;
|
15
|
+
color: #889aac;
|
16
|
+
box-shadow: inset 0 0 3px #f8f8e6;
|
17
|
+
background: -webkit-linear-gradient(top, #fff, rgba(0, 0, 0, 0.2));
|
18
|
+
background: linear-gradient(to bottom, #fff, rgba(0, 0, 0, 0.2));
|
19
|
+
text-shadow: 1px 4px 6px #def, 0 0 0 #000, 1px 4px 6px #def;
|
20
|
+
-webkit-transition: background-color .2s ease-in;
|
21
|
+
transition: background-color .2s ease-in; }
|
22
|
+
.medium-editor-toolbar li button:hover {
|
23
|
+
background-color: #fff;
|
24
|
+
color: #fff;
|
25
|
+
color: rgba(0, 0, 0, 0.8); }
|
26
|
+
.medium-editor-toolbar li .medium-editor-button-first {
|
27
|
+
border-top-left-radius: 5px;
|
28
|
+
border-bottom-left-radius: 5px; }
|
29
|
+
.medium-editor-toolbar li .medium-editor-button-last {
|
30
|
+
border-top-right-radius: 5px;
|
31
|
+
border-bottom-right-radius: 5px; }
|
32
|
+
.medium-editor-toolbar li .medium-editor-button-active {
|
33
|
+
background-color: #ccc;
|
34
|
+
color: #000;
|
35
|
+
color: rgba(0, 0, 0, 0.8);
|
36
|
+
background: -webkit-linear-gradient(bottom, #fff, rgba(0, 0, 0, 0.1));
|
37
|
+
background: linear-gradient(to top, #fff, rgba(0, 0, 0, 0.1)); }
|
38
|
+
|
39
|
+
.medium-editor-toolbar-form {
|
40
|
+
background: #fff;
|
41
|
+
color: #999;
|
42
|
+
border-radius: 5px; }
|
43
|
+
.medium-editor-toolbar-form .medium-editor-toolbar-input {
|
44
|
+
margin: 0;
|
45
|
+
height: 50px;
|
46
|
+
background: #fff;
|
47
|
+
color: #a8a8a8; }
|
48
|
+
.medium-editor-toolbar-form a {
|
49
|
+
color: #889aac; }
|
50
|
+
|
51
|
+
.medium-editor-toolbar-anchor-preview {
|
52
|
+
background: #fff;
|
53
|
+
color: #889aac;
|
54
|
+
border-radius: 5px; }
|
55
|
+
|
56
|
+
.medium-editor-placeholder:after {
|
57
|
+
color: #a8a8a8; }
|
@@ -0,0 +1 @@
|
|
1
|
+
.medium-toolbar-arrow-over:before,.medium-toolbar-arrow-under:after{display:none}.medium-editor-toolbar{background-color:#fff;background-color:rgba(255,255,255,.95);border-radius:5px;box-shadow:0 2px 6px rgba(0,0,0,.45)}.medium-editor-toolbar li button{min-width:50px;height:50px;border:none;border-right:1px solid #a8a8a8;color:#889aac;box-shadow:inset 0 0 3px #f8f8e6;background:-webkit-linear-gradient(top,#fff,rgba(0,0,0,.2));background:linear-gradient(to bottom,#fff,rgba(0,0,0,.2));text-shadow:1px 4px 6px #def,0 0 0 #000,1px 4px 6px #def;-webkit-transition:background-color .2s ease-in;transition:background-color .2s ease-in}.medium-editor-toolbar li button:hover{background-color:#fff;color:#fff;color:rgba(0,0,0,.8)}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:5px;border-bottom-left-radius:5px}.medium-editor-toolbar li .medium-editor-button-last{border-top-right-radius:5px;border-bottom-right-radius:5px}.medium-editor-toolbar li .medium-editor-button-active{color:#000;color:rgba(0,0,0,.8);background:-webkit-linear-gradient(bottom,#fff,rgba(0,0,0,.1));background:linear-gradient(to top,#fff,rgba(0,0,0,.1))}.medium-editor-toolbar-form{background:#fff;color:#999;border-radius:5px}.medium-editor-toolbar-form .medium-editor-toolbar-input{margin:0;height:50px;background:#fff;color:#a8a8a8}.medium-editor-toolbar-form a{color:#889aac}.medium-editor-toolbar-anchor-preview{background:#fff;color:#889aac;border-radius:5px}.medium-editor-placeholder:after{color:#a8a8a8}
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: godmin-medium
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Varvet
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: godmin
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.9'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.9.7
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.9'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.9.7
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.7'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.7'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '10.0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '10.0'
|
61
|
+
description: Medium for the Godmin admin engine for Rails 4+
|
62
|
+
email:
|
63
|
+
- info@varvet.se
|
64
|
+
executables: []
|
65
|
+
extensions: []
|
66
|
+
extra_rdoc_files: []
|
67
|
+
files:
|
68
|
+
- ".gitignore"
|
69
|
+
- CHANGELOG.md
|
70
|
+
- Gemfile
|
71
|
+
- MIT-LICENSE
|
72
|
+
- README.md
|
73
|
+
- Rakefile
|
74
|
+
- app/assets/javascripts/godmin-medium/index.js
|
75
|
+
- app/assets/stylesheets/godmin-medium/index.css
|
76
|
+
- godmin-medium.gemspec
|
77
|
+
- lib/godmin/medium.rb
|
78
|
+
- lib/godmin/medium/engine.rb
|
79
|
+
- lib/godmin/medium/helper.rb
|
80
|
+
- lib/godmin/medium/version.rb
|
81
|
+
- vendor/assets/javascripts/godmin-medium/medium-editor.js
|
82
|
+
- vendor/assets/stylesheets/godmin-medium/medium-editor.css
|
83
|
+
- vendor/assets/stylesheets/godmin-medium/themes/bootstrap.css
|
84
|
+
- vendor/assets/stylesheets/godmin-medium/themes/bootstrap.min.css
|
85
|
+
- vendor/assets/stylesheets/godmin-medium/themes/default.css
|
86
|
+
- vendor/assets/stylesheets/godmin-medium/themes/default.min.css
|
87
|
+
- vendor/assets/stylesheets/godmin-medium/themes/flat.css
|
88
|
+
- vendor/assets/stylesheets/godmin-medium/themes/flat.min.css
|
89
|
+
- vendor/assets/stylesheets/godmin-medium/themes/mani.css
|
90
|
+
- vendor/assets/stylesheets/godmin-medium/themes/mani.min.css
|
91
|
+
- vendor/assets/stylesheets/godmin-medium/themes/roman.css
|
92
|
+
- vendor/assets/stylesheets/godmin-medium/themes/roman.min.css
|
93
|
+
homepage: https://github.com/varvet/godmin-medium
|
94
|
+
licenses:
|
95
|
+
- MIT
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.2.2
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: Medium for the Godmin admin engine for Rails 4+
|
117
|
+
test_files: []
|
118
|
+
has_rdoc:
|