alchemy_cms 2.0.7 → 2.1.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. data/.gitignore +1 -4
  2. data/.travis.yml +1 -1
  3. data/Gemfile +7 -2
  4. data/README.md +6 -6
  5. data/Rakefile +26 -18
  6. data/alchemy_cms.gemspec +14 -14
  7. data/{assets/stylesheets → app/assets/images/alchemy}/Jcrop.gif +0 -0
  8. data/{assets/images → app/assets/images/alchemy}/ajax_loader.gif +0 -0
  9. data/{assets/images → app/assets/images/alchemy}/alchemy-logo.png +0 -0
  10. data/{assets/images → app/assets/images/alchemy}/flags.png +0 -0
  11. data/{assets/images → app/assets/images/alchemy}/gui/navi-tab.png +0 -0
  12. data/{assets/images → app/assets/images/alchemy}/gui/shading_90.png +0 -0
  13. data/{assets/images → app/assets/images/alchemy}/gui/toggle.png +0 -0
  14. data/{assets/images → app/assets/images/alchemy}/icons.png +0 -0
  15. data/{assets/images → app/assets/images/alchemy}/image_loader.gif +0 -0
  16. data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow.gif +0 -0
  17. data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg.gif +0 -0
  18. data/{assets/images → app/assets/images/alchemy}/jquery-sb/select_arrow_bg_hover.gif +0 -0
  19. data/{assets/images → app/assets/images/alchemy}/placeholder.png +0 -0
  20. data/{assets/images/gui → app/assets/images/alchemy}/shading.png +0 -0
  21. data/{assets/images → app/assets/images/alchemy}/swfupload/browse_button.png +0 -0
  22. data/{assets/stylesheets/default/img → app/assets/images/alchemy}/tabs.gif +0 -0
  23. data/{assets/images/jquery-ui → app/assets/images/alchemy}/ui-icons_666666_256x240.png +0 -0
  24. data/app/assets/javascripts/alchemy/alchemy.base.js +212 -0
  25. data/app/assets/javascripts/alchemy/alchemy.buttons.js +36 -0
  26. data/app/assets/javascripts/alchemy/alchemy.dirty.js +91 -0
  27. data/app/assets/javascripts/alchemy/alchemy.dragndrop.js +114 -0
  28. data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.element_editor_selector.js +0 -0
  29. data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.growler.js +0 -0
  30. data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.image_cropper.js +0 -0
  31. data/app/assets/javascripts/alchemy/alchemy.js +26 -0
  32. data/app/assets/javascripts/alchemy/alchemy.js_extensions.js +17 -0
  33. data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.link_overlay.js +1 -1
  34. data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.page_sorter.js +0 -0
  35. data/{assets/javascripts → app/assets/javascripts/alchemy}/alchemy.preview.js +0 -0
  36. data/app/assets/javascripts/alchemy/alchemy.windows.js +438 -0
  37. data/app/assets/stylesheets/alchemy/_defaults.scss +160 -0
  38. data/app/assets/stylesheets/alchemy/alchemy.css +9 -0
  39. data/{assets/stylesheets/alchemy.css → app/assets/stylesheets/alchemy/base.css.scss} +216 -353
  40. data/{assets/stylesheets/elements.css → app/assets/stylesheets/alchemy/elements.css.scss} +41 -70
  41. data/{assets/stylesheets/flags.css → app/assets/stylesheets/alchemy/flags.css.scss} +1 -1
  42. data/{assets/stylesheets/jquery-ui-1.8.7.alchemy.css → app/assets/stylesheets/alchemy/jquery-ui.alchemy.css} +15 -15
  43. data/{assets/stylesheets/jquery.Jcrop.css → app/assets/stylesheets/alchemy/jquery.Jcrop.css.scss} +3 -3
  44. data/{assets/stylesheets/jquery.sb.css → app/assets/stylesheets/alchemy/jquery.sb.css.scss} +19 -29
  45. data/{assets/stylesheets → app/assets/stylesheets/alchemy}/print.css +6 -1
  46. data/{assets/stylesheets → app/assets/stylesheets/alchemy}/standard_set.css +0 -0
  47. data/{assets/stylesheets/alchemy_tinymce_content.css → app/assets/stylesheets/alchemy/tinymce_content.css} +0 -0
  48. data/{assets/stylesheets/alchemy_tinymce_dialog.css → app/assets/stylesheets/alchemy/tinymce_dialog.css} +2 -2
  49. data/app/controllers/admin/attachments_controller.rb +2 -8
  50. data/app/controllers/admin/clipboard_controller.rb +2 -2
  51. data/app/controllers/admin/contents_controller.rb +4 -16
  52. data/app/controllers/admin/elements_controller.rb +2 -2
  53. data/app/controllers/admin/essence_audios_controller.rb +0 -3
  54. data/app/controllers/admin/essence_files_controller.rb +0 -11
  55. data/app/controllers/admin/essence_flashes_controller.rb +0 -3
  56. data/app/controllers/admin/essence_pictures_controller.rb +2 -7
  57. data/app/controllers/admin/essence_videos_controller.rb +0 -3
  58. data/app/controllers/admin/languages_controller.rb +4 -10
  59. data/app/controllers/admin/pages_controller.rb +6 -4
  60. data/app/controllers/admin/pictures_controller.rb +13 -18
  61. data/app/controllers/admin/trash_controller.rb +0 -5
  62. data/app/controllers/admin/users_controller.rb +2 -3
  63. data/app/controllers/alchemy_controller.rb +18 -30
  64. data/app/controllers/pages_controller.rb +21 -24
  65. data/app/helpers/admin/elements_helper.rb +5 -0
  66. data/app/helpers/admin/pages_helper.rb +36 -1
  67. data/app/helpers/alchemy_helper.rb +39 -17
  68. data/app/models/attachment.rb +2 -2
  69. data/app/models/essence_file.rb +1 -1
  70. data/app/models/page.rb +1 -1
  71. data/app/sweepers/pages_sweeper.rb +10 -0
  72. data/app/views/admin/attachments/destroy.js.erb +4 -0
  73. data/app/views/admin/clipboard/insert.js.erb +12 -19
  74. data/app/views/admin/contents/create.js.erb +1 -1
  75. data/app/views/admin/contents/destroy.js.erb +7 -0
  76. data/app/views/admin/contents/order.js.erb +6 -0
  77. data/app/views/admin/elements/_element.html.erb +4 -2
  78. data/app/views/admin/elements/create.js.erb +19 -26
  79. data/app/views/admin/elements/fold.js.erb +1 -1
  80. data/app/views/admin/elements/index.html.erb +1 -1
  81. data/app/views/admin/essence_files/assign.js.erb +8 -0
  82. data/app/views/admin/essence_pictures/save_link.js.erb +3 -0
  83. data/app/views/admin/index.html.erb +37 -27
  84. data/app/views/admin/languages/destroy.js.erb +1 -0
  85. data/app/views/admin/pages/_page.html.erb +1 -1
  86. data/app/views/admin/pages/_sitemap.html.erb +1 -1
  87. data/app/views/admin/pages/edit.html.erb +2 -2
  88. data/app/views/admin/pages/update.js.erb +1 -1
  89. data/app/views/admin/partials/_upload_form.html.erb +11 -11
  90. data/app/views/admin/pictures/archive_overlay.js.erb +1 -0
  91. data/app/views/admin/pictures/flush.js.erb +2 -0
  92. data/app/views/admin/pictures/update.js.erb +1 -0
  93. data/app/views/admin/trash/clear.js.erb +3 -0
  94. data/app/views/alchemy/error_notice.js.erb +1 -0
  95. data/app/views/alchemy/permission_denied.js.erb +2 -0
  96. data/app/views/alchemy/redirect.js.erb +1 -0
  97. data/app/views/alchemy/remote_errors.js.erb +3 -0
  98. data/app/views/alchemy/update.js.erb +5 -0
  99. data/app/views/essences/_essence_file_editor.html.erb +0 -1
  100. data/app/views/essences/_essence_file_view.html.erb +1 -5
  101. data/app/views/essences/_essence_picture_tools.html.erb +1 -1
  102. data/app/views/layouts/alchemy.html.erb +22 -9
  103. data/app/views/pages/show.rss.builder +1 -1
  104. data/config/alchemy/elements.yml +0 -5
  105. data/config/alchemy/page_layouts.yml +1 -1
  106. data/config/asset_packages.yml +17 -19
  107. data/config/authorization_rules.rb +1 -0
  108. data/config/locales/de.yml +0 -1
  109. data/config/routes.rb +1 -1
  110. data/lib/alchemy/tinymce.rb +51 -0
  111. data/lib/alchemy/version.rb +3 -3
  112. data/lib/alchemy_cms.rb +4 -2
  113. data/script/rails +6 -0
  114. data/spec/controllers/admin/clipboard_controller_spec.rb +15 -13
  115. data/spec/controllers/admin/contents_controller_spec.rb +4 -4
  116. data/spec/controllers/admin/trash_controller_spec.rb +6 -9
  117. data/spec/controllers/pages_controller_spec.rb +9 -8
  118. data/spec/dummy/Rakefile +1 -1
  119. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  120. data/spec/dummy/app/assets/stylesheets/application.css +7 -0
  121. data/spec/dummy/app/mailers/.gitkeep +0 -0
  122. data/spec/dummy/app/models/.gitkeep +0 -0
  123. data/spec/dummy/app/views/layouts/application.html.erb +3 -3
  124. data/spec/dummy/config/application.rb +12 -6
  125. data/spec/dummy/config/database.yml +3 -0
  126. data/spec/dummy/config/environments/development.rb +7 -3
  127. data/spec/dummy/config/environments/production.rb +23 -12
  128. data/spec/dummy/config/environments/test.rb +5 -1
  129. data/spec/dummy/config/initializers/secret_token.rb +1 -1
  130. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  131. data/spec/dummy/config/locales/en.yml +1 -1
  132. data/spec/dummy/config/routes.rb +1 -1
  133. data/spec/dummy/lib/assets/.gitkeep +0 -0
  134. data/spec/factories.rb +8 -8
  135. data/spec/helpers/admin/elements_helper_spec.rb +2 -2
  136. data/spec/helpers/contents_helper_spec.rb +1 -1
  137. data/spec/helpers/elements_helper_spec.rb +6 -6
  138. data/spec/helpers/essences_helper_spec.rb +1 -1
  139. data/spec/helpers/pages_helper_spec.rb +37 -37
  140. data/spec/integration/pages_controller_spec.rb +29 -26
  141. data/spec/integration/security_spec.rb +2 -1
  142. data/spec/models/content_spec.rb +1 -1
  143. data/spec/models/element_spec.rb +11 -11
  144. data/spec/models/language_spec.rb +5 -5
  145. data/spec/models/page_spec.rb +54 -54
  146. data/spec/models/user_spec.rb +2 -1
  147. data/spec/routing_spec.rb +1 -1
  148. data/{assets/javascripts/jquery.js → vendor/assets/javascripts/jquery-1.6.2.min.js} +0 -0
  149. data/{assets/javascripts/jquery-ui.js → vendor/assets/javascripts/jquery-ui-custom-1.8.16.min.js} +0 -0
  150. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.Jcrop.min.js +0 -0
  151. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.dialogextend.min.js +7 -7
  152. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.in-place-edit.js +0 -0
  153. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.sb.min.js +0 -0
  154. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.scrollTo-1.4.2-min.js +10 -10
  155. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.nestedSortable.js +0 -0
  156. data/{assets/javascripts → vendor/assets/javascripts/jquery_plugins}/jquery.ui.tabspaging.js +0 -0
  157. data/{assets → vendor/assets}/javascripts/swfupload/fileprogress.js +202 -202
  158. data/{assets → vendor/assets}/javascripts/swfupload/handlers.js +171 -171
  159. data/{assets → vendor/assets}/javascripts/swfupload/queue.js +97 -97
  160. data/{assets → vendor/assets}/javascripts/swfupload/swfupload.js +980 -980
  161. data/{assets → vendor/assets}/javascripts/swfupload/swfupload.swf +0 -0
  162. data/{assets → vendor/assets}/javascripts/tiny_mce/jquery.tinymce.js +0 -0
  163. data/{assets → vendor/assets}/javascripts/tiny_mce/langs/de.js +0 -0
  164. data/{assets → vendor/assets}/javascripts/tiny_mce/langs/en.js +0 -0
  165. data/{assets → vendor/assets}/javascripts/tiny_mce/license.txt +504 -504
  166. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +0 -0
  167. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/de.js +0 -0
  168. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/alchemy_link/langs/en.js +0 -0
  169. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/autoresize/editor_plugin.js +0 -0
  170. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/editor_plugin.js +0 -0
  171. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/fullscreen/fullscreen.htm +110 -110
  172. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/editor_plugin.js +0 -0
  173. data/{assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css → vendor/assets/javascripts/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.erb} +8 -8
  174. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/inlinepopups/template.htm +387 -387
  175. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/editor_plugin.js +0 -0
  176. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pastetext.js +36 -36
  177. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/js/pasteword.js +51 -51
  178. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/de_dlg.js +0 -0
  179. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +0 -0
  180. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pastetext.htm +26 -26
  181. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/paste/pasteword.htm +21 -21
  182. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/cell.htm +180 -180
  183. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/cell.css +16 -16
  184. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/row.css +25 -25
  185. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/css/table.css +13 -13
  186. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/editor_plugin.js +0 -0
  187. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/cell.js +319 -319
  188. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/merge_cells.js +27 -27
  189. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/row.js +237 -237
  190. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/js/table.js +450 -450
  191. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/de_dlg.js +0 -0
  192. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/langs/en_dlg.js +0 -0
  193. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/merge_cells.htm +32 -32
  194. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/row.htm +158 -158
  195. data/{assets → vendor/assets}/javascripts/tiny_mce/plugins/table/table.htm +188 -188
  196. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/about.htm +52 -52
  197. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/anchor.htm +26 -26
  198. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/charmap.htm +51 -51
  199. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/color_picker.htm +74 -74
  200. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/editor_template.js +0 -0
  201. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/image.htm +80 -80
  202. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
  203. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/flash.gif +0 -0
  204. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
  205. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/iframe.gif +0 -0
  206. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/pagebreak.gif +0 -0
  207. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/quicktime.gif +0 -0
  208. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/realmedia.gif +0 -0
  209. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/shockwave.gif +0 -0
  210. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/trans.gif +0 -0
  211. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/video.gif +0 -0
  212. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/img/windowsmedia.gif +0 -0
  213. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/about.js +73 -73
  214. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/anchor.js +43 -43
  215. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/charmap.js +355 -355
  216. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/color_picker.js +329 -329
  217. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/image.js +251 -251
  218. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/link.js +153 -153
  219. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/js/source_editor.js +56 -56
  220. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de.js +0 -0
  221. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/de_dlg.js +0 -0
  222. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en.js +0 -0
  223. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +0 -0
  224. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/link.htm +57 -57
  225. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/shortcuts.htm +47 -47
  226. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/content.css +50 -50
  227. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +117 -117
  228. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
  229. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
  230. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
  231. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
  232. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
  233. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
  234. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +214 -214
  235. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +48 -48
  236. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +117 -117
  237. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
  238. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
  239. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
  240. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +217 -217
  241. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_black.css +7 -7
  242. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css +5 -5
  243. data/{assets → vendor/assets}/javascripts/tiny_mce/themes/advanced/source_editor.htm +25 -25
  244. data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce.js +0 -0
  245. data/{assets → vendor/assets}/javascripts/tiny_mce/tiny_mce_popup.js +0 -0
  246. data/{assets → vendor/assets}/javascripts/tiny_mce/utils/editable_selects.js +70 -70
  247. data/{assets → vendor/assets}/javascripts/tiny_mce/utils/form_utils.js +210 -210
  248. data/{assets → vendor/assets}/javascripts/tiny_mce/utils/mctabs.js +161 -161
  249. data/{assets → vendor/assets}/javascripts/tiny_mce/utils/validate.js +252 -252
  250. metadata +338 -369
  251. data/app/views/elements/_download_editor.html.erb +0 -1
  252. data/app/views/elements/_download_view.html.erb +0 -3
  253. data/assets/javascripts/alchemy.js +0 -903
  254. data/assets/javascripts/jquery.rails.js +0 -315
  255. data/assets/stylesheets/ie6.css +0 -18
  256. data/config/initializers/tinymce_hammer.rb +0 -31
