alchemy_cms 2.2.4 → 2.3.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. data/.gitignore +1 -1
  2. data/.travis.yml +3 -4
  3. data/Gemfile +1 -0
  4. data/README.md +10 -6
  5. data/alchemy_cms.gemspec +5 -2
  6. data/app/assets/images/alchemy/icons.png +0 -0
  7. data/app/assets/images/sassy-ie-overlay.png +0 -0
  8. data/app/assets/javascripts/alchemy/alchemy.base.js +50 -59
  9. data/app/assets/javascripts/alchemy/alchemy.buttons.js +14 -4
  10. data/app/assets/javascripts/alchemy/alchemy.datepicker.js +8 -2
  11. data/app/assets/javascripts/alchemy/alchemy.elements_window.js +11 -3
  12. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +1 -1
  13. data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +14 -1
  14. data/app/assets/javascripts/alchemy/alchemy.preview.js +1 -1
  15. data/app/assets/javascripts/alchemy/alchemy.preview_window.js +12 -4
  16. data/app/assets/javascripts/alchemy/alchemy.uploader.js +4 -1
  17. data/app/assets/javascripts/alchemy/alchemy.windows.js +18 -8
  18. data/app/assets/stylesheets/alchemy/_defaults.scss +84 -120
  19. data/app/assets/stylesheets/alchemy/alchemy.css +2 -2
  20. data/app/assets/stylesheets/alchemy/archive.css.scss +288 -0
  21. data/app/assets/stylesheets/alchemy/base.css.scss +95 -390
  22. data/app/assets/stylesheets/alchemy/dashboard.css.scss +4 -4
  23. data/app/assets/stylesheets/alchemy/elements.css.scss +83 -118
  24. data/app/assets/stylesheets/alchemy/flash.css.scss +1 -1
  25. data/app/assets/stylesheets/alchemy/form_elements.css.scss +528 -0
  26. data/app/assets/stylesheets/alchemy/frame.css.scss +13 -39
  27. data/app/assets/stylesheets/alchemy/icons.css.scss +217 -228
  28. data/app/assets/stylesheets/alchemy/jquery-ui.alchemy.css.scss +48 -50
  29. data/app/assets/stylesheets/alchemy/jquery.Jcrop.css.scss +1 -1
  30. data/app/assets/stylesheets/alchemy/login.css.scss +1 -5
  31. data/app/assets/stylesheets/alchemy/menubar.css.scss +19 -29
  32. data/app/assets/stylesheets/alchemy/pagination.css.scss +3 -4
  33. data/app/assets/stylesheets/alchemy/sitemap.css.scss +81 -81
  34. data/app/assets/stylesheets/alchemy/tables.css.scss +63 -57
  35. data/app/assets/stylesheets/alchemy/tinymce_dialog.css.scss +57 -57
  36. data/app/assets/stylesheets/alchemy/upload.css.scss +6 -6
  37. data/app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.scss +6 -10
  38. data/app/controllers/alchemy/admin/attachments_controller.rb +5 -4
  39. data/app/controllers/alchemy/admin/base_controller.rb +1 -9
  40. data/app/controllers/alchemy/admin/contents_controller.rb +4 -6
  41. data/app/controllers/alchemy/admin/elements_controller.rb +2 -2
  42. data/app/controllers/alchemy/admin/pages_controller.rb +2 -2
  43. data/app/controllers/alchemy/admin/pictures_controller.rb +74 -15
  44. data/app/controllers/alchemy/attachments_controller.rb +8 -2
  45. data/app/controllers/alchemy/base_controller.rb +47 -5
  46. data/app/controllers/alchemy/elements_controller.rb +1 -1
  47. data/app/controllers/alchemy/messages_controller.rb +12 -12
  48. data/app/controllers/alchemy/pages_controller.rb +5 -1
  49. data/app/controllers/alchemy/pictures_controller.rb +9 -4
  50. data/app/controllers/alchemy/user_sessions_controller.rb +2 -4
  51. data/app/helpers/alchemy/admin/base_helper.rb +98 -19
  52. data/app/helpers/alchemy/admin/contents_helper.rb +2 -2
  53. data/app/helpers/alchemy/admin/elements_helper.rb +2 -3
  54. data/app/helpers/alchemy/base_helper.rb +6 -5
  55. data/app/helpers/alchemy/elements_helper.rb +2 -2
  56. data/app/helpers/alchemy/essences_helper.rb +4 -5
  57. data/app/helpers/alchemy/pages_helper.rb +15 -79
  58. data/app/helpers/alchemy/url_helper.rb +67 -0
  59. data/app/mailers/alchemy/messages.rb +1 -1
  60. data/app/mailers/alchemy/notifications.rb +1 -1
  61. data/app/models/alchemy/attachment.rb +11 -2
  62. data/app/models/alchemy/cell.rb +20 -10
  63. data/app/models/alchemy/content.rb +4 -3
  64. data/app/models/alchemy/element.rb +170 -178
  65. data/app/models/alchemy/language/code.rb +4 -1
  66. data/app/models/alchemy/message.rb +19 -3
  67. data/app/models/alchemy/page.rb +45 -40
  68. data/app/models/alchemy/picture.rb +24 -2
  69. data/app/models/alchemy/user.rb +2 -3
  70. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +12 -12
  71. data/app/views/alchemy/admin/attachments/_attachment.html.erb +1 -1
  72. data/app/views/alchemy/admin/attachments/create.js.erb +1 -0
  73. data/app/views/alchemy/admin/attachments/edit.html.erb +9 -3
  74. data/app/views/alchemy/admin/attachments/index.html.erb +3 -2
  75. data/app/views/alchemy/admin/contents/_missing.html.erb +1 -1
  76. data/app/views/alchemy/admin/contents/create.js.erb +54 -0
  77. data/app/views/alchemy/admin/contents/new.html.erb +9 -4
  78. data/app/views/alchemy/admin/elements/{_add_content.html.erb → _add_picture.html.erb} +4 -4
  79. data/app/views/alchemy/admin/elements/_elements_select.html.erb +2 -1
  80. data/app/views/alchemy/admin/elements/_new_element_form.html.erb +1 -1
  81. data/app/views/alchemy/admin/elements/{_picture_editor.html.erb → _picture_gallery_editor.html.erb} +7 -11
  82. data/app/views/alchemy/admin/elements/fold.js.erb +46 -0
  83. data/app/views/alchemy/admin/elements/index.html.erb +24 -24
  84. data/app/views/alchemy/admin/elements/list.js.erb +11 -9
  85. data/app/views/alchemy/admin/essence_files/assign.js.erb +3 -1
  86. data/app/views/alchemy/admin/essence_pictures/destroy.js.erb +28 -0
  87. data/app/views/alchemy/admin/pages/_contactform_links.html.erb +8 -6
  88. data/app/views/alchemy/admin/pages/_external_link.html.erb +11 -9
  89. data/app/views/alchemy/admin/pages/_file_link.html.erb +10 -8
  90. data/app/views/alchemy/admin/pages/_internal_link.html.erb +14 -10
  91. data/app/views/alchemy/admin/pages/_new_page_form.html.erb +1 -1
  92. data/app/views/alchemy/admin/pages/_page.html.erb +1 -1
  93. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +32 -21
  94. data/app/views/alchemy/admin/pages/configure.html.erb +2 -2
  95. data/app/views/alchemy/admin/pages/configure_external.html.erb +13 -13
  96. data/app/views/alchemy/admin/pages/edit.html.erb +2 -2
  97. data/app/views/alchemy/admin/pages/index.html.erb +26 -24
  98. data/app/views/alchemy/admin/pages/link.html.erb +2 -5
  99. data/app/views/alchemy/admin/partials/_upload_form.html.erb +28 -12
  100. data/app/views/alchemy/admin/pictures/_archive.html.erb +54 -0
  101. data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +10 -7
  102. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +21 -22
  103. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +31 -0
  104. data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +9 -0
  105. data/app/views/alchemy/admin/pictures/_picture.html.erb +36 -6
  106. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +27 -0
  107. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +3 -1
  108. data/app/views/alchemy/admin/pictures/create.js.erb +4 -5
  109. data/app/views/alchemy/admin/pictures/edit.html.erb +26 -0
  110. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +39 -0
  111. data/app/views/alchemy/admin/pictures/index.html.erb +81 -70
  112. data/app/views/alchemy/admin/pictures/index.js.erb +3 -0
  113. data/app/views/alchemy/admin/pictures/new.html.erb +1 -0
  114. data/app/views/alchemy/admin/resources/index.html.erb +3 -1
  115. data/app/views/alchemy/admin/users/_table.html.erb +1 -1
  116. data/app/views/alchemy/admin/users/index.html.erb +27 -23
  117. data/app/views/alchemy/elements/_article_editor.html.erb +7 -2
  118. data/app/views/alchemy/elements/_bild_editor.html.erb +1 -1
  119. data/app/views/alchemy/elements/_bild_text_editor.html.erb +6 -1
  120. data/app/views/alchemy/elements/_bild_text_view.html.erb +3 -3
  121. data/app/views/alchemy/elements/_image_mosaic_editor.html.erb +1 -1
  122. data/app/views/alchemy/elements/_image_mosaic_view.html.erb +2 -2
  123. data/app/views/alchemy/elements/_intro_image_text_view.html.erb +4 -4
  124. data/app/views/alchemy/elements/_searchresult_editor.html.erb +4 -1
  125. data/app/views/alchemy/essences/_essence_boolean_editor.html.erb +1 -1
  126. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +2 -3
  127. data/app/views/alchemy/essences/_essence_picture_tools.html.erb +1 -1
  128. data/app/views/alchemy/search/_form.html.erb +8 -0
  129. data/app/views/alchemy/search/_result.html.erb +3 -2
  130. data/app/views/alchemy/search/_results.html.erb +28 -0
  131. data/app/views/alchemy/user_sessions/leave.html.erb +4 -4
  132. data/app/views/alchemy/user_sessions/login.html.erb +1 -2
  133. data/app/views/layouts/alchemy/admin.html.erb +30 -10
  134. data/app/views/layouts/alchemy/login.html.erb +2 -39
  135. data/config/alchemy/elements.yml +1 -2
  136. data/config/alchemy/page_layouts.yml +8 -5
  137. data/config/authorization_rules.rb +27 -18
  138. data/config/initializers/localeapp.rb +9 -0
  139. data/config/locales/alchemy.de.yml +93 -56
  140. data/config/locales/alchemy.en.yml +73 -50
  141. data/config/routes.rb +3 -1
  142. data/db/migrate/20120704181529_add_upload_hash_to_alchemy_picture.rb +5 -0
  143. data/db/migrate/20120705214247_acts_as_taggable_on_migration.rb +28 -0
  144. data/db/migrate/20120728185830_add_cached_tag_list_to_alchemy_pictures.rb +5 -0
  145. data/db/migrate/20120831135441_set_alchemy_languages_country_code_default_to_empty_string.rb +9 -0
  146. data/lib/alchemy/capistrano.rb +2 -2
  147. data/lib/alchemy/essence.rb +14 -0
  148. data/lib/alchemy/page_layout.rb +0 -6
  149. data/lib/alchemy/resource.rb +9 -15
  150. data/lib/alchemy/upgrader.rb +18 -3
  151. data/lib/alchemy/version.rb +5 -1
  152. data/lib/alchemy_cms.rb +4 -1
  153. data/lib/rails/generators/alchemy/deploy_script/deploy_script_generator.rb +16 -6
  154. data/lib/rails/generators/alchemy/deploy_script/templates/deploy.rb.tt +17 -3
  155. data/lib/rails/generators/alchemy/elements/elements_generator.rb +6 -1
  156. data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +10 -1
  157. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +17 -18
  158. data/lib/rails/generators/alchemy/scaffold/files/pages.html.erb +4 -2
  159. data/lib/tasks/fleximage.rake +2 -2
  160. data/spec/controllers/admin/contents_controller_spec.rb +2 -2
  161. data/spec/controllers/admin/elements_controller_spec.rb +30 -1
  162. data/spec/controllers/admin/pages_controller_spec.rb +35 -18
  163. data/spec/controllers/admin/trash_controller_spec.rb +40 -16
  164. data/spec/controllers/attachments_controller_spec.rb +62 -0
  165. data/spec/controllers/base_controller_spec.rb +43 -42
  166. data/spec/controllers/elements_controller_spec.rb +30 -0
  167. data/spec/controllers/pages_controller_spec.rb +22 -5
  168. data/spec/controllers/pictures_controller_spec.rb +82 -0
  169. data/spec/dummy/app/models/event.rb +2 -1
  170. data/spec/dummy/config/database.yml +3 -2
  171. data/spec/dummy/db/schema.rb +51 -27
  172. data/spec/factories.rb +29 -8
  173. data/spec/helpers/admin/base_helper_spec.rb +134 -21
  174. data/spec/helpers/admin/contents_helper_spec.rb +2 -2
  175. data/spec/helpers/admin/elements_helper_spec.rb +17 -9
  176. data/spec/helpers/admin/essences_helper_spec.rb +7 -6
  177. data/spec/helpers/essences_helper_spec.rb +8 -7
  178. data/spec/helpers/pages_helper_spec.rb +208 -325
  179. data/spec/helpers/url_helper_spec.rb +171 -0
  180. data/spec/integration/admin/link_overlay_spec.rb +53 -0
  181. data/spec/integration/admin/modules_integration_spec.rb +22 -26
  182. data/spec/integration/admin/pages_controller_spec.rb +10 -19
  183. data/spec/integration/admin/picture_library_integration_spec.rb +52 -0
  184. data/spec/integration/admin/resources_integration_spec.rb +68 -75
  185. data/spec/integration/pages_controller_spec.rb +70 -61
  186. data/spec/integration/security_spec.rb +3 -5
  187. data/spec/integration/translation_integration_spec.rb +56 -0
  188. data/spec/libraries/essence_spec.rb +18 -0
  189. data/spec/libraries/resource_spec.rb +101 -79
  190. data/spec/libraries/resources_helper_spec.rb +3 -0
  191. data/spec/models/content_spec.rb +63 -60
  192. data/spec/models/element_spec.rb +203 -93
  193. data/spec/models/language_spec.rb +90 -65
  194. data/spec/models/page_layout_spec.rb +37 -0
  195. data/spec/models/page_spec.rb +181 -113
  196. data/spec/models/picture_spec.rb +73 -26
  197. data/spec/models/resource_spec.rb +52 -23
  198. data/spec/support/alchemy/specs_helpers.rb +2 -0
  199. data/spec/support/image.png +0 -0
  200. data/spec/{helpers/url_helpers_spec.rb → url_helpers_spec.rb} +0 -0
  201. data/vendor/assets/javascripts/jquery_plugins/jquery.selectBoxIt.js +1909 -0
  202. data/vendor/assets/javascripts/jquery_plugins/preloadCssImages.jQuery_v5.js +152 -0
  203. metadata +106 -33
  204. data/app/assets/stylesheets/alchemy/buttons.css.scss +0 -361
  205. data/app/assets/stylesheets/alchemy/jquery.sb.css.scss +0 -260
  206. data/app/views/alchemy/admin/contents/create.js.coffee +0 -49
  207. data/app/views/alchemy/admin/elements/fold.js.coffee +0 -37
  208. data/app/views/alchemy/admin/essence_pictures/destroy.js.coffee +0 -19
  209. data/app/views/alchemy/admin/pictures/_pictures_list.html.erb +0 -16
  210. data/app/views/alchemy/admin/pictures/update.js.erb +0 -3
  211. data/spec/dummy/config/locales/en.yml +0 -5
  212. data/spec/dummy/config/locales/fo.yml +0 -5
  213. data/spec/page_layout_spec.rb +0 -35
  214. data/vendor/assets/javascripts/jquery_plugins/jquery.in-place-edit.js +0 -172
  215. data/vendor/assets/javascripts/jquery_plugins/jquery.sb.min.js +0 -14
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  #alchemy .ui-helper-clearfix {
46
- display: inline-block;
46
+ @include inline-block;
47
47
  }
