alchemy_cms 4.0.5 → 4.1.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +1 -0
  3. data/.gitignore +1 -0
  4. data/.localeapp/config.rb +8 -0
  5. data/.rubocop.yml +26 -13
  6. data/.travis.yml +8 -11
  7. data/CHANGELOG.md +5 -20
  8. data/Gemfile +10 -7
  9. data/README.md +16 -14
  10. data/Rakefile +1 -1
  11. data/alchemy_cms.gemspec +6 -7
  12. data/app/assets/images/alchemy/alchemy-logo.png +0 -0
  13. data/app/assets/images/alchemy/alchemy-logo.svg +1 -70
  14. data/app/assets/images/alchemy/favicon.ico +0 -0
  15. data/app/assets/images/alchemy/icon.svg +1 -14
  16. data/app/assets/javascripts/alchemy/admin.js +0 -7
  17. data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +2 -2
  18. data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +1 -1
  19. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +1 -1
  20. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +1 -0
  21. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +19 -6
  22. data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +2 -7
  23. data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +36 -26
  24. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +6 -15
  25. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +1 -1
  26. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +8 -11
  27. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +4 -1
  28. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +1 -1
  29. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +5 -14
  30. data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +54 -75
  31. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +4 -13
  32. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +1 -0
  33. data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +12 -6
  34. data/app/assets/javascripts/alchemy/alchemy.translations.js.coffee +0 -158
  35. data/app/assets/stylesheets/alchemy/_defaults.scss +0 -2
  36. data/app/assets/stylesheets/alchemy/_extends.scss +13 -18
  37. data/app/assets/stylesheets/alchemy/_mixins.scss +72 -46
  38. data/app/assets/stylesheets/alchemy/_variables.scss +128 -59
  39. data/app/assets/stylesheets/alchemy/admin.scss +7 -1
  40. data/app/assets/stylesheets/alchemy/archive.scss +23 -27
  41. data/app/assets/stylesheets/alchemy/base.scss +5 -355
  42. data/app/assets/stylesheets/alchemy/buttons.scss +23 -60
  43. data/app/assets/stylesheets/alchemy/clipboard.scss +26 -0
  44. data/app/assets/stylesheets/alchemy/dashboard.scss +7 -40
  45. data/app/assets/stylesheets/alchemy/dialogs.scss +23 -36
  46. data/app/assets/stylesheets/alchemy/elements.scss +80 -156
  47. data/app/assets/stylesheets/alchemy/errors.scss +2 -2
  48. data/app/assets/stylesheets/alchemy/flash.scss +19 -10
  49. data/app/assets/stylesheets/alchemy/fonts.scss +13 -0
  50. data/app/assets/stylesheets/alchemy/forms.scss +6 -1
  51. data/app/assets/stylesheets/alchemy/frame.scss +24 -65
  52. data/app/assets/stylesheets/alchemy/hints.scss +2 -2
  53. data/app/assets/stylesheets/alchemy/icons.scss +3 -337
  54. data/app/assets/stylesheets/alchemy/image_library.scss +9 -10
  55. data/app/assets/stylesheets/alchemy/jquery-ui.scss +21 -839
  56. data/app/assets/stylesheets/alchemy/jquery.datetimepicker.scss +32 -57
  57. data/app/assets/stylesheets/alchemy/lists.scss +4 -8
  58. data/app/assets/stylesheets/alchemy/menubar.scss +26 -29
  59. data/app/assets/stylesheets/alchemy/navigation.scss +23 -25
  60. data/app/assets/stylesheets/alchemy/notices.scss +25 -25
  61. data/app/assets/stylesheets/alchemy/pagination.scss +12 -7
  62. data/app/assets/stylesheets/alchemy/preview_window.scss +20 -0
  63. data/app/assets/stylesheets/alchemy/resource_info.scss +1 -1
  64. data/app/assets/stylesheets/alchemy/search.scss +19 -15
  65. data/app/assets/stylesheets/alchemy/selects.scss +63 -32
  66. data/app/assets/stylesheets/alchemy/sitemap.scss +70 -148
  67. data/app/assets/stylesheets/alchemy/tables.scss +16 -59
  68. data/app/assets/stylesheets/alchemy/toolbar.scss +9 -36
  69. data/app/assets/stylesheets/alchemy/trash.scss +8 -0
  70. data/app/assets/stylesheets/alchemy/upload.scss +5 -6
  71. data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +1 -0
  72. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +78 -43
  73. data/app/controllers/alchemy/admin/attachments_controller.rb +6 -6
  74. data/app/controllers/alchemy/admin/base_controller.rb +9 -9
  75. data/app/controllers/alchemy/admin/contents_controller.rb +0 -17
  76. data/app/controllers/alchemy/admin/elements_controller.rb +1 -4
  77. data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -3
  78. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +1 -3
  79. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  80. data/app/controllers/alchemy/admin/pictures_controller.rb +5 -5
  81. data/app/controllers/alchemy/admin/resources_controller.rb +10 -10
  82. data/app/controllers/alchemy/admin/tags_controller.rb +7 -7
  83. data/app/controllers/alchemy/api/contents_controller.rb +6 -1
  84. data/app/controllers/alchemy/api/elements_controller.rb +5 -1
  85. data/app/controllers/alchemy/api/pages_controller.rb +6 -1
  86. data/app/controllers/alchemy/base_controller.rb +5 -3
  87. data/app/controllers/alchemy/pages_controller.rb +1 -1
  88. data/app/helpers/alchemy/admin/base_helper.rb +14 -15
  89. data/app/helpers/alchemy/admin/contents_helper.rb +1 -2
  90. data/app/helpers/alchemy/admin/elements_helper.rb +7 -6
  91. data/app/helpers/alchemy/admin/tags_helper.rb +3 -4
  92. data/app/helpers/alchemy/base_helper.rb +35 -5
  93. data/app/helpers/alchemy/elements_helper.rb +2 -2
  94. data/app/helpers/alchemy/pages_helper.rb +4 -2
  95. data/app/models/alchemy/attachment.rb +14 -23
  96. data/app/models/alchemy/base_record.rb +13 -0
  97. data/app/models/alchemy/cell.rb +1 -1
  98. data/app/models/alchemy/content.rb +1 -2
  99. data/app/models/alchemy/content/factory.rb +1 -1
  100. data/app/models/alchemy/element.rb +10 -12
  101. data/app/models/alchemy/essence_boolean.rb +1 -1
  102. data/app/models/alchemy/essence_date.rb +2 -2
  103. data/app/models/alchemy/essence_file.rb +1 -1
  104. data/app/models/alchemy/essence_html.rb +1 -1
  105. data/app/models/alchemy/essence_link.rb +1 -1
  106. data/app/models/alchemy/essence_picture.rb +1 -1
  107. data/app/models/alchemy/essence_richtext.rb +1 -1
  108. data/app/models/alchemy/essence_select.rb +1 -1
  109. data/app/models/alchemy/essence_text.rb +1 -1
  110. data/app/models/alchemy/folded_page.rb +1 -1
  111. data/app/models/alchemy/language.rb +21 -5
  112. data/app/models/alchemy/page.rb +17 -5
  113. data/app/models/alchemy/page/page_elements.rb +14 -2
  114. data/app/models/alchemy/page/page_naming.rb +17 -4
  115. data/app/models/alchemy/picture.rb +4 -7
  116. data/app/models/alchemy/site.rb +3 -3
  117. data/app/models/alchemy/tag.rb +3 -3
  118. data/app/models/concerns/alchemy/content_touching.rb +23 -0
  119. data/app/serializers/alchemy/element_serializer.rb +2 -0
  120. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
  121. data/app/views/alchemy/admin/attachments/_attachment.html.erb +11 -21
  122. data/app/views/alchemy/admin/attachments/_files_list.html.erb +26 -29
  123. data/app/views/alchemy/admin/attachments/_filter_bar.html.erb +2 -3
  124. data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +3 -4
  125. data/app/views/alchemy/admin/attachments/_replace_button.html.erb +2 -3
  126. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +3 -3
  127. data/app/views/alchemy/admin/attachments/destroy.js.erb +1 -1
  128. data/app/views/alchemy/admin/attachments/edit.html.erb +2 -2
  129. data/app/views/alchemy/admin/attachments/index.html.erb +3 -2
  130. data/app/views/alchemy/admin/attachments/show.html.erb +7 -8
  131. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  132. data/app/views/alchemy/admin/clipboard/index.html.erb +23 -7
  133. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  134. data/app/views/alchemy/admin/clipboard/remove.js.erb +2 -2
  135. data/app/views/alchemy/admin/contents/create.js.erb +1 -1
  136. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +9 -6
  137. data/app/views/alchemy/admin/dashboard/_recent_pages.html.erb +6 -4
  138. data/app/views/alchemy/admin/dashboard/_sites.html.erb +4 -2
  139. data/app/views/alchemy/admin/dashboard/_users.html.erb +6 -4
  140. data/app/views/alchemy/admin/dashboard/index.html.erb +3 -3
  141. data/app/views/alchemy/admin/dashboard/info.html.erb +6 -7
  142. data/app/views/alchemy/admin/elements/_add_picture.html.erb +1 -1
  143. data/app/views/alchemy/admin/elements/_element.html.erb +1 -1
  144. data/app/views/alchemy/admin/elements/_element_header.html.erb +14 -14
  145. data/app/views/alchemy/admin/elements/_element_toolbar.html.erb +3 -3
  146. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +2 -3
  147. data/app/views/alchemy/admin/elements/index.html.erb +2 -4
  148. data/app/views/alchemy/admin/elements/new.html.erb +1 -2
  149. data/app/views/alchemy/admin/elements/publish.js.erb +5 -5
  150. data/app/views/alchemy/admin/languages/_language.html.erb +4 -9
  151. data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
  152. data/app/views/alchemy/admin/languages/index.html.erb +1 -1
  153. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +5 -5
  154. data/app/views/alchemy/admin/layoutpages/index.html.erb +5 -4
  155. data/app/views/alchemy/admin/leave.html.erb +1 -1
  156. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +1 -1
  157. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +1 -1
  158. data/app/views/alchemy/admin/pages/_form.html.erb +1 -1
  159. data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
  160. data/app/views/alchemy/admin/pages/_page.html.erb +31 -23
  161. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +5 -5
  162. data/app/views/alchemy/admin/pages/_page_infos.html.erb +3 -3
  163. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +1 -1
  164. data/app/views/alchemy/admin/pages/edit.html.erb +22 -21
  165. data/app/views/alchemy/admin/pages/index.html.erb +5 -21
  166. data/app/views/alchemy/admin/pages/info.html.erb +5 -5
  167. data/app/views/alchemy/admin/pages/sort.html.erb +1 -1
  168. data/app/views/alchemy/admin/pages/unlock.js.erb +2 -4
  169. data/app/views/alchemy/admin/partials/_flash.html.erb +1 -1
  170. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +6 -2
  171. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  172. data/app/views/alchemy/admin/partials/_search_form.html.erb +3 -3
  173. data/app/views/alchemy/admin/pictures/_archive.html.erb +19 -17
  174. data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
  175. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +13 -13
  176. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +2 -3
  177. data/app/views/alchemy/admin/pictures/_form.html.erb +3 -3
  178. data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +2 -3
  179. data/app/views/alchemy/admin/pictures/_picture.html.erb +7 -7
  180. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +3 -3
  181. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +6 -7
  182. data/app/views/alchemy/admin/pictures/index.html.erb +12 -12
  183. data/app/views/alchemy/admin/pictures/index.js.erb +0 -1
  184. data/app/views/alchemy/admin/pictures/show.html.erb +9 -9
  185. data/app/views/alchemy/admin/resources/_filter_bar.html.erb +2 -3
  186. data/app/views/alchemy/admin/resources/_form.html.erb +10 -2
  187. data/app/views/alchemy/admin/resources/_resource.html.erb +9 -14
  188. data/app/views/alchemy/admin/resources/_table.html.erb +1 -1
  189. data/app/views/alchemy/admin/resources/_tag_list.html.erb +4 -4
  190. data/app/views/alchemy/admin/resources/index.html.erb +2 -3
  191. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  192. data/app/views/alchemy/admin/tags/_tag.html.erb +7 -11
  193. data/app/views/alchemy/admin/tags/index.html.erb +4 -4
  194. data/app/views/alchemy/admin/trash/index.html.erb +2 -3
  195. data/app/views/alchemy/admin/uploader/_button.html.erb +1 -2
  196. data/app/views/alchemy/base/500.html.erb +1 -1
  197. data/app/views/alchemy/base/permission_denied.js.erb +1 -1
  198. data/app/views/alchemy/base/redirect.js.erb +1 -2
  199. data/app/views/alchemy/elements/_editor_not_found.html.erb +2 -3
  200. data/app/views/alchemy/essences/_essence_date_editor.html.erb +1 -1
  201. data/app/views/alchemy/essences/_essence_file_editor.html.erb +7 -11
  202. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +9 -7
  203. data/app/views/alchemy/essences/shared/_essence_picture_tools.html.erb +1 -1
  204. data/app/views/alchemy/pages/_meta_data.html.erb +1 -1
  205. data/app/views/kaminari/alchemy/_first_page.html.erb +7 -3
  206. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  207. data/app/views/kaminari/alchemy/_last_page.html.erb +7 -3
  208. data/app/views/kaminari/alchemy/_next_page.html.erb +4 -2
  209. data/app/views/kaminari/alchemy/_page.html.erb +1 -1
  210. data/app/views/kaminari/alchemy/_prev_page.html.erb +4 -2
  211. data/app/views/layouts/alchemy/admin.html.erb +8 -6
  212. data/bin/rails +2 -2
  213. data/bin/rspec +1 -1
  214. data/config/alchemy/config.yml +0 -2
  215. data/config/alchemy/modules.yml +5 -5
  216. data/config/initializers/simple_form.rb +45 -8
  217. data/config/locales/alchemy.en.yml +66 -179
  218. data/config/routes.rb +1 -1
  219. data/db/migrate/20180226123013_alchemy_four_point_zero.rb +392 -0
  220. data/db/migrate/20180227224537_migrate_tags_to_gutentag.rb +41 -0
  221. data/lib/alchemy/config.rb +0 -2
  222. data/lib/alchemy/engine.rb +5 -9
  223. data/lib/alchemy/essence.rb +6 -6
  224. data/lib/alchemy/filetypes.rb +13 -1
  225. data/lib/alchemy/forms/builder.rb +5 -3
  226. data/lib/alchemy/i18n.rb +8 -6
  227. data/lib/alchemy/modules.rb +1 -1
  228. data/lib/alchemy/name_conversions.rb +0 -2
  229. data/lib/alchemy/page_layout.rb +3 -2
  230. data/lib/alchemy/paths.rb +5 -5
  231. data/lib/alchemy/resource.rb +9 -9
  232. data/lib/alchemy/resources_helper.rb +11 -15
  233. data/lib/alchemy/routing_constraints.rb +2 -2
  234. data/lib/alchemy/shell.rb +0 -1
  235. data/lib/alchemy/taggable.rb +40 -0
  236. data/lib/alchemy/tasks/tidy.rb +1 -9
  237. data/lib/alchemy/test_support/factories/content_factory.rb +10 -0
  238. data/lib/alchemy/test_support/factories/element_factory.rb +5 -0
  239. data/lib/alchemy/test_support/shared_contexts.rb +1 -1
  240. data/lib/alchemy/tinymce.rb +2 -2
  241. data/lib/alchemy/upgrader/four_point_one.rb +42 -0
  242. data/lib/alchemy/upgrader/tasks/harden_acts_as_taggable_on_migrations.rb +27 -0
  243. data/lib/alchemy/version.rb +1 -1
  244. data/lib/alchemy_cms.rb +2 -3
  245. data/lib/rails/generators/alchemy/elements/elements_generator.rb +2 -2
  246. data/lib/rails/generators/alchemy/essence/essence_generator.rb +1 -1
  247. data/lib/rails/generators/alchemy/install/install_generator.rb +4 -8
  248. data/lib/rails/generators/alchemy/module/module_generator.rb +1 -1
  249. data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +2 -2
  250. data/lib/rails/generators/alchemy/site_layouts/site_layouts_generator.rb +2 -2
  251. data/lib/rails/generators/alchemy/views/views_generator.rb +1 -1
  252. data/lib/tasks/alchemy/db.rake +2 -1
  253. data/lib/tasks/alchemy/tidy.rake +0 -6
  254. data/lib/tasks/alchemy/upgrade.rake +11 -144
  255. data/vendor/assets/fonts/fa-regular-400.eot +0 -0
  256. data/vendor/assets/fonts/fa-regular-400.svg +363 -0
  257. data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
  258. data/vendor/assets/fonts/fa-regular-400.woff +0 -0
  259. data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
  260. data/vendor/assets/fonts/fa-solid-900.eot +0 -0
  261. data/vendor/assets/fonts/fa-solid-900.svg +1413 -0
  262. data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
  263. data/vendor/assets/fonts/fa-solid-900.woff +0 -0
  264. data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
  265. data/vendor/assets/javascripts/tinymce/license.txt +6 -6
  266. data/vendor/assets/javascripts/tinymce/tinymce.min.js +2 -15
  267. data/vendor/assets/stylesheets/fontawesome/_animated.scss +20 -0
  268. data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +20 -0
  269. data/vendor/assets/stylesheets/fontawesome/_core.scss +16 -0
  270. data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
  271. data/vendor/assets/stylesheets/fontawesome/_icons.scss +792 -0
  272. data/vendor/assets/stylesheets/fontawesome/_larger.scss +23 -0
  273. data/vendor/assets/stylesheets/fontawesome/_list.scss +18 -0
  274. data/vendor/assets/stylesheets/fontawesome/_mixins.scss +57 -0
  275. data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +23 -0
  276. data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +5 -0
  277. data/vendor/assets/stylesheets/fontawesome/_stacked.scss +31 -0
  278. data/vendor/assets/stylesheets/fontawesome/_variables.scss +805 -0
  279. data/vendor/assets/stylesheets/fontawesome/fa-regular.scss +22 -0
  280. data/vendor/assets/stylesheets/fontawesome/fa-solid.scss +23 -0
  281. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +16 -0
  282. metadata +77 -112
  283. data/app/assets/fonts/alchemy/icons.eot +0 -0
  284. data/app/assets/fonts/alchemy/icons.svg +0 -33
  285. data/app/assets/fonts/alchemy/icons.ttf +0 -0
  286. data/app/assets/fonts/alchemy/icons.woff +0 -0
  287. data/app/assets/images/alchemy/icons.png +0 -0
  288. data/app/assets/images/alchemy/ui-icons_666666_256x240.png +0 -0
  289. data/app/assets/images/sassy-ie-overlay.png +0 -0
  290. data/app/assets/javascripts/alchemy/alchemy.jquery_loader.js +0 -42
  291. data/app/assets/stylesheets/alchemy/icon-font.scss +0 -75
  292. data/app/assets/stylesheets/alchemy/modules.scss +0 -27
  293. data/app/models/alchemy.rb +0 -7
  294. data/app/views/alchemy/admin/contents/destroy.js.erb +0 -4
  295. data/app/views/alchemy/admin/pictures/flush.js.erb +0 -2
  296. data/config/locales/alchemy.de.yml +0 -932
  297. data/config/locales/alchemy.es.yml +0 -960
  298. data/config/locales/alchemy.fr.yml +0 -938
  299. data/config/locales/alchemy.it.yml +0 -938
  300. data/config/locales/alchemy.nl.yml +0 -918
  301. data/config/locales/alchemy.ru.yml +0 -830
  302. data/config/locales/simple_form.de.yml +0 -26
  303. data/config/locales/simple_form.en.yml +0 -25
  304. data/config/locales/simple_form.es.yml +0 -6
  305. data/config/locales/simple_form.fr.yml +0 -26
  306. data/config/locales/simple_form.it.yml +0 -25
  307. data/config/locales/simple_form.nl.yml +0 -25
  308. data/config/locales/simple_form.ru.yml +0 -25
  309. data/db/migrate/20130827094554_alchemy_two_point_six.rb +0 -378
  310. data/db/migrate/20130828121054_remove_do_not_index_from_alchemy_essence_texts.rb +0 -5
  311. data/db/migrate/20130828121120_remove_do_not_index_from_alchemy_essence_richtexts.rb +0 -5
  312. data/db/migrate/20130918201742_add_published_at_to_alchemy_pages.rb +0 -5
  313. data/db/migrate/20150608204610_add_parent_element_id_to_alchemy_elements.rb +0 -6
  314. data/db/migrate/20150729151825_add_link_text_to_alchemy_essence_files.rb +0 -5
  315. data/db/migrate/20150906195818_add_locale_to_alchemy_languages.rb +0 -7
  316. data/db/migrate/20160108174834_add_timebased_publishing_columns_to_pages.rb +0 -32
  317. data/db/migrate/20160422195310_add_image_file_format_to_alchemy_pictures.rb +0 -9
  318. data/db/migrate/20160617224938_change_alchemy_pages_locked_to_locked_at.rb +0 -22
  319. data/db/migrate/20160912223112_add_index_to_alchemy_pages_rgt.rb +0 -9
  320. data/db/migrate/20160927205604_add_foreign_key_indices_and_null_constraints.rb +0 -20
  321. data/db/migrate/20160928080104_add_foreign_keys.rb +0 -27
  322. data/lib/alchemy/touching.rb +0 -42
  323. data/lib/alchemy/upgrader/tasks/available_contents_upgrader.rb +0 -161
  324. data/lib/alchemy/upgrader/tasks/install_asset_manifests.rb +0 -15
  325. data/lib/alchemy/upgrader/tasks/install_dragonfly_config.rb +0 -14
  326. data/lib/alchemy/upgrader/tasks/nestable_elements_migration.rb +0 -71
  327. data/lib/alchemy/upgrader/tasks/three_point_two_task.rb +0 -31
  328. data/lib/alchemy/upgrader/three_point_five.rb +0 -32
  329. data/lib/alchemy/upgrader/three_point_four.rb +0 -52
  330. data/lib/alchemy/upgrader/three_point_one.rb +0 -54
  331. data/lib/alchemy/upgrader/three_point_three.rb +0 -50
  332. data/lib/alchemy/upgrader/three_point_two.rb +0 -40
  333. data/lib/alchemy/upgrader/three_point_zero.rb +0 -92
  334. data/vendor/assets/javascripts/jquery_plugins/jquery.floatThead.min.js +0 -3
  335. data/vendor/assets/javascripts/tinymce/langs/de.js +0 -219
  336. data/vendor/assets/javascripts/tinymce/langs/es.js +0 -219
  337. data/vendor/assets/javascripts/tinymce/langs/fr.js +0 -219
  338. data/vendor/assets/javascripts/tinymce/langs/it.js +0 -219
  339. data/vendor/assets/javascripts/tinymce/langs/nl.js +0 -219
  340. data/vendor/assets/javascripts/tinymce/langs/ru.js +0 -219
