alchemy_cms 3.4.2 → 3.5.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +9 -3
  3. data/.teatro.yml +1 -0
  4. data/.travis.yml +14 -17
  5. data/CHANGELOG.md +44 -6
  6. data/Gemfile +7 -4
  7. data/README.md +60 -10
  8. data/Rakefile +1 -1
  9. data/alchemy_cms.gemspec +5 -8
  10. data/app/assets/javascripts/alchemy/admin.js +2 -0
  11. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +1 -0
  12. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +1 -0
  13. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +1 -1
  14. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +9 -7
  15. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +1 -0
  16. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +11 -7
  17. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +1 -1
  18. data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +8 -3
  19. data/app/assets/javascripts/alchemy/alchemy.tooltips.coffee +10 -0
  20. data/app/assets/javascripts/alchemy/alchemy.uploader.js.coffee +104 -73
  21. data/app/assets/stylesheets/alchemy/_defaults.scss +1 -4
  22. data/app/assets/stylesheets/alchemy/_extends.scss +13 -35
  23. data/app/assets/stylesheets/alchemy/_mixins.scss +82 -18
  24. data/app/assets/stylesheets/alchemy/_variables.scss +21 -8
  25. data/app/assets/stylesheets/alchemy/admin.scss +4 -0
  26. data/app/assets/stylesheets/alchemy/archive.scss +8 -12
  27. data/app/assets/stylesheets/alchemy/attachments.scss +39 -0
  28. data/app/assets/stylesheets/alchemy/base.scss +26 -15
  29. data/app/assets/stylesheets/alchemy/buttons.scss +59 -31
  30. data/app/assets/stylesheets/alchemy/dashboard.scss +3 -3
  31. data/app/assets/stylesheets/alchemy/dialogs.scss +10 -8
  32. data/app/assets/stylesheets/alchemy/elements.scss +65 -41
  33. data/app/assets/stylesheets/alchemy/errors.scss +7 -0
  34. data/app/assets/stylesheets/alchemy/flash.scss +1 -1
  35. data/app/assets/stylesheets/alchemy/form_fields.scss +0 -37
  36. data/app/assets/stylesheets/alchemy/forms.scss +18 -27
  37. data/app/assets/stylesheets/alchemy/frame.scss +104 -204
  38. data/app/assets/stylesheets/alchemy/hints.scss +62 -0
  39. data/app/assets/stylesheets/alchemy/icon-font.scss +2 -1
  40. data/app/assets/stylesheets/alchemy/icons.scss +9 -4
  41. data/app/assets/stylesheets/alchemy/image_library.scss +6 -6
  42. data/app/assets/stylesheets/alchemy/jquery-ui.scss +6 -4
  43. data/app/assets/stylesheets/alchemy/lists.scss +0 -1
  44. data/app/assets/stylesheets/alchemy/menubar.scss +3 -4
  45. data/app/assets/stylesheets/alchemy/modules.scss +0 -6
  46. data/app/assets/stylesheets/alchemy/navigation.scss +242 -0
  47. data/app/assets/stylesheets/alchemy/pagination.scss +3 -3
  48. data/app/assets/stylesheets/alchemy/print.scss +1 -0
  49. data/app/assets/stylesheets/alchemy/resource_info.scss +45 -0
  50. data/app/assets/stylesheets/alchemy/search.scss +72 -1
  51. data/app/assets/stylesheets/alchemy/selects.scss +38 -44
  52. data/app/assets/stylesheets/alchemy/sitemap.scss +89 -79
  53. data/app/assets/stylesheets/alchemy/tables.scss +6 -10
  54. data/app/assets/stylesheets/alchemy/toolbar.scss +7 -36
  55. data/app/assets/stylesheets/alchemy/upload.scss +12 -3
  56. data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +6 -3
  57. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.svg +58 -170
  58. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.ttf +0 -0
  59. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.woff +0 -0
  60. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.svg +124 -148
  61. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.ttf +0 -0
  62. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.woff +0 -0
  63. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +426 -144
  64. data/app/controllers/alchemy/admin/attachments_controller.rb +24 -16
  65. data/app/controllers/alchemy/admin/clipboard_controller.rb +1 -1
  66. data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -1
  67. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +9 -8
  68. data/app/controllers/alchemy/admin/layoutpages_controller.rb +1 -0
  69. data/app/controllers/alchemy/admin/pages_controller.rb +2 -2
  70. data/app/controllers/alchemy/admin/resources_controller.rb +2 -2
  71. data/app/controllers/alchemy/admin/tags_controller.rb +1 -1
  72. data/app/controllers/alchemy/api/pages_controller.rb +16 -0
  73. data/app/controllers/alchemy/messages_controller.rb +1 -1
  74. data/app/controllers/concerns/alchemy/admin/uploader_responses.rb +2 -2
  75. data/app/helpers/alchemy/admin/attachments_helper.rb +11 -0
  76. data/app/helpers/alchemy/admin/base_helper.rb +37 -4
  77. data/app/helpers/alchemy/admin/contents_helper.rb +11 -4
  78. data/app/helpers/alchemy/admin/elements_helper.rb +0 -19
  79. data/app/helpers/alchemy/admin/essences_helper.rb +7 -30
  80. data/app/helpers/alchemy/admin/navigation_helper.rb +13 -51
  81. data/app/helpers/alchemy/admin/pages_helper.rb +21 -16
  82. data/app/helpers/alchemy/admin/pictures_helper.rb +9 -0
  83. data/app/helpers/alchemy/deprecated_pages_helper.rb +54 -0
  84. data/app/helpers/alchemy/essences_helper.rb +1 -1
  85. data/app/helpers/alchemy/pages_helper.rb +8 -109
  86. data/app/helpers/alchemy/url_helper.rb +8 -13
  87. data/app/models/alchemy/attachment.rb +7 -4
  88. data/app/models/alchemy/cell.rb +2 -2
  89. data/app/models/alchemy/content.rb +2 -2
  90. data/app/models/alchemy/content/factory.rb +12 -9
  91. data/app/models/alchemy/element.rb +6 -3
  92. data/app/models/alchemy/essence_file.rb +1 -1
  93. data/app/models/alchemy/essence_picture.rb +37 -47
  94. data/app/models/alchemy/essence_picture_view.rb +8 -1
  95. data/app/models/alchemy/folded_page.rb +3 -2
  96. data/app/models/alchemy/legacy_page_url.rb +3 -3
  97. data/app/models/alchemy/page.rb +50 -5
  98. data/app/models/alchemy/page/fixed_attributes.rb +63 -0
  99. data/app/models/alchemy/page/page_elements.rb +10 -7
  100. data/app/models/alchemy/page/page_natures.rb +19 -0
  101. data/app/models/alchemy/picture.rb +1 -0
  102. data/app/models/alchemy/picture/transformations.rb +1 -1
  103. data/app/models/alchemy/picture/url.rb +82 -0
  104. data/app/serializers/alchemy/page_tree_serializer.rb +29 -8
  105. data/app/views/alchemy/_edit_mode.html.erb +2 -0
  106. data/app/views/alchemy/_menubar.html.erb +1 -1
  107. data/app/views/alchemy/_preview_mode_code.html.erb +6 -0
  108. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
  109. data/app/views/alchemy/admin/attachments/_attachment.html.erb +25 -5
  110. data/app/views/alchemy/admin/attachments/_replace_button.html.erb +26 -0
  111. data/app/views/alchemy/admin/attachments/index.html.erb +1 -1
  112. data/app/views/alchemy/admin/attachments/show.html.erb +52 -0
  113. data/app/views/alchemy/admin/elements/_element_header.html.erb +6 -3
  114. data/app/views/alchemy/admin/elements/create.js.erb +0 -2
  115. data/app/views/alchemy/admin/elements/trash.js.erb +0 -1
  116. data/app/views/alchemy/admin/elements/update.js.erb +0 -2
  117. data/app/views/alchemy/admin/essence_pictures/crop.html.erb +1 -4
  118. data/app/views/alchemy/admin/essence_pictures/edit.html.erb +1 -1
  119. data/app/views/alchemy/admin/languages/index.html.erb +1 -0
  120. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +26 -27
  121. data/app/views/alchemy/admin/layoutpages/edit.html.erb +1 -1
  122. data/app/views/alchemy/admin/pages/_form.html.erb +13 -40
  123. data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
  124. data/app/views/alchemy/admin/pages/_page.html.erb +119 -61
  125. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +4 -2
  126. data/app/views/alchemy/admin/pages/_page_infos.html.erb +12 -12
  127. data/app/views/alchemy/admin/pages/_page_status.html.erb +1 -1
  128. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +35 -0
  129. data/app/views/alchemy/admin/pages/edit.html.erb +13 -2
  130. data/app/views/alchemy/admin/pages/index.html.erb +3 -8
  131. data/app/views/alchemy/admin/pages/info.html.erb +15 -2
  132. data/app/views/alchemy/admin/pages/sort.js.erb +1 -1
  133. data/app/views/alchemy/admin/pages/update.js.erb +1 -14
  134. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +12 -8
  135. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +4 -4
  136. data/app/views/alchemy/admin/partials/_search_form.html.erb +1 -1
  137. data/app/views/alchemy/admin/partials/_sub_navigation.html.erb +9 -6
  138. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +1 -1
  139. data/app/views/alchemy/admin/pictures/_picture.html.erb +1 -6
  140. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +1 -6
  141. data/app/views/alchemy/admin/pictures/index.html.erb +1 -1
  142. data/app/views/alchemy/admin/pictures/show.html.erb +1 -6
  143. data/app/views/alchemy/admin/uploader/_button.html.erb +4 -4
  144. data/app/views/alchemy/base/500.html.erb +15 -1
  145. data/app/views/alchemy/essences/_essence_boolean_editor.html.erb +13 -15
  146. data/app/views/alchemy/essences/_essence_boolean_view.html.erb +1 -3
  147. data/app/views/alchemy/essences/_essence_date_editor.html.erb +0 -2
  148. data/app/views/alchemy/essences/_essence_date_view.html.erb +0 -2
  149. data/app/views/alchemy/essences/_essence_file_editor.html.erb +2 -7
  150. data/app/views/alchemy/essences/_essence_file_view.html.erb +1 -3
  151. data/app/views/alchemy/essences/_essence_html_editor.html.erb +0 -2
  152. data/app/views/alchemy/essences/_essence_html_view.html.erb +1 -3
  153. data/app/views/alchemy/essences/_essence_link_editor.html.erb +0 -2
  154. data/app/views/alchemy/essences/_essence_link_view.html.erb +0 -2
  155. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +47 -49
  156. data/app/views/alchemy/essences/_essence_picture_view.html.erb +1 -3
  157. data/app/views/alchemy/essences/_essence_richtext_editor.html.erb +0 -2
  158. data/app/views/alchemy/essences/_essence_richtext_view.html.erb +1 -3
  159. data/app/views/alchemy/essences/_essence_select_editor.html.erb +27 -29
  160. data/app/views/alchemy/essences/_essence_select_view.html.erb +1 -3
  161. data/app/views/alchemy/essences/_essence_text_editor.html.erb +17 -19
  162. data/app/views/alchemy/essences/_essence_text_view.html.erb +0 -2
  163. data/app/views/alchemy/pages/_meta_data.html.erb +9 -0
  164. data/app/views/layouts/alchemy/admin.html.erb +9 -11
  165. data/bin/alchemy +1 -2
  166. data/config/alchemy/config.yml +1 -1
  167. data/config/alchemy/modules.yml +0 -16
  168. data/config/initializers/dragonfly.rb +0 -18
  169. data/config/initializers/mini_profiler.rb +6 -0
  170. data/config/locales/alchemy.de.yml +9 -1
  171. data/config/locales/alchemy.en.yml +7 -1
  172. data/config/locales/alchemy.es.yml +6 -0
  173. data/config/locales/alchemy.fr.yml +2 -0
  174. data/config/locales/alchemy.it.yml +3 -1
  175. data/config/locales/alchemy.nl.yml +2 -0
  176. data/config/locales/alchemy.ru.yml +2 -0
  177. data/config/routes.rb +3 -8
  178. data/db/migrate/20160912223112_add_index_to_alchemy_pages_rgt.rb +9 -0
  179. data/db/migrate/20160927205604_add_foreign_key_indices_and_null_constraints.rb +20 -0
  180. data/db/migrate/20160928080104_add_foreign_keys.rb +27 -0
  181. data/lib/alchemy/admin/locale.rb +4 -3
  182. data/lib/alchemy/engine.rb +2 -4
  183. data/lib/alchemy/errors.rb +9 -2
  184. data/lib/alchemy/forms/builder.rb +8 -0
  185. data/lib/alchemy/modules.rb +20 -19
  186. data/lib/alchemy/permissions.rb +15 -4
  187. data/lib/alchemy/resources_helper.rb +4 -2
  188. data/lib/alchemy/sass_support.rb +9 -0
  189. data/lib/alchemy/seeder.rb +89 -1
  190. data/lib/alchemy/test_support/essence_shared_examples.rb +2 -0
  191. data/lib/alchemy/test_support/factories/attachment_factory.rb +1 -1
  192. data/lib/alchemy/test_support/factories/content_factory.rb +1 -0
  193. data/lib/alchemy/test_support/factories/element_factory.rb +1 -0
  194. data/lib/alchemy/test_support/factories/picture_factory.rb +1 -1
  195. data/lib/alchemy/test_support/fixtures/image.png +0 -0
  196. data/lib/alchemy/tinymce.rb +2 -6
  197. data/lib/alchemy/upgrader.rb +4 -55
  198. data/lib/alchemy/upgrader/tasks/install_dragonfly_config.rb +14 -0
  199. data/lib/alchemy/upgrader/three_point_five.rb +32 -0
  200. data/lib/alchemy/upgrader/three_point_four.rb +2 -8
  201. data/lib/alchemy/upgrader/three_point_one.rb +30 -30
  202. data/lib/alchemy/upgrader/three_point_three.rb +31 -31
  203. data/lib/alchemy/upgrader/three_point_two.rb +25 -25
  204. data/lib/alchemy/upgrader/three_point_zero.rb +59 -59
  205. data/lib/alchemy/version.rb +1 -1
  206. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +1 -1
  207. data/lib/rails/generators/alchemy/elements/templates/view.html.haml +1 -1
  208. data/lib/rails/generators/alchemy/elements/templates/view.html.slim +1 -1
  209. data/lib/rails/generators/alchemy/essence/templates/editor.html.erb +1 -3
  210. data/lib/rails/generators/alchemy/install/files/_article_view.html.erb +1 -1
  211. data/lib/rails/generators/alchemy/install/files/application.html.erb +3 -4
  212. data/lib/rails/generators/alchemy/install/install_generator.rb +4 -0
  213. data/lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt +35 -0
  214. data/lib/rails/generators/alchemy/module/module_generator.rb +1 -1
  215. data/lib/tasks/alchemy/db.rake +6 -0
  216. data/lib/tasks/alchemy/tidy.rake +85 -0
  217. data/lib/tasks/alchemy/upgrade.rake +165 -16
  218. data/vendor/assets/javascripts/clipboard.min.js +7 -0
  219. data/vendor/assets/javascripts/fileupload/jquery.fileupload-process.js +4 -4
  220. data/vendor/assets/javascripts/fileupload/jquery.fileupload-validate.js +2 -2
  221. data/vendor/assets/javascripts/fileupload/jquery.fileupload.js +29 -14
  222. data/vendor/assets/javascripts/fileupload/jquery.iframe-transport.js +2 -2
  223. data/vendor/assets/javascripts/tinymce/langs/es.js +2 -2
  224. data/vendor/assets/javascripts/tinymce/langs/fr.js +1 -1
  225. data/vendor/assets/javascripts/tinymce/langs/it.js +1 -1
  226. data/vendor/assets/javascripts/tinymce/langs/nl.js +3 -3
  227. data/vendor/assets/javascripts/tinymce/tinymce.min.js +15 -12
  228. metadata +44 -88
  229. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/readme.md +0 -1
  230. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.eot +0 -0
  231. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.eot +0 -0
  232. data/app/assets/stylesheets/tinymce/skins/alchemy/img/wline.gif +0 -0
  233. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.ie7.min.css +0 -1
  234. data/app/controllers/alchemy/pictures_controller.rb +0 -97
  235. data/app/views/alchemy/admin/elements/_refresh_editor.js.erb +0 -8
  236. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.min.js +0 -1
  237. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.min.js +0 -1
  238. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.min.js +0 -1
  239. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.min.js +0 -1
  240. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.min.js +0 -1
  241. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  242. data/vendor/assets/javascripts/tinymce/plugins/hr/plugin.min.js +0 -1
  243. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.min.js +0 -1
  244. data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.min.js +0 -1
  245. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.min.js +0 -1
  246. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.min.js +0 -1
  247. data/vendor/assets/javascripts/tinymce/themes/modern/theme.min.js +0 -1