48
48
 
49
49
  /* required comment for clearfix to work in Opera \*/
@@ -127,21 +127,17 @@
127
127
  #alchemy .ui-widget-content {
128
128
  border: $default-border;
129
129
  background-color: $light-gray;
130
- color: $text-color;;
130
+ color: $text-color;
131
131
  }
132
132
 
133
133
  #alchemy .ui-widget-content a {
134
- color: $text-color;;
135
- }
136
-
137
- #alchemy .ui-widget-content p {
138
- overflow: hidden;
134
+ color: $text-color;
139
135
  }
140
136
 
141
137
  #alchemy .ui-widget-header {
142
138
  border: 1px none #afafaf;
143
139
  background: $light-blue;
144
- color: $text-color;;
140
+ color: $text-color;
145
141
  font-weight: bold;
146
142
  -moz-border-radius-bottomleft: 0 !important;
147
143
  -webkit-border-bottom-left-radius: 0 !important;
@@ -152,7 +148,7 @@
152
148
  }
153
149
 
154
150
  #alchemy .ui-widget-header a {
155
- color: $text-color;;
151
+ color: $text-color;
156
152
  }
157
153
 
158
154
  /* Interaction states
@@ -160,22 +156,24 @@
160
156
 
161
157
  #alchemy .ui-state-default, #alchemy .ui-widget-content .ui-state-default, #alchemy .ui-widget-header .ui-state-default {
162
158
  border: 1px solid $button-border-color;
163
- background: #ededed image-url('alchemy/shading.png') repeat-x 50% -67px;
159
+ background-color: #ededed;
164
160
  font-weight: normal;
165
- color: $text-color;;
161
+ color: $text-color;
166
162
  text-shadow: $button-text-shadow;
167
163
  }
168
164
 
169
165
  #alchemy .ui-state-default a, #alchemy .ui-state-default a:link, #alchemy .ui-state-default a:visited {
170
- color: $text-color;;
166
+ color: $text-color;
171
167
  text-decoration: none;
172
168
  }
173
169
 
174
- #alchemy .ui-state-hover, #alchemy .ui-widget-content .ui-state-hover, #alchemy .ui-widget-header .ui-state-hover, #alchemy .ui-state-focus, #alchemy .ui-widget-content .ui-state-focus, #alchemy .ui-widget-header .ui-state-focus, #alchemy .ui-dialog .ui-dialog-titlebar-refresh:hover, #alchemy .ui-dialog .ui-dialog-titlebar-refresh:focus {
175
- border: 1px solid $button-hover-border-color;
176
- background: $button-hover-bg-color image-url('alchemy/shading.png') repeat-x 50% -65px;
177
- font-weight: normal;
178
- color: $text-color;;
170
+ .ui-dialog-titlebar-refresh, .ui-dialog-titlebar-close, .ui-dialog-titlebar-maximize, .ui-dialog-titlebar-restore {
171
+ &:hover, &:focus {
172
+ border: 1px solid $button-hover-border-color;
173
+ background: $button-hover-bg-color;
174
+ font-weight: normal;
175
+ color: $text-color;
176
+ }
179
177
  }
180
178
 
181
179
  #alchemy .ui-state-hover a, #alchemy .ui-state-hover a:hover {
@@ -184,7 +182,7 @@
184
182
  }
185
183
 
186
184
  #alchemy .ui-state-active, #alchemy .ui-widget-content .ui-state-active, #alchemy .ui-widget-header .ui-state-active {
187
- color: $text-color;;
185
+ color: $text-color;
188
186
  text-decoration: none;
189
187
  text-shadow: none;
190
188
  background-color: $button-hover-bg-color;
@@ -214,7 +212,7 @@
214
212
  }
215
213
 
216
214
  #alchemy .ui-state-active a, #alchemy .ui-state-active a:link, #alchemy .ui-state-active a:visited {
217
- color: $text-color;;
215
+ color: $text-color;
218
216
  text-decoration: none;
219
217
  }
220
218
 
@@ -251,17 +249,14 @@
251
249
 
252
250
  #alchemy .ui-priority-primary, #alchemy .ui-widget-content .ui-priority-primary, #alchemy .ui-widget-header .ui-priority-primary {
253
251
  font-weight: normal;
254
- background-position: 50% -73px;
255
252
  }
256
253
 
257
254
  #alchemy .ui-priority-secondary, #alchemy .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary {
258
255
  font-weight: normal;
259
- background-position: 50% -73px;
260
256
  }
261
257
 
262
258
  #alchemy .ui-state-disabled, #alchemy .ui-widget-content .ui-state-disabled, #alchemy .ui-widget-header .ui-state-disabled {
263
- opacity: .35;
264
- filter: Alpha(Opacity = 35);
259
+ @include opacity(.35);
265
260
  background-image: none;
266
261
  }
267
262
 
@@ -273,35 +268,35 @@
273
268
  #alchemy .ui-icon {
274
269
  width: 16px;
275
270
  height: 16px;
276
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
271
+ background-image: url('ui-icons_666666_256x240.png');
277
272
  }
278
273
 
279
274
  #alchemy .ui-widget-content .ui-icon {
280
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
275
+ background-image: url('ui-icons_666666_256x240.png');
281
276
  }
282
277
 
283
278
  #alchemy .ui-widget-header .ui-icon {
284
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
279
+ background-image: url('ui-icons_666666_256x240.png');
285
280
  }
286
281
 
287
282
  #alchemy .ui-state-default .ui-icon {
288
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
283
+ background-image: url('ui-icons_666666_256x240.png');
289
284
  }
290
285
 
291
286
  #alchemy .ui-state-hover .ui-icon, #alchemy .ui-state-focus .ui-icon {
292
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
287
+ background-image: url('ui-icons_666666_256x240.png');
293
288
  }
294
289
 
295
290
  #alchemy .ui-state-active .ui-icon {
296
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
291
+ background-image: url('ui-icons_666666_256x240.png');
297
292
  }
298
293
 
299
294
  #alchemy .ui-state-highlight .ui-icon {
300
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
295
+ background-image: url('ui-icons_666666_256x240.png');
301
296
  }
302
297
 
303
298
  #alchemy .ui-state-error .ui-icon, #alchemy .ui-state-error-text .ui-icon {
304
- background-image: image-url('alchemy/ui-icons_666666_256x240.png');
299
+ background-image: url('ui-icons_666666_256x240.png');
305
300
  }
306
301
 
307
302
  /* positioning */
