sir-trevor-rails 0.1.3 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,47 +1,47 @@
|
|
1
1
|
/* All icons */
|
2
2
|
|
3
|
-
.
|
4
|
-
.
|
5
|
-
background: url(<%= asset_path 'sir-trevor/icons/new_image.png' %>)
|
3
|
+
.image-block.dropzone p,
|
4
|
+
.gallery-block.dropzone p {
|
5
|
+
background-image: url(<%= asset_path 'sir-trevor/icons/new_image.png' %>);
|
6
6
|
}
|
7
7
|
|
8
|
-
.
|
9
|
-
background-image: url(<%= asset_path 'sir-trevor/icons/
|
8
|
+
.tweet-block.dropzone p {
|
9
|
+
background-image: url(<%= asset_path 'sir-trevor/icons/new_tweet.png' %>);
|
10
10
|
}
|
11
11
|
|
12
|
-
.
|
13
|
-
background-image: url(<%= asset_path 'sir-trevor/icons/
|
12
|
+
.video-block.dropzone p {
|
13
|
+
background-image: url(<%= asset_path 'sir-trevor/icons/new_video.png' %>);
|
14
14
|
}
|
15
15
|
|
16
|
-
.sir-trevor
|
17
|
-
background-image: url(<%= asset_path 'sir-trevor/icons/
|
16
|
+
.sir-trevor-remove-block {
|
17
|
+
background-image: url(<%= asset_path 'sir-trevor/icons/close.gif' %>);
|
18
18
|
}
|
19
19
|
|
20
|
-
.sir-trevor
|
21
|
-
background-image: url(<%= asset_path 'sir-trevor/icons/
|
20
|
+
.sir-trevor-drag-handle {
|
21
|
+
background-image: url(<%= asset_path 'sir-trevor/icons/handle.gif' %>);
|
22
22
|
}
|
23
23
|
|
24
|
-
.sir-trevor
|
24
|
+
.sir-trevor-button.new-quote {
|
25
25
|
background-image: url(<%= asset_path 'sir-trevor/icons/block_editor_blockquote.png' %>);
|
26
26
|
}
|
27
27
|
|
28
|
-
.sir-trevor
|
29
|
-
.sir-trevor
|
28
|
+
.sir-trevor-button.new-image,
|
29
|
+
.sir-trevor-button.new-gallery {
|
30
30
|
background-image: url(<%= asset_path 'sir-trevor/icons/block_editor_image.png' %>);
|
31
31
|
}
|
32
32
|
|
33
|
-
.sir-trevor
|
33
|
+
.sir-trevor-button.new-text {
|
34
34
|
background-image: url(<%= asset_path 'sir-trevor/icons/block_editor_text.png' %>);
|
35
35
|
}
|
36
36
|
|
37
|
-
.sir-trevor
|
37
|
+
.sir-trevor-button.new-list {
|
38
38
|
background-image: url(<%= asset_path 'sir-trevor/icons/block_editor_list.png' %>);
|
39
39
|
}
|
40
40
|
|
41
|
-
.sir-trevor
|
41
|
+
.sir-trevor-button.new-tweet {
|
42
42
|
background-image: url(<%= asset_path 'sir-trevor/icons/block_editor_tweet.png' %>);
|
43
43
|
}
|
44
44
|
|
45
|
-
.sir-trevor
|
45
|
+
.sir-trevor-button.new-video {
|
46
46
|
background-image: url(<%= asset_path 'sir-trevor/icons/block_editor_video.png' %>);
|
47
47
|
}
|
@@ -2,189 +2,266 @@
|
|
2
2
|
body { margin: 0; font-size: 1em; line-height: 1.4; }
|
3
3
|
|
4
4
|
.sir-trevor {
|
5
|
+
min-width: 600px;
|
5
6
|
padding: 0;
|
6
7
|
z-index: 1;
|
7
8
|
}
|
8
9
|
|
9
10
|
.sir-trevor-blocks {
|
10
|
-
padding:
|
11
|
+
padding: 16px 0 44px 0;
|
11
12
|
position: relative;
|
12
13
|
}
|
13
14
|
|
14
|
-
/* Typography reset */
|
15
15
|
.sir-trevor { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
|
17
|
+
.sir-trevor {
|
18
|
+
font-family: "Helvetica Neue", 'Arial', sans-serif;
|
19
|
+
color: #222;
|
20
|
+
}
|
19
21
|
|
20
22
|
.sir-trevor * {
|
21
23
|
-webkit-box-sizing: border-box;
|
22
|
-
|
23
|
-
|
24
|
-
|
24
|
+
-moz-box-sizing: border-box;
|
25
|
+
-ms-box-sizing: border-box;
|
26
|
+
box-sizing: border-box;
|
25
27
|
}
|
26
28
|
|
27
|
-
|
29
|
+
.sir-trevor p,
|
30
|
+
.sir-trevor h1,
|
31
|
+
.sir-trevor h2,
|
32
|
+
.sir-trevor h3,
|
33
|
+
.sir-trevor h4 {
|
34
|
+
margin: 0 0 10px 0;
|
35
|
+
}
|
28
36
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
37
|
+
/* Formatting control bar */
|
38
|
+
|
39
|
+
.sir-trevor-formatting-control {
|
40
|
+
background: #E9E9E9;
|
41
|
+
border: 1px solid #DADADA;
|
42
|
+
padding: 8px;
|
43
|
+
margin: 0;
|
35
44
|
width: 100%;
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
45
|
+
position: relative;
|
46
|
+
z-index: 12;
|
47
|
+
margin-bottom: 35px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.sir-trevor-formatting-control.fixed {
|
51
|
+
position: fixed;
|
40
52
|
top: 0;
|
41
53
|
}
|
42
54
|
|
43
|
-
.sir-trevor-
|
44
|
-
min-width: 25px;
|
55
|
+
.sir-trevor-format-button {
|
45
56
|
padding: 2px 4px;
|
57
|
+
min-width: 30px;
|
46
58
|
border-radius: 4px;
|
47
59
|
color: white;
|
48
60
|
border: 1px solid #9A9A9A;
|
49
61
|
background: #B2B2B2;
|
50
|
-
text-align: center;
|
51
|
-
margin: 0 10px 0 0;
|
52
62
|
cursor: pointer;
|
63
|
+
display: inline-block;
|
64
|
+
text-align: center;
|
65
|
+
font-size: 0.875em;
|
66
|
+
font-family: Arial;
|
67
|
+
margin-right: 10px;
|
53
68
|
}
|
54
69
|
|
55
|
-
.sir-trevor-
|
70
|
+
.sir-trevor-format-button:hover {
|
56
71
|
background: #606060;
|
57
|
-
border: 1px solid #606060;
|
72
|
+
border: 1px solid #606060;
|
58
73
|
}
|
59
74
|
|
60
75
|
/* Marker */
|
61
76
|
|
62
|
-
.sir-trevor
|
77
|
+
.sir-trevor-marker {
|
63
78
|
display: block;
|
64
79
|
cursor: pointer;
|
65
80
|
background: #F5F297;
|
66
81
|
border: 1px dotted #DAC962;
|
67
82
|
height: 46px;
|
68
83
|
text-align: center;
|
69
|
-
vertical-align: top;
|
70
84
|
color: #9B8816;
|
71
85
|
position: absolute;
|
72
86
|
width: 100%;
|
73
|
-
margin-top: -
|
74
|
-
z-index:
|
87
|
+
margin-top: -35px;
|
88
|
+
z-index: 11;
|
89
|
+
font-size: 11px;
|
75
90
|
}
|
76
91
|
|
77
|
-
.sir-trevor
|
78
|
-
|
79
|
-
|
80
|
-
font-size: 10px;
|
81
|
-
font-weight: bold;
|
82
|
-
margin: 0;
|
83
|
-
padding: 0 16px 0 0;
|
84
|
-
color: #9B8816;
|
92
|
+
.sir-trevor-marker p,
|
93
|
+
.sir-trevor-buttons {
|
94
|
+
display: inline-block;
|
85
95
|
}
|
86
96
|
|
87
|
-
.sir-trevor
|
88
|
-
|
89
|
-
|
97
|
+
.sir-trevor-marker p {
|
98
|
+
font-weight: bold;
|
99
|
+
position: relative;
|
100
|
+
top: -10px;
|
101
|
+
margin: 0 20px 0 0;
|
90
102
|
}
|
91
103
|
|
92
|
-
.sir-trevor
|
93
|
-
|
94
|
-
|
104
|
+
.sir-trevor-marker.drop-zone p { top: 15px; }
|
105
|
+
|
106
|
+
.sir-trevor-button {
|
107
|
+
display: inline-block;
|
95
108
|
border-left: 1px dotted #DAC962;
|
96
|
-
color: #AF9B24;
|
97
109
|
height: 45px;
|
98
|
-
|
99
|
-
|
100
|
-
text-decoration: none;
|
110
|
+
padding: 25px 13px 5px;
|
111
|
+
color: #AF9B24;
|
101
112
|
background-repeat: no-repeat;
|
102
|
-
background-position: center
|
113
|
+
background-position: center 7px;
|
114
|
+
text-decoration: none;
|
103
115
|
}
|
104
116
|
|
105
|
-
|
117
|
+
.sir-trevor-button:last-child { border-right: 1px dotted #DAC962; }
|
106
118
|
|
107
|
-
.sir-trevor
|
119
|
+
.sir-trevor-button.new-quote {
|
108
120
|
background-image: url(images/sir-trevor/icons/block_editor_blockquote.png);
|
109
121
|
}
|
110
122
|
|
111
|
-
.sir-trevor
|
112
|
-
.sir-trevor
|
123
|
+
.sir-trevor-button.new-image,
|
124
|
+
.sir-trevor-button.new-gallery {
|
113
125
|
background-image: url(images/sir-trevor/icons/block_editor_image.png);
|
114
126
|
}
|
115
127
|
|
116
|
-
.sir-trevor
|
128
|
+
.sir-trevor-button.new-text {
|
117
129
|
background-image: url(images/sir-trevor/icons/block_editor_text.png);
|
118
130
|
}
|
119
131
|
|
120
|
-
.sir-trevor
|
132
|
+
.sir-trevor-button.new-list {
|
121
133
|
background-image: url(images/sir-trevor/icons/block_editor_list.png);
|
122
134
|
}
|
123
135
|
|
124
|
-
.sir-trevor
|
136
|
+
.sir-trevor-button.new-tweet {
|
125
137
|
background-image: url(images/sir-trevor/icons/block_editor_tweet.png);
|
126
138
|
}
|
127
139
|
|
128
|
-
.sir-trevor
|
140
|
+
.sir-trevor-button.new-video {
|
129
141
|
background-image: url(images/sir-trevor/icons/block_editor_video.png);
|
130
142
|
}
|
131
143
|
|
132
|
-
.sir-trevor .sir-trevor-marker .buttons a:last-child {
|
133
|
-
border-right: 1px dotted #DAC962;
|
134
|
-
}
|
135
|
-
|
136
|
-
.sir-trevor .sir-trevor-marker .buttons a:hover {
|
137
|
-
|
138
|
-
}
|
139
|
-
|
140
144
|
/* Blocks */
|
141
145
|
|
142
|
-
.sir-trevor
|
146
|
+
.sir-trevor-block {
|
143
147
|
position: relative;
|
144
|
-
margin:
|
148
|
+
margin: 0px 0 23px 0;
|
145
149
|
font-size: 14px;
|
146
150
|
overflow: hidden;
|
147
151
|
}
|
148
152
|
|
149
|
-
|
153
|
+
.sir-trevor-editor-block {
|
154
|
+
padding: 15px 20px;
|
155
|
+
border-top: 1px solid transparent;
|
156
|
+
border-bottom: 1px solid transparent;
|
157
|
+
}
|
150
158
|
|
151
|
-
.sir-trevor
|
152
|
-
|
153
|
-
|
159
|
+
.sir-trevor-editor-block [contenteditable=true] {
|
160
|
+
margin: 0 20px;
|
161
|
+
min-height: 75px;
|
154
162
|
}
|
155
163
|
|
156
|
-
|
164
|
+
.sir-trevor-editor-block [contenteditable=true]:focus {
|
165
|
+
outline: none;
|
166
|
+
}
|
157
167
|
|
158
|
-
.sir-trevor
|
159
|
-
|
160
|
-
border: 1px solid
|
168
|
+
.sir-trevor-remove-block {
|
169
|
+
width: 14px; height: 14px;
|
170
|
+
border: 1px solid #B3B3B3;
|
171
|
+
position: absolute;
|
172
|
+
top: 10px; right : 8px;
|
173
|
+
cursor: pointer;
|
174
|
+
display: none;
|
175
|
+
background: #fff url(images/sir-trevor/icons/close.gif) no-repeat center center;
|
161
176
|
}
|
162
177
|
|
163
|
-
.sir-trevor
|
164
|
-
|
178
|
+
.sir-trevor-drag-handle {
|
179
|
+
width: 14px;
|
180
|
+
height: 100%;
|
181
|
+
cursor: move;
|
182
|
+
position: absolute;
|
183
|
+
border-radius: 4px 0 0 4px;
|
184
|
+
left: 0;
|
185
|
+
top: 0;
|
186
|
+
display: none;
|
187
|
+
background: #606060 url(images/sir-trevor/icons/handle.gif) repeat-y 2px 2px;
|
165
188
|
}
|
166
189
|
|
167
|
-
|
190
|
+
/*** BLOCK STATES ***/
|
191
|
+
|
192
|
+
/* Block Active State */
|
193
|
+
|
194
|
+
.active .sir-trevor-editor-block,
|
195
|
+
.focussed .sir-trevor-editor-block {
|
196
|
+
border-top: 1px solid #e9e9e9;
|
197
|
+
border-bottom: 1px solid #e9e9e9;
|
198
|
+
}
|
199
|
+
|
200
|
+
.active .sir-trevor-remove-block,
|
201
|
+
.active .sir-trevor-drag-handle,
|
202
|
+
.focussed .sir-trevor-remove-block,
|
203
|
+
.focussed .sir-trevor-drag-handle {
|
204
|
+
display: block;
|
205
|
+
}
|
206
|
+
|
207
|
+
/* Block Error State */
|
208
|
+
|
209
|
+
.sir-trevor-block-with-errors {
|
210
|
+
background: #CFEEFA;
|
211
|
+
}
|
212
|
+
|
213
|
+
.sir-trevor-block-with-errors .sir-trevor-editor-block {
|
214
|
+
border-top: 1px solid #7FD7F7;
|
215
|
+
border-bottom: 1px solid #7FD7F7;
|
216
|
+
}
|
217
|
+
|
218
|
+
/* Block Dragging State */
|
219
|
+
|
220
|
+
.sir-trevor-block.dragging {
|
221
|
+
opacity: 0.5;
|
222
|
+
background: #fff;
|
223
|
+
}
|
224
|
+
|
225
|
+
/* Block Loading State */
|
226
|
+
|
227
|
+
.sir-trevor-block.loading {
|
228
|
+
opacity: 0.6;
|
229
|
+
}
|
230
|
+
|
231
|
+
.sir-trevor-block.loading .spinner {
|
232
|
+
width: 32px;
|
233
|
+
height: 32px;
|
234
|
+
top: 50%; left: 50%;
|
235
|
+
position: absolute!important;
|
236
|
+
}
|
237
|
+
|
238
|
+
/* Dropzone Blocks */
|
168
239
|
|
169
240
|
.sir-trevor-block .dropzone {
|
170
241
|
background-color: #E9E9E9;
|
171
242
|
border: 1px dotted #B3B3B3;
|
172
243
|
padding: 20px;
|
173
244
|
text-align: center;
|
174
|
-
margin:
|
245
|
+
margin: 10px auto;
|
246
|
+
max-width: 550px;
|
175
247
|
}
|
176
248
|
|
177
|
-
.sir-trevor-block .dropzone
|
178
|
-
|
249
|
+
.sir-trevor-block .dropzone p {
|
250
|
+
display: inline-block;
|
251
|
+
font-size: 24px;
|
252
|
+
border: 1px dotted #B3B3B3;
|
253
|
+
color: #282828;
|
254
|
+
padding: 15px 60px 15px 100px;
|
179
255
|
}
|
180
256
|
|
181
|
-
.sir-trevor
|
182
|
-
|
183
|
-
|
184
|
-
display: inline-block;
|
185
|
-
color: #666;
|
257
|
+
.sir-trevor-block .dropzone.drag-enter {
|
258
|
+
background: #F5F297;
|
259
|
+
border-color: #DAC962;
|
186
260
|
}
|
187
261
|
|
262
|
+
.sir-trevor-block .dropzone.drag-enter p {
|
263
|
+
color: #9B8816;
|
264
|
+
}
|
188
265
|
|
189
266
|
.sir-trevor-block .dropzone input[type="file"] {
|
190
267
|
position: absolute;
|
@@ -200,6 +277,7 @@ body { margin: 0; font-size: 1em; line-height: 1.4; }
|
|
200
277
|
background: #5F5F5F;
|
201
278
|
border-radius: 4px;
|
202
279
|
border: none;
|
280
|
+
font-family: Arial;
|
203
281
|
padding: 4px 16px;
|
204
282
|
color: white;
|
205
283
|
cursor: pointer;
|
@@ -208,344 +286,154 @@ body { margin: 0; font-size: 1em; line-height: 1.4; }
|
|
208
286
|
}
|
209
287
|
|
210
288
|
.sir-trevor .sir-trevor-block .dropzone label { width: 50%; display: inline; font-weight: normal; color: #666; }
|
211
|
-
.sir-trevor .sir-trevor-block .dropzone input[type=text] { width: 50%; display: inline-block; margin
|
212
|
-
|
213
|
-
/*
|
214
|
-
|
215
|
-
.sir-trevor
|
216
|
-
|
217
|
-
}
|
218
|
-
|
219
|
-
.sir-trevor-block.
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
.sir-trevor-block
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
}
|
259
|
-
|
260
|
-
.
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
.
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
289
|
+
.sir-trevor .sir-trevor-block .dropzone input[type=text] { width: 50%; display: inline-block; margin: 0 0 0 10px; }
|
290
|
+
|
291
|
+
/* Block Specific Styles */
|
292
|
+
|
293
|
+
.sir-trevor-editor-block.quote-block {
|
294
|
+
padding: 15px 60px;
|
295
|
+
}
|
296
|
+
|
297
|
+
.sir-trevor-editor-block.quote-block [contenteditable=true] { font-size: 1.2em; }
|
298
|
+
|
299
|
+
.sir-trevor-editor-block.quote-block:before {
|
300
|
+
content: '"';
|
301
|
+
font-size: 48px;
|
302
|
+
font-family: serif;
|
303
|
+
position: absolute;
|
304
|
+
top: 5px; left: 50px;
|
305
|
+
color: #ccc;
|
306
|
+
display: block;
|
307
|
+
}
|
308
|
+
|
309
|
+
.sir-trevor-editor-block.quote-block .input {
|
310
|
+
margin: 15px 0 0 20px;
|
311
|
+
}
|
312
|
+
|
313
|
+
/*
|
314
|
+
Image block
|
315
|
+
*/
|
316
|
+
|
317
|
+
.image-block.dropzone p,
|
318
|
+
.gallery-block.dropzone p {
|
319
|
+
padding-left: 94px;
|
320
|
+
background: url(images/sir-trevor/icons/new_image.png) no-repeat 15px 8px;
|
321
|
+
}
|
322
|
+
|
323
|
+
/* Video */
|
324
|
+
|
325
|
+
.video-block.dropzone p {
|
326
|
+
padding-left: 240px;
|
327
|
+
padding-right: 45px;
|
328
|
+
background: url(images/sir-trevor/icons/new_video.png) no-repeat 15px 8px;
|
329
|
+
}
|
330
|
+
|
331
|
+
/* Tweet */
|
332
|
+
|
333
|
+
.tweet-block.dropzone p {
|
334
|
+
padding-left: 94px;
|
335
|
+
background: url(images/sir-trevor/icons/new_tweet.png) no-repeat 15px 8px;
|
336
|
+
}
|
337
|
+
|
338
|
+
.tweet-block .tweet {
|
339
|
+
padding: 24px;
|
340
|
+
overflow: hidden;
|
341
|
+
}
|
342
|
+
|
343
|
+
.tweet-block .tweet-avatar {
|
344
|
+
float: left;
|
345
|
+
margin: 3px 15px 20px 0;
|
346
|
+
}
|
347
|
+
|
348
|
+
.tweet-block .tweet .tweet-body {
|
349
|
+
float: left;
|
350
|
+
width: 450px;
|
351
|
+
}
|
352
|
+
|
353
|
+
.tweet-block .tweet .tweet-user {
|
354
|
+
font-weight: bold;
|
355
|
+
font-size: 1.125em;
|
356
|
+
margin-bottom: 6px;
|
357
|
+
line-height: 1.125em;
|
358
|
+
}
|
359
|
+
|
360
|
+
.tweet-block .tweet .tweet-text {
|
361
|
+
margin-bottom: 4px;
|
362
|
+
}
|
363
|
+
|
364
|
+
.tweet-block .tweet time {
|
365
|
+
color: #7f7f7f;
|
366
|
+
font-size: 0.75em;
|
367
|
+
}
|
368
|
+
|
369
|
+
.drag-enter.tweet-block.dropzone p,
|
370
|
+
.drag-enter.image-block.dropzone p,
|
371
|
+
.drag-enter.gallery-block.dropzone p {
|
372
|
+
background-position: 15px -192px;
|
373
|
+
}
|
374
|
+
|
375
|
+
.drag-enter.video-block.dropzone p {
|
376
|
+
background-position: 15px -243px;
|
377
|
+
}
|
378
|
+
|
379
|
+
/* Generic Form / Input Styles */
|
380
|
+
|
381
|
+
.sir-trevor-block label {
|
382
|
+
margin-bottom: 12px;
|
286
383
|
display: block;
|
287
|
-
padding-right: 8px;
|
288
|
-
font-size: 12px;
|
289
384
|
font-weight: bold;
|
290
385
|
}
|
291
386
|
|
292
|
-
.sir-trevor
|
293
|
-
|
294
|
-
|
295
|
-
.sir-trevor .sir-trevor-block pre {
|
387
|
+
.sir-trevor-block input[type=text] {
|
388
|
+
font-size: 100%;
|
389
|
+
font-family: arial, sans-serif;
|
296
390
|
border: 1px solid #E9E9E9;
|
297
391
|
padding: 8px;
|
298
392
|
width: 100%;
|
299
|
-
display: box;
|
300
|
-
-webkit-box-sizing: border-box;
|
301
|
-
-moz-box-sizing: border-box;
|
302
|
-
-ms-box-sizing: border-box;
|
303
|
-
box-sizing: border-box;
|
304
|
-
margin-right: 10px;
|
305
|
-
font-size: 12px;
|
306
|
-
}
|
307
|
-
|
308
|
-
.sir-trevor .sir-trevor-block textarea,
|
309
|
-
.sir-trevor .sir-trevor-block pre {
|
310
|
-
border: 1px solid transparent;
|
311
|
-
font-size: 14px;
|
312
|
-
white-space: pre-wrap;
|
313
|
-
word-wrap: break-word;
|
314
|
-
}
|
315
|
-
|
316
|
-
.sir-trevor .sir-trevor-block input[type=text].sir-trevor-error,
|
317
|
-
.sir-trevor .sir-trevor-block select.sir-trevor-error,
|
318
|
-
.sir-trevor .sir-trevor-block textarea.sir-trevor-error {
|
319
|
-
border: 1px solid #990000;
|
320
|
-
}
|
321
|
-
|
322
|
-
/* Block quote */
|
323
|
-
|
324
|
-
.sir-trevor .sir-trevor-block .block-editor.block-quote-block {
|
325
|
-
padding-left: 60px;
|
326
|
-
}
|
327
|
-
|
328
|
-
.sir-trevor .sir-trevor-block blockquote {
|
329
|
-
padding: 5px; margin: 0;
|
330
|
-
font-size: 14px;
|
331
|
-
font-style: none;
|
332
|
-
}
|
333
|
-
|
334
|
-
/* Tweet block */
|
335
|
-
|
336
|
-
.sir-trevor .sir-trevor-block .tweet-block {}
|
337
|
-
|
338
|
-
.sir-trevor .sir-trevor-block .tweet-block .tweet {
|
339
|
-
padding: 20px;
|
340
|
-
}
|
341
|
-
|
342
|
-
.tweet-block .tweet p {
|
343
|
-
margin: 0 0 10px 0;
|
344
|
-
}
|
345
|
-
|
346
|
-
.sir-trevor .dropzone.tweet-block p {
|
347
|
-
padding-left: 70px;
|
348
|
-
line-height: 50px;
|
349
|
-
background: url(images/sir-trevor/icons/new_tweet.png) no-repeat 0 0;
|
350
|
-
}
|
351
|
-
|
352
|
-
/* Markdown Block */
|
353
|
-
|
354
|
-
.sir-trevor .expanding-textarea {
|
355
|
-
position: relative;
|
356
|
-
min-height: 75px;
|
357
|
-
}
|
358
|
-
|
359
|
-
.sir-trevor .expanding-textarea pre {
|
360
|
-
margin: 0; padding: 0;
|
361
|
-
}
|
362
|
-
|
363
|
-
.sir-trevor .expanding-textarea.active > textarea {
|
364
|
-
overflow: hidden;
|
365
|
-
position: absolute;
|
366
|
-
top: 0;
|
367
|
-
left: 0;
|
368
|
-
height: 100%;
|
369
|
-
resize: none;
|
370
|
-
}
|
371
|
-
|
372
|
-
.sir-trevor .expanding-textarea > pre {
|
373
|
-
display: none;
|
374
|
-
}
|
375
|
-
|
376
|
-
.sir-trevor .expanding-textarea.active > pre {
|
377
|
-
display: block;
|
378
|
-
visibility: hidden;
|
379
|
-
}
|
380
|
-
|
381
|
-
/*
|
382
|
-
Image block
|
383
|
-
*/
|
384
|
-
|
385
|
-
.sir-trevor .dropzone.image-block p,
|
386
|
-
.sir-trevor .dropzone.gallery-block p {
|
387
|
-
padding-left: 70px;
|
388
|
-
line-height: 50px;
|
389
|
-
background: url(images/sir-trevor/icons/new_image.png) no-repeat 0 0;
|
390
|
-
}
|
391
|
-
|
392
|
-
.sir-trevor .image-block img {
|
393
|
-
width: 100%;
|
394
|
-
height: auto;
|
395
|
-
}
|
396
|
-
|
397
|
-
/* Video */
|
398
|
-
|
399
|
-
.sir-trevor .dropzone.video-block p,
|
400
|
-
.sir-trevor .dropzone.video-block p {
|
401
|
-
padding-left: 230px;
|
402
|
-
line-height: 50px;
|
403
|
-
background: url(images/sir-trevor/icons/new_video.png) no-repeat 0 0;
|
404
|
-
}
|
405
|
-
|
406
|
-
/* Gallery items */
|
407
|
-
|
408
|
-
.sir-trevor .sir-trevor-block.active .gallery-block.block-editor {
|
409
|
-
border: 1px solid transparent;
|
410
|
-
border-left: 0;
|
411
|
-
}
|
412
|
-
|
413
|
-
.sir-trevor .gallery-items {
|
414
|
-
overflow: hidden;
|
415
|
-
}
|
416
|
-
|
417
|
-
.sir-trevor .gallery-items ul {
|
418
|
-
margin: 0; padding: 0;
|
419
|
-
}
|
420
|
-
|
421
|
-
.sir-trevor .gallery-items ul li {
|
422
|
-
margin: 0 10px 10px 0;
|
423
|
-
list-style: none;
|
424
|
-
width: 50px; height: 50px;
|
425
393
|
display: block;
|
426
|
-
overflow: hidden;
|
427
|
-
border: 1px solid #E9E9E9;
|
428
|
-
float: left;
|
429
|
-
padding: 5px;
|
430
|
-
cursor: move;
|
431
|
-
position: relative;
|
432
394
|
}
|
433
395
|
|
434
|
-
.sir-trevor
|
435
|
-
width: auto; height: 100%;
|
436
|
-
}
|
396
|
+
.sir-trevor-block input[type=text]:focus { outline: 0; }
|
437
397
|
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
}
|
398
|
+
/* Error States */
|
399
|
+
.sir-trevor-block input[type=text].sir-trevor-error {
|
400
|
+
border-color: #7FD7F7;
|
401
|
+
}
|
442
402
|
|
443
|
-
|
444
|
-
opacity: 0.2;
|
445
|
-
}
|
403
|
+
/* Extended inputs */
|
446
404
|
|
405
|
+
.sir-trevor-block .extended_input { position: relative; }
|
447
406
|
|
448
|
-
.sir-trevor .
|
449
|
-
top: 0;
|
450
|
-
right: 0;
|
451
|
-
}
|
452
|
-
|
453
|
-
|
454
|
-
/* Handle and delete */
|
455
|
-
|
456
|
-
.sir-trevor .sir-trevor-block .handle {
|
457
|
-
width: 10px;
|
458
|
-
height: 100%;
|
459
|
-
cursor: move;
|
407
|
+
.sir-trevor-block .extended_input .count {
|
460
408
|
position: absolute;
|
461
|
-
left: 0;
|
462
|
-
top: 0;
|
463
|
-
display: none;
|
464
|
-
background: #606060 url(images/sir-trevor/icons/handle.gif) repeat-y;
|
465
|
-
}
|
466
|
-
|
467
|
-
.sir-trevor .sir-trevor-block .delete {
|
468
|
-
width: 15px; height: 15px;
|
469
|
-
border: 1px solid #B3B3B3;
|
470
|
-
position: absolute;
|
471
|
-
top: 5px; right : 5px;
|
472
|
-
cursor: pointer;
|
473
409
|
display: none;
|
474
|
-
|
475
|
-
}
|
476
|
-
|
477
|
-
.sir-trevor .sir-trevor-block.active .handle,
|
478
|
-
.sir-trevor .sir-trevor-block.active .delete {
|
479
|
-
display: block;
|
480
|
-
}
|
481
|
-
|
482
|
-
|
483
|
-
/* Validation tooltip */
|
484
|
-
|
485
|
-
.sir-trevor .error-marker {
|
486
|
-
position: absolute;
|
487
|
-
content: "!";
|
488
|
-
background: #B94A48;
|
489
|
-
color: #fff;
|
490
|
-
padding: 1px 4px 2px;
|
491
|
-
border-radius: 3px;
|
492
|
-
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
410
|
+
right: -5px; bottom: -3px;
|
493
411
|
font-size: 11px;
|
494
|
-
|
495
|
-
font-
|
496
|
-
|
497
|
-
|
498
|
-
}
|
499
|
-
|
500
|
-
/* errors */
|
501
|
-
|
502
|
-
.sir-trevor-errors {
|
503
|
-
font-size: 14px;
|
504
|
-
padding: 15px 40px;
|
505
|
-
color: #B94A48;
|
506
|
-
background-color: #F2DEDE;
|
412
|
+
color: #BDBDBD;
|
413
|
+
font-style: italic;
|
414
|
+
z-index: 15;
|
415
|
+
padding: 2px;
|
507
416
|
}
|
508
417
|
|
509
|
-
.sir-trevor-
|
510
|
-
font-weight: bold;
|
511
|
-
margin: 0;
|
512
|
-
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
513
|
-
}
|
418
|
+
.sir-trevor-block .extended_input .count em { font-weight: bold; }
|
514
419
|
|
515
|
-
.sir-trevor-
|
516
|
-
|
517
|
-
}
|
420
|
+
.sir-trevor-block.active .extended_input .count,
|
421
|
+
.sir-trevor-block.focussed .extended_input .count { display: block; }
|
518
422
|
|
519
|
-
.sir-trevor-errors li {
|
520
|
-
margin: 0; padding: 0;
|
521
|
-
}
|
522
423
|
|
523
424
|
/* Generic fade-in ready function */
|
524
|
-
|
525
|
-
.sir-trevor
|
526
|
-
.sir-trevor
|
425
|
+
|
426
|
+
.sir-trevor-block,
|
427
|
+
.sir-trevor-marker,
|
428
|
+
.sir-trevor-formatting-control {
|
527
429
|
opacity: 0;
|
528
|
-
-webkit-transition: opacity 0.
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
430
|
+
-webkit-transition: opacity 0.2s ease-in-out;
|
431
|
+
-moz-transition: opacity 0.2s ease-in-out;
|
432
|
+
-ms-transition: opacity 0.2s ease-in-out;
|
433
|
+
-o-transition: opacity 0.2s ease-in-out;
|
434
|
+
transition: opacity 0.2s ease-in-out;
|
533
435
|
}
|
534
|
-
.sir-trevor .sir-trevor-ready .sir-trevor-item-ready {
|
535
|
-
opacity: 1;
|
536
|
-
}
|
537
|
-
|
538
|
-
.media {margin:10px;}
|
539
|
-
.media, .bd {overflow:hidden; _overflow:visible; zoom:1;}
|
540
|
-
.media .img {float:left; margin-right: 20px;}
|
541
|
-
.media .img img{display:block;}
|
542
|
-
.media .imgExt{float:right; margin-left: 20px;}
|
543
436
|
|
544
|
-
.sir-trevor
|
545
|
-
|
437
|
+
.sir-trevor-item-ready {
|
438
|
+
opacity: 1;
|
546
439
|
}
|
547
|
-
|
548
|
-
.sir-trevor .extended_input .count {
|
549
|
-
font-size: 11px;
|
550
|
-
margin: 0 0 0 5px;
|
551
|
-
}
|