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
@@ -87,12 +87,12 @@ $image-overlay-transition-easing: ease-in;
87
87
  position: absolute;
88
88
  top: 0;
89
89
  background-color: $medium-gray;
90
- @include box-shadow(-2px 0 $default-padding -2px $text-color);
90
+ box-shadow: -2px 0 $default-padding -2px $text-color;
91
91
  @include transition(right $image-overlay-transition-duration $image-overlay-transition-easing);
92
92
  }
93
93
 
94
94
  .picture-details-overlay {
95
- @include box-sizing(border-box);
95
+ box-sizing: border-box;
96
96
  right: 0;
97
97
  width: $image-overlay-form-width;
98
98
  height: 100%;
@@ -142,7 +142,7 @@ $image-overlay-transition-easing: ease-in;
142
142
  }
143
143
 
144
144
  .zoomed-picture-background {
145
- @include box-sizing(border-box);
145
+ box-sizing: border-box;
146
146
  width: 100%;
147
147
  height: 100%;
148
148
  padding-top: 2*$default-padding;
@@ -176,7 +176,7 @@ $image-overlay-transition-easing: ease-in;
176
176
  height: auto;
177
177
  max-width: 100%;
178
178
  max-height: 100%;
179
- @include box-shadow(0 0 2*$default-margin $text-color);
179
+ box-shadow: 0 0 2*$default-margin $text-color;
180
180
  background-color: $dark-gray;
181
181
  vertical-align: middle;
182
182
  cursor: default;
@@ -188,7 +188,7 @@ $image-overlay-transition-easing: ease-in;
188
188
  padding: 2*$default-padding 0;
189
189
 
190
190
  .message {
191
- @include box-sizing(border-box);
191
+ box-sizing: border-box;
192
192
  margin: 2*$default-padding 0;
193
193
  }
194
194
  }
@@ -210,7 +210,7 @@ $image-overlay-transition-easing: ease-in;
210
210
 
211
211
  li {
212
212
  padding: 2*$default-padding;
213
- @include border-radius($default-border-radius);
213
+ border-radius: $default-border-radius;
214
214
  white-space: normal;
215
215
 
216
216
  &.even { background: #F7F7F7 }
@@ -41,7 +41,8 @@
41
41
  }
42
42
 
43
43
  .ui-helper-clearfix {
44
- @include inline-block;
44
+ display: inline-block;
45
+ vertical-align: middle;
45
46
  }
46
47
 
47
48
  /* required comment for clearfix to work in Opera \*/
@@ -248,7 +249,7 @@
248
249
  }
249
250
 
250
251
  .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled {
251
- @include opacity(.35);
252
+ opacity: .35;
252
253
  background-image: none;
253
254
  }
254
255
 
@@ -1131,7 +1132,7 @@
1131
1132
  .ui-tabs .ui-tabs-nav {
1132
1133
  padding: 4px 8px 0;
1133
1134
  background: transparent;
1134
- @include border-radius(0);
1135
+ border-radius: 0;
1135
1136
  border-bottom: $default-border;
1136
1137
  margin: 0;
1137
1138
  }
@@ -1144,7 +1145,8 @@
1144
1145
  margin: 0 .2em 1px 0;
1145
1146
  border-color: $default-border-color;
1146
1147
  border-bottom: 0 !important;
1147
- @include border-bottom-radius(0);
1148
+ border-bottom-left-radius: 0;
1149
+ border-bottom-right-radius: 0;
1148
1150
  padding: 0;
1149
1151
  white-space: nowrap;
1150
1152
  background-color: $medium-gray;