@@ -1085,12 +1080,9 @@
1085
1080
  #alchemy .ui-widget-shadow {
1086
1081
  margin: -8px 0 0 -8px;
1087
1082
  padding: 8px;
1088
- background: #000000 image-url('alchemy/ui-bg_flat_70_000000_40x100.png') 50% 50% repeat-x;
1089
- opacity: .30;
1090
- filter: Alpha(Opacity = 30);
1091
- -moz-border-radius: 3px;
1092
- -webkit-border-radius: 3px;
1093
- border-radius: 3px;
1083
+ background: #000000 50% 50% repeat-x;
1084
+ @include opacity(0.3);
1085
+ @include border-radius($default-border-radius);
1094
1086
  }
1095
1087
 
1096
1088
  /*
@@ -1340,16 +1332,19 @@
1340
1332
  * http://docs.jquery.com/UI/Button#theming
1341
1333
  */
1342
1334
 
1343
- #alchemy .ui-button {
1344
- display: inline-block;
1335
+ #alchemy button.ui-button {
1336
+ @include default-button-style;
1337
+ @include inline-block;
1345
1338
  position: relative;
1346
1339
  margin-right: .1em;
1347
1340
  text-decoration: none !important;
1348
1341
  cursor: pointer;
1349
1342
  text-align: center;
