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
@@ -3,8 +3,9 @@
3
3
  #dashboard {
4
4
  overflow: auto;
5
5
  float: left;
6
- padding: 8px;
6
+ padding: 4 * $default-padding;
7
7
  width: 450px;
8
+ position: relative;
8
9
 
9
10
  h1 {
10
11
  font-size: 2em;
@@ -48,10 +49,9 @@
48
49
  position: relative;
49
50
 
50
51
  form {
51
- line-height: 10px;
52
52
  position: absolute;
53
53
  top: 2*$default-padding;
54
- right: $default-padding;
54
+ right: 2*$default-padding;
55
55
  }
56
56
  }
57
57
  }
@@ -61,7 +61,7 @@
61
61
  div#sideboard {
62
62
  float: right;
63
63
  width: 240px;
64
- padding-right: 16px;
64
+ padding: 16px;
65
65
 
66
66
  div.sideboard_widget img {
67
67
  margin-bottom: 16px;
@@ -45,7 +45,7 @@ img.add_element_spinner {
45
45
  position: absolute;
46
46
  top: 0;
47
47
  left: 0;
48
- background: image-url('alchemy/icons.png') no-repeat -224px -72px;
48
+ background: url('icons.png') no-repeat -224px -72px;
49
49
  }
50
50
 
51
51
  .element_handle span.icon {
@@ -59,11 +59,6 @@ img.add_element_spinner {
59
59
  background-position: -160px -166px;
60
60
  }
61
61
 
62
- div.element_foot span.element_public {
63
- float: left;
64
- margin-top: 1px;
65
- }
66
-
67
62
  .element_head_all {
68
63
  overflow: auto;
69
64
  width: 374px;
@@ -85,7 +80,7 @@ div.element_foot span.element_public {
85
80
  padding-bottom: 10px;
86
81
  }
87
82
 
88
- .add_content {
83
+ .add_picture {
89
84
  float: left;
90
85
  margin: 1px;
91
86
  width: 111px;
@@ -94,27 +89,26 @@ div.element_foot span.element_public {
94
89
  border: 1px solid #c2baab;
95
90
  @include rounded-corner;
96
91
  height: 115px;
97
- }
98
92
 
99
- .add_content a {
100
- text-decoration: none;
101
- overflow: hidden;
102
- text-align: center;
103
- font-weight: bold;
104
- line-height: 104px;
105
- @include rounded-corner;
106
- font-size: 40px;
107
- display: block;
108
- height: 100%;
109
- width: 100%;
110
- position: relative;
111
- }
93
+ a {
94
+ text-decoration: none;
95
+ overflow: hidden;
96
+ text-align: center;
97
+ font-weight: bold;
98
+ line-height: 104px;
99
+ @include rounded-corner;
100
+ font-size: 40px;
101
+ display: block;
102
+ height: 100%;
103
+ width: 100%;
104
+ position: relative;
112
105
 
113
- .add_content a .icon.assign {
114
- background: image-url('alchemy/icons.png') no-repeat -288px -72px;
115
- position: absolute;
116
- top: 52px;
117
- left: 47px;
106
+ .icon {
107
+ position: absolute;
108
+ top: 52px;
109
+ left: 47px;
110
+ }
111
+ }
118
112
  }
119
113
 
120
114
  .element_foot {
@@ -123,20 +117,25 @@ div.element_foot span.element_public {
123
117
  position: relative;
124
118
  background-color: #e5dcca;
125
119
  width: 100%;
126
- height: 21px;
120
+ height: 27px;
127
121
  margin-left: -8px;
128
- }
129
122
 
130
- .element_foot .element_tools {
131
- float: left;
132
- margin-right: 8px;
133
- margin-top: 3px;
134
- }
123
+ .element_tools {
124
+ float: left;
125
+ margin-right: 8px;
126
+ margin-top: 6px;
127
+ }
135
128
 
136
- .element_foot .button {
137
- position: absolute;
138
- right: 8px;
139
- bottom: 6px;
129
+ .element_public {
130
+ float: left;
131
+ margin-top: 6px;
132
+ }
133
+
134
+ .button {
135
+ position: absolute;
136
+ right: 8px;
137
+ bottom: 4px;
138
+ }
140
139
  }
141
140
 
142
141
  .ajax_folder {
@@ -163,7 +162,7 @@ div.element_editor {
163
162
  margin-bottom: 8px;
164
163
 
165
164
  &.not-draggable {
166
- @include opacity(50);
165
+ @include opacity(0.5);
167
166
  }
168
167
 
169
168
  &.dirty {
@@ -230,7 +229,6 @@ div.element_editor {
230
229
  #alchemy .ui-dialog div.element_editor form {
231
230
  margin: 0;
232
231
  padding: 0 8px;
233
- overflow: hidden;
234
232
  }
235
233
 
236
234
  div.element_tools {
@@ -249,15 +247,15 @@ span.element_tools_icons {
249
247
  }
250
248
 
251
249
  a.delete_element_button {
252
- background: image-url('alchemy/icons.png') no-repeat -63px -72px;
250
+ background: url('icons.png') no-repeat -63px -72px;
253
251
  }
254
252
 
255
253
  a.element_copy_button {
256
- background: image-url('alchemy/icons.png') no-repeat -128px -72px;
254
+ background: url('icons.png') no-repeat -128px -72px;
257
255
  }
258
256
 
259
257
  a.element_move_button {
260
- background: image-url('alchemy/icons.png') no-repeat -97px -72px;
258
+ background: url('icons.png') no-repeat -97px -72px;
261
259
  }
262
260
 
263
261
  .element_head {
@@ -282,6 +280,10 @@ div.picture_gallery_images {
282
280
  @include rounded-corner;
283
281
  background-color: #e5dcca;
284
282
  padding: 1px;
283
+
284
+ .essence_picture_editor {
285
+ margin: 1px;
286
+ }
285
287
  }
286
288
 
287
289
  div.picture_thumbnail div.picture_image {
@@ -293,24 +295,6 @@ div.picture_thumbnail div.picture_image {
293
295
  }
294
296
  }
295
297
 
296
- /* @group add moclecule */
297
-
298
- .new_alchemy_element {
299
- margin: 0;
300
- padding: 0;
301
- position: relative;
302
- min-height: 25px;
303
- overflow: auto;
304
- }
305
-
306
- .new_alchemy_element p {
307
- line-height: 21px;
308
- }
309
-
310
- .new_alchemy_element form {
311
- line-height: 21px;
312
- }
313
-
314
298
  div#element_area {
315
299
  padding: 0;
316
300
  margin: 0;
@@ -326,24 +310,6 @@ div#element_area .sortable_cell {
326
310
  padding: 8px 8px 2px;
327
311
  }
328
312
 
329
- .new_alchemy_element span {
330
- float: left;
331
- line-height: 25px;
332
- }
333
-
334
- .new_alchemy_element select {
335
- float: left;
336
- width: 185px;
337
- margin: 0 8px;
338
- }
339
-
340
- .new_alchemy_element input.button {
341
- float: right;
342
- margin-left: 8px;
343
- }
344
-
345
- /* @end */
346
-
347
313
  .place_element_spinner {
348
314
  position: absolute;
349
315
  right: 8px;
@@ -356,28 +322,23 @@ span.linkable_text_essence_tools {
356
322
  position: absolute;
357
323
  bottom: 0;
358
324
  right: 2px;
325
+
359
326
  a.icon_button {
360
327
  margin: 0 0 0 4px;
361
328
  position: absolute;
362
- bottom: 0;
363
- right: 26px;
329
+ bottom: 4px;
330
+ right: 28px;
364
331
  @include reset-border-radius;
365
- height: 27px;
366
- width: 27px;
367
- background-position: 0 -72px;
332
+
368
333
  &.unlink {
369
334
  right: 0;
370
335
  @include right-rounded-border;
371
336
  }
372
- .icon {
373
- left: 5px;
374
- top: 6px;
375
- }
376
337
  }
377
338
  }
378
339
 
379
340
  a.expand_element {
380
- background: image-url('alchemy/icons.png') no-repeat -160px -72px;
341
+ background: url('icons.png') no-repeat -160px -72px;
381
342
  height: 16px;
382
343
  width: 16px;
383
344
  text-decoration: none;
@@ -386,7 +347,7 @@ a.expand_element {
386
347
  }
387
348
 
388
349
  a.fold_element {
389
- background: image-url('alchemy/icons.png') no-repeat -192px -72px;
350
+ background: url('icons.png') no-repeat -192px -72px;
390
351
  height: 16px;
391
352
  width: 16px;
392
353
  text-decoration: none;
@@ -424,7 +385,7 @@ a.icon_button.linked {
424
385
  .edit_images_bottom a.linked {
425
386
  position: relative;
426
387
  @include rounded-corner;
427
- background-image: image-url('alchemy/shading.png');
388
+ background-image: url('shading.png');
428
389
  background-repeat: repeat-x;
429
390
  background-position: 0 -75px;
430
391
  background-color: #ffd77a;
@@ -437,14 +398,13 @@ a.icon_button.linked {
437
398
  }
438
399
 
439
400
  .edit_images_bottom a.disabled {
440
- @include opacity(30);
401
+ @include opacity(0.3);
441
402
  cursor: default;
442
403
  }
443
404
 
444
405
  div.content_editor.essence_date {
445
406
  float: none;
446
- display: inline;
447
- display: inline-block;
407
+ @include inline-block;
448
408
  vertical-align: top;
449
409
 
450
410
  input.date {
@@ -495,7 +455,7 @@ div.essence_picture_editor .picture_thumbnail:hover .picture_tool_delete {
495
455
  }
496
456
 
497
457
  div.essence_picture_editor .thumbnail_background.missing {
498
- background-image: image-url('alchemy/placeholder.png');
458
+ background-image: url('placeholder.png');
499
459
  background-repeat: no-repeat;
500
460
  background-position: center 12px;
501
461
  }
@@ -570,7 +530,7 @@ div.file_icon span.icon {
570
530
  div.file_icon a.assign_file {
571
531
  display: block;
572
532
  height: 16px;
573
- background: image-url('alchemy/icons.png') no-repeat -480px -40px;
533
+ background: url('icons.png') no-repeat -480px -40px;
574
534
  width: 16px;
575
535
  margin: $default-margin;
576
536
  }
@@ -600,11 +560,11 @@ div.essence_file_tools a {
600
560
  }
601
561
 
602
562
  div.essence_file_tools a.assign_file {
603
- background: image-url('alchemy/icons.png') -512px -40px;
563
+ background: url('icons.png') -512px -40px;
604
564
  }
605
565
 
606
566
  div.essence_file_tools a.edit_file {
607
- background: image-url('alchemy/icons.png') -160px -167px;
567
+ background: url('icons.png') -160px -167px;
608
568
  }
609
569
 
610
570
  td.content_editor_essence_type {
@@ -622,9 +582,10 @@ table.content_editor_table {
622
582
 
623
583
  a.new_content_link {
624
584
  float: none;
625
- display: inline-block;
585
+ @include inline-block;
626
586
  margin-bottom: 8px;
627
587
  margin-top: 4px;
588
+ line-height: 4em;
628
589
  }
629
590
 
630
591
  div.essence_richtext_loader {
@@ -635,7 +596,7 @@ div.essence_richtext_loader {
635
596
  width: 100%;
636
597
  height: 100%;
637
598
  background-color: #F0E8D7;
638
- @include opacity(90);
599
+ @include opacity(0.9);
639
600
  }
640
601
 
641
602
  div.essence_richtext_loader img {
@@ -690,16 +651,14 @@ div.content_editor {
690
651
  font-size: 11px;
691
652
 
692
653
  span.icon.warning {
693
- position: relative;
694
- top: 2px;
695
- left: 2px;
696
- margin-right: 8px;
654
+ vertical-align: text-bottom;
655
+ margin-left: 2px;
656
+ margin-right: 6px;
697
657
  }
698
658
  }
699
659
 
700
660
  &.display_inline {
701
- display: inline;
702
- display: inline-block;
661
+ @include inline-block;
703
662
  margin-right: 4px;
704
663
  vertical-align: top;
705
664
 
@@ -734,18 +693,32 @@ div.content_editor {
734
693
  }
735
694
 
736
695
  &.inline {
737
- display: inline-block;
696
+ @include inline-block;
738
697
  min-width: 90px;
739
698
  margin-right: 4px;
740
699
  }
741
700
 
742
701
  a.icon_button.small {
702
+ width: 10px;
703
+ height: 10px;
743
704
  display: none;
705
+
706
+ .icon {
707
+ top: 1px;
708
+ right: 1px;
709
+ }
710
+
711
+ &:hover {
712
+
713
+ .icon {
714
+ right: 2px;
715
+ }
716
+ }
744
717
  }
745
718
  }
746
719
 
747
720
  &:hover label a.icon_button.small {
748
- display: inline-block;
721
+ @include inline-block;
749
722
  }
750
723
 
751
724
  input.text_with_icon.auto_resize.thin_border {
@@ -782,8 +755,7 @@ div.content_editor {
782
755
 
783
756
  &.essence_date {
784
757
  float: none;
785
- display: inline;
786
- display: inline-block;
758
+ @include inline-block;
787
759
  vertical-align: top;
788
760
 
789
761
  input.date {
@@ -794,8 +766,7 @@ div.content_editor {
794
766
  &.essence_picture_editor {
795
767
  float: none;
796
768
  height: auto;
797
- display: inline;
798
- display: inline-block;
769
+ @include inline-block;
799
770
  margin: 8px 0;
800
771
  }
801
772
  }
@@ -817,14 +788,8 @@ div.pictures_for_element {
817
788
  margin-top: 4px;
818
789
  }
819
790
 
820
- textarea {
821
- font: 12px Tahoma, Arial, sans-serif;
822
- padding: 4px;
823
- margin: 0;
791
+ #element_area textarea {
824
792
  width: 97%;
825
- border-style: inset;
826
- border-width: 1px;
827
- @include rounded-corner;
828
793
  height: 140px;
829
794
  }
830
795
 
@@ -12,7 +12,7 @@ div#flash_notices {
12
12
 
13
13
  div.flash {
14
14
  @include rounded-corner;
15
- @include opacity(95);
15
+ @include opacity(0.95);
16
16
  padding: 8px 8px 8px 30px;
17
17
  font-weight: bold;
18
18
  border-width: 1px;