redditor 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -2
  3. data/Gemfile +2 -1
  4. data/README.md +17 -3
  5. data/app/assets/images/redditor/big/image.png +0 -0
  6. data/app/assets/images/redditor/big/slider.png +0 -0
  7. data/app/assets/images/redditor/big/text.png +0 -0
  8. data/app/assets/images/redditor/big/video.png +0 -0
  9. data/app/assets/javascripts/redditor/init.coffee +149 -0
  10. data/app/assets/javascripts/{fileapi → redditor}/uploader.coffee +18 -18
  11. data/app/assets/javascripts/redditor.js.coffee +3 -0
  12. data/app/assets/stylesheets/{redditor/redditor.css.scss → redditor.scss} +70 -24
  13. data/app/controllers/redditor/admin/image_blocks_controller.rb +4 -4
  14. data/app/controllers/redditor/admin/images_controller.rb +1 -1
  15. data/app/controllers/redditor/admin/slider_blocks_controller.rb +3 -3
  16. data/app/controllers/redditor/admin/text_blocks_controller.rb +3 -3
  17. data/app/controllers/redditor/admin/video_blocks_controller.rb +3 -3
  18. data/app/helpers/redditor/application_helper.rb +7 -0
  19. data/app/views/redditor/admin/_content_block.haml +35 -0
  20. data/app/views/redditor/admin/{pages/_image.haml → _image.haml} +5 -5
  21. data/app/views/redditor/admin/{pages/_page.haml → _page.haml} +2 -3
  22. data/app/views/redditor/admin/_slider_block.haml +16 -0
  23. data/app/views/redditor/admin/{pages/_slider_block_image.haml → _slider_block_image.haml} +0 -0
  24. data/app/views/redditor/admin/_text_block.haml +5 -0
  25. data/app/views/redditor/admin/{pages/_validate.haml → _validate.haml} +1 -1
  26. data/app/views/redditor/admin/{pages/_video_block.haml → _video_block.haml} +2 -2
  27. data/app/views/redditor/admin/_wrapper.haml +3 -0
  28. data/app/views/redditor/admin/new.js.erb +5 -0
  29. data/app/views/redditor/admin/slider_block_image.js.coffee +2 -0
  30. data/app/views/redditor/admin/wrapper.js.coffee +5 -0
  31. data/app/views/redditor/images/_image.html.haml +1 -1
  32. data/app/views/redditor/slider_blocks/_slider_block_image.html.haml +1 -1
  33. data/config/locales/redditor.ru.yml +1 -1
  34. data/lib/redditor/engine.rb +1 -2
  35. data/lib/redditor/version.rb +1 -1
  36. data/redditor.gemspec +2 -9
  37. data/spec/dummy/app/assets/images/redactor/icons.png +0 -0
  38. data/spec/dummy/app/assets/images/redactor/plugins/file.html +3 -0
  39. data/spec/dummy/app/assets/images/redactor/plugins/image.html +39 -0
  40. data/spec/dummy/app/assets/images/redactor/plugins/image_edit.html +35 -0
  41. data/spec/dummy/app/assets/images/redactor/plugins/link.html +74 -0
  42. data/spec/dummy/app/assets/images/redactor/plugins/table.html +25 -0
  43. data/spec/dummy/app/assets/images/redactor/plugins/video.html +15 -0
  44. data/spec/dummy/app/assets/javascripts/application.js +10 -2
  45. data/spec/dummy/app/assets/javascripts/jquery-migrate-1.2.1.js +521 -0
  46. data/spec/dummy/app/assets/javascripts/redactor/langs/en.js +76 -0
  47. data/spec/dummy/app/assets/javascripts/redactor/langs/ru.js +75 -0
  48. data/spec/dummy/app/assets/javascripts/redactor/redactor.js.erb +2248 -0
  49. data/spec/dummy/app/assets/javascripts/redactor/toolbars/default.js +219 -0
  50. data/{app/assets/stylesheets/redditor → spec/dummy/app/assets/stylesheets}/application.css.scss +3 -8
  51. data/spec/dummy/app/assets/stylesheets/redactor/redactor.css.scss +369 -0
  52. data/spec/dummy/app/assets/stylesheets/redactor/wym.css +136 -0
  53. data/spec/dummy/app/controllers/articles_controller.rb +9 -0
  54. data/spec/dummy/app/views/admin/articles/edit.html.haml +1 -1
  55. data/spec/dummy/app/views/articles/show.html.haml +1 -1
  56. data/spec/dummy/app/views/layouts/application.html.erb +1 -1
  57. data/spec/features/text_spec.rb +3 -3
  58. data/spec/generators/views_generator_spec.rb +1 -1
  59. metadata +57 -114
  60. data/app/assets/javascripts/jquery-ui.min.js +0 -12
  61. data/app/assets/javascripts/redditor/application.js +0 -14
  62. data/app/assets/javascripts/redditor/redditor.coffee +0 -151
  63. data/app/helpers/redditor/fileapi_helper.rb +0 -17
  64. data/app/helpers/redditor/pages_helper.rb +0 -24
  65. data/app/models/redditor/content_block.rb +0 -24
  66. data/app/views/redditor/admin/pages/_content_block.haml +0 -37
  67. data/app/views/redditor/admin/pages/_slider_block.haml +0 -16
  68. data/app/views/redditor/admin/pages/_text_block.haml +0 -5
  69. data/app/views/redditor/admin/pages/_wrap_dd.haml +0 -1
  70. data/app/views/redditor/admin/pages/_wrapper.haml +0 -3
  71. data/app/views/redditor/admin/pages/new.js.coffee +0 -7
  72. data/app/views/redditor/admin/pages/new.js.erb +0 -7
  73. data/app/views/redditor/admin/pages/slider_block_image.js.coffee +0 -2
  74. data/app/views/redditor/admin/pages/wrapper.js.coffee +0 -6
  75. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
