redde 0.1.18 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (362) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.hound.yml +2 -0
  4. data/.rubocop.yml +19 -0
  5. data/.travis.yml +5 -4
  6. data/Gemfile +8 -5
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +96 -105
  9. data/Rakefile +20 -1
  10. data/app/assets/fonts/redde-admin.eot +0 -0
  11. data/app/assets/fonts/redde-admin.svg +12 -0
  12. data/app/assets/fonts/redde-admin.ttf +0 -0
  13. data/app/assets/fonts/redde-admin.woff +0 -0
  14. data/app/assets/images/redde/close-hover.svg +4 -0
  15. data/app/assets/images/redde/close.svg +6 -0
  16. data/app/assets/images/redde/enter.svg +4 -0
  17. data/app/assets/images/redde/eye.svg +5 -0
  18. data/app/assets/images/redde/eye_disactive.svg +5 -0
  19. data/app/assets/images/redde/main-menu/cog.svg +8 -0
  20. data/app/assets/images/redde/main-menu/cog_active.svg +8 -0
  21. data/app/assets/images/redde/main-menu/folder.svg +4 -0
  22. data/app/assets/images/redde/main-menu/folder_active.svg +4 -0
  23. data/app/assets/images/redde/main-menu/home.svg +4 -0
  24. data/app/assets/images/redde/main-menu/home_active.svg +4 -0
  25. data/app/assets/images/redde/main-menu/list.svg +4 -0
  26. data/app/assets/images/redde/main-menu/list_active.svg +4 -0
  27. data/app/assets/images/redde/next.svg +7 -0
  28. data/app/assets/images/redde/plus.svg +3 -0
  29. data/app/assets/images/redde/sel.svg +6 -0
  30. data/app/assets/images/redde/user.svg +12 -0
  31. data/app/assets/javascripts/redde/fileapi.js.coffee +17 -0
  32. data/app/assets/javascripts/redde/index.js.coffee +12 -0
  33. data/app/assets/javascripts/redde/redactor/index.coffee +8 -0
  34. data/{lib/generators/redde/layout/templates/assets/redactor/javascripts/jquery-migrate-1.2.1.js → app/assets/javascripts/redde/redactor/jquery-migrate-1.3.0.js} +215 -34
  35. data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/redactor.js.erb +250 -250
  36. data/app/assets/javascripts/redde/sortTree/index.js.coffee +47 -0
  37. data/app/assets/javascripts/redde/sortable.coffee +47 -0
  38. data/{spec/dummy/app/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/error-msg.sass +4 -2
  39. data/app/assets/stylesheets/redde/blocks/flash-msg.sass +22 -0
  40. data/app/assets/stylesheets/redde/blocks/list-v2.sass +96 -0
  41. data/app/assets/stylesheets/redde/blocks/photos-uploader.sass +21 -0
  42. data/app/assets/stylesheets/redde/blocks/photos.sass +56 -0
  43. data/app/assets/stylesheets/redde/blocks/redde-form.sass +55 -0
  44. data/app/assets/stylesheets/redde/blocks/sort-tree.sass +46 -0
  45. data/app/assets/stylesheets/redde/defaults/btn.sass +30 -0
  46. data/app/assets/stylesheets/redde/defaults/del.sass +23 -0
  47. data/app/assets/stylesheets/redde/defaults/index.sass +87 -0
  48. data/app/assets/stylesheets/redde/defaults/inp.sass +20 -0
  49. data/app/assets/stylesheets/redde/defaults/reset.sass +25 -0
  50. data/app/assets/stylesheets/redde/defaults/sbm.sass +32 -0
  51. data/app/assets/stylesheets/redde/defaults/sel.sass +29 -0
  52. data/app/assets/stylesheets/redde/fonts.sass +42 -0
  53. data/app/assets/stylesheets/redde/index.scss +5 -0
  54. data/app/assets/stylesheets/redde/layouts/header.sass +63 -0
  55. data/app/assets/stylesheets/redde/layouts/main-menu.sass +63 -0
  56. data/app/assets/stylesheets/redde/layouts/main.sass +48 -0
  57. data/app/assets/stylesheets/redde/layouts/page-header.sass +34 -0
  58. data/app/assets/stylesheets/redde/layouts/page-sidebar.sass +9 -0
  59. data/app/assets/stylesheets/redde/mixins.sass +10 -0
  60. data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/redde}/redactor/index.scss +46 -49
  61. data/app/assets/stylesheets/redde-admin/blocks/list-v2.sass +96 -0
  62. data/app/assets/stylesheets/redde-admin/defaults/del.sass +23 -0
  63. data/app/controllers/admin/base_controller.rb +81 -0
  64. data/{lib/generators/redde/layout/templates/controllers → app/controllers/admin}/managers_controller.rb +10 -6
  65. data/app/controllers/admin/redde_photos_controller.rb +31 -0
  66. data/app/controllers/admin/system_commands_controller.rb +11 -0
  67. data/app/form_builders/redde_form_builder.rb +106 -0
  68. data/app/helpers/redde/admin_helper.rb +33 -0
  69. data/app/helpers/redde/form_helper.rb +59 -0
  70. data/app/helpers/redde/index_helper.rb +61 -0
  71. data/{lib/redde/concerns/layout.rb → app/models/concerns/redde/layouts.rb} +1 -1
  72. data/app/models/concerns/redde/photoable.rb +5 -0
  73. data/{lib/redde/concerns → app/models/concerns/redde}/sluggable.rb +6 -3
  74. data/app/models/concerns/redde/tree_sortable.rb +40 -0
  75. data/{lib/redde/concerns → app/models/concerns/redde}/with_photo.rb +5 -5
  76. data/app/models/redde/photo.rb +16 -0
  77. data/app/models/redde/system_command.rb +43 -0
  78. data/{lib → app/models}/redde/url_generator.rb +7 -3
  79. data/{lib/generators/redde/photo/templates/uploader.rb → app/uploaders/photo_uploader.rb} +4 -4
  80. data/app/views/admin/base/_tree_item.html.haml +10 -0
  81. data/app/views/admin/base/edit.html.haml +21 -0
  82. data/app/views/admin/base/index.html.haml +68 -0
  83. data/app/views/admin/base/tree.html.haml +14 -0
  84. data/app/views/admin/managers/edit.html.haml +11 -0
  85. data/app/views/admin/managers/index.html.haml +17 -0
  86. data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_header.html.haml +5 -6
  87. data/app/views/admin/redde/_main_menu.html.haml +12 -0
  88. data/app/views/admin/redde/_page_header.html.haml +3 -0
  89. data/app/views/admin/redde/_sidebar.html.haml +16 -0
  90. data/{lib/generators/redde/layout/templates/base → app/views/admin/redde}/_validate.haml +2 -2
  91. data/app/views/admin/redde_photos/_photo.haml +11 -0
  92. data/app/views/admin/redde_photos/_photos.haml +28 -0
  93. data/app/views/admin/system_commands/index.html.haml +25 -0
  94. data/app/views/kaminari/redde/_first_page.html.haml +9 -0
  95. data/app/views/kaminari/redde/_gap.html.haml +8 -0
  96. data/app/views/kaminari/redde/_last_page.html.haml +9 -0
  97. data/app/views/kaminari/redde/_next_page.html.haml +9 -0
  98. data/app/views/kaminari/redde/_page.html.haml +10 -0
  99. data/app/views/kaminari/redde/_paginator.html.haml +18 -0
  100. data/app/views/kaminari/redde/_prev_page.html.haml +9 -0
  101. data/{lib/generators/redde/layout/templates → app/views}/layouts/admin.html.haml +28 -29
  102. data/{lib/generators/redde/layout/templates → app/views}/layouts/login.html.haml +32 -32
  103. data/bin/rails +12 -0
  104. data/config/locales/paginate.ru.yml +9 -0
  105. data/config/routes.rb +8 -0
  106. data/db/migrate/20160121152706_create_redde_photos.rb +16 -0
  107. data/lib/generators/redde/layout/layout_generator.rb +3 -26
  108. data/lib/generators/redde/layout/templates/assets/javascripts/admin.js +1 -0
  109. data/lib/generators/redde/layout/templates/assets/stylesheets/admin.css +15 -0
  110. data/lib/generators/redde/scaffold/scaffold_generator.rb +45 -8
  111. data/lib/generators/redde/scaffold/templates/controllers/controller.rb +2 -45
  112. data/lib/generators/redde/scaffold/templates/edit.html.haml +4 -9
  113. data/lib/generators/redde/scaffold/templates/index.html.haml +2 -6
  114. data/lib/generators/redde/scaffold/templates/ru.yml +14 -0
  115. data/lib/redde/engine.rb +16 -0
  116. data/lib/redde/version.rb +1 -1
  117. data/lib/redde.rb +20 -4
  118. data/lib/tasks/redde_tasks.rake +4 -0
  119. data/redde.gemspec +44 -22
  120. metadata +482 -455
  121. data/Guardfile +0 -24
  122. data/LICIENSE.md +0 -21
  123. data/lib/generators/redde/layout/templates/assets/images/admin/del.png +0 -0
  124. data/lib/generators/redde/layout/templates/assets/images/admin/folder_.png +0 -0
  125. data/lib/generators/redde/layout/templates/assets/javascripts/admin/index.js +0 -20
  126. data/lib/generators/redde/layout/templates/assets/redactor/javascripts/redactor/index.coffee +0 -4
  127. data/lib/generators/redde/layout/templates/assets/redactor/stylesheets/redactor/index.scss +0 -369
  128. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/error-msg.sass +0 -47
  129. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/notice.scss +0 -39
  130. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/photos.scss +0 -31
  131. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/blocks/sortable.sass +0 -44
  132. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/custom/index.scss +0 -1
  133. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/index.scss +0 -131
  134. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/input.sass +0 -35
  135. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/reset.sass +0 -33
  136. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/defaults/table.scss +0 -24
  137. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/index.scss +0 -6
  138. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/header.sass +0 -50
  139. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
  140. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/main.sass +0 -38
  141. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-header.sass +0 -22
  142. data/lib/generators/redde/layout/templates/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
  143. data/lib/generators/redde/layout/templates/base/_launchbar.html.haml +0 -11
  144. data/lib/generators/redde/layout/templates/base/_sidebar.html.haml +0 -14
  145. data/lib/generators/redde/layout/templates/controllers/base_controller.rb +0 -28
  146. data/lib/generators/redde/layout/templates/form_builders/redde_form_builder.rb +0 -63
  147. data/lib/generators/redde/layout/templates/helpers/admin_helper.rb +0 -94
  148. data/lib/generators/redde/photo/photo_generator.rb +0 -35
  149. data/lib/generators/redde/photo/templates/controller.rb +0 -20
  150. data/lib/generators/redde/photo/templates/create_photos.rb +0 -16
  151. data/lib/generators/redde/photo/templates/photo.rb +0 -4
  152. data/lib/generators/redde/photo/templates/photos/_photo.haml +0 -5
  153. data/lib/generators/redde/photo/templates/photos/_photos.haml +0 -19
  154. data/lib/generators/redde/photo/templates/photos/create.js.erb +0 -1
  155. data/lib/redde/concerns/photoable.rb +0 -17
  156. data/spec/dummy/.rspec +0 -1
  157. data/spec/dummy/README.rdoc +0 -28
  158. data/spec/dummy/Rakefile +0 -6
  159. data/spec/dummy/app/assets/images/admin/addphoto.png +0 -0
  160. data/spec/dummy/app/assets/images/admin/ajaxloader2.gif +0 -0
  161. data/spec/dummy/app/assets/images/admin/arrow_down.png +0 -0
  162. data/spec/dummy/app/assets/images/admin/arrow_enter.png +0 -0
  163. data/spec/dummy/app/assets/images/admin/arrow_right.png +0 -0
  164. data/spec/dummy/app/assets/images/admin/coins.png +0 -0
  165. data/spec/dummy/app/assets/images/admin/confirm.png +0 -0
  166. data/spec/dummy/app/assets/images/admin/del.png +0 -0
  167. data/spec/dummy/app/assets/images/admin/delete.png +0 -0
  168. data/spec/dummy/app/assets/images/admin/email.png +0 -0
  169. data/spec/dummy/app/assets/images/admin/error-label-triangle.png +0 -0
  170. data/spec/dummy/app/assets/images/admin/error.png +0 -0
  171. data/spec/dummy/app/assets/images/admin/favicon.png +0 -0
  172. data/spec/dummy/app/assets/images/admin/fio.png +0 -0
  173. data/spec/dummy/app/assets/images/admin/folder.png +0 -0
  174. data/spec/dummy/app/assets/images/admin/folder_.png +0 -0
  175. data/spec/dummy/app/assets/images/admin/icon_eye.gif +0 -0
  176. data/spec/dummy/app/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -101
  177. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
  178. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
  179. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
  180. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
  181. data/spec/dummy/app/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
  182. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.js +0 -32
  183. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -477
  184. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -42
  185. data/spec/dummy/app/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -14
  186. data/spec/dummy/app/assets/images/admin/logo.png +0 -0
  187. data/spec/dummy/app/assets/images/admin/logo_reddeshop.png +0 -0
  188. data/spec/dummy/app/assets/images/admin/move_handler.png +0 -0
  189. data/spec/dummy/app/assets/images/admin/phone.png +0 -0
  190. data/spec/dummy/app/assets/images/admin/photo_ico.png +0 -0
  191. data/spec/dummy/app/assets/images/admin/print.png +0 -0
  192. data/spec/dummy/app/assets/images/admin/refresh.png +0 -0
  193. data/spec/dummy/app/assets/images/admin/submit.png +0 -0
  194. data/spec/dummy/app/assets/images/admin/submit_hover.png +0 -0
  195. data/spec/dummy/app/assets/images/admin/view.png +0 -0
  196. data/spec/dummy/app/assets/images/admin/view_mk.png +0 -0
  197. data/spec/dummy/app/assets/images/redactor/icons.png +0 -0
  198. data/spec/dummy/app/assets/images/redactor/plugins/file.html +0 -3
  199. data/spec/dummy/app/assets/images/redactor/plugins/image.html +0 -39
  200. data/spec/dummy/app/assets/images/redactor/plugins/image_edit.html +0 -35
  201. data/spec/dummy/app/assets/images/redactor/plugins/link.html +0 -74
  202. data/spec/dummy/app/assets/images/redactor/plugins/table.html +0 -25
  203. data/spec/dummy/app/assets/images/redactor/plugins/video.html +0 -15
  204. data/spec/dummy/app/assets/javascripts/admin/jquery.mjs.nestedSortable.js +0 -429
  205. data/spec/dummy/app/assets/javascripts/admin.js +0 -21
  206. data/spec/dummy/app/assets/javascripts/application.js +0 -14
  207. data/spec/dummy/app/assets/javascripts/jquery-migrate-1.2.1.js +0 -521
  208. data/spec/dummy/app/assets/javascripts/redactor/langs/en.js +0 -76
  209. data/spec/dummy/app/assets/javascripts/redactor/langs/ru.js +0 -75
  210. data/spec/dummy/app/assets/javascripts/redactor/redactor.js.erb +0 -2248
  211. data/spec/dummy/app/assets/javascripts/redactor/toolbars/default.js +0 -219
  212. data/spec/dummy/app/assets/stylesheets/admin/blocks/list.scss +0 -22
  213. data/spec/dummy/app/assets/stylesheets/admin/blocks/notice.scss +0 -39
  214. data/spec/dummy/app/assets/stylesheets/admin/blocks/orders.scss +0 -22
  215. data/spec/dummy/app/assets/stylesheets/admin/blocks/paginate.sass +0 -28
  216. data/spec/dummy/app/assets/stylesheets/admin/blocks/pagination.scss +0 -28
  217. data/spec/dummy/app/assets/stylesheets/admin/blocks/partners.scss +0 -15
  218. data/spec/dummy/app/assets/stylesheets/admin/blocks/phead-tabs.sass +0 -27
  219. data/spec/dummy/app/assets/stylesheets/admin/blocks/photos.scss +0 -31
  220. data/spec/dummy/app/assets/stylesheets/admin/blocks/sortable.sass +0 -44
  221. data/spec/dummy/app/assets/stylesheets/admin/custom/index.scss +0 -1
  222. data/spec/dummy/app/assets/stylesheets/admin/defaults/index.scss +0 -131
  223. data/spec/dummy/app/assets/stylesheets/admin/defaults/input.sass +0 -35
  224. data/spec/dummy/app/assets/stylesheets/admin/defaults/reset.sass +0 -33
  225. data/spec/dummy/app/assets/stylesheets/admin/defaults/table.scss +0 -24
  226. data/spec/dummy/app/assets/stylesheets/admin/index.scss +0 -6
  227. data/spec/dummy/app/assets/stylesheets/admin/layouts/header.sass +0 -50
  228. data/spec/dummy/app/assets/stylesheets/admin/layouts/launchbar.sass +0 -23
  229. data/spec/dummy/app/assets/stylesheets/admin/layouts/login.sass +0 -25
  230. data/spec/dummy/app/assets/stylesheets/admin/layouts/main.sass +0 -38
  231. data/spec/dummy/app/assets/stylesheets/admin/layouts/page-header.sass +0 -22
  232. data/spec/dummy/app/assets/stylesheets/admin/layouts/page-sidebar.sass +0 -24
  233. data/spec/dummy/app/assets/stylesheets/admin/layouts/sidebar.sass +0 -30
  234. data/spec/dummy/app/assets/stylesheets/admin/shop/_filter.scss +0 -16
  235. data/spec/dummy/app/assets/stylesheets/admin/shop/_order-sh.scss +0 -59
  236. data/spec/dummy/app/assets/stylesheets/admin/shop/_pe.scss +0 -43
  237. data/spec/dummy/app/assets/stylesheets/redactor/wym.css +0 -136
  238. data/spec/dummy/app/controllers/admin/base_controller.rb +0 -28
  239. data/spec/dummy/app/controllers/admin/managers_controller.rb +0 -36
  240. data/spec/dummy/app/controllers/application_controller.rb +0 -6
  241. data/spec/dummy/app/controllers/articles_controller.rb +0 -8
  242. data/spec/dummy/app/controllers/managers/registrations_controller.rb +0 -21
  243. data/spec/dummy/app/helpers/admin_helper.rb +0 -94
  244. data/spec/dummy/app/models/article.rb +0 -4
  245. data/spec/dummy/app/models/article_category.rb +0 -2
  246. data/spec/dummy/app/models/photo.rb +0 -3
  247. data/spec/dummy/app/views/admin/base/_header.html.haml +0 -12
  248. data/spec/dummy/app/views/admin/base/_launchbar.html.haml +0 -11
  249. data/spec/dummy/app/views/admin/base/_sidebar.html.haml +0 -14
  250. data/spec/dummy/app/views/admin/base/_validate.haml +0 -8
  251. data/spec/dummy/app/views/admin/base/welcome.haml +0 -2
  252. data/spec/dummy/app/views/admin/photos/_photo.haml +0 -5
  253. data/spec/dummy/app/views/admin/photos/_photos.haml +0 -19
  254. data/spec/dummy/app/views/admin/photos/create.js.erb +0 -1
  255. data/spec/dummy/app/views/admin/photos/destroy.js.erb +0 -1
  256. data/spec/dummy/app/views/articles/show.html.haml +0 -2
  257. data/spec/dummy/app/views/layouts/admin.html.haml +0 -29
  258. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  259. data/spec/dummy/app/views/layouts/login.html.haml +0 -32
  260. data/spec/dummy/bin/bundle +0 -3
  261. data/spec/dummy/bin/rails +0 -4
  262. data/spec/dummy/bin/rake +0 -4
  263. data/spec/dummy/config/application.rb +0 -33
  264. data/spec/dummy/config/boot.rb +0 -5
  265. data/spec/dummy/config/database.yml +0 -25
  266. data/spec/dummy/config/environment.rb +0 -5
  267. data/spec/dummy/config/environments/development.rb +0 -29
  268. data/spec/dummy/config/environments/production.rb +0 -80
  269. data/spec/dummy/config/environments/test.rb +0 -36
  270. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  271. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  272. data/spec/dummy/config/initializers/inflections.rb +0 -16
  273. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  274. data/spec/dummy/config/initializers/secret_token.rb +0 -12
  275. data/spec/dummy/config/initializers/session_store.rb +0 -3
  276. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  277. data/spec/dummy/config/locales/en.yml +0 -36
  278. data/spec/dummy/config/routes.rb +0 -4
  279. data/spec/dummy/config.ru +0 -4
  280. data/spec/dummy/db/migrate/20130908123351_create_articles.rb +0 -9
  281. data/spec/dummy/db/migrate/20140128152208_create_article_categories.rb +0 -11
  282. data/spec/dummy/db/migrate/20140607122532_create_photos.rb +0 -16
  283. data/spec/dummy/db/schema.rb +0 -98
  284. data/spec/dummy/public/404.html +0 -58
  285. data/spec/dummy/public/422.html +0 -58
  286. data/spec/dummy/public/500.html +0 -57
  287. data/spec/dummy/public/favicon.ico +0 -0
  288. data/spec/generators/layout_generator_spec.rb +0 -42
  289. data/spec/generators/photo_generator_spec.rb +0 -32
  290. data/spec/generators/scaffold_generator_spec.rb +0 -58
  291. data/spec/models/sluggable_spec.rb +0 -42
  292. data/spec/models/url_generator_spec.rb +0 -18
  293. data/spec/models/with_photo_spec.rb +0 -25
  294. data/spec/spec_helper.rb +0 -52
  295. /data/{lib/generators/redde/layout/templates/assets/redactor → app/assets}/images/.keep +0 -0
  296. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/addphoto.png +0 -0
  297. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/ajaxloader2.gif +0 -0
  298. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_down.png +0 -0
  299. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_enter.png +0 -0
  300. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/arrow_right.png +0 -0
  301. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/coins.png +0 -0
  302. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/confirm.png +0 -0
  303. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/delete.png +0 -0
  304. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/email.png +0 -0
  305. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/error.png +0 -0
  306. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/favicon.png +0 -0
  307. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/fio.png +0 -0
  308. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/icon_eye.gif +0 -0
  309. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/css/jquery.lightbox-0.5.css +0 -0
  310. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-blank.gif +0 -0
  311. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-close.gif +0 -0
  312. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-next.gif +0 -0
  313. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-btn-prev.gif +0 -0
  314. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/images/lightbox-ico-loading.gif +0 -0
  315. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.js +0 -0
  316. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.js +0 -0
  317. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.min.js +0 -0
  318. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/lightbox/js/jquery.lightbox-0.5.pack.js +0 -0
  319. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/logo_reddeshop.png +0 -0
  320. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/phone.png +0 -0
  321. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/photo_ico.png +0 -0
  322. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/print.png +0 -0
  323. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/refresh.png +0 -0
  324. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit.png +0 -0
  325. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/submit_hover.png +0 -0
  326. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view.png +0 -0
  327. /data/{lib/generators/redde/layout/templates → app}/assets/images/admin/view_mk.png +0 -0
  328. /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/error-label-triangle.png +0 -0
  329. /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/folder.png +0 -0
  330. /data/{lib/generators/redde/layout/templates/assets/images/admin → app/assets/images/redde}/logo.png +0 -0
  331. /data/{lib/generators/redde/layout/templates/assets/images/admin/move_handler.png → app/assets/images/redde/move-handler.png} +0 -0
  332. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/icons.png +0 -0
  333. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/file.html +0 -0
  334. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image.html +0 -0
  335. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/image_edit.html +0 -0
  336. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/link.html +0 -0
  337. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/table.html +0 -0
  338. /data/{lib/generators/redde/layout/templates/assets/redactor/images → app/assets/images/redde}/redactor/plugins/video.html +0 -0
  339. /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/en.js +0 -0
  340. /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/langs/ru.js +0 -0
  341. /data/{lib/generators/redde/layout/templates/assets/redactor/javascripts → app/assets/javascripts/redde}/redactor/toolbars/default.js +0 -0
  342. /data/{lib/generators/redde/layout/templates/assets/javascripts/admin → app/assets/javascripts/redde/sortTree}/jquery.mjs.nestedSortable.js +0 -0
  343. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/list.scss +0 -0
  344. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/orders.scss +0 -0
  345. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/paginate.sass +0 -0
  346. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/pagination.scss +0 -0
  347. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/partners.scss +0 -0
  348. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/blocks/phead-tabs.sass +0 -0
  349. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/login.sass +0 -0
  350. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/layouts/sidebar.sass +0 -0
  351. /data/{lib/generators/redde/layout/templates/assets/redactor/stylesheets → app/assets/stylesheets/redde}/redactor/wym.css +0 -0
  352. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_filter.scss +0 -0
  353. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_order-sh.scss +0 -0
  354. /data/{lib/generators/redde/layout/templates/assets/stylesheets/admin → app/assets/stylesheets/redde}/shop/_pe.scss +0 -0
  355. /data/{spec/dummy/app/assets/images → app/controllers}/.keep +0 -0
  356. /data/{lib/generators/redde/layout/templates → app}/controllers/managers/registrations_controller.rb +0 -0
  357. /data/{spec/dummy/app/models → app/helpers}/.keep +0 -0
  358. /data/{spec/dummy/lib/assets → app/mailers}/.keep +0 -0
  359. /data/{spec/dummy/log → app/models}/.keep +0 -0
  360. /data/{spec/dummy/app/assets/stylesheets/application.css.scss → app/views/.keep} +0 -0
  361. /data/{lib/generators/redde/layout/templates → app/views/admin}/base/welcome.haml +0 -0
  362. /data/{lib/generators/redde/photo/templates/photos → app/views/admin/redde_photos}/destroy.js.erb +0 -0