@@ -1,4 +1,5 @@
1
1
  $text-color: #333333;
2
+ $muted-text-color: rgba(0, 0, 0, 0.5);
2
3
  $light-blue: #cddce5; // #c6dbe7
3
4
  $blue: darken($light-blue, 15%);
4
5
  $very-light-blue: lighten($light-blue, 12%);
@@ -23,25 +24,25 @@ $default-padding: 4px;
23
24
  $default-margin: $default-padding;
24
25
 
25
26
  $default-border-color: #afafaf;
27
+ $border-inset-color: lighten($default-border-color, 20%);
26
28
  $default-border-width: 1px;
27
29
  $default-border-style: solid;
28
30
  $default-border: $default-border-width $default-border-style $default-border-color;
29
31
  $default-border-radius: 3px;
32
+ $default-form-field-margin: $default-margin 0;
33
+ $default-form-field-height: 29px;
30
34
 
31
35
  $button-bg-color: #f7f7f7;
32
36
  $button-hover-bg-color: #e6f0f5;
33
37
  $button-border-color: #9a9a9a;
34
38
  $button-hover-border-color: #888888;
35
39
  $button-text-shadow: $white 1px 1px 0;
40
+ $button-gradient-first-color: $white !default;
41
+ $button-gradient-second-color: darken($button-gradient-first-color, 10%) !default;
42
+ $button-padding: 0.5em 1.5em !default;
43
+ $button-margin: $default-form-field-margin !default;
36
44
  $linked-button-color: #ffd77a;