@@ -0,0 +1,160 @@
1
+ $text-color: #333333;
2
+ $light-blue: #C6DBE7;
3
+ $light-gray: #EDEDED;
4
+ $medium-gray: #E3E3E3;
5
+ $dark-gray: #666666;
6
+ $button-bg-color: #F7F7F7;
7
+ $button-hover-bg-color: #e6f0f5;
8
+ $button-border-color: #9A9A9A;
9
+ $button-hover-border-color: #888888;
10
+ $button-text-shadow: #f2f2f2 1px 1px 0;
11
+
12
+ $default-padding: 4px;
13
+ $default-margin: $default-padding;
14
+
15
+ $default-font-face: "Lucida Grande", Arial, sans-serif;
16
+ $default-font-size: 12px;
17
+ $default-font-style: $default-font-size $default-font-face;
18
+
19
+ $default-border: 1px solid #AFAFAF;
20
+
21
+ @mixin button-styles {
22
+ margin: 0;
23
+ font: 11px $default-font-face;
24
+ border: 1px solid $button-border-color;
25
+ background-color: $button-bg-color;
26
+ background-image: image-url('alchemy/shading.png');
27
+ background-repeat: repeat-x;
28
+ background-position: 0 -73px;
29
+ cursor: pointer;
30
+ color: $text-color;
31
+ text-shadow: $button-text-shadow;
32
+ @include rounded-corner;
33
+ }
34
+
35
+ @mixin button-hover-styles {
36
+ text-decoration: none;
37
+ text-shadow: none;
38
+ border: 1px solid $button-hover-border-color;
39
+ background: $button-hover-bg-color image-url('alchemy/shading.png') repeat-x 50% -75px;
40
+ font-weight: normal;
41
+ }
42
+
43
+ @mixin rounded-corner {
44
+ $radius: 3px;
45
+ border-radius: $radius;
46
+ -o-border-radius: $radius;
47
+ -ms-border-radius: $radius;
48
+ -moz-border-radius: $radius;
49
+ -webkit-border-radius: $radius;
50
+ }
51
+
52
+ @mixin reset-border-radius {
53
+ $radius: 0px;
54
+ border-radius: $radius;
55
+ -o-border-radius: $radius;
56
+ -ms-border-radius: $radius;
57
+ -moz-border-radius: $radius;
58
+ -webkit-border-radius: $radius;
59
+ }
60
+
61
+ @mixin top-rounded-border {
62
+ $sidea: top-left;
63
+ $sideb: top-right;
64
+ $radius: 3px;
65
+ border-#{$sidea}-radius: $radius;
66
+ border-#{$sideb}-radius: $radius;
67
+ -o-border-#{$sidea}-radius: $radius;
68
+ -o-border-#{$sideb}-radius: $radius;
69
+ -ms-border-#{$sidea}-radius: $radius;
70
+ -ms-border-#{$sideb}-radius: $radius;
71
+ -moz-border-radius-#{$sidea}: $radius;
72
+ -moz-border-radius-#{$sideb}: $radius;
73
+ -webkit-border-#{$sidea}-radius: $radius;
74
+ -webkit-border-#{$sideb}-radius: $radius;
75
+ }
76
+
77
+ @mixin left-rounded-border {
78
+ $sidea: bottom-left;
79
+ $sideb: top-left;
80
+ $radius: 3px;
81
+ border-#{$sidea}-radius: $radius;
82
+ border-#{$sideb}-radius: $radius;
83
+ -o-border-#{$sidea}-radius: $radius;
84
+ -o-border-#{$sideb}-radius: $radius;
85
+ -ms-border-#{$sidea}-radius: $radius;
86
+ -ms-border-#{$sideb}-radius: $radius;
87
+ -moz-border-radius-#{$sidea}: $radius;
88
+ -moz-border-radius-#{$sideb}: $radius;
89
+ -webkit-border-#{$sidea}-radius: $radius;
90
+ -webkit-border-#{$sideb}-radius: $radius;
91
+ }
92
+
93
+ @mixin right-rounded-border {
94
+ $sidea: bottom-right;
95
+ $sideb: top-right;
96
+ $radius: 3px;
97
+ border-#{$sidea}-radius: $radius;
98
+ border-#{$sideb}-radius: $radius;
99
+ -o-border-#{$sidea}-radius: $radius;
100
+ -o-border-#{$sideb}-radius: $radius;
101
+ -ms-border-#{$sidea}-radius: $radius;
102
+ -ms-border-#{$sideb}-radius: $radius;
103
+ -moz-border-radius-#{$sidea}: $radius;
104
+ -moz-border-radius-#{$sideb}: $radius;
105
+ -webkit-border-#{$sidea}-radius: $radius;
106
+ -webkit-border-#{$sideb}-radius: $radius;
107
+ }
108
+
109
+ @mixin bottom-rounded-border {
110
+ $sidea: bottom-left;
111
+ $sideb: bottom-right;
112
+ $radius: 3px;
113
+ border-#{$sidea}-radius: $radius;
114
+ border-#{$sideb}-radius: $radius;
115
+ -o-border-#{$sidea}-radius: $radius;
116
+ -o-border-#{$sideb}-radius: $radius;
117
+ -ms-border-#{$sidea}-radius: $radius;
118
+ -ms-border-#{$sideb}-radius: $radius;
119
+ -moz-border-radius-#{$sidea}: $radius;
120
+ -moz-border-radius-#{$sideb}: $radius;
121
+ -webkit-border-#{$sidea}-radius: $radius;
122
+ -webkit-border-#{$sideb}-radius: $radius;
123
+ }
124
+
125
+ @mixin bottom-left-rounded-border {
126
+ $side: bottom-left;
127
+ $radius: 3px;
128
+ border-#{$side}-radius: $radius;
129
+ -o-border-#{$side}-radius: $radius;
130
+ -ms-border-#{$side}-radius: $radius;
131
+ -moz-border-radius-#{$side}: $radius;
132
+ -webkit-border-#{$side}-radius: $radius;
133
+ }
134
+
135
+ @mixin rounded-search-field {
136
+ $radius: 12px;
137
+ border-radius: $radius;
138
+ -o-border-radius: $radius;
139
+ -ms-border-radius: $radius;
140
+ -moz-border-radius: $radius;
141
+ -webkit-border-radius: $radius;
142
+ }
143
+
144
+ @mixin opacity-30 {
145
+ $opacity: 0.3;
146
+ opacity: $opacity;
147
+ filter: alpha(opacity = $opacity*100);
148
+ }
149
+
150
+ @mixin opacity-50 {
151
+ $opacity: 0.5;
152
+ opacity: $opacity;
153
+ filter: alpha(opacity = $opacity*100);
154
+ }
155
+
156
+ @mixin opacity-95 {
157
+ $opacity: 0.95;
158
+ opacity: $opacity;
159
+ filter: alpha(opacity = $opacity*100);
160
+ }
@@ -0,0 +1,9 @@
1
+ /* Alchemy CMS Sprocket Manifest
2
+ * ------------------------------
3
+ *= require alchemy/base
4
+ *= require alchemy/elements
5
+ *= require alchemy/flags
6
+ *= require alchemy/jquery-ui.alchemy
7
+ *= require alchemy/jquery.Jcrop
8
+ *= require alchemy/jquery.sb
9
+ */
@@ -1,4 +1,4 @@
1
- /* @override http://localhost:3000/stylesheets/alchemy/alchemy.css */
1
+ @import "defaults";
2
2
 
