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
- .sir-trevor .dropzone.image-block p,
4
- .sir-trevor .dropzone.gallery-block p {
5
- background: url(<%= asset_path 'sir-trevor/icons/new_image.png' %>) no-repeat 0 0;
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
- .sir-trevor .sir-trevor-block .delete {
9
- background-image: url(<%= asset_path 'sir-trevor/icons/close.gif' %>);
8
+ .tweet-block.dropzone p {
9
+ background-image: url(<%= asset_path 'sir-trevor/icons/new_tweet.png' %>);
10
10
  }
11
11
 
12
- .sir-trevor .sir-trevor-block .handle {
13
- background-image: url(<%= asset_path 'sir-trevor/icons/handle.gif' %>);
12
+ .video-block.dropzone p {
13
+ background-image: url(<%= asset_path 'sir-trevor/icons/new_video.png' %>);
14
14
  }
15
15
 
16
- .sir-trevor .dropzone.tweet-block p {
17
- background-image: url(<%= asset_path 'sir-trevor/icons/new_tweet.png' %>);
16
+ .sir-trevor-remove-block {
17
+ background-image: url(<%= asset_path 'sir-trevor/icons/close.gif' %>);
18
18
  }
19
19
 
20
- .sir-trevor .dropzone.video-block p {
21
- background-image: url(<%= asset_path 'sir-trevor/icons/new_video.png' %>);
20
+ .sir-trevor-drag-handle {
21
+ background-image: url(<%= asset_path 'sir-trevor/icons/handle.gif' %>);
22
22
  }
23
23
 
24
- .sir-trevor .sir-trevor-marker .buttons a.new-block-quote {
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 .sir-trevor-marker .buttons a.new-image,
29
- .sir-trevor .sir-trevor-marker .buttons a.new-gallery {
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 .sir-trevor-marker .buttons a.new-text {
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 .sir-trevor-marker .buttons a.new-list {
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 .sir-trevor-marker .buttons a.new-tweet {
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 .sir-trevor-marker .buttons a.new-video {
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: 40px 0;
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
- .sir-trevor , .sir-trevor button, .sir-trevor input, .sir-trevor select, .sir-trevor textarea, .sir-trevor blockquote { font-family: "Helvetica Neue", 'Arial', sans-serif; color: #222; }
17
- /* Generics */
18
- .sir-trevor .hidden { display: none !important; visibility: hidden; }
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
- -moz-box-sizing: border-box;
23
- -ms-box-sizing: border-box;
24
- box-sizing: border-box;
24
+ -moz-box-sizing: border-box;
25
+ -ms-box-sizing: border-box;
26
+ box-sizing: border-box;
25
27
  }
26
28
 
27
- /* Formatting Control Bar */
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
- .sir-trevor .sir-trevor-formatting-control {
30
- background: #e9e9e9;
31
- border: 1px solid #dadada;
32
- padding: 11px 0;
33
- text-align: center;
34
- position: absolute;
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
- z-index: 102;
37
- display: box;
38
- box-sizing: border-box;
39
- margin: -44px 0 0 0;
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-formatting-control .format-button {
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-formatting-control .format-button:hover {
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 .sir-trevor-marker {
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: -44px;
74
- z-index: 101;
87
+ margin-top: -35px;
88
+ z-index: 11;
89
+ font-size: 11px;
75
90
  }
76
91
 
77
- .sir-trevor .sir-trevor-marker p {
78
- display: inline-block;
79
- line-height: 36px;
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 .sir-trevor-marker .buttons {
88
- height: 46px;
89
- display: inline-block;
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 .sir-trevor-marker .buttons a {
93
- padding: 27px 13px 8px;
94
- margin: 0;
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
- font-size: 8px;
99
- display: inline-block;
100
- text-decoration: none;
110
+ padding: 25px 13px 5px;
111
+ color: #AF9B24;
101
112
  background-repeat: no-repeat;
102
- background-position: center 9px;
113
+ background-position: center 7px;
114
+ text-decoration: none;
103
115
  }
104
116
 
105
- /* Button graphics */
117
+ .sir-trevor-button:last-child { border-right: 1px dotted #DAC962; }
106
118
 
107
- .sir-trevor .sir-trevor-marker .buttons a.new-block-quote {
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 .sir-trevor-marker .buttons a.new-image,
112
- .sir-trevor .sir-trevor-marker .buttons a.new-gallery {
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 .sir-trevor-marker .buttons a.new-text {
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 .sir-trevor-marker .buttons a.new-list {
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 .sir-trevor-marker .buttons a.new-tweet {
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 .sir-trevor-marker .buttons a.new-video {
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 .sir-trevor-block {
146
+ .sir-trevor-block {
143
147
  position: relative;
144
- margin: 0 0 40px 0;
148
+ margin: 0px 0 23px 0;
145
149
  font-size: 14px;
146
150
  overflow: hidden;
147
151
  }
148
152
 
149
- /* Dragging */
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 .sir-trevor-block.dragging {
152
- opacity: 0.5;
153
- background: #fff;
159
+ .sir-trevor-editor-block [contenteditable=true] {
160
+ margin: 0 20px;
161
+ min-height: 75px;
154
162
  }
155
163
 
156
- /* Block editor */
164
+ .sir-trevor-editor-block [contenteditable=true]:focus {
165
+ outline: none;
166
+ }
157
167
 
158
- .sir-trevor .sir-trevor-block .block-editor {
159
- padding: 15px 20px 15px 40px;
160
- border: 1px solid transparent;
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 .sir-trevor-block.active .block-editor {
164
- border: 1px solid #E9E9E9;
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
- /* Dropzone */
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: 0 40px;
245
+ margin: 10px auto;
246
+ max-width: 550px;
175
247
  }
176
248
 
177
- .sir-trevor-block .dropzone.dragOver {
178
- background: #F5F297;
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 .sir-trevor-block .dropzone p {
182
- font-size: 20px;
183
- line-height: 50px;
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-right: 0 }
212
-
213
- /* Generic block styles */
214
-
215
- .sir-trevor .sir-trevor-ready .sir-trevor-block.loading {
216
- opacity: 0.6;
217
- }
218
-
219
- .sir-trevor-block.loading .spinner {
220
- width: 32px;
221
- height: 32px;
222
- top: 50%; left: 50%;
223
- margin: -16px 0 0 -16px;
224
- position: absolute!important;
225
- }
226
-
227
- .sir-trevor-block [contenteditable=true] {
228
- border: 1px solid transparent;
229
- padding: 5px;
230
- }
231
- .sir-trevor-block [contenteditable=true]:focus,
232
- .sir-trevor-block input:focus,
233
- .sir-trevor-block textarea:focus {
234
- outline: 0px solid transparent;
235
- }
236
-
237
- .sir-trevor-block [contenteditable=true].si-trevor-error {
238
- border: 1px solid #990000;
239
- }
240
-
241
- .sir-trevor-block h1,
242
- .sir-trevor-block h2,
243
- .sir-trevor-block h3,
244
- .sir-trevor-block h4,
245
- .sir-trevor-block h5,
246
- .sir-trevor-block h6 {
247
- margin: 0 0 10px 0; padding: 0;
248
- }
249
-
250
- .sir-trevor ul,
251
- .sir-trevor ol {
252
- margin: 0 0 10px 20px;
253
- padding: 0;
254
- }
255
-
256
- .sir-trevor li {
257
- margin: 0 0 2px 0;
258
- }
259
-
260
- .sir-trevor-block p {
261
- margin: 0 0 10px 0;
262
- }
263
-
264
- .sir-trevor-block time {
265
- font-size: 10px;
266
- display: block;
267
- }
268
-
269
- .sir-trevor-block a {
270
- color: #222;
271
- }
272
-
273
- /* Text Block */
274
-
275
- .sir-trevor-block .text-block,
276
- .sir-trevor-block textarea {
277
- min-height: 75px;
278
- margin-bottom: 0;
279
- }
280
-
281
- /* Generic label / form elements */
282
-
283
- .sir-trevor .sir-trevor-block label {
284
- display: block;
285
- margin: 10px 0 5px 0;
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 .sir-trevor-block input[type=text],
293
- .sir-trevor .sir-trevor-block select,
294
- .sir-trevor .sir-trevor-block textarea,
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 .gallery-items ul li img {
435
- width: auto; height: 100%;
436
- }
396
+ .sir-trevor-block input[type=text]:focus { outline: 0; }
437
397
 
438
- .sir-trevor .gallery-items ul li.dragover {
439
- border: 1px solid #222;
440
- background: #F5F297;
441
- }
398
+ /* Error States */
399
+ .sir-trevor-block input[type=text].sir-trevor-error {
400
+ border-color: #7FD7F7;
401
+ }
442
402
 
443
- .sir-trevor .gallery-items ul li.dragging {
444
- opacity: 0.2;
445
- }
403
+ /* Extended inputs */
446
404
 
405
+ .sir-trevor-block .extended_input { position: relative; }
447
406
 
448
- .sir-trevor .gallery-items ul li .delete {
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
- background: #fff url(images/sir-trevor/icons/close.gif) no-repeat;
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
- z-index: 1001;
495
- font-weight: bold;
496
- margin-left: -10px;
497
- margin-top: 7px;
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-errors p {
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-errors ul {
516
- margin-bottom: 0;
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
- .sir-trevor .sir-trevor-block,
525
- .sir-trevor .sir-trevor-marker,
526
- .sir-trevor .sir-trevor-formatting-control {
425
+
426
+ .sir-trevor-block,
427
+ .sir-trevor-marker,
428
+ .sir-trevor-formatting-control {
527
429
  opacity: 0;
528
- -webkit-transition: opacity 0.3s ease;
529
- -moz-transition: opacity 0.3s ease;
530
- -ms-transition: opacity 0.3s ease;
531
- -o-transition: opacity 0.3s ease;
532
- transition: opacity 0.3s ease;
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 .extended_input {
545
- position: relative;
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
- }