37
45
 
38
- $sb-base-color: $white;
39
- $sb-border-radius: $default-border-radius;
40
- $sb-font-size: $default-font-size;
41
- $sb-text-color: $text-color;
42
- $sb-ie-support: true;
43
- $default-form-field-margin: $default-padding 0;
44
-
45
46
  $success_border_color: #9cc4a1;
46
47
  $success_text_color: #2e5934;
47
48
  $success_background_color: #e2efd3;
@@ -60,4 +61,16 @@ $error_background_color: #efd3d3;
60
61
 
61
62
  $form-left-width: 35%;
62
63
  $form-right-width: 65%;
63
- $sitemap-line-height: 24px;
64
+ $sitemap-line-height: 32px;
65
+
66
+ $main-menu-width: 150px !default;
67
+ $collapsed-main-menu-width: 48px !default;
68
+ $main-menu-bg-color: #baced9 !default;
69
+ $main-menu-active-bg-color: $light-blue !default;
70
+ $main-menu-text-color: #222 !default;
71
+ $main-menu-entry-max-width: 100px !default;
72
+ $toolbar-bg-color: $medium-gray !default;
73
+ $header-height: 29px !default;
74
+ $text-shadow-light: rgba($white, 0.5) 0 0 4px !default;
75
+ $transition-duration: 200ms !default;
76
+ $transition-easing: linear !default;
@@ -6,6 +6,8 @@
6
6
 