1350
- zoom: 1;
1351
1343
  overflow: visible;
1352
- padding: 0;
1344
+
1345
+ &.ui-state-focus {
1346
+ @include default-focus-style;
1347
+ }
1353
1348
  }
1354
1349
 
1355
1350
  /* the overflow property removes extra width in IE */
@@ -1378,12 +1373,10 @@ button.ui-button-icons-only {
1378
1373
 
1379
1374
  #alchemy .ui-button .ui-button-text {
1380
1375
  display: block;
1381
- line-height: 1.5;
1382
- font-size: 11px;
1383
1376
  }
1384
1377
 
1385
1378
  #alchemy .ui-button-text-only .ui-button-text {
1386
- padding: 4px 16px;
1379
+ padding: 0;
1387
1380
  }
1388
1381
 
1389
1382
  #alchemy .ui-button-icon-only .ui-button-text, #alchemy .ui-button-icons-only .ui-button-text {
@@ -1663,10 +1656,9 @@ button.ui-button::-moz-focus-inner {
1663
1656
 
1664
1657
  #alchemy .ui-tabs .ui-tabs-nav {
1665
1658
  padding: 4px 8px 0;
1666
- background: #e5e5e5 image-url('alchemy/shading.png') 0 -59px;
1667
- -webkit-border-radius: 0;
1668
- -moz-border-radius: 0;
1669
- border-radius: 0;
1659
+ background: transparent;
1660
+ @include border-radius(0);
1661
+ border-bottom: $default-border;
1670
1662
  margin: 0;
1671
1663
  }
