tenon 1.0.52 → 1.0.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tenon/features/modal_windows.js.coffee +2 -3
- data/app/assets/javascripts/tenon/features/tenon_content/asset_link.js.coffee +3 -3
- data/app/assets/javascripts/tenon/features/tenon_content/editor.js.coffee +1 -1
- data/app/assets/javascripts/tenon/features/tenon_content/image_asset_link.js.coffee +2 -2
- data/app/assets/javascripts/tenon/medium-on-tenon.js +1414 -0
- data/app/assets/javascripts/tenon/tenon_manifest.js +1 -2
- data/app/assets/stylesheets/tenon/colors-named.css.scss +3 -3
- data/app/assets/stylesheets/tenon/ui/medium-editor.css.scss +82 -9
- data/app/assets/stylesheets/tenon/ui/tenon-content.css.scss +37 -39
- data/lib/tenon/version.rb +1 -1
- metadata +4 -4
- data/app/assets/javascripts/tenon/medium_customizations.js +0 -65
@@ -17,6 +17,6 @@ $tc-med-grey: $tn-med-grey;
|
|
17
17
|
$tc-dark-grey: $tn-dark-grey;
|
18
18
|
|
19
19
|
// Medium Editor
|
20
|
-
$medium-editor-toolbar-border: transparentize(#fff, 0.6);
|
21
|
-
$medium-editor-toolbar-hover: $medium-editor-toolbar-border;
|
22
|
-
$medium-editor-toolbar-active: $medium-editor-toolbar-border;
|
20
|
+
// $medium-editor-toolbar-border: transparentize(#fff, 0.6);
|
21
|
+
// $medium-editor-toolbar-hover: $medium-editor-toolbar-border;
|
22
|
+
// $medium-editor-toolbar-active: $medium-editor-toolbar-border;
|
@@ -1,3 +1,80 @@
|
|
1
|
+
// Anchor - asset and cancel buttons:
|
2
|
+
.medium-editor-cancel, .medium-editor-link-to-asset {
|
3
|
+
&:hover {
|
4
|
+
text-decoration: none;
|
5
|
+
&:before {
|
6
|
+
color: lighten($tn-primary, 40%);
|
7
|
+
}
|
8
|
+
}
|
9
|
+
&:before {
|
10
|
+
font-family: 'FontAwesome';
|
11
|
+
font-size: 20px;
|
12
|
+
font-weight: 400;
|
13
|
+
position: relative;
|
14
|
+
top: 2px;
|
15
|
+
color: white;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.medium-editor-cancel:before {
|
19
|
+
content: '\f057';
|
20
|
+
}
|
21
|
+
.medium-editor-link-to-asset:before {
|
22
|
+
content: '\f1c1';
|
23
|
+
}
|
24
|
+
|
25
|
+
// Set z-index below tooltips:
|
26
|
+
.medium-editor-toolbar {
|
27
|
+
z-index: 1000;
|
28
|
+
}
|
29
|
+
|
30
|
+
// Open link in new window checkbox styles:
|
31
|
+
.medium-editor-toolbar-form-anchor {
|
32
|
+
input {
|
33
|
+
height: 56px;
|
34
|
+
&.medium-editor-toolbar-anchor-target {
|
35
|
+
position: absolute;
|
36
|
+
z-index: 1;
|
37
|
+
top: 0;
|
38
|
+
right: 0;
|
39
|
+
bottom: 0;
|
40
|
+
left: 0;
|
41
|
+
display: block;
|
42
|
+
width: 100%;
|
43
|
+
height: 30px;
|
44
|
+
margin: 0;
|
45
|
+
cursor: pointer;
|
46
|
+
opacity: 0;
|
47
|
+
&:checked + .medium-editor-toolbar-anchor-target-label:before {
|
48
|
+
// content: '\f08e'; // external-light
|
49
|
+
content: '\f14c'; // external-dark
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
.medium-editor-toolbar-anchor-target-wrap {
|
54
|
+
position: relative;
|
55
|
+
top: 2px;
|
56
|
+
display: inline-block;
|
57
|
+
margin: 0;
|
58
|
+
padding: 0;
|
59
|
+
}
|
60
|
+
label.medium-editor-toolbar-anchor-target-label {
|
61
|
+
display: inline-block;
|
62
|
+
width: auto;
|
63
|
+
margin: 0 6px;
|
64
|
+
padding: 0;
|
65
|
+
&:before {
|
66
|
+
font-family: 'FontAwesome';
|
67
|
+
font-size: 18px;
|
68
|
+
line-height: 30px;
|
69
|
+
display: block;
|
70
|
+
content: '\f0c8'; // square-dark
|
71
|
+
// content: '\f096'; // square-light
|
72
|
+
color: white;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// Color updates:
|
1
78
|
.medium-toolbar-arrow-under:after {
|
2
79
|
border-color: $tn-primary transparent transparent;
|
3
80
|
}
|
@@ -8,7 +85,6 @@
|
|
8
85
|
|
9
86
|
.medium-editor-toolbar-form-anchor {
|
10
87
|
background: $tn-primary;
|
11
|
-
|
12
88
|
input {
|
13
89
|
background: $tn-primary;
|
14
90
|
}
|
@@ -19,22 +95,19 @@
|
|
19
95
|
}
|
20
96
|
|
21
97
|
.medium-editor-toolbar {
|
98
|
+
border: 1px solid lighten($tn-primary, 10%);
|
22
99
|
background-color: $tn-primary;
|
23
|
-
border: 1px solid $medium-editor-toolbar-border;
|
24
|
-
|
25
100
|
li .medium-editor-button-active {
|
26
|
-
background-color: $
|
101
|
+
background-color: darken($tn-primary, 10%);
|
27
102
|
}
|
28
|
-
|
29
103
|
li button {
|
30
|
-
border-right: 1px solid $
|
31
|
-
|
104
|
+
border-right: 1px solid lighten($tn-primary, 10%);
|
32
105
|
&:hover {
|
33
|
-
background-color: $
|
106
|
+
background-color: lighten($tn-primary, 10%);
|
34
107
|
}
|
35
108
|
}
|
36
109
|
}
|
37
110
|
|
38
111
|
.medium-editor-placeholder:after {
|
39
|
-
color: $
|
112
|
+
color: lighten($tn-primary, 10%);
|
40
113
|
}
|
@@ -3,9 +3,7 @@
|
|
3
3
|
display: none;
|
4
4
|
}
|
5
5
|
&.mobile-breakpoint {
|
6
|
-
.one, .two, .three, .four, .five, .six,
|
7
|
-
|
8
|
-
.seven, .eight, .nine, .ten, .eleven, .twelve {
|
6
|
+
.one, .two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve {
|
9
7
|
@include span-columns(12);
|
10
8
|
}
|
11
9
|
.wrapped-image {
|
@@ -19,15 +17,15 @@
|
|
19
17
|
|
20
18
|
.tn-tc-main-actions {
|
21
19
|
a {
|
22
|
-
@include transition(all
|
20
|
+
@include transition(all .2s ease);
|
21
|
+
font-size: $tn-font-large;
|
23
22
|
margin: $tn-margin $tn-margin 0 0;
|
24
23
|
text-transform: uppercase;
|
25
|
-
font-size: $tn-font-large;
|
26
24
|
span {
|
25
|
+
font-size: $tn-font-small;
|
27
26
|
position: relative;
|
28
27
|
top: -2px;
|
29
28
|
padding-left: 5px;
|
30
|
-
font-size: $tn-font-small;
|
31
29
|
}
|
32
30
|
&:hover {
|
33
31
|
text-decoration: none;
|
@@ -41,16 +39,16 @@
|
|
41
39
|
// @import "styleguides/styleguide";
|
42
40
|
// @extend body;
|
43
41
|
.tn-tc-row {
|
44
|
-
@include transition(box-shadow
|
45
|
-
@include transition(border
|
42
|
+
@include transition(box-shadow .2s ease-in);
|
43
|
+
@include transition(border .2s ease-in);
|
44
|
+
min-height: 50px;
|
46
45
|
margin-bottom: 10px;
|
47
46
|
padding: 0;
|
48
|
-
min-height: 50px;
|
49
47
|
&.ui-sortable-helper {
|
50
48
|
overflow: hidden;
|
51
49
|
box-sizing: content-box;
|
52
|
-
padding: 5px 10px;
|
53
50
|
max-height: 200px;
|
51
|
+
padding: 5px 10px;
|
54
52
|
border: 1px solid $tn-dark-grey;
|
55
53
|
background: $tn-light-grey;
|
56
54
|
box-shadow: 1px 1px 5px $tn-dark-grey;
|
@@ -60,7 +58,9 @@
|
|
60
58
|
max-height: 200px;
|
61
59
|
border: 1px dashed $tn-dark-grey;
|
62
60
|
}
|
63
|
-
|
61
|
+
i {
|
62
|
+
font-size: 1em;
|
63
|
+
}
|
64
64
|
.tn-tc-bottombar {
|
65
65
|
display: none;
|
66
66
|
}
|
@@ -71,20 +71,19 @@
|
|
71
71
|
.drag-anchor {
|
72
72
|
float: left;
|
73
73
|
}
|
74
|
-
|
75
74
|
.tn-tc-topbar, .tn-tc-bottombar {
|
76
75
|
padding: 0;
|
77
76
|
// background-color: $tn-med-grey;
|
78
77
|
.actions {
|
79
|
-
@include transition(all
|
80
|
-
color: $tn-dark-grey;
|
81
|
-
text-align: right;
|
78
|
+
@include transition(all .2s ease);
|
82
79
|
position: relative;
|
80
|
+
text-align: right;
|
81
|
+
color: $tn-dark-grey;
|
83
82
|
i {
|
84
|
-
@include transition(all
|
83
|
+
@include transition(all .2s ease);
|
85
84
|
}
|
86
85
|
a {
|
87
|
-
@include transition(all
|
86
|
+
@include transition(all .2s ease);
|
88
87
|
display: inline-block;
|
89
88
|
padding: 10px 0 5px;
|
90
89
|
color: $tn-dark-grey;
|
@@ -138,25 +137,25 @@
|
|
138
137
|
min-height: 100%;
|
139
138
|
}
|
140
139
|
.editable-text {
|
141
|
-
padding: 5px;
|
142
140
|
min-height: 50px;
|
141
|
+
padding: 5px;
|
143
142
|
outline: none;
|
144
143
|
background: #fff;
|
145
|
-
p {
|
146
|
-
margin
|
144
|
+
h3, h4, p, ul, ol {
|
145
|
+
margin: 0 0 $tn-margin;
|
147
146
|
padding-top: 0;
|
148
147
|
}
|
149
148
|
}
|
150
149
|
a.add-image {
|
151
150
|
span {
|
151
|
+
font-family: $tn-open-sans;
|
152
|
+
line-height: 200px;
|
152
153
|
display: block;
|
153
154
|
height: 200px;
|
155
|
+
text-align: center;
|
156
|
+
color: $tn-dark-grey;
|
154
157
|
border: 4px dashed $tn-dark-grey;
|
155
158
|
background: $tn-med-grey;
|
156
|
-
color: $tn-dark-grey;
|
157
|
-
text-align: center;
|
158
|
-
font-family: $tn-open-sans;
|
159
|
-
line-height: 200px;
|
160
159
|
}
|
161
160
|
}
|
162
161
|
.wrapped-image {
|
@@ -166,7 +165,6 @@
|
|
166
165
|
padding: 0;
|
167
166
|
}
|
168
167
|
}
|
169
|
-
|
170
168
|
&.left {
|
171
169
|
float: left;
|
172
170
|
padding: 5px 10px 0 5px;
|
@@ -191,20 +189,22 @@
|
|
191
189
|
overflow: hidden;
|
192
190
|
img {
|
193
191
|
display: block;
|
192
|
+
width: auto;
|
194
193
|
max-width: 100%;
|
195
194
|
margin: 0 auto;
|
196
|
-
width: auto;
|
197
195
|
}
|
198
|
-
&.stretch img {
|
196
|
+
&.stretch img {
|
197
|
+
width: 100%;
|
198
|
+
}
|
199
199
|
}
|
200
200
|
textarea.caption, div.tn-tc-caption {
|
201
|
+
font-size: $tn-font-small;
|
202
|
+
width: 100%;
|
201
203
|
margin: 0;
|
202
204
|
padding: 5px;
|
203
|
-
width: 100%;
|
204
|
-
background: $tn-dark-grey;
|
205
|
-
color: #fff;
|
206
|
-
font-size: $tn-font-small;
|
207
205
|
resize: none;
|
206
|
+
color: #fff;
|
207
|
+
background: $tn-dark-grey;
|
208
208
|
}
|
209
209
|
textarea.caption:-moz-placeholder {
|
210
210
|
color: #fff;
|
@@ -213,7 +213,7 @@
|
|
213
213
|
color: $tn-light-grey;
|
214
214
|
}
|
215
215
|
.one, .two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve {
|
216
|
-
@include transition(width
|
216
|
+
@include transition(width .2s ease);
|
217
217
|
}
|
218
218
|
}
|
219
219
|
|
@@ -235,8 +235,7 @@
|
|
235
235
|
|
236
236
|
.image-controls {
|
237
237
|
@include transition(none);
|
238
|
-
&.full-width-image, &.three-column-image, &.four-column-image,
|
239
|
-
&.stacked-image-and-text {
|
238
|
+
&.full-width-image, &.three-column-image, &.four-column-image, &.stacked-image-and-text {
|
240
239
|
.grow-image, .shrink-image, .swap-sides {
|
241
240
|
display: none;
|
242
241
|
}
|
@@ -245,24 +244,23 @@
|
|
245
244
|
outline: none;
|
246
245
|
background: lighten($tn-primary, 10%);
|
247
246
|
}
|
248
|
-
|
249
247
|
.link-form {
|
250
248
|
z-index: $tn-z-medium-editor-controls;
|
251
249
|
}
|
252
250
|
}
|
253
251
|
|
254
252
|
[contenteditable=true]:empty:not(:focus):before {
|
255
|
-
color: $tn-med-grey;
|
256
253
|
content: attr(data-placeholder);
|
254
|
+
color: $tn-med-grey;
|
257
255
|
}
|
258
256
|
|
259
257
|
a.open-embed-modal {
|
260
|
-
@include transition(all
|
258
|
+
@include transition(all .2s ease);
|
259
|
+
font-size: $tn-font-small;
|
261
260
|
display: block;
|
262
261
|
padding: 5px 0;
|
263
|
-
color: $tn-dark-grey;
|
264
262
|
text-transform: uppercase;
|
265
|
-
|
263
|
+
color: $tn-dark-grey;
|
266
264
|
}
|
267
265
|
|
268
266
|
.tn-tc-row:hover a.open-embed-modal {
|
data/lib/tenon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.53
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- factor[e] design initiative
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: better_errors
|
@@ -999,7 +999,7 @@ files:
|
|
999
999
|
- app/assets/javascripts/tenon/features/tenon_content/wrapped_sizing.js.coffee
|
1000
1000
|
- app/assets/javascripts/tenon/features/video_feeds.js.coffee
|
1001
1001
|
- app/assets/javascripts/tenon/manifest.json
|
1002
|
-
- app/assets/javascripts/tenon/
|
1002
|
+
- app/assets/javascripts/tenon/medium-on-tenon.js
|
1003
1003
|
- app/assets/javascripts/tenon/templates/assets/asset_field.jst.eco
|
1004
1004
|
- app/assets/javascripts/tenon/templates/assets/asset_progress.jst.eco
|
1005
1005
|
- app/assets/javascripts/tenon/templates/assets/asset_row.jst.eco
|
@@ -1502,7 +1502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1502
1502
|
version: '0'
|
1503
1503
|
requirements: []
|
1504
1504
|
rubyforge_project:
|
1505
|
-
rubygems_version: 2.
|
1505
|
+
rubygems_version: 2.2.2
|
1506
1506
|
signing_key:
|
1507
1507
|
specification_version: 4
|
1508
1508
|
summary: A highly flexible mountable Rails CMS built for rapid application development.
|
@@ -1,65 +0,0 @@
|
|
1
|
-
MediumEditor.prototype.toolbarFormAnchor = function () {
|
2
|
-
var anchor = document.createElement('div'),
|
3
|
-
input = document.createElement('input'),
|
4
|
-
a = document.createElement('a'),
|
5
|
-
button = document.createElement('a');
|
6
|
-
icon = document.createElement('i');
|
7
|
-
|
8
|
-
a.setAttribute('href', '#');
|
9
|
-
a.innerHTML = '×';
|
10
|
-
a.className = 'medium-editor-cancel';
|
11
|
-
|
12
|
-
button.id = 'medium-editor-link-to-asset';
|
13
|
-
button.setAttribute('href', '/tenon/item_assets/new?hide_upload=true');
|
14
|
-
button.setAttribute('data-modal-remote', 'true');
|
15
|
-
button.setAttribute('data-tooltip', 'true');
|
16
|
-
button.setAttribute('title', 'Link to an Asset');
|
17
|
-
button.setAttribute('data-modal-title', 'Link to Asset');
|
18
|
-
button.setAttribute('data-modal-handler', 'Tenon.features.tenonContent.AssetLink');
|
19
|
-
|
20
|
-
icon.className = 'fa fa-file-pdf-o';
|
21
|
-
|
22
|
-
button.appendChild(icon);
|
23
|
-
|
24
|
-
input.setAttribute('type', 'text');
|
25
|
-
input.setAttribute('placeholder', this.options.anchorInputPlaceholder);
|
26
|
-
|
27
|
-
anchor.className = 'medium-editor-toolbar-form-anchor';
|
28
|
-
anchor.id = 'medium-editor-toolbar-form-anchor';
|
29
|
-
anchor.appendChild(input);
|
30
|
-
anchor.appendChild(button);
|
31
|
-
anchor.appendChild(a);
|
32
|
-
|
33
|
-
return anchor;
|
34
|
-
};
|
35
|
-
|
36
|
-
MediumEditor.prototype.bindAnchorForm = function () {
|
37
|
-
var linkCancel = this.anchorForm.querySelector('a.medium-editor-cancel'),
|
38
|
-
self = this;
|
39
|
-
this.anchorForm.addEventListener('click', function (e) {
|
40
|
-
if ( !$(e.target).is('#medium-editor-link-to-asset *, #medium-editor-link-to-asset') ) {
|
41
|
-
e.stopPropagation();
|
42
|
-
}
|
43
|
-
});
|
44
|
-
this.anchorInput.addEventListener('keyup', function (e) {
|
45
|
-
if (e.keyCode === 13) {
|
46
|
-
e.preventDefault();
|
47
|
-
self.createLink(this);
|
48
|
-
}
|
49
|
-
});
|
50
|
-
this.anchorInput.addEventListener('click', function (e) {
|
51
|
-
// make sure not to hide form when cliking into the input
|
52
|
-
e.stopPropagation();
|
53
|
-
self.keepToolbarAlive = true;
|
54
|
-
});
|
55
|
-
this.anchorInput.addEventListener('blur', function () {
|
56
|
-
// self.keepToolbarAlive = false;
|
57
|
-
self.checkSelection();
|
58
|
-
});
|
59
|
-
linkCancel.addEventListener('click', function (e) {
|
60
|
-
e.preventDefault();
|
61
|
-
self.showToolbarActions();
|
62
|
-
restoreSelection(self.savedSelection);
|
63
|
-
});
|
64
|
-
return this;
|
65
|
-
};
|