7
7
  @import "alchemy/defaults";
8
8
  @import "alchemy/archive";
9
+ @import "alchemy/navigation";
10
+ @import "alchemy/attachments";
9
11
  @import "alchemy/base";
10
12
  @import "alchemy/buttons";
11
13
  @import "alchemy/dialogs";
@@ -17,11 +19,13 @@
17
19
  @import "alchemy/forms";
18
20
  @import "alchemy/form_fields";
19
21
  @import "alchemy/frame";
22
+ @import "alchemy/hints";
20
23
  @import "alchemy/icons";
21
24
  @import "alchemy/image_library";
22
25
  @import "alchemy/modules";
23
26
  @import "alchemy/notices";
24
27
  @import "alchemy/pagination";
28
+ @import "alchemy/resource_info";
25
29
  @import "alchemy/search";
26
30
  @import "alchemy/selects";
27
31
  @import "alchemy/sitemap";
@@ -6,7 +6,7 @@ div#image_assign_filter_and_image_sizing {
6
6
  #picture_archive {
7
7
 
8
8
  .selected_item_tools {
9
- margin: -4*$default-padding;
9
+ margin: -2*$default-padding;
10
10
  border-bottom: 1px solid $default-border-color;
11
11
  margin-bottom: 4*$default-padding;
12
12
  padding: 4*$default-padding;
@@ -19,7 +19,6 @@ div#image_assign_filter_and_image_sizing {
19
19
  margin: 2px 1px 2px 2px;
20
20
  background-color: #fff;
21
21
  float: none;
22
- display: inline;
23
22
  display: inline-block;
24
23
  border: 1px solid #c0c0c0;
25
24
  position: relative;
@@ -114,11 +113,7 @@ div#image_assign_filter_and_image_sizing {
114
113
  float: none;
115
114
 
116
115
  .thumbnail_background {
117
- cursor: -webkit-zoom-in;
118
- cursor: -moz-zoom-in;
119
- cursor: -ms-zoom-in;
120
- cursor: -o-zoom-in;
121
- cursor: image-url('alchemy/lupe.cur'), zoom-in, pointer;
116
+ @include zoom-in;
122
117
  }
123
118
  }