3
3
  html {
4
4
  height: 100%;
@@ -12,15 +12,15 @@ html {
12
12
  body#alchemy {
13
13
  margin: 0;
14
14
  padding: 0;
15
- color: #333;
16
- font: 12px "Lucida Grande", Arial, sans-serif;
17
- background-color: #ededed;
15
+ color: $text-color;
16
+ font: $default-font-style;
17
+ background-color: $light-gray;
18
18
  height: 100%;
19
19
  cursor: default;
20
20
  }
21
21
 
22
22
  a {
23
- color: #333;
23
+ color: $text-color;
24
24
  text-decoration: none;
25
25
  }
26
26
 
@@ -43,17 +43,14 @@ div#flash_notices {
43
43
  }
44
44
 
45
45
  div.flash {
46
+ @include rounded-corner;
47
+ @include opacity-95;
46
48
  padding: 8px 8px 8px 30px;
47
49
  font-weight: bold;
48
50
  border-width: 1px;
49
51
  border-style: solid;
50
- -webkit-border-radius: 4px;
51
- -moz-border-radius: 4px;
52
- border-radius: 4px;
53
52
  z-index: 1000;
54
- opacity: 0.95;
55
- filter: alpha(opacity=95);
56
- margin: 4px;
53
+ margin: $default-margin;
57
54
  position: relative;
58
55
  max-height: 64px;
59
56
  }