1672
1664
 
@@ -1677,9 +1669,11 @@ button.ui-button::-moz-focus-inner {
1677
1669
  top: 1px;
1678
1670
  margin: 0 .2em 1px 0;
1679
1671
  border-bottom: 0 !important;
1672
+ @include border-bottom-radius(0);
1680
1673
  padding: 0;
1681
1674
  white-space: nowrap;
1682
1675
  background-color: #e5e5e5;
1676
+ font-weight: normal;
1683
1677
  }
1684
1678
 
1685
1679
  #alchemy .ui-tabs .ui-tabs-nav li a {
@@ -1692,11 +1686,10 @@ button.ui-button::-moz-focus-inner {
1692
1686
  margin-bottom: 0;
1693
1687
  padding-bottom: 1px;
1694
1688
  background: $light-gray;
1695
- height: 25px;
1696
1689
  }
1697
1690
 
1698
1691
  #alchemy .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, #alchemy .ui-tabs .ui-tabs-nav li.ui-state-disabled a, #alchemy .ui-tabs .ui-tabs-nav li.ui-state-processing a {
1699
- cursor: text;
1692
+ cursor: default;
1700
1693
  }
1701
1694
 
1702
1695
  #alchemy .ui-tabs .ui-tabs-nav li a, #alchemy .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a {