@@ -0,0 +1,42 @@
1
+ @font-face
2
+ font-family: 'redde-admin'
3
+ src: font-url("redde-admin.eot")
4
+ src: font-url("redde-admin.eot#iefix") format("embedded-opentype"), font-url("redde-admin.woff") format("woff"), font-url("redde-admin.ttf") format("truetype"), font-url("redde-admin.svg#redde-admin") format("svg")
5
+ font-weight: normal
6
+ font-style: normal
7
+
8
+
9
+ // Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it.
10
+ // Note, that will break hinting! In other OS-es font will be not as sharp as it could be
11
+
12
+ @media screen and (-webkit-min-device-pixel-ratio: 0)
13
+ @font-face
14
+ font-family: 'redde-admin'
15
+ src: font-url("redde-admin.svg#redde-admin") format("svg")
16
+
17
+ [class^="icon-"]:before, [class*=" icon-"]:before
18
+ font-family: "redde-admin"
19
+ font-style: normal
20
+ font-weight: normal
21
+ speak: none
22
+ display: inline-block
23
+ text-decoration: inherit
24
+ width: 1em
25
+ margin-right: .2em
26
+ text-align: center
27
+ // opacity: .8;
28
+ // For safety - reset parent styles, that can break glyph codes
29
+ font-variant: normal
30
+ text-transform: none
31
+ // fix buttons height, for twitter bootstrap
32
+ line-height: 1em
33
+ // Animation center compensation - margins should be symmetric
34
+ // remove if not needed
35
+ margin-left: .2em
36
+ // you can be more comfortable with increased icons size
37
+ // font-size: 120%;
38
+ // Uncomment for 3D effect
39
+ // text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3);
40
+
41
+ .icon-upload:before
42
+ content: '\e800'
@@ -0,0 +1,5 @@
1
+ //= require ./defaults
2
+ //= require ./fonts
3
+ //= require_directory ./layouts
4
+ //= require_directory ./blocks
5
+ //= require ./redactor
@@ -0,0 +1,63 @@
1
+ //= depend_on_asset redde/logo.png
2
+ //= depend_on_asset redde/user.svg
3
+
4
+ .header
5
+ color: #fff
6
+ box-shadow: #666 0 0 3px
7
+ background-color: #176d99
8
+ background-image: linear-gradient(to top, #156d97, #19719b)
9
+ margin-bottom: 20px
10
+
11
+ .header__init
12
+ box-sizing: border-box
13
+ max-width: 1260px
14
+ min-width: 580px
15
+ padding-left: (185px + 31px)
16
+ padding-right: 31px
17
+ margin: 0 auto
18
+ overflow: hidden
19
+ position: relative
20
+
21
+ .header__logo
22
+ position: absolute
23
+ width: 123px
24
+ height: 31px
25
+ left: 0
26
+ top: 0
27
+ bottom: 0
28
+ margin: auto
29
+ overflow: hidden
30
+ background: image-url('redde/logo.png') no-repeat 0 0
31
+ text-indent: -9999px
32
+ display: block
33
+
34
+ .header__logo-text
35
+ display: none
36
+
37
+ .header__links
38
+ float: right
39
+ margin: 18px 20px 18px 0
40
+
41
+ .header__link
42
+ margin-left: 2.25em
43
+ color: #fff
44
+ text-decoration: none
45
+
46
+ &:first-child
47
+ margin-left: 0
48
+
49
+ &._user:before
50
+ content: "\A0"
51
+ display: inline-block
52
+ width: 1em
53
+ height: 1em
54
+ margin-right: 10px
55
+ background: image-url('redde/user.svg') no-repeat center bottom
56
+
57
+ &._exit
58
+ color: #bfd8e3
59
+
60
+ &._name
61
+ text-decoration: underline
62
+ &:hover
63
+ text-decoration: none
@@ -0,0 +1,63 @@
1
+ //= depend_on_asset redde/main-menu/home.svg
2
+ //= depend_on_asset redde/main-menu/home_active.svg
3
+ //= depend_on_asset redde/main-menu/folder.svg
4
+ //= depend_on_asset redde/main-menu/folder_active.svg
5
+ //= depend_on_asset redde/main-menu/cog.svg
6
+ //= depend_on_asset redde/main-menu/cog_active.svg
7
+ //= depend_on_asset redde/main-menu/list.svg
8
+ //= depend_on_asset redde/main-menu/list_active.svg
9
+
10
+ .main-menu
11
+ float: left
12
+
13
+ .main-menu__link
14
+ color: #bfd8e3
15
+ text-decoration: none
16
+ font-size: 14px
17
+ line-height: 17px
18
+ float: left
19
+ padding: 17px 21px
20
+
21
+ &._active, &:hover
22
+ background: #2d7fa7
23
+ color: #fff
24
+
25
+ &.b_home:before,
26
+ &.b_folder:before,
27
+ &.b_cog:before,
28
+ &.b_list:before
29
+ content: "\A0"
30
+ display: inline-block
31
+ width: 1em
32
+ height: 1em
33
+ margin-right: 9px
34
+ background-position: bottom center
35
+ background-repeat: no-repeat
36
+
37
+ &.b_home
38
+ &:before
39
+ background-image: image-url('redde/main-menu/home.svg')
40
+ &._active, &:hover
41
+ &:before
42
+ background-image: image-url('redde/main-menu/home_active.svg')
43
+
44
+ &.b_folder
45
+ &:before
46
+ background-image: image-url('redde/main-menu/folder.svg')
47
+ &._active, &:hover
48
+ &:before
49
+ background-image: image-url('redde/main-menu/folder_active.svg')
50
+
51
+ &.b_cog
52
+ &:before
53
+ background-image: image-url('redde/main-menu/cog.svg')
54
+ &._active, &:hover
55
+ &:before
56
+ background-image: image-url('redde/main-menu/cog_active.svg')
57
+
58
+ &.b_list
59
+ &:before
60
+ background-image: image-url('redde/main-menu/list.svg')
61
+ &._active, &:hover
62
+ &:before
63
+ background-image: image-url('redde/main-menu/list_active.svg')
@@ -0,0 +1,48 @@
1
+ @import redde/mixins
2
+
3
+ .wrapper
4
+ box-sizing: border-box
5
+ padding: 0 30px 30px 215px
6
+ max-width: 1260px
7
+ min-width: 800px
8
+ margin: 0 auto
9
+ &:after
10
+ content: ''
11
+ display: table
12
+ clear: both
13
+
14
+ .sidebar
15
+ margin-left: -215px
16
+
17
+ .main
18
+ box-shadow: 0 0 3px #ccc
19
+ border-radius: 6px
20
+ border: 1px solid #D7D7D7
21
+ min-height: 500px
22
+ background-color: #fff
23
+ padding: 0
24
+ border-bottom: 1px solid #DADEE5
25
+ margin: 0
26
+ margin-left: -185px
27
+
28
+ .sidebar + &
29
+ float: left
30
+ width: 100%
31
+ margin-left: 0
32
+
33
+ .main__page
34
+ +clearfix
35
+
36
+ .main__sidebar
37
+ float: right
38
+ padding: 30px
39
+ width: 245px
40
+ border-left: 1px solid #efefef
41
+
42
+ .main__content
43
+ padding: 30px
44
+ .main__sidebar + &
45
+ margin-right: 305px
46
+
47
+ // .sidebar .page-sidebar
48
+ // float: right
@@ -0,0 +1,34 @@
1
+ //= depend_on_asset redde/plus.svg
2
+
3
+ .page-header
4
+ position: relative
5
+ background: #F1F5F9
6
+ border-bottom: 1px solid #DADEE5
7
+ padding: 18px 30px
8
+ margin: 0
9
+ border-top-right-radius: 5px
10
+ border-top-left-radius: 5px
11
+ &:after
12
+ content: ''
13
+ display: table
14
+ clear: both
15
+
16
+ .page-header__title
17
+ font-size: 16px
18
+ float: left
19
+
20
+ .page-header__btn
21
+ color: #fff
22
+ position: absolute
23
+ top: 0
24
+ bottom: 0
25
+ right: 10px
26
+ margin: auto
27
+ height: 14px
28
+ &:after
29
+ content: "\A0"
30
+ display: inline-block
31
+ width: 8px
32
+ height: 1em
33
+ background: image-url('redde/plus.svg') no-repeat 50% 3px
34
+ margin-left: 13px
@@ -0,0 +1,9 @@
1
+ .page-sidebar
2
+ font-size: 12px
3
+
4
+ .page-sidebar__title
5
+ line-height: 1
6
+ padding: 0 0 3px 0
7
+ border-bottom: 1px solid #efefef
8
+ color: #222
9
+ font-weight: bold
@@ -0,0 +1,10 @@
1
+ $family: "Lucida Grande", "Lucida Sans Unicode", helvetica, arial, verdana, sans-serif
2
+
3
+ $text: #000
4
+ $link: #19709b
5
+
6
+ =clearfix
7
+ &:before, &:after
8
+ content: ''
9
+ display: table
10
+ clear: both
@@ -1,13 +1,16 @@
1
+ //= depend_on_asset redde/redactor/icons.png
2
+ //= depend_on_asset redde/redactor/wym.css
3
+
1
4
  .redactor_box {
2
5
  position: relative;
3
- border: 1px solid #ddd;
6
+ border: 1px solid #ddd;
4
7
  line-height: 0;
5
8
  }
6
9
  .redactor_box, .redactor_box textarea {
7
10
  background-color: #fff;
8
11
  }
9
12
  .redactor_box iframe {
10
- outline: none;
13
+ outline: none;
11
14
  width: 100%;
12
15
  background: #fff;
13
16
  display: block;
@@ -22,8 +25,8 @@
22
25
  padding: 0;
23
26
  display: block;
24
27
  position: relative;
25
- z-index: 1004;
26
- outline: none;
28
+ z-index: 1004;
29
+ outline: none;
27
30
  border: none;
28
31
  width: 100%;
29
32
  }
@@ -61,27 +64,21 @@ body .redactor_box_fullscreen {
61
64
  list-style: none;
62
65
  font-size: 0;
63
66
  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;
67
+ background: linear-gradient(to bottom, #f5f5f5 0%,#ddd 100%);
68
+ overflow: hidden;
72
69
  border-bottom: 1px solid #c2c2c2;
73
70
  }
74
71
  .redactor_toolbar li {
75
72
  float: left !important;
76
73
  padding: 3px 1px;
77
74
  padding-right: 0;
78
- list-style-type: none;
75
+ list-style-type: none;
79
76
  }
80
77
  .redactor_toolbar li.redactor_separator {
81
- float: left;
78
+ float: left;
82
79
  height: 34px;
83
80
  border-left: 1px solid #d7d7d7;
84
- border-right: 1px solid #eee;
81
+ border-right: 1px solid #eee;
85
82
  padding: 0;
86
83
  margin: 0 2px 0 3px;
87
84
  }
@@ -94,23 +91,23 @@ li.redactor_toolbar_right {
94
91
  .redactor_toolbar li a, .redactor_toolbar li a span {
95
92
  width: 25px;
96
93
  height: 26px;
97
- }
94
+ }
98
95
  .redactor_toolbar li a {
99
96
  border: 1px solid transparent;
100
- * border: 1px solid #eee;
97
+ //* border: 1px solid #eee;
101
98
  display: block;
102
99
  line-height: 0;
103
100
  font-size: 0;
104
101
  cursor: pointer;
105
102
  zoom: 1;
106
103
  text-decoration: none;
107
- }
104
+ }
108
105
  .redactor_toolbar li a span {
109
106
  display: block;
110
107
  text-indent: -9999px;
111
- background: image-url("redactor/icons.png") no-repeat top left;
108
+ background: image-url("redde/redactor/icons.png") no-repeat top left;
112
109
  }
113
-
110
+
114
111
  .redactor_toolbar li a:hover {
115
112
  border-color: #98a6ba;
116
113
  background-color: #dde4ef;
@@ -129,14 +126,14 @@ body .redactor_toolbar li a.redactor_btn_html span { background-position: 0
129
126
  body .redactor_toolbar li a.redactor_btn_styles span { background-position: -25px; }
130
127
  body .redactor_toolbar li a.redactor_btn_bold span { background-position: -50px; }
131
128
  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; }
129
+ body .redactor_toolbar li a.redactor_btn_deleted span { background-position: -550px; }
130
+ body .redactor_toolbar li a.redactor_btn_insertunorderedlist span { background-position: -100px; }
134
131
  body .redactor_toolbar li a.redactor_btn_insertorderedlist span { background-position: -125px; }
135
132
  body .redactor_toolbar li a.redactor_btn_outdent span { background-position: -150px; }
136
133
  body .redactor_toolbar li a.redactor_btn_indent span { background-position: -175px; }
137
134
  body .redactor_toolbar li a.redactor_btn_image span { background-position: -200px; }
138
135
  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; }
136
+ body .redactor_toolbar li a.redactor_btn_file span { background-position: -250px; }
140
137
  body .redactor_toolbar li a.redactor_btn_table span { background-position: -275px; }
141
138
  body .redactor_toolbar li a.redactor_btn_link span { background-position: -300px; }
142
139
  body .redactor_toolbar li a.redactor_btn_fontcolor span { background-position: -325px; }
@@ -147,8 +144,8 @@ body .redactor_toolbar li a.redactor_btn_justifyright span { background-posit
147
144
  body .redactor_toolbar li a.redactor_btn_justify span { background-position: -450px; }
148
145
  body .redactor_toolbar li a.redactor_btn_horizontalrule span { background-position: -475px; }
149
146
  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; }
147
+ body .redactor_toolbar li a.redactor_btn_format span { background-position: -575px; }
148
+ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-position: -525px !important; }
152
149
 