@@ -0,0 +1,219 @@
1
+ if (typeof RTOOLBAR == 'undefined') var RTOOLBAR = {};
2
+
3
+ RTOOLBAR['default'] =
4
+ {
5
+ html:
6
+ {
7
+ title: RLANG.html,
8
+ func: 'toggle',
9
+ separator: true
10
+ },
11
+ styles:
12
+ {
13
+ title: RLANG.styles,
14
+ func: 'show',
15
+ dropdown:
16
+ {
17
+ p:
18
+ {
19
+ title: RLANG.paragraph,
20
+ exec: 'formatblock',
21
+ param: '<p>'
22
+ },
23
+ blockquote:
24
+ {
25
+ title: RLANG.quote,
26
+ exec: 'formatblock',
27
+ param: '<blockquote>',
28
+ style: 'font-style: italic; color: #666; padding-left: 10px;'
29
+ },
30
+ pre:
31
+ {
32
+ title: RLANG.code,
33
+ exec: 'formatblock',
34
+ param: '<pre>',
35
+ style: 'font-family: monospace, sans-serif;'
36
+ },
37
+ h1:
38
+ {
39
+ title: RLANG.header1,
40
+ exec: 'formatblock',
41
+ param: '<h1>',
42
+ style: 'font-size: 30px; line-height: 36px; font-weight: bold;'
43
+ },
44
+ h2:
45
+ {
46
+ title: RLANG.header2,
47
+ exec: 'formatblock',
48
+ param: '<h2>',
49
+ style: 'font-size: 24px; line-height: 36px; font-weight: bold;'
50
+ },
51
+ h3:
52
+ {
53
+ title: RLANG.header3,
54
+ exec: 'formatblock',
55
+ param: '<h3>',
56
+ style: 'font-size: 20px; line-height: 30px; font-weight: bold;'
57
+ },
58
+ h4:
59
+ {
60
+ title: RLANG.header4,
61
+ exec: 'formatblock',
62
+ param: '<h3>',
63
+ style: 'font-size: 16px; line-height: 26px; font-weight: bold;'
64
+ }
65
+ },
66
+ separator: true
67
+ },
68
+ format: {
69
+ exec: 'removeformat',
70
+ name: 'removeformat',
71
+ title: RLANG.removeformat
72
+ },
73
+ bold:
74
+ {
75
+ title: RLANG.bold,
76
+ exec: 'Bold',
77
+ param: false
78
+ },
79
+ italic:
80
+ {
81
+ title: RLANG.italic,
82
+ exec: 'italic',
83
+ param: null
84
+ },
85
+ deleted:
86
+ {
87
+ title: RLANG.deleted,
88
+ exec: 'strikethrough',
89
+ param: null,
90
+ separator: true
91
+ },
92
+ insertunorderedlist:
93
+ {
94
+ title: '&bull; ' + RLANG.unorderedlist,
95
+ exec: 'insertunorderedlist',
96
+ param: null
97
+ },
98
+ insertorderedlist:
99
+ {
100
+ title: '1. ' + RLANG.orderedlist,
101
+ exec: 'insertorderedlist',
102
+ param: null
103
+ },
104
+ outdent:
105
+ {
106
+ title: '< ' + RLANG.outdent,
107
+ exec: 'outdent',
108
+ param: null
109
+ },
110
+ indent:
111
+ {
112
+ title: '> ' + RLANG.indent,
113
+ exec: 'indent',
114
+ param: null,
115
+ separator: true
116
+ },/*
117
+ image:
118
+ {
119
+ title: RLANG.image,
120
+ func: 'showImage'
121
+ },
122
+ video:
123
+ {
124
+ title: RLANG.video,
125
+ func: 'showVideo'
126
+ },
127
+ file:
128
+ {
129
+ title: RLANG.file,
130
+ func: 'showFile'
131
+ }, */
132
+ table:
133
+ {
134
+ title: RLANG.table,
135
+ func: 'show',
136
+ dropdown:
137
+ {
138
+ insert_table: { name: 'insert_table', title: RLANG.insert_table, func: 'showTable' },
139
+ separator_drop1: { name: 'separator' },
140
+ insert_row_above: { name: 'insert_row_above', title: RLANG.insert_row_above, func: 'insertRowAbove' },
141
+ insert_row_below: { name: 'insert_row_below', title: RLANG.insert_row_below, func: 'insertRowBelow' },
142
+ insert_column_left: { name: 'insert_column_left', title: RLANG.insert_column_left, func: 'insertColumnLeft' },
143
+ insert_column_right: { name: 'insert_column_right', title: RLANG.insert_column_right, func: 'insertColumnRight' },
144
+ separator_drop2: { name: 'separator' },
145
+ add_head: { name: 'add_head', title: RLANG.add_head, func: 'addHead' },
146
+ delete_head: { name: 'delete_head', title: RLANG.delete_head, func: 'deleteHead' },
147
+ separator_drop3: { name: 'separator' },
148
+ delete_column: { name: 'insert_table', title: RLANG.delete_column, func: 'deleteColumn' },
149
+ delete_row: { name: 'delete_row', title: RLANG.delete_row, func: 'deleteRow' },
150
+ delete_table: { name: 'delete_table', title: RLANG.delete_table, func: 'deleteTable' }
151
+ }
152
+ },
153
+ link:
154
+ {
155
+ title: RLANG.link,
156
+ func: 'show',
157
+ dropdown:
158
+ {
159
+ link:
160
+ {
161
+ title: RLANG.link_insert,
162
+ func: 'showLink'
163
+ },
164
+ unlink:
165
+ {
166
+ title: RLANG.unlink,
167
+ exec: 'unlink',
168
+ param: null
169
+ }
170
+ },
171
+ separator: true
172
+ },
173
+ fontcolor:
174
+ {
175
+ title: RLANG.fontcolor,
176
+ func: 'show'
177
+ },
178
+ backcolor:
179
+ {
180
+ title: RLANG.backcolor,
181
+ func: 'show',
182
+ separator: true
183
+ },
184
+ justifyleft:
185
+ {
186
+ exec: 'JustifyLeft',
187
+ name: 'JustifyLeft',
188
+ title: RLANG.align_left
189
+ },
190
+ justifycenter:
191
+ {
192
+ exec: 'JustifyCenter',
193
+ name: 'JustifyCenter',
194
+ title: RLANG.align_center
195
+ },
196
+ justifyright:
197
+ {
198
+ exec: 'JustifyRight',
199
+ name: 'JustifyRight',
200
+ title: RLANG.align_right
201
+ },
202
+ justify:
203
+ {
204
+ exec: 'justifyfull',
205
+ name: 'justifyfull',
206
+ title: RLANG.align_justify, separator: true
207
+ },
208
+ horizontalrule:
209
+ {
210
+ exec: 'inserthorizontalrule',
211
+ name: 'horizontalrule',
212
+ title: RLANG.horizontalrule
213
+ },
214
+ fullscreen:
215
+ {
216
+ title: RLANG.fullscreen,
217
+ func: 'fullscreen'
218
+ }
219
+ };
@@ -8,7 +8,9 @@
8
8
  * You're free to add application-wide styles to this file and they'll appear at the top of the