@@ -94,10 +91,7 @@ div.login_signup_box {
94
91
  padding: 16px;
95
92
  border: 1px solid #9a9a9a;
96
93
  background-color: #dedede;
97
- -webkit-border-radius: 3px;
98
- -moz-border-radius: 3px;
99
- -o-border-radius: 3px;
100
- border-radius: 3px;
94
+ @include rounded-corner;
101
95
  -webkit-box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
102
96
  -moz-box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
103
97
  -o-box-shadow: 1px 1px 8px rgba(0, 3, 51, 0.5);
@@ -121,7 +115,7 @@ div.archive_pagination_links {
121
115
  div.archive_pagination_links span.pagination_current_page {
122
116
  background-position: 0 -21px;
123
117
  font-weight: bold;
124
- color: #333;
118
+ color: $text-color;
125
119
  }
126
120
 
127
121
  div.archive_pagination_links .first_page {
@@ -150,14 +144,12 @@ div.archive_pagination_links .first_page {
150
144
 
151
145
  .archive_pagination_links span, .archive_pagination_links a {
152
146
  padding: 0;
153
- color: #333;
154
- -webkit-border-radius: 3px;
155
- -moz-border-radius: 3px;
156
- border-radius: 3px;
147
+ color: $text-color;
148
+ @include rounded-corner;
157
149
  width: 21px;
158
150
  height: 21px;
159
151
  display: inline-block;
160
- background: url(/images/alchemy/gui/button_background.png) no-repeat 0 0;
152
+ background: image-url('alchemy/shading.png') no-repeat 0 0;
161
153
  }
162
154
 
163
155
  .archive_pagination_links span {
@@ -180,21 +172,16 @@ div.pagination {
180
172
  div.pagination a,
181
173
  div.pagination span,
182
174
  div.pagination em {
175
+ @include button-styles;
176
+ font-size: 12px;
177
+ height: 25px;
178
+ line-height: 25px;
183
179
  padding: 4px 8px;
184
- border: 1px solid #c0c0c0;
185
- -webkit-border-radius: 3px;
186
- -moz-border-radius: 3px;
187
- -o-border-radius: 3px;
188
- border-radius: 3px;
189
- background: white url(/images/alchemy/gui/shading.png) repeat-x 0 -75px;
190
- height: 23px;
191
- line-height: 23px;
192
- font-style: normal;
193
180
  }
194
181
 
195
182
  div.pagination a:hover {
196
183
  background-color: #e6f0f5;
197
- color: #333;
184
+ color: $text-color;
198
185
  border: 1px solid #888;
199
186
  text-shadow: 0 1px 1px #fff;
200
187
  text-decoration: none;
@@ -202,7 +189,7 @@ div.pagination a:hover {
202
189
 
203
190
  div.pagination .current {
204
191
  background-color: #e6f0f5;
205
- color: #333;
192
+ color: $text-color;
206
193
  border: 1px solid #888;
207
194
  text-shadow: 0px 1px 1px #fff;
208
195
  }
@@ -250,7 +237,7 @@ form#login.new_user_session {
250
237
 
251
238
  #login_notice {
252
239
  overflow: auto;
253
- padding: 8px;
240
+ padding: 2*$default-padding;
254
241
  background-color: #fff;
255
242
  text-align: left;
256
243
  }
@@ -290,7 +277,7 @@ div#overlay {
290
277
  }
291
278
 
292
279
  div#overlay_text_box {
293
- color: #333;
280
+ color: $text-color;
294
281
  font-size: 18px;
295
282
  text-align: center;
296
283
  margin-top: 25%;
@@ -330,12 +317,12 @@ div#top_menu {
330
317
  left: 0;
331
318
  width: 65px;
332
319
  overflow: hidden;
333
- border-right: 1px solid #afafaf;
320
+ border-right: $default-border;
334
321
  }
335
322
 
336
323
  #main_menu_background {
337
324
  height: 100%;
338
- background: #c6dbe7;
325
+ background: $light-blue;
339
326
  width: 65px;
340
327
  z-index: 0;
341
328
  position: absolute;
@@ -367,7 +354,7 @@ div#top_menu {
367
354
  /* @end */
368
355
 
369
356
  #main_content {
370
- background-color: #ededed;
357
+ background-color: $light-gray;
371
358
  position: absolute;
372
359
  top: 90px;
373
360
  left: 65px;
@@ -418,18 +405,11 @@ span.updated_at {
418
405
  }
419
406
 
420
407
  div.widget {
421
- padding: 8px;
408
+ padding: 2*$default-padding;
422
409
  margin: 16px 0;
423
- background-color: #e3e3e3;
424
- -webkit-border-radius: 3px;
425
- -moz-border-radius: 3px;
426
- -o-border-radius: 3px;
427
- border-radius: 3px;
428
- -webkit-box-shadow: 0px 0px 4px rgba(0, 3, 51, 0.2);
429
- -moz-box-shadow: 0px 0px 4px rgba(0, 3, 51, 0.2);
430
- -o-box-shadow: 0px 0px 4px rgba(0, 3, 51, 0.2);
431
- box-shadow: 0px 0px 4px rgba(0, 3, 51, 0.2);
432
- border: 1px solid #afafaf;
410
+ background-color: $medium-gray;
411
+ border: $default-border;
412
+ @include rounded-corner;
433
413
  }
434
414
 
435
415
  div.widget p {
@@ -441,18 +421,15 @@ div.widget p {
441
421
  #dashboard div.widget ul {
442
422
  padding: 0;
443
423
  list-style-type: none;
444
- -webkit-border-radius: 3px;
445
- -moz-border-radius: 3px;
446
- -o-border-radius: 3px;
447
- border-radius: 3px;
424
+ @include rounded-corner;
448
425
  margin-right: -9px;
449
426
  margin-left: -9px;
450
427
  margin-bottom: -9px;
451
- border: 1px solid #afafaf;
428
+ border: $default-border;
452
429
  }
453
430
 
454
431
  #dashboard div.widget ul li {
455
- padding: 8px;
432
+ padding: 2*$default-padding;
456
433
  margin-bottom: 0;
457
434
  }
458
435
 
@@ -494,7 +471,7 @@ div#alchemy_greeting {
494
471
  width: 396px;
495
472
  margin-right: auto;
496
473
  margin-left: auto;
497
- padding: 8px;
474
+ padding: 2*$default-padding;
498
475
  margin-top: 1em;
499
476
  text-align: right;
500
477
  }
@@ -520,13 +497,11 @@ a.drop_down_select img {
520
497
  #alchemy a.search_field_clear {
521
498
  width: 16px;
522
499
  height: 16px;
523
- background: url(/images/alchemy/jquery-ui/ui-icons_666666_256x240.png) no-repeat -80px -128px;
500
+ background: image-url('alchemy/ui-icons_666666_256x240.png') no-repeat -80px -128px;
524
501
  position: absolute;
525
502
  right: 8px;
526
503
  top: 4px;
527
- -webkit-border-radius: 3px;
528
- -moz-border-radius: 3px;
529
- border-radius: 3px;
504
+ @include rounded-corner;
530
505
  }
531
506
 
532
507
  #language_select {
@@ -549,9 +524,7 @@ a.drop_down_select img {
549
524
  .js_filter_field_box .js_filter_field {
550
525
  width: 170px;
551
526
  text-align: left;
552
- -webkit-border-radius: 12px;
553
- -moz-border-radius: 12px;
554
- border-radius: 12px;
527
+ @include rounded-search-field;
555
528
  padding: 3px 24px 2px;
556
529
  }
557
530
 
@@ -572,13 +545,11 @@ a.drop_down_select img {
572
545
  .js_filter_field_box .js_filter_field_clear {
573
546
  width: 15px;
574
547
  height: 15px;
575
- background: url(/images/alchemy/icons.png) no-repeat 0 -70px;
548
+ background: image-url('alchemy/icons.png') no-repeat 0 -104px;
576
549
  position: absolute;
577
550
  right: 8px;
578
551
  top: 4px;
579
- -webkit-border-radius: 3px;
580
- -moz-border-radius: 3px;
581
- border-radius: 3px;
552
+ @include rounded-corner;
582
553
  }
583
554
 
584
555
  h1 {
@@ -628,12 +599,9 @@ p {
628
599
  div.info {
629
600
  padding: 8px 8px 8px 32px;
630
601
  line-height: 17px;
631
- color: #333;
602
+ color: $text-color;
632
603
  border: 1px solid #0b5c84;
633
- -webkit-border-radius: 3px;
634
- -moz-border-radius: 3px;
635
- -o-border-radius: 3px;
636
- border-radius: 3px;
604
+ @include rounded-corner;
637
605
  background-color: #eaf4f9;
638
606
  position: relative;
639
607
  margin-bottom: 8px;
@@ -650,7 +618,7 @@ div#bottom_panel {
650
618
  right: 0;
651
619
  width: 100%;
652
620
  z-index: 10;
653
- background: #e3e3e3 url(../../images/alchemy/gui/shading.png) repeat-x 0 0;
621
+ background: $medium-gray image-url('alchemy/shading.png') repeat-x 0 0;
654
622
  }
655
623
 
656
624
  div#bottom_panel div.info {
@@ -725,19 +693,16 @@ div#page {
725
693
  display: block;
726
694
  width: 16px;
727
695
  height: 16px;
728
- background: url(/images/alchemy/icons.png) no-repeat -63px -72px;
696
+ background: image-url('alchemy/icons.png') no-repeat -63px -72px;
729
697
  cursor: pointer;
730
698
  }
731
699
 
732
700
  div.tip {
733
701
  background-color: #eff8d0;
734
702
  border: 1px solid #cce21c;
735
- padding: 8px;
703
+ padding: 2*$default-padding;
736
704
  margin: 8px 0;
737
- -webkit-border-radius: 3px;
738
- -moz-border-radius: 3px;
739
- -o-border-radius: 3px;
740
- border-radius: 3px;
705
+ @include rounded-corner;
741
706
  width: 450px;
742
707
  }
743
708
 
@@ -754,8 +719,8 @@ div.tip {
754
719
  height: 22px;
755
720
  line-height: 23px;
756
721
  padding-left: 5px;
757
- background: #c6dbe7;
758
- border-bottom: 1px solid #afafaf;
722
+ background: $light-blue;
723
+ border-bottom: $default-border;
759
724
  padding-top: 4px;
760
725
  z-index: 5;
761
726
  position: relative;
@@ -781,7 +746,7 @@ div.tip {
781
746
 
782
747
  #sub_navigation span.page_status_and_name {
783
748
  padding: 0 8px;
784
- background-color: #e3e3e3;
749
+ background-color: $medium-gray;
785
750
  text-shadow: #fff 0 1px 2px;
786
751
  -webkit-user-select: none;
787
752
  -moz-user-select: none;
@@ -790,12 +755,8 @@ div.tip {
790
755
  cursor: default;
791
756
  line-height: 20px;
792
757
  float: left;
793
- -webkit-border-top-right-radius: 3px;
794
- -webkit-border-top-left-radius: 3px;
795
- -moz-border-radius: 3px 3px 0 0;
796
- -o-border-radius: 3px 3px 0 0;
797
- border-radius: 3px 3px 0 0;
798
- border: 1px solid #afafaf;
758
+ @include top-rounded-border;
759
+ border: $default-border;
799
760
  border-bottom-style: none;
800
761
  height: 22px;
801
762
  }
@@ -823,12 +784,8 @@ div.tip {
823
784
  text-shadow: #fff 0 0px 4px;
824
785
  background: #d6e0e6;
825
786
  color: #444;
826
- -webkit-border-top-right-radius: 3px;
827
- -webkit-border-top-left-radius: 3px;
828
- -moz-border-radius: 3px 3px 0 0;
829
- -o-border-radius: 3px 3px 0 0;
830
- border-radius: 3px 3px 0 0;
831
- border: 1px solid #afafaf;
787
+ @include top-rounded-border;
788
+ border: $default-border;
832
789
  border-bottom-style: none;
833
790
  margin-right: 1px;
834
791
  }
@@ -849,7 +806,7 @@ div.tip {
849
806
  }
850
807
 
851
808
  #sub_navigation div.subnavi_tab:hover {
852
- color: #333;
809
+ color: $text-color;
853
810
  text-decoration: none;
854
811
  }
855
812
 
@@ -858,8 +815,8 @@ div.tip {
858
815
  position: relative;
859
816
  padding: 0px 8px;
860
817
  height: 22px;
861
- color: #333;
862
- background-color: #e3e3e3;
818
+ color: $text-color;
819
+ background-color: $medium-gray;
863
820
  text-shadow: #fff 0 1px 2px;
864
821
  -webkit-user-select: none;
865
822
  -moz-user-select: none;
@@ -900,11 +857,7 @@ div.tip {
900
857
  overflow: hidden;
901
858
  display: block;
902
859
  padding-top: 7px;
903
- -webkit-border-top-left-radius: 3px 3px;
904
- -webkit-border-bottom-left-radius: 3px 3px;
905
- -moz-border-radius: 3px 0px 0px 3px;
906
- -o-border-radius: 3px 0px 0px 3px;
907
- border-radius: 3px 0px 0px 3px;
860
+ @include left-rounded-border;
908
861
  margin-bottom: 1px;
909
862
  margin-top: 1px;
910
863
  border: 1px none #afafaf;
@@ -918,7 +871,7 @@ div.tip {
918
871
  #main_navi a.main_navi_entry:hover {
919
872
  cursor: pointer;
920
873
  text-decoration: none;
921
- color: #333;
874
+ color: $text-color;
922
875
  }
923
876
 
924
877
  #main_navi a.main_navi_entry img {
@@ -932,10 +885,10 @@ div.tip {
932
885
 
933
886
  #main_navi a.main_navi_entry.active {
934
887
  background: #baced9;
935
- color: #333;
888
+ color: $text-color;
936
889
  cursor: default;
937
890
  text-shadow: #fff 0 1px 2px;
938
- border: 1px solid #afafaf;
891
+ border: $default-border;
939
892
  padding-left: 0;
940
893
  border-right-style: none;
941
894
  padding-top: 6px;
@@ -1000,7 +953,7 @@ a.sitemap_pagename_link:hover:after {
1000
953
  height: 16px;
1001
954
  float: left;
1002
955
  margin-right: 4px;
1003
- background: url(/images/alchemy/icons.png) -160px -168px;
956
+ background: image-url('alchemy/icons.png') -160px -168px;
1004
957
  margin-top: 4px;
1005
958
  }
1006
959
 
@@ -1053,11 +1006,11 @@ div.sitemap_left_images {
1053
1006
  margin-top: 3px;
1054
1007
  float: left;
1055
1008
  margin-right: 8px;
1056
- background-color: #ededed;
1009
+ background-color: $light-gray;
1057
1010
  }
1058
1011
 
1059
1012
  #sitemap a.page_folder {
1060
- background-image: url(/images/alchemy/gui/toggle.png);
1013
+ background-image: image-url('alchemy/gui/toggle.png');
1061
1014
  background-repeat: no-repeat;
1062
1015
  height: 9px;
1063
1016
  width: 9px;
@@ -1077,7 +1030,7 @@ div.sitemap_left_images {
1077
1030
 
1078
1031
  div.sitemap_right_tools {
1079
1032
  height: 22px;
1080
- background-color: #ededed;
1033
+ background-color: $light-gray;
1081
1034
  padding-left: 16px;
1082
1035
  float: right;
1083
1036
  width: 100px;
@@ -1096,7 +1049,6 @@ ul.list li .sitemap_toolrow {
1096
1049
 
1097
1050
  ul#sitemap .sitemap_sitename,
1098
1051
  ul.list .sitemap_sitename {
1099
- -moz-border-radius: 3px 2px 2px 2px;
1100
1052
  background-color: #EDEDED;
1101
1053
  height: 22px;
1102
1054
  line-height: 22px;
@@ -1104,9 +1056,7 @@ ul.list .sitemap_sitename {
1104
1056
  }
1105
1057
 
1106
1058
  div.page_infos {
1107
- -webkit-border-radius: 0 3px 3px 0;
1108
- -moz-border-radius: 0 3px 3px 0;
1109
- border-radius: 0 3px 3px 0;
1059
+ @include top-rounded-border;
1110
1060
  background-color: #FFFFFF;
1111
1061
  border-left: 1px solid #EDEDED;
1112
1062
  float: right;
@@ -1132,30 +1082,30 @@ div.page_infos {
1132
1082
  }
1133
1083
 
1134
1084
  span.page_status.restricted {
1135
- background: url(/images/alchemy/icons.png) -258px -39px;
1085
+ background: image-url('alchemy/icons.png') -258px -39px;
1136
1086
  }
1137
1087
 
1138
1088
  span.page_status.not_restricted {
1139
- background: url(/images/alchemy/icons.png) -290px -39px;
1140
- opacity: 0.3;
1089
+ background: image-url('alchemy/icons.png') -290px -39px;
1090
+ @include opacity-30;
1141
1091
  }
1142
1092
 
1143
1093
  span.page_status.visible {
1144
- background: url(/images/alchemy/icons.png) -128px -39px;
1094
+ background: image-url('alchemy/icons.png') -128px -39px;
1145
1095
  }
1146
1096
 
1147
1097
  span.page_status.not_visible {
1148
- background: url(/images/alchemy/icons.png) -160px -39px;
1149
- opacity: 0.3;
1098
+ background: image-url('alchemy/icons.png') -160px -39px;
1099
+ @include opacity-30;
1150
1100
  }
1151
1101
 
1152
1102
  span.page_status.public {
1153
- background: url(/images/alchemy/icons.png) -192px -39px;
1103
+ background: image-url('alchemy/icons.png') -192px -39px;
1154
1104
  }
1155
1105
 
1156
1106
  span.page_status.not_public {
1157
- background: url(/images/alchemy/icons.png) -224px -39px;
1158
- opacity: 0.3;
1107
+ background: image-url('alchemy/icons.png') -224px -39px;
1108
+ @include opacity-30;
1159
1109
  }
1160
1110
 
1161
1111
  #sideboard div.sideboard_widget img {
@@ -1167,7 +1117,7 @@ span.page_status.not_public {
1167
1117
  float: left;
1168
1118
  width: 16px;
1169
1119
  height: 16px;
1170
- background: url(/images/alchemy/icons.png) no-repeat 0 -40px;
1120
+ background: image-url('alchemy/icons.png') no-repeat 0 -40px;
1171
1121
  }
1172
1122
 
1173
1123
  .locked .site_status {
@@ -1200,14 +1150,6 @@ ul#sitemap li img {
1200
1150
 
1201
1151
  /* @group site_tools */
1202
1152
 
1203
- .sitemap_line {
1204
- float: left;
1205
- width: 15px;
1206
- height: 30px;
1207
- margin: 0 2px 1px 4px;
1208
- background: url(/images/alchemy/gui/sitemap_lines.png) no-repeat;
1209
- }
1210
-
1211
1153
  a.folder_link {
1212
1154
  text-decoration: none;
1213
1155
  outline: none;
@@ -1342,15 +1284,12 @@ div#user_list_legend {
1342
1284
  z-index: 10;
1343
1285
  padding: 6px;
1344
1286
  height: 40px;
1345
- background: #e3e3e3 url(/images/alchemy/gui/shading.png) repeat-x 0 -40px;
1287
+ background: $medium-gray image-url('alchemy/shading.png') repeat-x 0 -40px;
1346
1288
  margin-right: 0px;
1347
- border: 1px solid #afafaf;
1289
+ border: $default-border;
1348
1290
  border-top-style: none;
1349
1291
  border-right-style: none;
1350
- -webkit-border-radius: 0 0 0 3px;
1351
- -moz-border-radius: 0 0 0 3px;
1352
- -o-border-radius: 0 0 0 3px;
1353
- border-radius: 0 0 0 3px;
1292
+ @include bottom-left-rounded-border;
1354
1293
  position: relative;
1355
1294
  margin-left: 5px;
1356
1295
  }
@@ -1407,20 +1346,11 @@ div#toolbar a.button:active {
1407
1346
  background-position: 0 -21px;
1408
1347
  }
1409
1348
 
1410
- div#toolbar_buttons span.file_upload {
1411
- background-image: url(/images/alchemy/icons/file_upload.png);
1412
- }
1413
-
1414
1349
  /* @group add, edit and delete buttons */
1415
1350
 
1416
1351
  button.icon_button {
1417
- background: #f7f7f7 url(/images/alchemy/gui/shading.png) repeat-x 0 -75px;
1418
- border: 1px solid #9a9a9a;
1419
- -webkit-border-radius: 3px;
1420
- -moz-border-radius: 3px;
1421
- border-radius: 3px;
1422
- cursor: pointer;
1423
- padding: 4px;
1352
+ @include button-styles;
1353
+ padding: $default-padding;
1424
1354
  height: 25px;
1425
1355
  line-height: 19px;
1426
1356
  font-size: 0;
@@ -1437,7 +1367,7 @@ button.icon_button.small {
1437
1367
 
1438
1368
  button.icon_button.small:hover {
1439
1369
  background-color: #e6f0f5;
1440
- color: #666;
1370
+ color: $dark-gray;
1441
1371
  border: 1px solid #888;
1442
1372
  text-shadow: 0 1px 4px #fff;
1443
1373
  text-decoration: none;
@@ -1445,7 +1375,7 @@ button.icon_button.small:hover {
1445
1375
 
1446
1376
  button.icon_button:hover {
1447
1377
  background-color: #e6f0f5;
1448
- color: #666;
1378
+ color: $dark-gray;
1449
1379
  border: 1px solid #888;
1450
1380
  text-shadow: 0 1px 4px #fff;
1451
1381
  text-decoration: none;
@@ -1466,14 +1396,12 @@ a.icon_button {
1466
1396
  width: 23px;
1467
1397
  height: 23px;
1468
1398
  background-color: #f7f7f7;
1469
- background-image: url(/images/alchemy/gui/shading.png);
1399
+ background-image: image-url('alchemy/shading.png');
1470
1400
  background-repeat: repeat-x;
1471
1401
  background-position: 0 -75px;
1472
1402
  margin-right: 8px;
1473
1403
  border: 1px solid #9a9a9a;
1474
- -webkit-border-radius: 3px;
1475
- -moz-border-radius: 3px;
1476
- border-radius: 3px;
1404
+ @include rounded-corner;
1477
1405
  -webkit-user-select: none;
1478
1406
  -moz-user-select: none;
1479
1407
  user-select: none;
@@ -1504,7 +1432,7 @@ a.icon_button.old_icon {
1504
1432
 
1505
1433
  a.icon_button:hover {
1506
1434
  background-color: #e6f0f5;
1507
- color: #666;
1435
+ color: $dark-gray;
1508
1436
  border: 1px solid #888;
1509
1437
  text-shadow: 0 1px 4px #fff;
1510
1438
  text-decoration: none;
@@ -1577,15 +1505,15 @@ a.icon_button span.icon {
1577
1505
  }
1578
1506
 
1579
1507
  span.icon.zoom-out {
1580
- background: url(/images/alchemy/icons.png) -416px -72px;
1508
+ background: image-url('alchemy/icons.png') -416px -72px;
1581
1509
  }
1582
1510
 
1583
1511
  span.icon.zoom-equal {
1584
- background: url(/images/alchemy/icons.png) -448px -72px;
1512
+ background: image-url('alchemy/icons.png') -448px -72px;
1585
1513
  }
1586
1514
 
1587
1515
  span.icon.zoom-in {
1588
- background: url(/images/alchemy/icons.png) -480px -72px;
1516
+ background: image-url('alchemy/icons.png') -480px -72px;
1589
1517
  }
1590
1518
 
1591
1519
  a.icon_button.small span.icon {
@@ -1597,7 +1525,7 @@ a.icon_button.small span.icon {
1597
1525
  }
1598
1526
 
1599
1527
  span.icon.delete-small {
1600
- background: url(/images/alchemy/icons.png) 0 -72px;
1528
+ background: image-url('alchemy/icons.png') 0 -72px;
1601
1529
  }
1602
1530
 
1603
1531
  a.icon_button span.old_icon {
@@ -1623,7 +1551,7 @@ div.table_right span.tools a.icon_button img {
1623
1551
 
1624
1552
  #user_edit form {
1625
1553
  margin: 0;
1626
- padding: 8px;
1554
+ padding: 2*$default-padding;
1627
1555
  }
1628
1556
 
1629
1557
  table {
@@ -1643,7 +1571,7 @@ table.list {
1643
1571
 
1644
1572
  table.list td,
1645
1573
  table.list th {
1646
- padding: 4px;
1574
+ padding: $default-padding;
1647
1575
  white-space: nowrap;
1648
1576
  }
1649
1577
 
@@ -1685,7 +1613,7 @@ table.list tr.even td {
1685
1613
 
1686
1614
  ul.list {
1687
1615
  margin: 0;
1688
- padding: 8px;
1616
+ padding: 2*$default-padding;
1689
1617
  list-style-type: none;
1690
1618
  }
1691
1619
 
@@ -1701,7 +1629,7 @@ ul#sitemap.list {
1701
1629
  padding: 0 16px 116px;
1702
1630
  }
1703
1631
 
1704
- #sitemap .drop_hover {
1632
+ /*#sitemap .drop_hover {
1705
1633
  background: url(/images/alchemy/gui/insertpage.png) no-repeat bottom left;
1706
1634
  outline: 1px dotted #999;
1707
1635
  }
@@ -1720,6 +1648,7 @@ ul#sitemap.list {
1720
1648
  background-position: 24px 100%;
1721
1649
  padding-bottom: 16px;
1722
1650
  }
1651
+ */
1723
1652
 
1724
1653
  ul.list li {
1725
1654
  list-style-type: none;
@@ -1738,10 +1667,10 @@ ul.list li.legend {
1738
1667
  }
1739
1668
 
1740
1669
  .list div.detail_row {
1741
- background-color: #e3e3e3;
1670
+ background-color: $medium-gray;
1742
1671
  font-size: 10px;
1743
1672
  margin-top: 3px;
1744
- padding: 4px;
1673
+ padding: $default-padding;
1745
1674
  overflow: hidden;
1746
1675
  }
1747
1676
 
@@ -1800,31 +1729,15 @@ table.list td.icon .icon {
1800
1729
  input#search_input_field {
1801
1730
  width: 170px;
1802
1731
  text-align: left;
1803
- -webkit-border-radius: 12px;
1804
- -moz-border-radius: 12px;
1805
- border-radius: 12px;
1732
+ @include rounded-search-field;
1806
1733
  padding: 3px 24px 2px;
1807
1734
  height: 25px;
1808
1735
  }
1809
1736
 
1810
- input.button,
1737
+ input.button,
1811
1738
  a.button,
1812
1739
  button.button {
1813
- margin: 0;
1814
- font: 11px "Lucida Grande", "Lucida Sans", Lucida, sans-serif;
1815
- border: 1px solid #9a9a9a;
1816
- background-color: #f5f5f5;
1817
- background-image: url(/images/alchemy/gui/shading.png);
1818
- background-repeat: repeat-x;
1819
- background-position: 0 -73px;
1820
- -webkit-border-radius: 3px;
1821
- -moz-border-radius: 3px;
1822
- -o-border-radius: 3px;
1823
- -ms-border-radius: 3px;
1824
- border-radius: 3px;
1825
- cursor: pointer;
1826
- color: #333;
1827
- text-shadow: #f2f2f2 1px 1px 0;
1740
+ @include button-styles;
1828
1741
  }
1829
1742
 
1830
1743
  #new_element button.button {
@@ -1861,11 +1774,7 @@ a.button:hover,
1861
1774
  a.button:focus,
1862
1775
  button.button:hover,
1863
1776
  button.button:focus {
1864
- text-decoration: none;
1865
- text-shadow: none;
1866
- border: 1px solid #888888;
1867
- background: #e6f0f5 url(/images/alchemy/gui/shading.png) repeat-x 50% -75px;
1868
- font-weight: normal;
1777
+ @include button-hover-styles;
1869
1778
  }
1870
1779
 
1871
1780
  input.button:active,
@@ -1884,7 +1793,7 @@ input.button.disabled:active,
1884
1793
  button.button.disabled,
1885
1794
  button.button.disabled:hover,
1886
1795
  button.button.disabled:active {
1887
- color: #333;
1796
+ color: $text-color;
1888
1797
  text-shadow: none;
1889
1798
  border-color: #ccc;
1890
1799
  cursor: default;
@@ -1929,11 +1838,11 @@ a.button.small {
1929
1838
  height: 14px;
1930
1839
  padding-top: 2px;
1931
1840
  padding-bottom: 2px;
1932
- -webkit-border-radius: 10px;
1933
- -moz-border-radius: 10px;
1841
+ border-radius: 10px;
1934
1842
  -o-border-radius: 10px;
1935
1843
  -ms-border-radius: 10px;
1936
- border-radius: 10px;
1844
+ -moz-border-radius: 10px;
1845
+ -webkit-border-radius: 10px;
1937
1846
  }
1938
1847
 
1939
1848
  a.small.button.with_icon span.icon {
@@ -1945,7 +1854,7 @@ a.small.button.with_icon span.icon {
1945
1854
 
1946
1855
  table.list tr td.tools {
1947
1856
  width: 40px;
1948
- background-color: #ededed;
1857
+ background-color: $light-gray;
1949
1858
  white-space: nowrap;
1950
1859
  }
1951
1860
 
@@ -1986,7 +1895,7 @@ table.list tr td.tools.long {
1986
1895
  }
1987
1896
 
1988
1897
  table.list tr td.icon {
1989
- background-color: #ededed;
1898
+ background-color: $light-gray;
1990
1899
  width: 20px;
1991
1900
  text-align: center;
1992
1901
  }
@@ -2050,18 +1959,15 @@ td.role {
2050
1959
  }
2051
1960
 
2052
1961
  .inplace-edit {
2053
- background-color: #ededed;
1962
+ background-color: $light-gray;
2054
1963
  position: absolute;
2055
1964
  left: -8px;
2056
1965
  top: 0;
2057
1966
  width: 204px;
2058
1967
  z-index: 10;
2059
1968
  height: 65px;
2060
- border: 1px solid #afafaf;
2061
- -webkit-border-radius: 3px;
2062
- -moz-border-radius: 3px;
2063
- -o-border-radius: 3px;
2064
- border-radius: 3px;
1969
+ border: $default-border;
1970
+ @include rounded-corner;
2065
1971
  -webkit-box-shadow: #444 0px 1px 8px;
2066
1972
  -moz-box-shadow: #444 0px 1px 8px;
2067
1973
  -o-box-shadow: #444 0px 1px 8px;
@@ -2149,21 +2055,13 @@ div.spinner {
2149
2055
  .short_element input {
2150
2056
  width: 190px;
2151
2057
  float: left;
2152
- font: 11px "Lucida Grande", "Lucida Sans", Lucida, sans-serif;
2058
+ font: 11px $default-font-face;
2153
2059
  }
2154
2060
 
2155
2061
  .dashed_border {
2156
2062
  border: 1px dashed;
2157
2063
  }
2158
2064
 
2159
- a.rename_link {
2160
- background: url(/images/alchemy/icons/edit.png) 0 0;
2161
- }
2162
-
2163
- a.delete_link {
2164
- background: url(/images/alchemy/alchemy/trash.png) no-repeat 0 0;
2165
- }
2166
-
2167
2065
  ul#all_files {
2168
2066
  list-style-type: none;
2169
2067
  display: block;
@@ -2177,7 +2075,7 @@ a.file_archive_download_file:hover {
2177
2075
  }
2178
2076
 
2179
2077
  form#archive_upload_form {
2180
- padding: 4px;
2078
+ padding: $default-padding;
2181
2079
  overflow: auto;
2182
2080
  width: 390px;
2183
2081
  }
@@ -2203,21 +2101,17 @@ div.all_rights {
2203
2101
 
2204
2102
  textarea.thin_border {
2205
2103
  border-style: inset;
2206
- font: 12px "Lucida Grande", "Lucida Sans", Lucida, sans-serif;
2207
- padding: 4px;
2104
+ font: $default-font-style;
2105
+ padding: $default-padding;
2208
2106
  border-width: 1px;
2209
- -webkit-border-radius: 3px;
2210
- -moz-border-radius: 3px;
2211
- border-radius: 3px;
2107
+ @include rounded-corner;
2212
2108
  height: auto;
2213
2109
  }
2214
2110
 
2215
2111
  .thin_border,
2216
2112
  .input_field {
2217
2113
  margin: 0;
2218
- -webkit-border-radius: 3px;
2219
- -moz-border-radius: 3px;
2220
- border-radius: 3px;
2114
+ @include rounded-corner;
2221
2115
  background: #fff;
2222
2116
  border: 1px inset #e5e5e5;
2223
2117
  width: 210px;
@@ -2236,105 +2130,105 @@ textarea.thin_border {
2236
2130
 
2237
2131
  span.icon {
2238
2132
  display: inline-block;
2239
- background: url(/images/alchemy/icons.png) no-repeat;
2133
+ background: image-url('alchemy/icons.png') no-repeat;
2240
2134
  width: 16px;
2241
2135
  height: 16px;
2242
2136
  }
2243
2137
 
2244
2138
  span.icon.user_add {
2245
- background: url(/images/alchemy/icons.png) -96px -104px;
2139
+ background: image-url('alchemy/icons.png') -96px -104px;
2246
2140
  }
2247
2141
 
2248
2142
  span.icon.language_add {
2249
- background: url(/images/alchemy/icons.png) -47px -120px;
2143
+ background: image-url('alchemy/icons.png') -47px -120px;
2250
2144
  }
2251
2145
 
2252
2146
  span.icon.user {
2253
- background: url(/images/alchemy/icons.png) 0 -104px;
2147
+ background: image-url('alchemy/icons.png') 0 -104px;
2254
2148
  }
2255
2149
 
2256
2150
  span.icon.language {
2257
- background: url(/images/alchemy/icons.png) 0 -120px;
2151
+ background: image-url('alchemy/icons.png') 0 -120px;
2258
2152
  }
2259
2153
 
2260
2154
  span.icon.user.female {
2261
- background: url(/images/alchemy/icons.png) -128px -104px;
2155
+ background: image-url('alchemy/icons.png') -128px -104px;
2262
2156
  }
2263
2157
 
2264
2158
  a.icon.user_edit {
2265
- background: url(/images/alchemy/icons.png) -64px -104px;
2159
+ background: image-url('alchemy/icons.png') -64px -104px;
2266
2160
  }
2267
2161
 
2268
2162
  a.icon.language_edit {
2269
- background: url(/images/alchemy/icons.png) -32px -120px;
2163
+ background: image-url('alchemy/icons.png') -32px -120px;
2270
2164
  }
2271
2165
 
2272
2166
  a.icon.user_edit.female {
2273
- background: url(/images/alchemy/icons.png) -192px -104px;
2167
+ background: image-url('alchemy/icons.png') -192px -104px;
2274
2168
  }
2275
2169
 
2276
2170
  span.icon.settings {
2277
- background: url(/images/alchemy/icons.png) -320px -40px;
2171
+ background: image-url('alchemy/icons.png') -320px -40px;
2278
2172
  }
2279
2173
 
2280
2174
  span.icon.visit_page {
2281
- background: url(/images/alchemy/icons.png) -32px -136px;
2175
+ background: image-url('alchemy/icons.png') -32px -136px;
2282
2176
  }
2283
2177
 
2284
2178
  span.icon.upload {
2285
- background: url(/images/alchemy/icons.png) 0 -136px;
2179
+ background: image-url('alchemy/icons.png') 0 -136px;
2286
2180
  }
2287
2181
 
2288
2182
  span.icon.pdf {
2289
- background: url(/images/alchemy/icons.png) -161px -136px;
2183
+ background: image-url('alchemy/icons.png') -161px -136px;
2290
2184
  }
2291
2185
 
2292
2186
  span.icon.text {
2293
- background: url(/images/alchemy/icons.png) -448px -136px;
2187
+ background: image-url('alchemy/icons.png') -448px -136px;
2294
2188
  }
2295
2189
 
2296
2190
  span.icon.archive {
2297
- background: url(/images/alchemy/icons.png) -416px -136px;
2191
+ background: image-url('alchemy/icons.png') -416px -136px;
2298
2192
  }
2299
2193
 
2300
2194
  span.icon.audio {
2301
- background: url(/images/alchemy/icons.png) -192px -136px;
2195
+ background: image-url('alchemy/icons.png') -192px -136px;
2302
2196
  }
2303
2197
 
2304
2198
  span.icon.image {
2305
- background: url(/images/alchemy/icons.png) -224px -136px;
2199
+ background: image-url('alchemy/icons.png') -224px -136px;
2306
2200
  }
2307
2201
 
2308
2202
  span.icon.vcard {
2309
- background: url(/images/alchemy/icons.png) -416px -104px;
2203
+ background: image-url('alchemy/icons.png') -416px -104px;
2310
2204
  }
2311
2205
 
2312
2206
  span.icon.psd {
2313
- background: url(/images/alchemy/icons.png) -128px -136px;
2207
+ background: image-url('alchemy/icons.png') -128px -136px;
2314
2208
  }
2315
2209
 
2316
2210
  span.icon.flash {
2317
- background: url(/images/alchemy/icons.png) -256px -136px;
2211
+ background: image-url('alchemy/icons.png') -256px -136px;
2318
2212
  }
2319
2213
 
2320
2214
  span.icon.video {
2321
- background: url(/images/alchemy/icons.png) -288px -136px;
2215
+ background: image-url('alchemy/icons.png') -288px -136px;
2322
2216
  }
2323
2217
 
2324
2218
  span.icon.rtf {
2325
- background: url(/images/alchemy/icons.png) -320px -136px;
2219
+ background: image-url('alchemy/icons.png') -320px -136px;
2326
2220
  }
2327
2221
 
2328
2222
  span.icon.word {
2329
- background: url(/images/alchemy/icons.png) -384px -136px;
2223
+ background: image-url('alchemy/icons.png') -384px -136px;
2330
2224
  }
2331
2225
 
2332
2226
  span.icon.excel {
2333
- background: url(/images/alchemy/icons.png) -176px -72px;
2227
+ background: image-url('alchemy/icons.png') -176px -72px;
2334
2228
  }
2335
2229
 
2336
2230
  span.icon.file {
2337
- background: url(/images/alchemy/icons.png) 0 -40px;
2231
+ background: image-url('alchemy/icons.png') 0 -40px;
2338
2232
  }
2339
2233
 
2340
2234
  span.icon.flush {
@@ -2358,7 +2252,7 @@ span.icon.sync {
2358
2252
  }
2359
2253
 
2360
2254
  span.icon.close.small {
2361
- background: url(/images/alchemy/jquery-ui/ui-icons_666666_256x240.png) -84px -132px;
2255
+ background: image-url('alchemy/ui-icons_666666_256x240.png') -84px -132px;
2362
2256
  width: 8px;
2363
2257
  height: 8px;
2364
2258
  position: absolute;
@@ -2416,15 +2310,15 @@ span.icon.element_draft {
2416
2310
  }
2417
2311
 
2418
2312
  span.icon.new_element {
2419
- background: url(/images/alchemy/icons.png) -384px -40px;
2313
+ background: image-url('alchemy/icons.png') -384px -40px;
2420
2314
  }
2421
2315
 
2422
2316
  span.icon.element_window {
2423
- background: url(/images/alchemy/icons.png) -512px -72px;
2317
+ background: image-url('alchemy/icons.png') -512px -72px;
2424
2318
  }
2425
2319
 
2426
2320
  span.icon.preview_window {
2427
- background: url(/images/alchemy/icons.png) -448px -40px;
2321
+ background: image-url('alchemy/icons.png') -448px -40px;
2428
2322
  }
2429
2323
 
2430
2324
  span.icon.clipboard {
@@ -2444,76 +2338,74 @@ span.icon.trash.full {
2444
2338
  }
2445
2339
 
2446
2340
  a.icon.file_download {
2447
- background: url(/images/alchemy/icons.png) -480px -136px;
2341
+ background: image-url('alchemy/icons.png') -480px -136px;
2448
2342
  }
2449
2343
 
2450
2344
  .icon.download {
2451
- background: url(/images/alchemy/icons.png) -240px -72px;
2345
+ background: image-url('alchemy/icons.png') -240px -72px;
2452
2346
  }
2453
2347
 
2454
2348
  a.icon.file_delete {
2455
- background: url(/images/alchemy/icons.png) -64px -40px;
2349
+ background: image-url('alchemy/icons.png') -64px -40px;
2456
2350
  }
2457
2351
 
2458
2352
  a.icon.file_edit {
2459
- background: url(/images/alchemy/icons.png) -32px -40px;
2353
+ background: image-url('alchemy/icons.png') -32px -40px;
2460
2354
  }
2461
2355
 
2462
2356
  .icon.edit {
2463
- background: url(/images/alchemy/icons.png) -160px -168px;
2357
+ background: image-url('alchemy/icons.png') -160px -168px;
2464
2358
  }
2465
2359
 
2466
2360
  .icon.create {
2467
- background: url(/images/alchemy/icons.png) -192px -568px;
2361
+ background: image-url('alchemy/icons.png') -192px -568px;
2468
2362
  }
2469
2363
 
2470
2364
  span.icon.add_page {
2471
- background: url(/images/alchemy/icons.png) -96px -40px;
2365
+ background: image-url('alchemy/icons.png') -96px -40px;
2472
2366
  }
2473
2367
 
2474
2368
  span.icon.copy_page {
2475
- background: url(/images/alchemy/icons.png) -544px -40px;
2369
+ background: image-url('alchemy/icons.png') -544px -40px;
2476
2370
  }
2477
2371
 
2478
2372
  span.icon.delete_page {
2479
- background: url(/images/alchemy/icons.png) -64px -40px;
2373
+ background: image-url('alchemy/icons.png') -64px -40px;
2480
2374
  }
2481
2375
 
2482
2376
  a.icon.user_delete {
2483
- background: url(/images/alchemy/icons.png) -32px -104px;
2377
+ background: image-url('alchemy/icons.png') -32px -104px;
2484
2378
  }
2485
2379
 
2486
2380
  a.icon.language_delete {
2487
- background: url(/images/alchemy/icons.png) -16px -120px;
2381
+ background: image-url('alchemy/icons.png') -16px -120px;
2488
2382
  }
2489
2383
 
2490
2384
  .icon.destroy {
2491
- background: url(/images/alchemy/icons.png) -224px -168px;
2385
+ background: image-url('alchemy/icons.png') -224px -168px;
2492
2386
  }
2493
2387
 
2494
2388
  span.icon.configure_page {
2495
- background: url(/images/alchemy/icons.png) -320px -40px;
2389
+ background: image-url('alchemy/icons.png') -320px -40px;
2496
2390
  }
2497
2391
 
2498
2392
  span.icon.search {
2499
- background: url(/images/alchemy/jquery-ui/ui-icons_666666_256x240.png) -160px -112px;
2393
+ background: image-url('alchemy/ui-icons_666666_256x240.png') -160px -112px;
2500
2394
  }
2501
2395
 
2502
2396
  a.icon.user_delete.female {
2503
- background: url(/images/alchemy/icons.png) -160px -104px;
2397
+ background: image-url('alchemy/icons.png') -160px -104px;
2504
2398
  }
2505
2399
 
2506
2400
  /* @end */
2507
2401
 
2508
2402
  select.select_box {
2509
2403
  border: 1px solid #9a9a9a;
2510
- color: #333;
2404
+ color: $text-color;
2511
2405
  padding: 1px;
2512
2406
  margin: 0;
2513
2407
  font-size: 12px;
2514
- -webkit-border-radius: 3px;
2515
- -moz-border-radius: 3px;
2516
- border-radius: 3px;
2408
+ @include rounded-corner;
2517
2409
  background: #f4f4f4;
2518
2410
  height: 21px;
2519
2411
  }
@@ -2523,15 +2415,13 @@ select.select_box {
2523
2415
  color: #333333;
2524
2416
  position: absolute;
2525
2417
  display: none;
2526
- padding: 4px;
2418
+ padding: $default-padding;
2527
2419
  font-size: 11px;
2528
2420
  max-width: 200px;
2529
- -webkit-border-radius: 4px;
2530
- -moz-border-radius: 4px;
2531
- border-radius: 4px;
2532
- -moz-box-shadow: 0 2px 8px #666;
2533
- -webkit-box-shadow: 0 2px 8px #666;
2534
- box-shadow: 0 2px 8px #666;
2421
+ @include rounded-corner;
2422
+ -moz-box-shadow: 0 2px 8px $dark-gray;
2423
+ -webkit-box-shadow: 0 2px 8px $dark-gray;
2424
+ box-shadow: 0 2px 8px $dark-gray;
2535
2425
  background-color: #eaf4f9;
2536
2426
  }
2537
2427
 
@@ -2549,11 +2439,11 @@ select.select_box {
2549
2439
  }
2550
2440
 
2551
2441
  .with_medium_padding {
2552
- padding: 8px;
2442
+ padding: 2*$default-padding;
2553
2443
  }
2554
2444
 
2555
2445
  .with_padding {
2556
- padding: 8px;
2446
+ padding: 2*$default-padding;
2557
2447
  }
2558
2448
 
2559
2449
  .element_spinner {
@@ -2640,15 +2530,13 @@ div.button_with_label.active label{
2640
2530
 
2641
2531
  div.button_with_label.disabled {
2642
2532
  position: relative;
2643
- opacity: 0.5;
2644
- filter: alpha(opacity=50);
2533
+ @include opacity-50;
2645
2534
  cursor: default;
2646
2535
  }
2647
2536
 
2648
2537
  .icon_button.disabled span {
2649
2538
  position: relative;
2650
- opacity: 0.3;
2651
- filter: alpha(opacity=30);
2539
+ @include opacity-30;
2652
2540
  cursor: default;
2653
2541
  }
2654
2542
 
@@ -2665,7 +2553,7 @@ div.button_with_label.disabled:before {
2665
2553
  width: 100%;
2666
2554
  height: 100%;
2667
2555
  background-color: transparent;
2668
- opacity: 0.5;
2556
+ @include opacity-50;
2669
2557
  }
2670
2558
 
2671
2559
  div.button_with_label.disabled a:hover,
@@ -2676,7 +2564,7 @@ div.button_with_label.disabled a:active {
2676
2564
  }
2677
2565
 
2678
2566
  div.button_with_label.disabled:hover label {
2679
- color: #333;
2567
+ color: $text-color;
2680
2568
  cursor: default;
2681
2569
  }
2682
2570
 
@@ -2717,14 +2605,11 @@ div.button_with_label:hover label {
2717
2605
  }
2718
2606
 
2719
2607
  #toolbar_links a {
2720
- padding: 4px;
2608
+ padding: $default-padding;
2721
2609
  border: 1px solid #9a9a9a;
2722
- -webkit-border-radius: 3px;
2723
- -moz-border-radius: 3px;
2724
- -o-border-radius: 3px;
2725
- border-radius: 3px;
2610
+ @include rounded-corner;
2726
2611
  margin-right: 4px;
2727
- background: #fff url(/images/alchemy/gui/shading.png) repeat-x 0 -75px;
2612
+ background: #fff image-url('alchemy/shading.png') repeat-x 0 -75px;
2728
2613
  text-decoration: none;
2729
2614
  }
2730
2615
 
@@ -2737,7 +2622,7 @@ div.js_filter_field_box span.icon {
2737
2622
 
2738
2623
  #toolbar_links a:hover {
2739
2624
  background-color: #e6f0f5;
2740
- color: #333;
2625
+ color: $text-color;
2741
2626
  border: 1px solid #888;
2742
2627
  text-shadow: 0 1px 1px #fff;
2743
2628
  text-decoration: none;
@@ -2754,22 +2639,19 @@ div#per_page_values {
2754
2639
 
2755
2640
  #toolbar_links a.active {
2756
2641
  background-color: #e6f0f5;
2757
- color: #333;
2642
+ color: $text-color;
2758
2643
  border: 1px solid #888;
2759
2644
  text-shadow: 0 1px 1px #fff;
2760
2645
  }
2761
2646
 
2762
2647
  #errorExplanation {
2763
2648
  background: #ffdfdf;
2764
- padding: 8px;
2649
+ padding: 2*$default-padding;
2765
2650
  text-align: left;
2766
2651
  margin-bottom: 8px;
2767
2652
  border: 1px solid #d08f91;
2768
2653
  color: #690001;
2769
- -webkit-border-radius: 3px;
2770
- -moz-border-radius: 3px;
2771
- -o-border-radius: 3px;
2772
- border-radius: 3px;
2654
+ @include rounded-corner;
2773
2655
  }
2774
2656
 
2775
2657
  #errorExplanation h2 {
@@ -2796,13 +2678,13 @@ p.foot_note {
2796
2678
  }
2797
2679
 
2798
2680
  #sitemap .placeholder {
2799
- background-color: #e3e3e3;
2681
+ background-color: $medium-gray;
2800
2682
  margin-bottom: 0px;
2801
2683
  margin-left: 22px;
2802
2684
  }
2803
2685
 
2804
2686
  div#jscropper {
2805
- padding: 8px;
2687
+ padding: 2*$default-padding;
2806
2688
  display: inline-block;
2807
2689
  }
2808
2690
 
@@ -2828,14 +2710,12 @@ textarea#essence_picture_caption {
2828
2710
 
2829
2711
  #page_selector_container {
2830
2712
  height: 230px;
2831
- background-color: #ededed;
2713
+ background-color: $light-gray;
2832
2714
  margin-bottom: 4px;
2833
2715
  border: 1px inset #e8e8e8;
2834
2716
  overflow: auto;
2835
2717
  padding: 4px 0 0 4px;
2836
- -webkit-border-radius: 3px;
2837
- -moz-border-radius: 3px;
2838
- border-radius: 3px;
2718
+ @include rounded-corner;
2839
2719
  }
2840
2720
 
2841
2721
  div#image_assign_filter_and_image_sizing {
@@ -2853,34 +2733,28 @@ label.sup {
2853
2733
  text-align: center;
2854
2734
  float: left;
2855
2735
  margin: 0 6px 6px 0;
2856
- padding: 4px;
2736
+ padding: $default-padding;
2857
2737
  position: relative;
2858
2738
  overflow: hidden;
2859
2739
  border: 1px solid #c0c0c0;
2860
- -webkit-border-radius: 3px;
2861
- -moz-border-radius: 3px;
2862
- -o-border-radius: 3px;
2863
- border-radius: 3px;
2740
+ @include rounded-corner;
2864
2741
  }*/
2865
2742
 
2866
2743
  #assign_image_list {
2867
- padding: 8px;
2744
+ padding: 2*$default-padding;
2868
2745
  overflow: hidden;
2869
2746
  }
2870
2747
 
2871
2748
  /* @group Picture Thumbnails */
2872
2749
 
2873
2750
  .picture_thumbnail {
2874
- padding: 4px;
2751
+ padding: $default-padding;
2875
2752
  margin: 2px 1px 2px 2px;
2876
2753
  background-color: #fff;
2877
2754
  float: left;
2878
2755
  border: 1px solid #c0c0c0;
2879
2756
  position: relative;
2880
- -webkit-border-radius: 3px;
2881
- -moz-border-radius: 3px;
2882
- -o-border-radius: 3px;
2883
- border-radius: 3px;
2757
+ @include rounded-corner;
2884
2758
  }
2885
2759
 
2886
2760
  div#archive_all .picture_thumbnail {
@@ -2895,7 +2769,7 @@ div#archive_all .picture_thumbnail {
2895
2769
  display: table-cell;
2896
2770
  width: 160px;
2897
2771
  height: 120px;
2898
- background-color: #666;
2772
+ background-color: $dark-gray;
2899
2773
  text-align: center;
2900
2774
  vertical-align: middle;
2901
2775
  padding: 0;
@@ -3004,19 +2878,19 @@ div.picture_thumbnail.large div.image_spinner img {
3004
2878
  }
3005
2879
 
3006
2880
  div.image_spinner {
3007
- background-color: #666;
2881
+ background-color: $dark-gray;
3008
2882
  width: 1px;
3009
- margin: 4px;
2883
+ margin: $default-margin;
3010
2884
  }
3011
2885
 
3012
2886
  div.picture_thumbnail.small .image_spinner {
3013
2887
  height: 60px;
3014
- margin: 4px;
2888
+ margin: $default-margin;
3015
2889
  }
3016
2890
 
3017
2891
  div.picture_thumbnail.medium .image_spinner {
3018
2892
  height: 120px;
3019
- margin: 4px;
2893
+ margin: $default-margin;
3020
2894
  }
3021
2895
 
3022
2896
  div.picture_thumbnail.large .image_spinner {
@@ -3045,9 +2919,7 @@ div#errors {
3045
2919
  padding: 8px 8px 4px 28px;
3046
2920
  border-width: 1px;
3047
2921
  border-style: solid;
3048
- -webkit-border-radius: 3px;
3049
- -moz-border-radius: 3px;
3050
- border-radius: 3px;
2922
+ @include rounded-corner;
3051
2923
  border-color: #c49c9c;
3052
2924
  color: #592e2e;
3053
2925
  background-color: #efd3d3;
@@ -3075,7 +2947,7 @@ div#errors {
3075
2947
  }
3076
2948
 
3077
2949
  #alchemyConfirmation_content div.alchemy_window_message {
3078
- padding: 8px;
2950
+ padding: 2*$default-padding;
3079
2951
  }
3080
2952
 
3081
2953
  #page_select {
@@ -3158,7 +3030,7 @@ div.assign_file_file {
3158
3030
 
3159
3031
  div.assign_file_file_icon {
3160
3032
  float: left;
3161
- margin: 4px;
3033
+ margin: $default-margin;
3162
3034
  }
3163
3035
 
3164
3036
  #alchemy .ui-dialog-content a img {
@@ -3178,8 +3050,8 @@ input#link_to_text {
3178
3050
  }
3179
3051
 
3180
3052
  .link_window_tab_body {
3181
- background-color: #ededed;
3182
- padding: 8px;
3053
+ background-color: $light-gray;
3054
+ padding: 2*$default-padding;
3183
3055
  margin: 0;
3184
3056
  }
3185
3057
 
@@ -3277,17 +3149,14 @@ div.elements_for_page {
3277
3149
  z-index: 15;
3278
3150
  background-color: white;
3279
3151
  width: 206px;
3280
- padding: 4px;
3152
+ padding: $default-padding;
3281
3153
  border: 1px solid #9c9d9c;
3282
3154
  -webkit-box-shadow: #9ea09f 0px 0px 4px;
3283
3155
  -moz-box-shadow: #9ea09f 0px 0px 4px;
3284
3156
  -o-box-shadow: #9ea09f 0px 0px 4px;
3285
3157
  box-shadow: #9ea09f 0px 0px 4px;
3286
3158
  line-height: 13px;
3287
- border-radius: 3px;
3288
- -webkit-border-radius: 3px;
3289
- -moz-border-radius: 3px;
3290
- -o-border-radius: 3px;
3159
+ @include rounded-corner;
3291
3160
  }
3292
3161
 
3293
3162
  a.close_elements_from_page_selector {
@@ -3298,7 +3167,7 @@ a.close_elements_from_page_selector {
3298
3167
  width: 11px;
3299
3168
  height: 15px;
3300
3169
  margin-top: 5px;
3301
- background: url(/images/alchemy/icons.png) no-repeat 0 -72px;
3170
+ background: image-url('alchemy/icons.png') no-repeat 0 -72px;
3302
3171
  cursor: pointer;
3303
3172
  }
3304
3173
 
@@ -3319,7 +3188,7 @@ a.close_elements_from_page_selector {
3319
3188
  width: 16px;
3320
3189
  height: 16px;
3321
3190
  position: relative;
3322
- background: url(/images/alchemy/icons.png) no-repeat -512px -72px;
3191
+ background: image-url('alchemy/icons.png') no-repeat -512px -72px;
3323
3192
  margin: 2px;
3324
3193
  font-size: 0;
3325
3194
  text-decoration: none;
@@ -3519,12 +3388,12 @@ div.info ol li {
3519
3388
  }
3520
3389
 
3521
3390
  div#overlay_toolbar {
3522
- background: #e3e3e3 url(/images/alchemy/gui/shading.png) repeat-x 0 -42px;
3523
- border: 1px solid #afafaf;
3391
+ background: $medium-gray image-url('alchemy/shading.png') repeat-x 0 -42px;
3392
+ border: $default-border;
3524
3393
  height: 38px;
3525
3394
  border-left-style: none;
3526
3395
  border-right-style: none;
3527
- padding: 8px;
3396
+ padding: 2*$default-padding;
3528
3397
  }
3529
3398
 
3530
3399
  div#overlay_toolbar div.toolbar_spacer {
@@ -3562,7 +3431,7 @@ div#overlay_toolbar a.button:active {
3562
3431
  }
3563
3432
 
3564
3433
  a.icon.remove {
3565
- background: url(/images/alchemy/icons/element-icons.png) no-repeat -64px;
3434
+ background: image-url('alchemy/icons.png') no-repeat -64px;
3566
3435
  width: 16px;
3567
3436
  height: 16px;
3568
3437
  display: inline-block;
@@ -3579,14 +3448,12 @@ a.icon.remove {
3579
3448
  }
3580
3449
 
3581
3450
  #uploadProgressContainer .progressWrapper {
3582
- padding: 8px;
3583
- background-color: #e3e3e3;
3451
+ padding: 2*$default-padding;
3452
+ background-color: $medium-gray;
3584
3453
  position: relative;
3585
3454
  margin-bottom: 8px;
3586
3455
  border: 1px solid #9e9e9e;
3587
- -moz-border-radius: 3px;
3588
- -webkit-border-radius: 3px;
3589
- border-radius: 3px;
3456
+ @include rounded-corner;
3590
3457
  }
3591
3458
 
3592
3459
  #uploadProgressContainer .progressName,
@@ -3603,46 +3470,42 @@ a.icon.remove {
3603
3470
  }
3604
3471
 
3605
3472
  #uploadProgressContainer .progressBarContainer {
3606
- background: #F9F9F9 url("/images/alchemy/gui/shading.png") repeat-x 0 0;
3473
+ background: #F9F9F9 image-url('alchemy/shading.png') repeat-x 0 0;
3607
3474
  border:1px solid #9E9E9E;
3608
- -moz-border-radius:3px;
3609
- -webkit-border-radius:3px;
3610
- border-radius:3px;
3475
+ @include rounded-corner;
3611
3476
  height:16px;
3612
3477
  overflow: hidden;
3613
3478
  width:100%;
3614
3479
  }
3615
3480
 
3616
3481
  #uploadProgressContainer .progressBarInProgress {
3617
- background: #77AAD5 url("/images/alchemy/gui/shading.png") repeat-x 0 -75px;
3482
+ background: #77AAD5 image-url('alchemy/shading.png') repeat-x 0 -75px;
3618
3483
  height: 16px;
3619
3484
  width: 0;
3620
3485
  }
3621
3486
 
3622
3487
  #uploadProgressContainer .progressBarComplete {
3623
- background: #00D827 url("/images/alchemy/gui/shading.png") repeat-x 0 -75px;
3488
+ background: #00D827 image-url('alchemy/shading.png') repeat-x 0 -75px;
3624
3489
  height: 16px;
3625
3490
  width: 0;
3626
3491
  }
3627
3492
 
3628
3493
  #uploadProgressContainer .progressBarError {
3629
- background: #F00 url("/images/alchemy/gui/shading.png") repeat-x 0 -75px;
3494
+ background: #F00 image-url('alchemy/shading.png') repeat-x 0 -75px;
3630
3495
  height: 16px;
3631
3496
  width: 0;
3632
3497
  }
3633
3498
 
3634
3499
  #uploadProgressContainer .progressBarCanceled {
3635
- background: #E4E4E4 url("/images/alchemy/gui/shading.png") repeat-x 0 -75px;
3500
+ background: #E4E4E4 image-url('alchemy/shading.png') repeat-x 0 -75px;
3636
3501
  height: 16px;
3637
3502
  width: 0;
3638
3503
  }
3639
3504
 
3640
3505
  #uploadProgressContainer .progressCancel {
3641
- background: #f1f1f1 url(/images/alchemy/icons.png) no-repeat -1px -72px;
3506
+ background: #f1f1f1 image-url('alchemy/icons.png') no-repeat -1px -72px;
3642
3507
  border: 1px solid #9e9e9e;
3643
- -moz-border-radius: 3px;
3644
- -webkit-border-radius: 3px;
3645
- border-radius: 3px;
3508
+ @include rounded-corner;
3646
3509
  width: 15px;
3647
3510
  height: 16px;
3648
3511
  position: absolute;
@@ -3660,7 +3523,7 @@ object.swfupload {
3660
3523
  }
3661
3524
 
3662
3525
  #alchemy .ui-dialog #alchemyConfirmation.ui-dialog-content {
3663
- padding: 8px;
3526
+ padding: 2*$default-padding;
3664
3527
  }
3665
3528
 
3666
3529
  #preview_load_info {
@@ -3680,7 +3543,7 @@ object.swfupload {
3680
3543
  }
3681
3544
 
3682
3545
  #clipboard_items ul li {
3683
- padding: 4px;
3546
+ padding: $default-padding;
3684
3547
  background: white;
3685
3548
  }
3686
3549