153
150
 
154
151
  /*
@@ -181,10 +178,10 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
181
178
  border: 1px solid #ccc;
182
179
  font-size: 13px;
183
180
  -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;
181
+ -moz-box-shadow: 0 2px 4px #ccc;
182
+ box-shadow: 0 2px 4px #ccc;
183
+ line-height: 21px;
184
+ padding: 10px;
188
185
  }
189
186
  .redactor_separator_drop {
190
187
  border-top: 1px solid #ddd;;
@@ -202,7 +199,7 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
202
199
  color: #444 !important;
203
200
  text-decoration: none;
204
201
  background-color: #dde4ef;
205
- }
202
+ }
206
203
 
207
204
  /* ColorPicker */
208
205
  .redactor_color_link {
@@ -228,11 +225,11 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
228
225
  width: 100%;
229
226
  height: 100%;
230
227
  z-index: 50000;
231
-
228
+
232
229
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
233
230
  filter:alpha(opacity=70);
234
231
  opacity: 0.70;
235
-
232
+
236
233
  background-color: #fff !important;
237
234
  }
238
235
 
@@ -242,25 +239,25 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
242
239
  position: fixed;
243
240
  top: 50%;
244
241
  left: 50%;
245
-
242
+
246
243
  box-shadow: 0px 5px 20px #999;