@@ -1,10 +1,11 @@
1
1
  html {
2
2
  box-sizing: border-box;
3
3
  height: 100%;
4
+ font-size: $base-font-size;
4
5
 
5
6
  &.turbolinks-progress-bar::before,
6
7
  .turbolinks-progress-bar {
7
- background-color: #fff !important;
8
+ background-color: $blue !important;
8
9
  z-index: 400001;
9
10
  }
10
11
  }
@@ -37,7 +38,7 @@ body {
37
38
  padding: 0;
38
39
  color: $text-color;
39
40
  font: $default-font-style;
40
- background-color: $light-gray;
41
+ background-color: $body-background-color;
41
42
  height: 100%;
42
43
  cursor: default;
43
44
 
@@ -97,7 +98,6 @@ a {
97
98
 
98
99
  &:focus {
99
100
  @extend %blue-focus-style;
100
- color: black;
101
101
  }
102
102
 
103
103
  img {
@@ -140,7 +140,7 @@ kbd {
140
140
  padding: 0.25em 0.5em;
141
141
  vertical-align: top;
142
142
  margin-right: 1ex;
143
- @extend %rounded-border;
143
+ border-radius: $default-border-radius;
144
144
  }
145
145
 
146
146
  .top-rounded-border {
@@ -167,372 +167,22 @@ kbd {
167
167
  user-select: none;
168
168
  }
169
169
 
170
- span.updated_at {
171
- float: right;
172
- }
173
-
174
- a.drop_down_select img {
175
- float: left;
176
- position: relative;
177
- top: 2px;
178
- margin-right: 4px;
179
- }
180
-
181
- #language_select {
182
- margin-bottom: 4px;
183
- }
184
-
185
- div.source_editor textarea {
186
- width: 100%;
187
- height: 358px;
188
- }
189
-
190
- div.edit_source_buttons {
191
- height: 18px;
192
- margin-top: 8px;
193
- float: right;
194
- clear: both;
195
- }
196
-
197
- div#page {
198
- height: auto !important;
199
- height: 100%;
200
- min-height: 100%;
201
- position: relative;
202
- /* needed for footer positioning*/
203
- }
204
-
205
- #archive_all .edit_images_bottom span {
206
- width: 19px;
207
- height: 19px;
208
- float: left;
209
- margin-right: 4px;
210
- }
211
-
212
- #archive_all .edit_images_bottom span a {
213
- display: block;
214
- height: 19px;
215
- width: 19px;
216
- background-repeat: no-repeat;
217
- text-decoration: none;
218
- background-position: left;
219
- }
220
-
221
- #archive_all .edit_images_bottom span a:hover {
222
- background-position: right;
223
- }
224
-
225
- #back_to_site {
226
- float: right;
227
- margin-right: 8px;
228
- }
229
-
230
- div#new_page_from_clipboard {
231
- @extend .hidden;
232
- }
233
-
234
- div#new_page_from_clipboard input.button {
235
- float: right;
236
- }
237
-
238
- div#new_page_from_clipboard span {
239
- float: left;
240
- line-height: 25px;
241
- }
242
-
243
- div#page_status_options {
244
- float: left;
245
- }
246
-
247
- div#page_editing_menu {
248
- overflow: auto;
249
- padding-left: 1px;
250
- padding-right: 1px;
251
- }
252
-
253
- #page_sorting_panel p {
254
- margin-top: 1em;
255
- }
256
-
257
170
  .handle {
258
171
  cursor: move;
259
172
  }
