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
@@ -4,7 +4,37 @@
4
4
  height: 29px;
5
5
  }
6
6
 
7
- .search_field_clear, .js_filter_field_clear {
7
+ .search_field .icon,
8
+ .js_filter_field_box .icon {
9
+ position: absolute;
10
+ left: 8px;
11
+ top: 8px;
12
+ }
13
+
14
+ .js_filter_field_box {
15
+ position: absolute;
16
+ right: 4px;
17
+ top: 8px;
18
+
19
+ .js_filter_field {
20
+ width: 220px;
21
+ text-align: left;
22
+ border-radius: $default-border-radius;
23
+ padding: 3px 24px 3px 28px;
24
+ height: 29px;
25
+ margin: 0;
26
+ }
27
+
28
+ label {
29
+ font-size: 10px;
30
+ display: block;
31
+ text-align: center;
32
+ padding-top: 3px;
33
+ }
34
+ }
35
+
36
+ .search_field_clear,
37
+ .js_filter_field_clear {
8
38
  display: none;
9
39
  width: 16px;
10
40
  height: 16px;
@@ -71,3 +101,44 @@
71
101
  right: 4px;
72
102
  }
73
103
  }
104
+
105
+ #toolbar,
106
+ #overlay_toolbar {
107
+
108
+ .search_form,
109
+ .js_filter_field_box {
110
+ position: absolute;
111
+ top: 0;
112
+ right: 0;
113
+ height: 45px;
114
+ }
115
+
116
+ .search_field {
117
+ height: inherit;
118
+ }
119
+
120
+ .search_input_field {
121
+ width: 150px;
122
+ height: inherit;
123
+ border: none;
124
+ background-color: rgba(255, 255, 255, 0.5);
125
+ transition: width $transition-duration ease-in-out;
126
+ border-radius: 0;
127
+ padding: 8px 16px 8px 32px;
128
+ margin: 0;
129
+ text-align: left;
130
+ box-shadow: none;
131
+ -webkit-appearance: none;
132
+
133
+ &:focus {
134
+ width: 250px;
135
+ }
136
+ }
137
+
138
+ .search_field .icon,
139
+ .js_filter_field_box .icon,
140
+ .search_field_clear,
141
+ .js_filter_field_clear {
142
+ top: 16px;
143
+ }
144
+ }
@@ -3,6 +3,7 @@ select {
3
3
  height: 29px;
4
4
  padding: 0.4em 0.6em;
5
5
  max-width: 100%;
6
+ width: auto;
6
7
  }
7
8
 