124
119
  }
@@ -177,7 +172,7 @@ div.assign_image_list_image {
177
172
  }
178
173
 
179
174
  div#library_sidebar {
180
- @include box-sizing(border-box);
175
+ box-sizing: border-box;
181
176
  position: fixed;
182
177
  border-left: 1px solid $default-border-color;
183
178
  top: 0;
@@ -206,7 +201,7 @@ div#filter_bar {
206
201
  }
207
202
 
208
203
  .tag-list {
209
- @include box-sizing(border-box);
204
+ box-sizing: border-box;
210
205
  height: 100%;
211
206
  padding-bottom: 138px;
212
207
 
@@ -242,7 +237,7 @@ div#filter_bar {
242
237
  }
243
238
 
244
239
  ul {
245
- @include box-sizing(border-box);
240
+ box-sizing: border-box;
246
241
  list-style-type: none;
247
242
  padding: 0;
248
243
  margin: 40px 0 4px 0;
@@ -344,7 +339,7 @@ div#filter_bar {
344
339
  }
345
340
 
346
341
  .picture_tags {
347
- @include box-sizing(border-box);
342
+ box-sizing: border-box;
348
343
  width: 50%;
349
344
  max-height: 100%;
350
345
  position: absolute;
@@ -360,7 +355,8 @@ div#filter_bar {
360
355
  }