260
173
 
261
- .headline_text_editor {
262
- overflow: auto;
263
- width: 374px;
264
- }
265
-
266
- .short_content_text {
267
- width: 374px;
268
- background-color: white;
269
- margin-bottom: 10px;
270
- padding-bottom: 2px;
271
- padding-top: 2px;
272
- padding-left: 2px;
273
- float: none;
274
- }
275
-
276
- .short_content_text a {
277
- color: #000000;
278
- text-decoration: none;
279
- font-weight: bold;
280
- }
281
-
282
- .short_content_text a:hover {
283
- color: #000000;
284
- text-decoration: underline;
285
- }
286
-
287
- .picture_tool_assign_box {
288
- float: right;
289
- width: 105px;
290
- overflow: auto;
291
- padding: 1px;
292
- }
293
-
294
- /* @end */
295
-
296
- .short_picture {
297
- float: left
298
- }
299
-
300
- .short_element {
301
- margin-left: 20px;
302
- float: left;
303
- }
304
-
305
- .short_element input {
306
- width: 190px;
307
- float: left;
308
- font: 11px $default-font-face;
309
- }
310
-
311
- .dashed_border {
312
- border: 1px dashed;
313
- }
314
-
315
- ul#all_files {
316
- list-style-type: none;
317
- display: block;
318
- margin: 0;
319
- padding: 0;
320
- width: 100%;
321
- }
322
-
323
- img.image_in_text {
324
- position: relative;
325
- top: 3px;
326
- }
327
-
328
- div.right_checkbox {
329
- float: left;
330
- }
331
-
332
- div.all_rights {
333
- float: left;
334
- clear: both;
335
- margin-top: 10px;
336
- }
337
-
338
- .date_select_without_time #date_date_4i {
339
- @extend .hidden;
340
- }
341
-
342
- .date_select_without_time #date_date_5i {
343
- @extend .hidden;
344
- }
345
-
346
174
  .with_padding {
347
175
  padding: 2*$default-padding;
348
176
  }