8
9
  .select2-container {
@@ -14,10 +15,10 @@ select {
14
15
  .select2-choice {
15
16
  height: 27px;
16
17
  line-height: 27px;
17
- @include sassy-button-gradient('simple', $sb-base-color, $sb-second-color, $sb-text-color, $sb-text-style, $sb-pseudo-states);
18
- border-color: $button-border-color;
18
+ @include button-defaults($padding: 0 2*$default-padding, $margin: 0);
19
+ display: block;
20
+ font-weight: normal;
19
21
  text-align: left;
20
- border-radius: $default-border-radius;
21
22
 
22
23
  .select2-arrow {
23
24
  top: 2px;
@@ -46,44 +47,42 @@ select {
46
47
  }
47
48
  }
48
49
 
49
- &.tiny {
50
+ &.medium {
51
+ width: 90px;
52
+ }
50
53
 
51
- .select2-choice {
52
- height: 18px;
53
- line-height: 18px;
54
+ &.select2-container-active {
54
55
 
55
- .select2-arrow {
56
- width: 14px;
57
- height: 14px;
58
-
59
- b {
60
- line-height: 4px;
61
- width: 12px;
62
- font-size: 10px;
63
-
64
- &:before {
65
- top: 0px;
66
- left: 0px;
67
- }
68
- }
69
- }
56
+ .select2-choice, .select2-choices {
57
+ @extend %blue-focus-style;
70
58
  }
59
+ }
60
+
61
+ &.select2-container-disabled {
71
62
 
72
- &.select2-dropdown-open {
73
- .select2-choice .select2-arrow b {
74
- background-position: -20px -5px;
63
+ &:hover {
64
+ + .with-hint > .hint-bubble {
65
+ @include hint-hover-style;
66
+ top: 10px;
75
67
  }
76
68
  }
77
- }
78
69
 
79
- &.medium {
80
- width: 90px;
81
- }
70
+ + .with-hint > .hint-bubble {
71
+ top: 0;
72
+ }
82
73
 
83
- &.select2-container-active {
74
+ .select2-choice, .select2-choice:hover {
75
+ background-image: none;
76
+ background-color: $light-gray;
77
+ box-shadow: none;
78
+ border-color: $border-inset-color;
79
+ cursor: not-allowed;
84
80
 
85
- .select2-choice, .select2-choices {
86
- @extend %blue-focus-style;
81
+ .select2-arrow {
82
+ border-color: $border-inset-color;
83
+
84
+ b { color: $border-inset-color; }
85
+ }
87
86
  }
88
87
  }
89
88
  }
@@ -108,7 +107,7 @@ select {
108
107
  padding: 4px 24px 4px 8px;
109
108
  background-image: none;
110
109
  border: 0 none;
111
- @include box-shadow(none);
110
+ box-shadow: none;
112
111
  }
113
112
 
114
113
  .select2-search-choice-close {
@@ -198,7 +197,7 @@ select {
198
197
  }
199
198
 
200
199
  &.select2-drop-active {
201
- @include border-radius($default-border-radius);
200
+ border-radius: $default-border-radius;
202
201
  border: 1px solid $blue;
203
202
  }
204
203
  }
@@ -212,18 +211,13 @@ select {
212
211
 
213
212
  .select_with_label {
214
213
  margin: 0 3*$default-margin;
215
- @include inline-block(top);
216
-
217
- label, form {
218
- @include inline-block;
219
- }
220
-
221
- select { margin: 0; }
214
+ display: inline-block;
215
+ vertical-align: middle;
222
216
 
223
217
  label {
224
- margin-right: $default-margin;
225
-
226
- &:after { content: ':'; }
218
+ display: inline-block;
219
+ vertical-align: middle;
220
+ margin-right: 2*$default-margin;
227
221
  }
228
222
  }
229
223
 
@@ -9,12 +9,11 @@
9
9
  border-bottom: $default-border;
10
10
 
11
11
  div.info {
12
- margin: 8px 8px 8px 78px;
13
- width: 720px;
12
+ margin: 16px 12px 8px 163px;
14
13
  }
15
14
 
16
15
  .buttons {
17
- margin-left: 78px;
16
+ margin-left: 163px;
18
17
  }
19
18
  }
20
19
 
@@ -33,7 +32,7 @@
33
32
  background-color: #fff;
34
33
  color: black;
35
34
  display: block;
36
- padding-left: $default-padding;
35
+ padding: 0 3*$default-padding;
37
36
  text-decoration: none;
38
37
  @include transition(background-color, 400ms);
39
38
 
@@ -57,18 +56,16 @@
57
56
  }
58
57
 
59
58
  .redirect_url {
60
- position: absolute;
61
- top: $default-padding;
62
- right: 199px;
59
+ float: right;
63
60
  text-align: right;
64
61
  background-color: #fff0c4;
65
62
  line-height: $sitemap-line-height;
66
- padding-right: $default-padding;
67
63
  font-size: 10px;
68
- padding-left: $default-padding;
64
+ padding: 0 2*$default-padding;
69
65
  max-width: 45%;
70
66
  white-space: nowrap;
71
67
  overflow: hidden;
68
+ text-overflow: ellipsis;
72
69
  }
73
70
 
74
71
  #page_selector_container .sitemap_pagename_link:hover {
@@ -87,8 +84,7 @@
87
84
 
88
85
  .sitemap_page {
89
86
  height: $sitemap-line-height;
90
- padding-bottom: $default-padding;
91
- padding-top: $default-padding;
87
+ margin: 3*$default-margin 0;
92
88
  position: relative;
93
89
 
94
90
  &.highlight .sitemap_pagename_link {
@@ -104,27 +100,38 @@
104
100
  }
105
101
  }
106
102
 
107
- div.sitemap_left_images {
103
+ .sitemap_left_images {
104
+ @extend .left-rounded-border;
105
+ position: relative;
108
106
  width: 16px;
109
- margin-top: 3px;
107
+ height: $sitemap-line-height;
108
+ line-height: $sitemap-line-height - 2px;
110
109
  float: left;
111
- margin-right: 8px;
112
- background-color: $light-gray;
110
+ padding: 0 2*$default-padding;
111
+ background-color: rgba(#fff, .75);
113
112
  }
114
113
 
115
114
  .sitemap_right_tools {
116
115
  height: $sitemap-line-height;
117
- background-color: $light-gray;
118
- padding-left: 8px;
116
+ padding: 0 2*$default-padding;
119
117
  float: right;
120
- width: 120px;
121
118
 
122
119
  .sitemap_tool {
123
120
  float: left;
124
- width: 24px;
125
- height: 24px;
126
- line-height: 24px;
121
+ width: $sitemap-line-height;
122
+ height: $sitemap-line-height;
123
+ line-height: $sitemap-line-height;
127
124
  text-align: center;
125
+ margin: 0;
126
+
127
+ &.disabled .icon {
128
+ opacity: 0.25;
129
+ filter: grayscale(100%);
130
+ }
131
+
132
+ a {
133
+ display: block;
134
+ }
128
135
  }
129
136
 
130
137
  .icon.blank {
@@ -135,13 +142,7 @@ div.sitemap_left_images {
135
142
  }
136
143
  }
137
144
 
138
- .sitemap_sitetools {
139
- padding: 0;
140
- float: left;
141
- width: 72px;
142
- }
143
-
144
- div#page_selector_container div.sitemap_right_tools {
145
+ #page_selector_container .sitemap_right_tools {
145
146
  width: 24px;
146
147
  }
147
148
 
@@ -153,7 +154,8 @@ ul#sitemap {
153
154
  margin-right: 52px;
154
155
 
155
156
  span.page_move {
156
- @include inline-block;
157
+ display: inline-block;
158
+ vertical-align: middle;
157
159
  width: 74px;
158
160
  text-align: center;
159
161
  }
@@ -162,9 +164,9 @@ ul#sitemap {
162
164
 
163
165
  .page_folder {
164
166
  @extend .icon;
165
- float: left;
166
- margin-left: -21px;
167
- margin-top: 1px;
167
+ position: absolute;
168
+ left: -23px;
169
+ top: 8px;
168
170
 
169
171
  &.collapsed { @extend .icon.expand.small }
170
172
  &.folded { @extend .icon.collapse.small }
@@ -206,77 +208,86 @@ ul.list .sitemap_sitename {
206
208
 
207
209
  .page_infos {
208
210
  @extend .right-rounded-border;
209
- background-color: #fff;
211
+ background-color: rgba(#fff, .75);
210
212
  border-left: 1px solid $light-gray;
211
213
  float: right;
212
214
  height: $sitemap-line-height;
215
+ line-height: $sitemap-line-height;
216
+ padding: 0 $default-padding;
213
217
 
214
218
  .page_status {
215
- margin: $default-margin;
219
+ padding: 0 $default-padding;
216
220
  }
217
221
  }
218
222
 
219
- #sub_navigation .page_status_and_name .page_status {
220
- float: none;
221
- @include inline-block(-3px);
223
+ #header .page_status_and_name .page_status {
222
224
  margin-left: 2px;
225
+ line-height: 1;
226
+ vertical-align: text-bottom;
223
227
  }
224
228
 
225
229
  .page_status {
226
- width: 16px;
227
- height: 16px;
228
- background-image: image-url('alchemy/icons.png');
229
- background-repeat: no-repeat;
230
- float: left;
230
+ display: inline-block;
231
231
 
232
- &.restricted {
233
- background-position: -256px -39px;
234
- }
232
+ .icon {
233
+ vertical-align: text-bottom;
235
234
 
236
- &.not_restricted {
237
- background-position: -288px -39px;
238
- @include opacity(0.3);
239
- }
235
+ &.restricted {
236
+ background-position: -256px -39px;
237
+ }
240
238
 
241
- &.visible {
242
- background-position: -128px -39px;
243
- }
239
+ &.not_restricted {
240
+ background-position: -288px -39px;
241
+ opacity: 0.3;
242
+ }
244
243
 
245
- &.not_visible {
246
- background-position: -160px -39px;
247
- @include opacity(0.3);
248
- }
244
+ &.visible {
245
+ background-position: -128px -39px;
246
+ }
249
247
 
250
- &.public {
251
- background-position: -192px -39px;
252
- }
248
+ &.not_visible {
249
+ background-position: -160px -39px;
250
+ opacity: 0.3;
251
+ }
253
252
 
254
- &.not_public {
255
- background-position: -224px -39px;
256
- @include opacity(0.3);
253
+ &.public {
254
+ background-position: -192px -39px;
255
+ }
256
+
257
+ &.not_public {
258
+ background-position: -224px -39px;
259
+ opacity: 0.3;
260
+ }
257
261
  }
258
262
  }
259
263
 
260
- #sitemap {
264
+ #sitemap.list {
261
265
 
262
266
  &.sorting {
267
+ padding-top: 100px;
263
268
 
264
269
  .page.icon { cursor: move }
265
270
  }
266
271
 
267
- .page.icon {
268
- float: left;
269
- position: relative;
270
- }
271
-
272
272
  .locked .page.icon {
273
273
  background-position: -32px -40px;
274
274
  }
275
- }
276
275
 
277
- .sitemap_sitestatus {
278
- float: right;
279
- margin-top: $default-margin;
276
+ .page.icon.not-allowed {
277
+ &:after {
278
+ content: '';
279
+ position: absolute;
280
+ bottom: -2px;
281
+ right: -1px;
282
+ width: 8px;
283
+ height: 8px;
284
+ background: image-url('alchemy/icons.png') -5px -77px;
285
+ }
286
+ }
287
+
288
+ .page_status .icon {
289
+ vertical-align: middle;
290
+ }
280
291
  }
281
292
 
282
293
  a.folder_link {
@@ -298,9 +309,8 @@ a.folder_link {
298
309
  padding: 0;
299
310
 
300
311
  .page_infos {
301
- margin-right: 144px;
302
- width: 40px;
303
- text-align: center;
312
+ margin-right: 210px;
313
+ text-align: left;
304
314
  float: right;
305
315
  line-height: 28px;
306
316
  background: transparent;
@@ -308,16 +318,16 @@ a.folder_link {
308
318
 
309
319
  .page_name {
310
320
  line-height: 28px;
311
- margin-left: 24px;
321
+ margin-left: 43px;
312
322
  }
313
323
  }
314
324
 
315
325
  #page_filter_result {
316
326
  display: none;
317
- padding-left: 4*$default-padding;
327
+ margin-left: 2*$default-margin;
318
328
  }
319
329
 
320
- .alchemy-dialog ul#sitemap {
330
+ .alchemy-dialog ul.list#sitemap {
321
331
  margin: 0;
322
332
  padding: 0 8px 8px 0;
323
333
 
@@ -358,7 +368,7 @@ a.folder_link {
358
368
  height: 33px;
359
369
  padding: $default-padding;
360
370
  border: $default-border;
361
- @include box-shadow(#9ea09f 0px 0px 4px);
371
+ box-shadow: #9ea09f 0px 0px 4px;
362
372
  @extend %rounded-border;
363
373
 
364
374
  .spinner {