361
356
 
362
357
  .tag {
363
- @include inline-block;
358
+ display: inline-block;
359
+ vertical-align: middle;
364
360
  @extend %rounded-border;
365
361
  padding: $default-padding 2*$default-padding $default-padding 4*$default-padding;
366
362
  margin: $default-margin/2 0;
@@ -0,0 +1,39 @@
1
+ .attachment_preview_container {
2
+ background-color: $medium-gray;
3
+ margin-top: 12px;
4
+
5
+ audio, video {
6
+ display: block;
7
+ }
8
+
9
+ &.image-preview {
10
+ height: 300px;
11
+ text-align: center;
12
+ padding: 2*$default-padding;
13
+ white-space: nowrap;
14
+
15
+ &:before {
16
+ content: '';
17
+ display: inline-block;
18
+ height: 100%;
19
+ vertical-align: middle;
20
+ margin-right: -0.25em;
21
+ }
22
+
23
+ img.full_width {
24
+ display: inline-block;
25
+ width: auto;
26
+ height: auto;
27
+ max-width: 100%;
28
+ max-height: 100%;
29
+ vertical-align: middle;
30
+ }
31
+ }
32
+ }
33
+
34
+ .full-iframe {
35
+ width: 100%;
36
+ background-color: white;
37
+ min-height: 335px;
38
+ margin-top: 12px;
39
+ }
@@ -1,7 +1,8 @@
1
1
  html {
2
2
  height: 100%;
3
3
 
4
- &.turbolinks-progress-bar::before {
4
+ &.turbolinks-progress-bar::before,
5
+ .turbolinks-progress-bar {
5
6
  background-color: $blue !important;
6
7
  height: 3px !important;
7
8
  z-index: 400001;
@@ -52,7 +53,7 @@ h1 {
52
53
  position: fixed;
53
54
  width: 100%;
54
55
  top: 75px;
55
- left: 74px;
56
+ left: $main-menu-width + 9px;
56
57
  z-index: 2;
57
58
  margin: 0 -8px;
58
59
  padding: 16px;
@@ -115,7 +116,7 @@ ul {
115
116
  hr {
116
117
  border: 0 none;
117
118
  border-bottom: 1px solid;
118
- @include opacity(0.5);
119
+ opacity: 0.5;
119
120
  }
120
121
 
121
122
  .float_right { float: right }
@@ -158,7 +159,7 @@ kbd {
158
159
  }
159
160
 
160
161
  .bottom-left-rounded-border {
161
- @include border-bottom-left-radius($default-border-radius);
162
+ border-bottom-left-radius: $default-border-radius;
162
163
  }
163
164
 
164
165
  .disable-user-select {
@@ -166,7 +167,7 @@ kbd {
166
167
  }
167
168
 
168
169
  .border-box-sizing {
169
- @include box-sizing(border-box);
170
+ box-sizing: border-box;
170
171
  }
171
172
 
172
173
  span.updated_at {
@@ -230,7 +231,7 @@ div#page {
230
231
  }
231
232
 
232
233
  div#new_page_from_clipboard {
233
- display: none;
234
+ @extend .hidden;
234
235
  }
235
236
 
236
237
  div#new_page_from_clipboard input.button {
@@ -338,11 +339,11 @@ div.all_rights {
338
339
  }
339
340
 
340
341
  .date_select_without_time #date_date_4i {
341
- display: none;
342
+ @extend .hidden;
342
343
  }
343
344
 
344
345
  .date_select_without_time #date_date_5i {
345
- display: none;
346
+ @extend .hidden;
346
347
  }
347
348
 
348
349
  .with_padding {
@@ -364,10 +365,7 @@ div#images {
364
365
  }
365
366
 
366
367
  #all_files td.name a {
367
- cursor: -webkit-zoom-in;
368
- cursor: -moz-zoom-in;
369
- cursor: -o-zoom-in;
370
- cursor: zoom-in;
368
+ @include zoom-in;
371
369
  }
372
370
 
373
371
  #sitemap .placeholder {
@@ -515,15 +513,20 @@ div.browse {
515
513
  }
516
514
 
517
515
  #alchemy_preview_window {
518
- @include box-sizing(border-box);
516
+ box-sizing: border-box;
519
517
  position: absolute;
520
- left: 66px;
521
- top: 73px;
518
+ left: $main-menu-width;
519
+ top: 75px;
522
520
  width: auto;
523
521
  height: auto;
524
522
  border: 0 none;
525
523
  background: #fff;
524
+ border-right: $default-border;
526
525
  @include transition(200ms ease-in-out);
526
+
527
+ .collapsed-menu & {
528
+ left: $collapsed-main-menu-width;
529
+ }
527
530
  }
528
531
 
529
532
  #error_trace {
@@ -534,6 +537,14 @@ div.browse {
534
537
  @extend %rounded-border;
535
538
  }
536
539
 
540
+ .full_width {
541
+ width: 100%;
542
+ }
543
+
544
+ .hidden {
545
+ display: none;
546
+ }
547
+
537
548
  @-moz-keyframes spin {
538
549
  from { -moz-transform: rotate(0deg); }
539
550
  to { -moz-transform: rotate(360deg); }
@@ -26,29 +26,23 @@ button, input[type="submit"], a.button, input.button {
26
26
  margin: 0;
27
27
  padding: 0;
28
28
  border: 0 none;
29
- @include box-shadow(none);
29
+ box-shadow: none;
30
30
  @include background(none);
31
- @include border-radius(0);
31
+ border-radius: 0;
32
32
 
33
33
  .icon {
34
34
  margin: 0;
35
35
  }
36
36
  }
37
37
 
38
- &:focus {
39
- @extend %blue-focus-style;
40
- }
41
-
42
38
  &.disabled {
43
39
  line-height: 13px;
44
40
  height: 29px;
45
- padding-top: 5px;
46
- padding-bottom: 4px;
47
41
  }
48
42
  }
49
43
 
50
44
  .icon_button {
51
- @include box-sizing(border-box);
45
+ box-sizing: border-box;
52
46
  width: 27px;
53
47
  height: 27px;
54
48
  line-height: 21px;
@@ -63,7 +57,8 @@ button, input[type="submit"], a.button, input.button {
63
57
  }
64
58
 
65
59
  .icon {
66
- @include inline-block;
60
+ display: inline-block;
61
+ vertical-align: middle;
67
62
  margin-top: -2px;
68
63
  }
69
64
 
@@ -72,7 +67,8 @@ button, input[type="submit"], a.button, input.button {
72
67
  background-repeat: no-repeat;
73
68
  width: 22px;
74
69
  height: 20px;
75
- @include inline-block;
70
+ display: inline-block;
71
+ vertical-align: middle;
76
72
  top: -1px;
77
73
  left: -1px;
78
74
  }
@@ -88,12 +84,13 @@ button, input[type="submit"], a.button, input.button {
88
84
  height: 15px;
89
85
  padding: 0;
90
86
  float: none;
91
- @include inline-block;
87
+ display: inline-block;
88
+ vertical-align: middle;
92
89
  position: relative;
93
90
  top: 0px;
94
91
  background: none;
95
92
  border: none;
96
- @include box-shadow(none);
93
+ box-shadow: none;
97
94
 
98
95
  .icon {
99
96
  position: absolute;
@@ -112,7 +109,7 @@ button, input[type="submit"], a.button, input.button {
112
109
 
113
110
  &:hover {
114
111
  border: $default-border-width $default-border-style $button-hover-border-color;
115
- @include border-radius($default-border-radius);
112
+ border-radius: $default-border-radius;
116
113
  background: $button-hover-bg-color;
117
114
  }
118
115
  }
@@ -130,15 +127,12 @@ button, input[type="submit"], a.button, input.button {
130
127
  &.disabled {
131
128
 
132
129
  span {
133
- position: relative;
134
- @include opacity(0.3);
135
- cursor: default;
130
+ opacity: 0.3;
131
+ cursor: not-allowed;
136
132
  }
137
133
 
138
134
  &:hover {
139
- background-color: #d3d3d3;
140
- border: 1px solid $button-border-color;
141
- cursor: default;
135
+ cursor: not-allowed;
142
136
  }
143
137
  }
144
138
 
@@ -154,8 +148,8 @@ button, input[type="submit"], a.button, input.button {
154
148
  button.icon_button {
155
149
  background: transparent;
156
150
  border: 0 none;
157
- @include border-radius(0);
158
- @include box-shadow(none);
151
+ border-radius: 0;
152
+ box-shadow: none;
159
153
 
160
154
  &:disabled, &.disabled {
161
155
  background: transparent;
@@ -168,7 +162,8 @@ button.icon_button {
168
162
 
169
163
  .button_with_label {
170
164
  position: relative;
171
- @include inline-block(top);
165
+ display: inline-block;
166
+ vertical-align: top;
172
167
  text-align: center;
173
168
  margin: 0 2*$default-margin;
174
169
  line-height: 0;
@@ -176,7 +171,7 @@ button.icon_button {
176
171
  &.active, &:active {
177
172
 
178
173
  .icon_button {
179
- background-color: darken($sb-base-color, 10%);
174
+ background-color: darken($white, 10%);
180
175
  border: $default-border;
181
176
  padding: 2px;
182
177
  @extend %rounded-border;
@@ -205,12 +200,13 @@ button.icon_button {
205
200
  float: none;
206
201
  margin-right: auto;
207
202
  margin-left: auto;
208
- @include inline-block;
203
+ display: inline-block;
204
+ vertical-align: middle;
209
205
  position: relative;
210
206
  }
211
207
 
212
208
  &.disabled {
213
- @include opacity(0.5);
209
+ opacity: 0.5;
214
210
  cursor: default;
215
211
  }
216
212
  }
@@ -224,20 +220,22 @@ button.icon_button {
224
220
  }
225
221
 
226
222
  label {
227
- display: none;
223
+ @extend %rounded-border;
228
224
  position: absolute;
229
- top: -25px;
225
+ visibility: hidden;
226
+ top: -20px;
230
227
  left: 50%;
231
228
  margin-left: -13px;
232
229
  z-index: 30;
233
230
  background: $dark-gray;
234
231
  color: #fff;
235
232
  padding: $default-padding 2*$default-padding;
236
- @extend %rounded-border;
237
233
  line-height: 1;
238
- @include box-shadow(0 0 4px $default-border-color);
234
+ box-shadow: 0 0 4px $default-border-color;
239
235
  white-space: nowrap;
240
236
  pointer-events: none;
237
+ opacity: 0;
238
+ transition: .3s;
241
239
 
242
240
  &:before {
243
241
  content: '';
@@ -248,6 +246,31 @@ button.icon_button {
248
246
  border-top-color: $dark-gray;
249
247
  }
250
248
 
249
+ &.center {
250
+ left: auto;
251
+ right: 50%;
252
+ margin-left: 0;
253
+ transform: translateX(50%);
254
+
255
+ &:before {
256
+ left: auto;
257
+ right: 50%;
258
+ transform: translateX(50%);
259
+ }
260
+ }
261
+
262
+ &.left {
263
+ left: auto;
264
+ right: 50%;
265
+ margin-left: 0;
266
+ margin-right: -13px;
267
+
268
+ &:before {
269
+ left: auto;
270
+ right: 8px;
271
+ }
272
+ }
273
+
251
274
  &.right-aligned {
252
275
  left: auto;
253
276
  margin-left: auto;
@@ -261,5 +284,10 @@ button.icon_button {
261
284
  }
262
285
  }
263
286
 
264
- &:hover label { display: block }
287
+ &:hover label {
288
+ visibility: visible;
289
+ opacity: 1;
290
+ top: -25px;
291
+ transition-delay: .2s;
292
+ }
265
293
  }