349
177
 
350
178
  .with_margin {
351
- margin: 2*$default-padding;
352
- }
353
-
354
- div#images {
355
- margin-top: 16px;
356
- margin-bottom: 8px;
357
- overflow: visible;
358
- }
359
-
360
- .foot_note, form .input .hint {
361
- @include form-hint;
362
- }
363
-
364
- #all_files td.name a {
365
- @include zoom-in;
366
- }
367
-
368
- #sitemap .placeholder {
369
- background-color: $medium-gray;
370
- margin-bottom: 0px;
371
- margin-left: 22px;
372
- }
373
-
374
- #page_selector_scroll_container {
375
- position: relative;
376
- width: 100%;
377
- }
378
-
379
- #page_selector_container {
380
- height: 230px;
381
- background-color: $light-gray;
382
- margin-bottom: 4px;
383
- border: 1px inset #e8e8e8;
384
- overflow: auto;
385
- padding: 4px 0 0 4px;
386
- @extend %rounded-border;
387
- }
388
-
389
- #alchemyConfirmation .alchemy_window_buttons {
390
- display: block;
391
- text-align: right;
392
- margin-top: 8px;
393
- padding-right: 8px;
394
- }
395
-
396
- #alchemyConfirmation_content div.alchemy_window_message {
397
- padding: 2*$default-padding;
398
- }
399
-
400
- input.with_border {
401
- margin: 0;
402
- padding: 1px;
403
- font-size: 12px;
404
- border: 1px solid silver;
405
- }
406
-
407
- #image_edit div {
408
- height: 25px;
409
- }
410
-
411
- #image_edit div span {
412
- float: left;
413
- padding: 0;
414
- margin-right: 6px;
415
- height: 17px;
416
- line-height: 19px;
179
+ margin: 2*$default-margin;
417
180
  }