@@ -1722,6 +1715,11 @@ button.ui-button::-moz-focus-inner {
1722
1715
  padding: 0 !important;
1723
1716
  }
1724
1717
 
1718
+ #alchemy .ui-tabs .ui-tabs-nav .ui-tabs-paging-prev,
1719
+ #alchemy .ui-tabs .ui-tabs-nav .ui-tabs-paging-next {
1720
+ height: 26px;
1721
+ }
1722
+
1725
1723
  #alchemy .ui-tabs .ui-tabs-nav .ui-tabs-paging-prev a,
1726
1724
  #alchemy .ui-tabs .ui-tabs-nav .ui-tabs-paging-next a {
1727
1725
  display: block;
@@ -8,7 +8,7 @@
8
8
  .jcrop-vline, .jcrop-hline {
9
9
  font-size: 0px;
10
10
  position: absolute;
11
- background: white image-url('alchemy/Jcrop.gif') top left repeat;
11
+ background: white url('Jcrop.gif') top left repeat;
12
12
  }
13
13
 
14
14
  .jcrop-vline {
@@ -27,10 +27,6 @@ div.login_signup_box {
27
27
  background-color: $medium-gray;
28
28
  @include rounded-corner;
29
29
  margin: 2em auto;
30
-
31
- select {
32
- width: 220px;
33
- }
34
30
  }
35
31
 
36
32
  html.no-js {
@@ -42,7 +38,7 @@ html.no-js {
42
38
  #login_box {
43
39
  height: 310px;
44
40
  width: 394px;
45
- margin-top: -230px;
41
+ margin-top: -200px;
46
42
  margin-left: -197px;
47
43
  position: absolute;
48
44
  top: 50%;
@@ -1,6 +1,6 @@
1
1
  /*
2
- *= require_self
3
- */
2
+ *= require_self
3
+ */
4
4
 
5
5
  @import "alchemy/defaults";
6
6
 
@@ -30,7 +30,7 @@
30
30
  border-#{$side}-radius: $radius;
31
31
  }
32
32
 
33
- @mixin box-shadow {
33
+ @mixin drop-shadow {
34
34
  $shadow: 0px 0px 4px $dark-gray;
35
35
  -webkit-box-shadow: $shadow;
36
36
  -moz-box-shadow: $shadow;
@@ -48,21 +48,22 @@
48
48
  #alchemy_menubar {
49
49
  position: fixed;
50
50
  top: 0;
51
- left: -319px;
52
- width: 312px;
51
+ left: -353px;
52
+ width: 346px;
53
53
  z-index: 10000;
54
54
  background: $light-gray;
55
55
  @include transition;
56
56
  @include bounce;
57
57
  @include bottom-right-rounded-border;
58
- @include box-shadow;
58
+ @include drop-shadow;
59
59
  @include box-sizing;
60
60
  border-right: $default-border;
61
61
  border-bottom: $default-border;
62
- line-height: 8 * $default-padding;
63
- height: 8 * $default-padding;
62
+ height: 8 * $default-padding + 2px;
64
63
  padding: 4px 40px 4px 8px;
65
64
  overflow: hidden;
65
+ font: $default-font-style;
66
+ line-height: 8 * $default-padding;
66
67
 
67
68
  * {
68
69
  @include box-sizing;
@@ -79,40 +80,29 @@
79
80
  height: 24px;
80
81
  position: absolute;
81
82
  right: 10px;
82
- top: 8px;
83
- background: image-url('alchemy/icons.png') -240px 0;
83
+ top: 9px;
84
+ background: url('icons.png') -240px 0;
84
85
  }
85
86
 
86
87
  ul {
87
88
  padding: 0;
88
89
  margin: 0;
89
- height: 32px;
90
+ height: auto;
90
91
 
91
92
  li {
92
- height: 32px;
93
+ height: auto;
93
94
  margin: 0 $default-padding 0 0;
94
- padding: 5px 0 0 0;
95
- display: inline;
96
- display: inline-block;
95
+ padding: 0;
96
+ @include inline-block;
97
97
  list-style-type: none;
98
98
 
99
99
  a {
100
- @include button-styles;
101
- display: block;
102
- line-height: 16px;
103
- text-align: center;
104
- padding: 2px 4px;
105
- width: 90px;
106
- text-decoration: none;
107
- outline: none;
108
- white-space: nowrap;
100
+ @include default-button-style;
101
+ font-weight: normal;
102
+ line-height: 34px;
109
103
 
110
104
  &:hover {
111
- @include button-hover-styles;
112
- }
113
-
114
- &:active {
115
- outline: none;
105
+ text-decoration: none !important;
116
106
  }
117
107
  }
118
108
  }
@@ -10,7 +10,7 @@ div.pagination {
10
10
  margin-top: 4*$default-padding;
11
11
 
12
12
  a, span, em {
13
- font-size: 12px;
13
+ font-size: $default-font-size;
14
14
  height: 25px;
15
15
  line-height: 25px;
16
16
  padding: $default-padding;
@@ -23,12 +23,12 @@ div.pagination {
23
23
  }
24
24
 
25
25
  .current {
26
- @include button-styles;
27
26
  background: $button-hover-bg-color;
28
27
  color: $text-color;
29
- border: 1px solid #888;
28
+ border: $default-border;
30
29
  text-shadow: 0px 1px 1px #fff;
31
30
  cursor: default;
31
+ @include rounded-corner;
32
32
  }
33
33
 
34
34
  .previous_page {
@@ -52,5 +52,4 @@ div.pagination {
52
52
 
53
53
  #assign_image_list div.pagination {
54
54
  margin-bottom: 8px;
55
- text-align: center;
56
55
  }
@@ -16,7 +16,7 @@ div#sort_panel {
16
16
  }
17
17
 
18
18
  div.buttons {
19
- margin: 0 0 8px 104px;
19
+ margin-left: 104px;
20
20
  }
21
21
  }
22
22
 
@@ -26,10 +26,28 @@ div#sort_panel {
26
26
  display: block;
27
27
  padding-left: 4px;
28
28
  text-decoration: none;
29
+
30
+ &.inactive {
31
+ color: #656565;
32
+ }
33
+
34
+ &.odd {
35
+ background-color: #fff;
36
+ }
29
37
  }
30
38
 
31
- .sitemap_pagename_link.inactive {
32
- color: #656565;
39
+ a.sitemap_pagename_link:hover {
40
+ text-decoration: underline;
41
+
42
+ &:after {
43
+ content: '';
44
+ width: 16px;
45
+ height: 16px;
46
+ float: left;
47
+ margin-right: 4px;
48
+ background: url('icons.png') -160px -168px;
49
+ margin-top: 4px;
50
+ }
33
51
  }
34
52
 
35
53
  .redirect_url {
@@ -47,28 +65,10 @@ div#sort_panel {
47
65
  overflow: hidden;
48
66
  }
49
67
 
50
- .sitemap_pagename_link.odd {
51
- background-color: #fff;
52
- }
53
-
54
- a.sitemap_pagename_link:hover {
55
- text-decoration: underline;
56
- }
57
-
58
68
  div#page_selector_container a.sitemap_pagename_link:hover {
59
69
  text-decoration: none;
60
70
  }
61
71
 
62
- a.sitemap_pagename_link:hover:after {
63
- content: '';
64
- width: 16px;
65
- height: 16px;
66
- float: left;
67
- margin-right: 4px;
68
- background: image-url('alchemy/icons.png') -160px -168px;
69
- margin-top: 4px;
70
- }
71
-
72
72
  div#page_selector_container a.sitemap_pagename_link:hover:after {
73
73
  display: none;
74
74
  }
@@ -107,6 +107,31 @@ div.sitemap_right_tools {
107
107
  padding-left: 16px;
108
108
  float: right;
109
109
  width: 100px;
110
+
111
+ a {
112
+ float: left;
113
+ width: 21px;
114
+ height: 21px;
115
+ text-align: center;
116
+
117
+ .icon {
118
+ vertical-align: middle;
119
+ }
120
+ }
121
+
122
+ .icon.blank {
123
+ margin-left: 2px;
124
+ float: left;
125
+ margin-top: 3px;
126
+ margin-right: 3px;
127
+ }
128
+ }
129
+
130
+ .sitemap_sitetools {
131
+ padding: 0;
132
+ float: left;
133
+ width: 70px;
134
+ margin-left: 8px;
110
135
  }
111
136
 
112
137
  div#page_selector_container div.sitemap_right_tools {
@@ -121,7 +146,7 @@ ul#sitemap {
121
146
  margin-right: 52px;
122
147
 
123
148
  span.page_move {
124
- display: inline-block;
149
+ @include inline-block;
125
150
  width: 74px;
126
151
  text-align: center;
127
152
  }
@@ -129,7 +154,7 @@ ul#sitemap {
129
154
  }
130
155
 
131
156
  a.page_folder {
132
- background-image: image-url('alchemy/gui/toggle.png');
157
+ background-image: url('gui/toggle.png');
133
158
  background-repeat: no-repeat;
134
159
  height: 9px;
135
160
  width: 9px;
@@ -150,7 +175,6 @@ ul#sitemap {
150
175
  ul {
151
176
  margin: 0;
152
177
  padding: 0;
153
- display: block;
154
178
  }
155
179
 
156
180
  li {
@@ -197,54 +221,55 @@ div.page_infos {
197
221
  width: 66px;
198
222
  }
199
223
 
200
- .page_status {
201
- width: 16px;
202
- height: 16px;
203
- background-repeat: no-repeat;
204
- float: left;
205
- margin: 2px 2px 0 4px;
206
- }
207
-
208
224
  #sub_navigation span.page_status_and_name span.page_status {
209
225
  float: none;
210
- display: inline-block;
226
+ @include inline-block;
211
227
  position: relative;
212
- top: 1px;
228
+ top: -4px;
213
229
  margin-left: 2px;
214
230
  }
215
231
 
216
- span.page_status.restricted {
217
- background: image-url('alchemy/icons.png') -258px -39px;
218
- }
232
+ span.page_status {
233
+ width: 16px;
234
+ height: 16px;
235
+ background-image: url('icons.png');
236
+ background-repeat: no-repeat;
237
+ float: left;
238
+ margin: 2px 2px 0 4px;
219
239
 
220
- span.page_status.not_restricted {
221
- background: image-url('alchemy/icons.png') -290px -39px;
222
- @include opacity(30);
223
- }
240
+ &.restricted {
241
+ background: -258px -39px;
242
+ }
224
243
 
225
- span.page_status.visible {
226
- background: image-url('alchemy/icons.png') -128px -39px;
227
- }
244
+ &.not_restricted {
245
+ background-position: -290px -39px;
246
+ @include opacity(0.3);
247
+ }
228
248
 
229
- span.page_status.not_visible {
230
- background: image-url('alchemy/icons.png') -160px -39px;
231
- @include opacity(30);
232
- }
249
+ &.visible {
250
+ background-position: -128px -39px;
251
+ }
233
252
 
234
- span.page_status.public {
235
- background: image-url('alchemy/icons.png') -192px -39px;
236
- }
253
+ &.not_visible {
254
+ background-position: -160px -39px;
255
+ @include opacity(0.3);
256
+ }
257
+
258
+ &.public {
259
+ background-position: -192px -39px;
260
+ }
237
261
 
238
- span.page_status.not_public {
239
- background: image-url('alchemy/icons.png') -224px -39px;
240
- @include opacity(30);
262
+ &.not_public {
263
+ background-position: -224px -39px;
264
+ @include opacity(0.3);
265
+ }
241
266
  }
242
267
 
243
268
  .site_status {
244
269
  float: left;
245
270
  width: 16px;
246
271
  height: 16px;
247
- background: image-url('alchemy/icons.png') no-repeat 0 -40px;
272
+ background: url('icons.png') no-repeat 0 -40px;
248
273
  }
249
274
 
250
275
  .locked .site_status {
@@ -253,7 +278,7 @@ span.page_status.not_public {
253
278
 
254
279
  #sub_navigation span.page_status_and_name span.site_status {
255
280
  float: none;
256
- display: inline-block;
281
+ @include inline-block;
257
282
  margin-right: 4px;
258
283
  margin-left: 0;
259
284
  margin-bottom: 0;
@@ -280,31 +305,6 @@ a.folder_link {
280
305
  outline: none;
281
306
  }
282
307
 
283
- .sitemap_sitetools {
284
- padding: 0;
285
- float: left;
286
- width: 70px;
287
- margin-left: 8px;
288
- }
289
-
290
- .sitemap_right_tools a {
291
- float: left;
292
- width: 21px;
293
- height: 21px;
294
- }
295
-
296
- .sitemap_sitetools .icon.blank {
297
- margin-left: 2px;
298
- float: left;
299
- margin-top: 3px;
300
- margin-right: 3px;
301
- }
302
-
303
- .sitemap_right_tools span.icon {
304
- margin-top: 3px;
305
- margin-left: 2px;
306
- }
307
-
308
308
  #create_language_tree_form {
309
309
  width: 360px;
310
310