247
- -webkit-box-shadow: 0 5px 20px #999;
248
- -moz-box-shadow: 0 5px 20px #999;
249
-
244
+ -webkit-box-shadow: 0 5px 20px #999;
245
+ -moz-box-shadow: 0 5px 20px #999;
246
+
250
247
  -webkit-border-radius: 8px;
251
248
  -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;
249
+ border-radius: 8px;
250
+
251
+ z-index: 50001;
252
+ font-family: "Trebuchet MS", "Helvetica Neue", "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
256
253
  color: #000;
257
254
  }
258
255
  #redactor_modal_header {
259
256
  padding: 15px;
260
257
  font-size: 18px;
261
-
258
+
262
259
  border-radius: 8px 8px 0 0;
263
-
260
+
264
261
  font-weight: bold;
265
262
  background-color: #f6f6f6;
266
263
  border-bottom: 1px solid #ddd;
@@ -295,8 +292,8 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
295
292
  vertical-align: middle !important;
296
293
  }
297
294
  #redactor_image_box {
298
- height: 270px;
299
- overflow: auto;
295
+ height: 270px;
296
+ overflow: auto;
300
297
  margin-bottom: 10px;
301
298
  }
302
299
  #redactor_image_box img {
@@ -317,7 +314,7 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
317
314
  line-height: 1;