418
181
 
419
182
  a img {
420
183
  border-style: none;
421
184
  }
422
185
 
423
- #sitemap_external_links form {
424
- margin-left: 5px;
425
- margin-bottom: 4px;
426
- }
427
-
428
- input#link_to_text {
429
- border-width: 1px;
430
- font-size: 11px;
431
- line-height: 11px;
432
- width: 229px;
433
- }
434
-
435
- .link_window_tab_body {
436
- background-color: $light-gray;
437
- padding: 2*$default-padding;
438
- margin: 0;
439
- }
440
-
441
- .bordertop_white {
442
- border-top: 4px solid white;
443
- padding-top: 8px;
444
- padding-bottom: 8px;
445
- overflow: auto;
446
- float: none;
447
- }
448
-
449
- #external_link_table .padding_right {
450
- padding-right: 8px;
451
- }
452
-
453
- #external_link_table .external_address_input {
454
- width: 195px;
455
- }
456
-
457
- table.window_form td.checkbox {
458
- text-align: left;
459
- }
460
-
461
- select#url_protocol.medium {
462
- margin: 0;
463
- }
464
-
465
- #clipboard_items {
466
-
467
- ul {
468
- list-style-type: none;
469
- margin: 0 0 8px;
470
- padding: 0;
471
- height: 220px;
472
- overflow-y: auto;
473
- overflow-x: hidden;
474
-
475
- li {
476
- padding: 2*$default-padding;
477
- border: $default-border;
478
- background-color: white;
479
- @extend %rounded-border;
480
-
481
- &.elements {
482
- background-color: $medium-gray;
483
- }
484
-
485
- .icon {
486
- vertical-align: text-bottom;
487
- margin-right: $default-padding;
488
- }
489
-
490
- .float_right .icon {
491
- margin-right: 0;
492
- }
493
- }
494
- }
495
- }
496
-
497
- #trash_items {
498
- height: 310px;
499
- overflow-x: hidden;
500
- overflow-y: auto;
501
- margin-bottom: 1em;
502
- }
503
-
504
- .mceEditor table {
505
- border-spacing: 0 !important;
506
- }
507
-
508
- div.browse {
509
- margin-bottom: 1em;
510
- }
511
-
512
- #alchemy_preview_window {
513
- position: absolute;
514
- left: $main-menu-width;
515
- top: 75px;
516
- width: auto;
517
- height: auto;
518
- border: 0 none;
519
- background: #fff;
520
- border-right: $default-border;
521
- transition: 200ms ease-in-out;
522
-
523
- .collapsed-menu & {
524
- left: $collapsed-main-menu-width;
525
- }
526
- }
527
-
528
- #error_trace {
529
- border: $default-border;
530
- width: 80%;
531
- padding: $default-padding;
532
- overflow: auto;
533
- @extend %rounded-border;
534
- }
535
-
536
186
  .full_width {
537
187
  width: 100%;
538
188
  }