@@ -18,7 +18,6 @@ ul.list {
18
18
  li {
19
19
  list-style-type: none;
20
20
  display: block;
21
- overflow: hidden;
22
21
  margin-bottom: 0;
23
22
 
24
23
  &.legend, &.list-header {
@@ -2,8 +2,7 @@
2
2
  *= require_self
3
3
  */
4
4
 
5
- @import "compass/css3";
6
- @import "sassy-buttons";
5
+ @import "bourbon";
7
6
  @import "alchemy/variables";
8
7
  @import "alchemy/mixins";
9
8
  @import "alchemy/extends";
@@ -18,7 +17,7 @@
18
17
  @include animate-left;
19
18
  @include bottom-right-rounded-border;
20
19
  @include drop-shadow;
21
- @include box-sizing(border-box);
20
+ box-sizing: border-box;
22
21
  border-right: $default-border;
23
22
  border-bottom: $default-border;
24
23
  height: 44px;
@@ -27,7 +26,7 @@
27
26
  font: $default-font-style;
28
27
 
29
28
  * {
30
- @include box-sizing(border-box);
29
+ box-sizing: border-box;
31
30
  margin: 0;
32
31
  padding: 0;
33
32
  }
@@ -1,9 +1,3 @@
1
- span.icon.module {
2
- width: 24px;
3
- height: 24px;
4
- margin-bottom: 4px;
5
- }
6
-
7
1
  span.module.dashboard {
8
2
  background-position: -240px 0;
9
3
  }
@@ -0,0 +1,242 @@
1
+ #top_menu {
2
+ box-sizing: border-box;
3
+ position: fixed;
4
+ top: 0;
5
+ margin-left: $main-menu-width;
6
+ padding-right: $main-menu-width;
7
+ z-index: 20;
8
+ width: 100%;
9
+ @extend .disable-user-select;
10
+
11
+ .collapsed-menu & {
12
+ margin-left: $collapsed-main-menu-width;
13
+ padding-right: $collapsed-main-menu-width;
14
+ }
15
+ }
16
+
17
+ #left_menu {
18
+ box-sizing: border-box;
19
+ z-index: 30;
20
+ height: 100%;
21
+ position: fixed;
22
+ top: 0;
23
+ left: 0;
24
+ width: $main-menu-width;
25
+ border-right: $default-border;
26
+ background-color: $main-menu-bg-color;
27
+ @extend .disable-user-select;
28
+
29
+ .collapsed-menu & {
30
+ width: $collapsed-main-menu-width;
31
+
32
+ .main_navi_entry.has_sub_navigation label {
33
+ display: none;
34
+ }
35
+
36
+ label {
37
+ visibility: hidden;
38
+ opacity: 0;
39
+ background-color: $main-menu-active-bg-color;
40
+ transition: opacity $transition-duration $transition-easing;
41
+ }
42
+
43
+ .main_navi_entry:not(.has_sub_navigation),
44
+ #logout {
45
+
46
+ &:hover label {
47
+ visibility: visible;
48
+ opacity: 1;
49
+ }
50
+
51
+ label {
52
+ box-sizing: border-box;
53
+ position: absolute;
54
+ top: 0;
55
+ left: $collapsed-main-menu-width - 1;
56
+ width: $main-menu-width + 1;
57
+ padding-left: 4*$default-padding;
58
+ }
59
+ }
60
+ }
61
+
62
+ label {
63
+ vertical-align: middle;
64
+ padding-left: $default-padding;
65
+ cursor: pointer;
66
+ @include truncate($main-menu-entry-max-width);
67
+ }
68
+
69
+ a {
70
+ text-shadow: $text-shadow-light;
71
+ }
72
+
73
+ img, .module.icon {
74
+ border-style: none;
75
+ height: 24px;
76
+ width: 24px;
77
+ display: inline-block;
78
+ vertical-align: middle;
79
+ }
80
+ }
81
+
82
+ #main_navi {
83
+ padding-top: 30px;
84
+ padding-bottom: 80px;
85
+ }
86
+
87
+ .main_navi_entry {
88
+ color: $main-menu-text-color;
89
+ position: relative;
90
+ display: block;
91
+ line-height: 46px;
92
+ margin-bottom: 3*$default-padding;
93
+ background-color: transparent;
94
+ transition: background-color $transition-duration $transition-easing;
95
+
96
+ &:hover {
97
+ background-color: $main-menu-active-bg-color;
98
+
99
+ &:not(.active),
100
+ .collapsed-menu & {
101
+
102
+ .sub_navigation {
103
+ visibility: visible;
104
+ opacity: 1;
105
+ background-color: $main-menu-active-bg-color;
106
+ }
107
+ }
108
+ }
109
+
110
+ &.active {
111
+ background-color: $main-menu-active-bg-color;
112
+ color: $text-color;
113
+ cursor: default;
114
+ }
115
+
116
+ a {
117
+ display: block;
118
+ padding-left: 3 * $default-padding;
119
+ transition: color $transition-duration $transition-easing;
120
+
121
+ &:hover {
122
+ text-decoration: none;
123
+ color: #000;
124
+ text-shadow: none;
125
+ }
126
+ }
127
+ }
128
+
129
+ body:not(.collapsed-menu) {
130
+
131
+ .subnavi_tab a {
132
+ padding-top: 1px;
133
+ }
134
+
135
+ .main_navi_entry.active {
136
+
137
+ .sub_navigation {
138
+ position: static;
139
+ visibility: visible;
140
+ opacity: 1;
141
+ width: auto;
142
+ }
143
+
144
+ .subnavi_tab {
145
+ line-height: 24px;
146
+
147
+ a {
148
+ padding: 8px 4px 8px 44px;
149
+ }
150
+ }
151
+ }
152
+ }
153
+
154
+ .sub_navigation {
155
+ position: absolute;
156
+ width: $main-menu-width;
157
+ left: $main-menu-width;
158
+ top: 0;
159
+ visibility: hidden;
160
+ opacity: 0;
161
+ transition: opacity $transition-duration $transition-easing;
162
+
163
+ .collapsed-menu & {
164
+ left: $collapsed-main-menu-width;
165
+ }
166
+ }
167
+
168
+ .subnavi_tab {
169
+
170
+ &:first-of-type {
171
+ border-left: 1px solid $main-menu-active-bg-color;
172
+ margin-left: -1px;
173
+ }
174
+
175
+ a {
176
+ padding-left: 4*$default-padding;
177
+ background-color: transparent;
178
+ transition: background-color $transition-duration $transition-easing;
179
+ @include truncate($main-menu-width, $display: block);
180
+
181
+ &:hover {
182
+ background-color: rgba(255,255,255,0.2);
183
+ }
184
+ }
185
+
186
+ &.active a {
187
+ font-weight: bold;
188
+ color: $main-menu-text-color;
189
+ }
190
+ }
191
+
192
+ .locked_page {
193
+ position: relative;
194
+ float: left;
195
+ line-height: $header-height - 1;
196
+ color: #444;
197
+ border-right: $default-border;
198
+ border-bottom: $default-border;
199
+ padding-right: 24px;
200
+
201
+ form {
202
+ position: absolute;
203
+ right: $default-padding;
204
+ top: 7px;
205
+ line-height: 1;
206
+ }
207
+
208
+ &:hover {
209
+ color: $text-color;
210
+ text-decoration: none;
211
+ }
212
+
213
+ > a {
214
+ cursor: pointer;
215
+ padding: 0px 8px;
216
+ }
217
+
218
+ .icon.close {
219
+ vertical-align: text-bottom;
220
+ text-shadow: $text-shadow-light;
221
+ }
222
+
223
+ .page_name {
224
+ margin-right: $default-margin;
225
+ text-shadow: $text-shadow-light;
226
+ }
227
+
228
+ .page_language {
229
+ display: inline-block;
230
+ color: $muted-text-color;
231
+ margin-right: 2px;
232
+ font-size: 10px;
233
+ text-transform: uppercase;
234
+ }
235
+
236
+ .page_site {
237
+ display: inline-block;
238
+ color: $muted-text-color;
239
+ margin-right: $default-margin;
240
+ font-size: 10px;
241
+ }
242
+ }
@@ -1,5 +1,5 @@
1
1
  .pagination {
2
- @include box-sizing(border-box);
2
+ box-sizing: border-box;
3
3
  background: $light_gray;
4
4
  color: $text-color;
5
5
  position: fixed;
@@ -8,8 +8,8 @@
8
8
  width: 100%;
9
9
  left: 0px;
10
10
  height: 50px;
11
- padding: 2*$default-padding $default-padding;
12
- padding-left: 76px;
11
+ padding: 2*$default-padding;
12
+ padding-left: $main-menu-width + 10px;
13
13
  text-align: left;
14
14
  border-top: $default-border;
15
15
  z-index: 10;
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  *= require_self
3
3
  */
4
+
4
5
  @import "alchemy/defaults";
5
6
 
6
7
  div#main_menu,
@@ -0,0 +1,45 @@
1
+ .resource_info {
2
+
3
+ h2 {
4
+ @include form-heading;
5
+ }
6
+
7
+ .value {
8
+ @include clearfix;
9
+ position: relative;
10
+
11
+ > label {
12
+ @include form-label;
13
+ }
14
+
15
+ > p {
16
+ @include form-value-display;
17
+ @include truncate($form-right-width);
18
+ }
19
+
20
+ &.with-icon {
21
+ > p {
22
+ white-space: nowrap;
23
+ padding-right: 40px;
24
+ }
25
+ }
26
+ }
27
+
28
+ .icon_button--right {
29
+ position: absolute;
30
+ right: 2*$default-padding;
31
+ top: 2*$default-padding;
32
+ height: $default-form-field-height;
33
+ line-height: 25px;
34
+ background-color: $medium-gray;
35
+ margin: -$default-margin -2 * $default-margin;
36
+ padding: 0 2*$default-padding;
37
+ transition: background-color 0.3s;
38
+ @extend .right-rounded-border;
39
+
40
+ &:hover {
41
+ cursor: pointer;
42
+ background-color: darken($medium-gray, 10%);
43
+ }
44
+ }
45
+ }