318
315
  -webkit-border-radius: 10px;
319
316
  -moz-border-radius: 10px;
320
- border-radius: 10px;
317
+ border-radius: 10px;
321
318
  }
322
319
  #redactor_tabs a:hover, #redactor_tabs a.redactor_tabs_act {
323
320
  background-color: #eee;
@@ -330,20 +327,20 @@ body .redactor_toolbar li a.redactor_btn_normalscreen span { background-posit
330
327
  background-color: #eee;
331
328
  -webkit-border-radius: 5px;
332
329
  -moz-border-radius: 5px;
333
- border-radius: 5px;
330
+ border-radius: 5px;
334
331
  }
335
332
 
336
333
  /* Drag and Drop Area */
337
334
  .redactor_droparea {
338
335
  position: relative;
339
336
  width: 100%;
340
- margin: auto;
337
+ margin: auto;
341
338
  margin-bottom: 5px;
342
339
  }
343
- .redactor_droparea .redactor_dropareabox {
340
+ .redactor_droparea .redactor_dropareabox {
344
341
  z-index: 1;
345
342
  position: relative;
346
- text-align: center;
343
+ text-align: center;
347
344
  width: 99%;
348
345
  padding: 60px 0;
349
346
  border: 2px dashed #bbb;
@@ -0,0 +1,96 @@
1
+ //= depend_on_asset redde/move-handler.png
2
+ //= depend_on_asset redde/eye.svg
3
+ //= depend_on_asset redde/eye_disactive.svg
4
+ //= depend_on_asset redde/close.svg
5
+ //= depend_on_asset redde/close-hover.svg
6
+
7
+ .list-v2
8
+ width: auto
9
+ border-collapse: collapse
10
+ border-collapse: separate
11
+ border-spacing: 0
12
+ margin-left: -30px
13
+ margin-right: -30px
14
+
15
+ .list-v2__col
16
+ &:first-child,
17
+ &:last-child,
18
+ &._del
19
+ width: 0.01%
20
+
21
+ .list-v2__head
22
+ font-size: 11px
23
+ text-transform: uppercase
24
+ background: #d7e4ef
25
+ padding: 13px 0 13px 30px
26
+ border-bottom: 1px solid #dddddd
27
+ // border-bottom: 0 none
28
+ // border-top: 1px solid #ddd
29
+
30
+ &:first-child,
31
+ &:last-child
32
+ background: #d7e4ef
33
+ padding-left: 0
34
+ min-width: 10px
35
+
36
+ &._img
37
+ padding-left: 20px
38
+
39
+ .list-v2__head_first
40
+ padding-left: 0
41
+
42
+ .list-v2__cell
43
+ padding: 3px 0 3px 30px
44
+ vertical-align: middle
45
+ font-size: 13px
46
+ color: #000
47
+ cursor: pointer
48
+ width: auto
49
+ border-bottom: 1px solid #dddddd
50
+ // border-top: 1px solid #ddd
51
+ // border-bottom: 0 none
52
+
53
+ &._img
54
+ width: 1%
55
+ padding-left: 20px
56
+
57
+ tr:hover > &
58
+ background-color: #fff5d4
59
+
60
+ &:first-child,
61
+ &:last-child
62
+ padding-left: 0
63
+ width: 10px
64
+ border-bottom: 0 none
65
+
66
+ &._handle
67
+ min-width: 23px
68
+ width: 0.01%
69
+ background: image-url('redde/move-handler.png') no-repeat center
70
+
71
+ &._eye
72
+ padding-left: 7px
73
+ width: 0.01%
74
+
75
+ .list-v2__cell_first
76
+ padding-left: 0
77
+
78
+ .list-v2__img
79
+ border-radius: 2px
80
+ display: block
81
+
82
+ .list-v2__eye
83
+ display: block
84
+ width: 20px
85
+ height: 20px
86
+ background: image-url('redde/eye.svg') no-repeat center
87
+ &._disactive
88
+ background-image: image-url('redde/eye_disactive.svg')
89
+
90
+ .list-v2__del
91
+ background: image-url('redde/close.svg') no-repeat center
92
+ display: block
93
+ width: 20px
94
+ height: 20px
95
+ &:hover
96
+ background: image-url('redde/close-hover.svg') no-repeat center
@@ -0,0 +1,23 @@
1
+ //= depend_on_asset redde/close.svg
2
+ //= depend_on_asset redde/close-hover.svg
3
+
4
+ %del
5
+ display: inline-block
6
+ width: 20px
7
+ height: 20px
8
+ background: image-url('redde/close.svg') center no-repeat
9
+ text-decoration: none
10
+
11
+ .del
12
+ @extend %del
13
+ &:before
14
+ content: '\A0'
15
+ &:hover
16
+ background-image: image-url('redde/close-hover.svg')
17
+
18
+ .a_del
19
+ &:after
20
+ @extend %del
21
+ content: '\A0'
22
+ &:hover:after
23
+ background-image: image-url('redde/close-hover.svg')