@@ -2,34 +2,31 @@ button, input[type="submit"], a.button, input.button {
2
2
  @include button-defaults;
3
3
  position: relative;
4
4
 
5
+ &.secondary {
6
+ background-color: $secondary-button-bg-color;
7
+ color: $secondary-button-text-color;
8
+ border-color: $secondary-button-border-color;
9
+ }
10
+
5
11
  &.small {
6
12
  padding: $default-padding 3*$default-padding;
7
13
  vertical-align: inherit;
8
14
  line-height: 4*$default-padding;
9
15
  font-size: inherit;
10
-
11
- &.with_icon {
12
- padding: $default-padding 3*$default-padding $default-padding 6px;
13
- }
14
16
  }
15
17
 
16
- &.with_icon {
17
- padding: 6px 18px 6px 6px;
18
-
19
- span.icon {
20
- margin-top: -$default-margin;
21
- margin-right: $default-margin;
22
- height: 14px;
23
- }
18
+ &.with_icon .icon {
19
+ position: relative;
20
+ top: -1px;
21
+ margin-right: $default-margin;
22
+ color: inherit;
24
23
  }
25
24
 
26
25
  &.icon_only {
27
26
  margin: 0;
28
27
  padding: 0;
29
28
  border: 0 none;
30
- box-shadow: none;
31
29
  background: none;
32
- border-radius: 0;
33
30
 
34
31
  .icon {
35
32
  margin: 0;
@@ -50,23 +47,8 @@ button, input[type="submit"], a.button, input.button {
50
47
  padding: 3px;
51
48
  overflow: hidden;
52
49
  text-align: center;
53
-
54
- .icon {
55
- display: inline-block;
56
- vertical-align: middle;
57
- margin-top: -2px;
58
- }
59
-
60
- .old_icon {
61
- position: relative;
62
- background-repeat: no-repeat;
63
- width: 22px;
64
- height: 20px;
65
- display: inline-block;
66
- vertical-align: middle;
67
- top: -1px;
68
- left: -1px;
69
- }
50
+ text-shadow: none;
51
+ border-radius: $default-border-radius;
70
52
 
71
53
  img {
72
54
  position: absolute;
@@ -85,37 +67,19 @@ button, input[type="submit"], a.button, input.button {
85
67
  top: 0px;
86
68
  background: none;
87
69
  border: none;
88
- box-shadow: none;
89
70
 
90
71
  .icon {
91
72
  position: absolute;
92
73
  top: 50%;
93
- height: 8px;
94
74
  transform: translateX(-50%) translateY(-50%);
95
-
96
- &:before {
97
- line-height: 10px;
98
- }
99
-
100
- &.delete-small {
101
- background-position: -4px -76px;
102
- }
75
+ transition: color 250ms;
103
76
  }
104
77
 
105
78
  &:hover {
106
- border: $default-border-width $default-border-style $button-hover-border-color;
107
- border-radius: $default-border-radius;
108
- background: $button-hover-bg-color;
109
- }
110
- }
111
-
112
- &.old_icon {
113
- width: 20px;
114
- height: 19px;
79
+ border: $default-border-width $default-border-style $icon-color;
80
+ color: $icon-color;
115
81
 
116
- img {
117
- top: 0;
118
- left: 1px;
82
+ .icon { color: inherit }
119
83
  }
120
84
  }
121
85
 
@@ -143,7 +107,6 @@ button, input[type="submit"], a.button, input.button {
143
107
  button.icon_button {
144
108
  background: transparent;
145
109
  border: 0 none;
146
- border-radius: 0;
147
110
  box-shadow: none;
148
111
 
149
112
  &:disabled, &.disabled {
@@ -169,14 +132,14 @@ button.icon_button {
169
132
  background-color: darken($white, 10%);
170
133
  border: $default-border;
171
134
  padding: 2px;
172
- @extend %rounded-border;
135
+ border-radius: $default-border-radius;
173
136
  }
174
137
  }
175
138
 
176
139
  &:hover .icon_button {
177
140
  border: $default-border;
178
141
  padding: 2px;
179
- @extend %rounded-border;
142
+ border-radius: $default-border-radius;
180
143
  cursor: pointer;
181
144
 
182
145
  &:focus {
@@ -215,15 +178,15 @@ button.icon_button {
215
178
  }
216
179
 
217
180
  label {
218
- @extend %rounded-border;
181
+ border-radius: $default-border-radius;
219
182
  position: absolute;
220
183
  visibility: hidden;
221
184
  top: -20px;
222
185
  left: 50%;
223
186
  margin-left: -13px;
224
187
  z-index: 30;
225
- background: $dark-gray;
226
- color: #fff;
188
+ background-color: $tooltip-background-color;
189
+ color: $white;
227
190
  padding: $default-padding 2*$default-padding;
228
191
  line-height: 1;
229
192
  box-shadow: 0 0 4px $default-border-color;
@@ -238,7 +201,7 @@ button.icon_button {
238
201
  bottom: -10px;
239
202
  left: 8px;
240
203
  border: 5px transparent solid;
241
- border-top-color: $dark-gray;
204
+ border-top-color: $tooltip-background-color;
242
205
  }
243
206
 
244
207
  &.center {