9
9
  * compiled file, but it's generally better to create a new file per style scope.
10
10
  *
11
- *= require redditor/redditor
11
+ *= require fileapi
12
+ *= require redditor
13
+ *= require redactor/redactor
12
14
  */
13
15
 
14
16
  html {
@@ -19,13 +21,6 @@ form.edit_article {
19
21
  margin:0 10px;
20
22
  }
21
23
 
22
- .text-block-input {
23
- width: 100%;
24
- -webkit-box-sizing: border-box;
25
- -moz-box-sizing: border-box;
26
- box-sizing: border-box;
27
- }
28
-
29
24
  input[type=submit] {
30
25
  font-size: 2em;
31
26
  padding: 0.25em 1.5em;
@@ -0,0 +1,369 @@
1
+ .redactor_box {
2
+ position: relative;
3
+ border: 1px solid #ddd;
4
+ line-height: 0;
5
+ }
6
+ .redactor_box, .redactor_box textarea {
7
+ background-color: #fff;
8
+ }
9
+ .redactor_box iframe {
10
+ outline: none;
11
+ width: 100%;
12
+ background: #fff;
13
+ display: block;
14
+ overflow: auto;
15
+ }
16
+ .redactor_box textarea {
17
+ font-family: Menlo, Monaco, monospace, sans-serif;
18
+ font-size: 13px;
19
+ overflow: auto;
20
+ resize: none;
21
+ margin: 0;
22
+ padding: 0;
23
+ display: block;
24
+ position: relative;
25
+ z-index: 1004;
26
+ outline: none;
27
+ border: none;
28
+ width: 100%;
29
+ }
30
+ .redactor_box textarea:focus {
31
+ outline: none !important;
32
+ border: none !important;
33
+ box-shadow: none;
34
+ }
35
+
36
+ /*
37
+ Fuulscreen
38
+ */
39
+ body .redactor_box_fullscreen {
40
+ border: medium none !important;
41
+ height: 100%;
42
+ left: 0;
43
+ position: absolute;
44
+ top: 0;
45
+ width: 100% !important;
46
+ z-index: 2000;
47
+ }
48
+
49
+ /*
50
+ TOOLBAR
51
+ */
52
+ .redactor_toolbar {
53
+ position: relative;
54
+ /*z-index: 2002;*/
55
+ height: 33px;
56
+ left: 0;
57
+ top: 0;
58
+ margin: 0 !important;
59
+ padding: 0 !important;
60
+ line-height: 0 !important;
61
+ list-style: none;
62
+ font-size: 0;
63
+ background: #f2f2f2;
64
+ background: -moz-linear-gradient(top, #f5f5f5 0%, #ddd 100%);
65
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#ddd));
66
+ background: -webkit-linear-gradient(top, #f5f5f5 0%,#ddd 100%);
67
+ background: -o-linear-gradient(top, #f5f5f5 0%,#ddd 100%);
68
+ background: -ms-linear-gradient(top, #f5f5f5 0%,#ddd 100%);
69
+ background: linear-gradient(top, #f5f5f5 0%,#ddd 100%);
70
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dddddd',GradientType=0 );
71
+ overflow: hidden;
72
+ border-bottom: 1px solid #c2c2c2;
73
+ }
74
+ .redactor_toolbar li {
75
+ float: left !important;
76
+ padding: 3px 1px;
77
+ padding-right: 0;
78
+ list-style-type: none;
79
+ }
80
+ .redactor_toolbar li.redactor_separator {
81
+ float: left;
82
+ height: 34px;
83
+ border-left: 1px solid #d7d7d7;
84
+ border-right: 1px solid #eee;
85
+ padding: 0;
86
+ margin: 0 2px 0 3px;
87
+ }
88
+ li.redactor_toolbar_right {
89
+ float: none;
90
+ float: right !important;
91
+ padding: 2px 0;
92
+ padding-right: 1px !important;
93
+ }
94
+ .redactor_toolbar li a, .redactor_toolbar li a span {
95
+ width: 25px;
96
+ height: 26px;
97
+ }
98
+ .redactor_toolbar li a {
99
+ border: 1px solid transparent;
100
+ * border: 1px solid #eee;
101
+ display: block;
102
+ line-height: 0;
103
+ font-size: 0;
104
+ cursor: pointer;
105
+ zoom: 1;
106
+ text-decoration: none;
107
+ }
108
+ .redactor_toolbar li a span {
109
+ display: block;
110
+ text-indent: -9999px;
111
+ background: image-url("redactor/icons.png") no-repeat top left;
112
+ }
113
+
114
+ .redactor_toolbar li a:hover {
115
+ border-color: #98a6ba;
116
+ background-color: #dde4ef;
117
+ }
118
+ .redactor_toolbar li a:active, .redactor_toolbar li a.act {
119
+ border-color: #b5b5b5;
120
+ background-color: #e8e8e8;
121
+ }
122
+
123
+
124
+ /*
125
+ BUTTONS
126
+ step 25px
127
+ */
128
+ body .redactor_toolbar li a.redactor_btn_html span { background-position: 0; }
129
+ body .redactor_toolbar li a.redactor_btn_styles span { background-position: -25px; }
130
+ body .redactor_toolbar li a.redactor_btn_bold span { background-position: -50px; }
131
+ body .redactor_toolbar li a.redactor_btn_italic span { background-position: -75px; }
132
+ body .redactor_toolbar li a.redactor_btn_deleted span { background-position: -550px; }
133
+ body .redactor_toolbar li a.redactor_btn_insertunorderedlist span { background-position: -100px; }
134
+ body .redactor_toolbar li a.redactor_btn_insertorderedlist span { background-position: -125px; }
135
+ body .redactor_toolbar li a.redactor_btn_outdent span { background-position: -150px; }
136
+ body .redactor_toolbar li a.redactor_btn_indent span { background-position: -175px; }
137
+ body .redactor_toolbar li a.redactor_btn_image span { background-position: -200px; }
138
+ body .redactor_toolbar li a.redactor_btn_video span { background-position: -225px; }
139
+ body .redactor_toolbar li a.redactor_btn_file span { background-position: -250px; }
140
+ body .redactor_toolbar li a.redactor_btn_table span { background-position: -275px; }
141
+ body .redactor_toolbar li a.redactor_btn_link span { background-position: -300px; }
142
+ body .redactor_toolbar li a.redactor_btn_fontcolor span { background-position: -325px; }
143
+ body .redactor_toolbar li a.redactor_btn_backcolor span { background-position: -350px; }
144
+ body .redactor_toolbar li a.redactor_btn_justifyleft span { background-position: -375px; }
145
+ body .redactor_toolbar li a.redactor_btn_justifycenter span { background-position: -400px; }
146
+ body .redactor_toolbar li a.redactor_btn_justifyright span { background-position: -425px; }
147
+ body .redactor_toolbar li a.redactor_btn_justify span { background-position: -450px; }
148
+ body .redactor_toolbar li a.redactor_btn_horizontalrule span { background-position: -475px; }
149
+ body .redactor_toolbar li a.redactor_btn_fullscreen span { background-position: -500px; }
150
+ body .redactor_toolbar li a.redactor_btn_format span { background-position: -575px; }
151
+ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-position: -525px !important; }
152
+
153
+
154
+ /*
155
+ RESIZER
156
+ */
157
+ .redactor_resizer {
158
+ font-family: Arial, Tahoma, Verdana, Helvetica, sans-serif;
159
+ background-color: #f5f5f5;
160
+ padding-top: 2px;
161
+ line-height: 4px;
162
+ font-size: 12px;
163
+ color: #ddd;
164
+ text-align: center;
165
+ text-shadow: 0 -1px 0 #aaa;
166
+ cursor: s-resize;
167
+ }
168
+
169
+
170
+
171
+ /*
172
+ DROPDOWN
173
+ */
174
+ .redactor_dropdown {
175
+ top: 28px;
176
+ left: 0;
177
+ z-index: 2004;
178
+ position: absolute;
179
+ width: 200px;
180
+ background-color: #fff;
181
+ border: 1px solid #ccc;
182
+ font-size: 13px;
183
+ -webkit-box-shadow: 0 2px 4px #ccc;
184
+ -moz-box-shadow: 0 2px 4px #ccc;
185
+ box-shadow: 0 2px 4px #ccc;
186
+ line-height: 21px;
187
+ padding: 10px;
188
+ }
189
+ .redactor_separator_drop {
190
+ border-top: 1px solid #ddd;;
191
+ padding: 0 !important;
192
+ line-height: 0;
193
+ font-size: 0;
194
+ }
195
+ .redactor_dropdown a {
196
+ display: block;
197
+ color: #000;
198
+ padding: 3px 5px;
199
+ text-decoration: none;
200
+ }
201
+ .redactor_dropdown a:hover {
202
+ color: #444 !important;
203
+ text-decoration: none;
204
+ background-color: #dde4ef;
205
+ }
206
+
207
+ /* ColorPicker */
208
+ .redactor_color_link {
209
+ padding: 0 !important;
210
+ width: 15px !important;
211
+ height: 15px !important;
212
+ float: left !important;
213
+ border: 2px solid #fff !important;
214
+ font-size: 0;
215
+ }
216
+ .redactor_color_none {
217
+ font-size: 11px;
218
+ }
219
+
220
+
221
+
222
+ /* MODAL */
223
+ #redactor_modal_overlay {
224
+ position: fixed;
225
+ margin: auto;
226
+ top: 0;
227
+ left: 0;
228
+ width: 100%;
229
+ height: 100%;
230
+ z-index: 50000;
231
+
232
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
233
+ filter:alpha(opacity=70);
234
+ opacity: 0.70;
235
+
236
+ background-color: #fff !important;
237
+ }
238
+
239
+ #redactor_modal {
240
+ background-color: #fff;
241
+ padding: 0;
242
+ position: fixed;
243
+ top: 50%;
244
+ left: 50%;
245
+
246
+ box-shadow: 0px 5px 20px #999;
247
+ -webkit-box-shadow: 0 5px 20px #999;
248
+ -moz-box-shadow: 0 5px 20px #999;
249
+
250
+ -webkit-border-radius: 8px;
251
+ -moz-border-radius: 8px;
252
+ border-radius: 8px;
253
+
254
+ z-index: 50001;
255
+ font-family: "Trebuchet MS", "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
256
+ color: #000;
257
+ }
258
+ #redactor_modal_header {
259
+ padding: 15px;
260
+ font-size: 18px;
261
+
262
+ border-radius: 8px 8px 0 0;
263
+
264
+ font-weight: bold;
265
+ background-color: #f6f6f6;
266
+ border-bottom: 1px solid #ddd;
267
+ }
268
+ #redactor_modal_inner {
269
+ padding: 30px;
270
+ }
271
+ #redactor_modal_close {
272
+ position: absolute;
273
+ right: 0px;
274
+ top: 11px;
275
+ font-size: 24px;
276
+ width: 30px;
277
+ height: 30px;
278
+ color: #999;
279
+ cursor: pointer;
280
+ }
281
+ #redactor_modal_close:hover {
282
+ color: #000;
283
+ }
284
+ #redactor_modal label {
285
+ display: inline !important;
286
+ }
287
+ .redactor_ruler {
288
+ margin-bottom: 10px;
289
+ width: 99% !important;
290
+ }
291
+ .redactor_ruler td {
292
+ font-size: 12px !important;
293
+ padding: 5px !important;
294
+ border: none !important;
295
+ vertical-align: middle !important;
296
+ }
297
+ #redactor_image_box {
298
+ height: 270px;
299
+ overflow: auto;
300
+ margin-bottom: 10px;
301
+ }
302
+ #redactor_image_box img {
303
+ margin-right: 10px;
304
+ margin-bottom: 10px;
305
+ cursor: pointer;
306
+ }
307
+ #redactor_tabs {
308
+ margin-bottom: 18px;
309
+ }
310
+ #redactor_tabs a {
311
+ display: inline-block;
312
+ border: 1px solid #ddd;
313
+ padding: 4px 14px;
314
+ font-size: 12px;
315
+ text-decoration: none;
316
+ color: #000;
317
+ line-height: 1;
318
+ -webkit-border-radius: 10px;
319
+ -moz-border-radius: 10px;
320
+ border-radius: 10px;
321
+ }
322
+ #redactor_tabs a:hover, #redactor_tabs a.redactor_tabs_act {
323
+ background-color: #eee;
324
+ color: #777 !important;
325
+ text-decoration: none !important;
326
+ }
327
+ .redactor_btns_box {
328
+ float: right;
329
+ padding: 6px 16px;
330
+ background-color: #eee;
331
+ -webkit-border-radius: 5px;
332
+ -moz-border-radius: 5px;
333
+ border-radius: 5px;
334
+ }
335
+
336
+ /* Drag and Drop Area */
337
+ .redactor_droparea {
338
+ position: relative;
339
+ width: 100%;
340
+ margin: auto;
341
+ margin-bottom: 5px;
342
+ }
343
+ .redactor_droparea .redactor_dropareabox {
344
+ z-index: 1;
345
+ position: relative;
346
+ text-align: center;
347
+ width: 99%;
348
+ padding: 60px 0;
349
+ border: 2px dashed #bbb;
350
+ }
351
+ .redactor_droparea .redactor_dropareabox, .redactor_dropalternative {
352
+ color: #777;
353
+ font-size: 12px;
354
+ }
355
+ .redactor_dropalternative {
356
+ margin: 4px 0 2px 0;
357
+ }
358
+ .redactor_dropareabox.hover {
359
+ background: #efe3b8;
360
+ border-color: #aaa;
361
+ }
362
+ .redactor_dropareabox.error {
363
+ background: #f7e5e5;
364
+ border-color: #dcc3c3;
365
+ }
366
+ .redactor_dropareabox.drop {
367
+ background: #f4f4ee;
368
+ border-color: #e0e5d6;
369
+ }