alchemy_cms 2.4.beta2 → 2.4.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/.gitignore +2 -1
  2. data/.travis.yml +3 -1
  3. data/.yardopts +1 -1
  4. data/Gemfile +2 -1
  5. data/alchemy_cms.gemspec +18 -17
  6. data/app/assets/images/alchemy/ajax_loader.gif +0 -0
  7. data/app/assets/images/alchemy/alchemy-logo.png +0 -0
  8. data/app/assets/images/alchemy/icons.png +0 -0
  9. data/app/assets/images/alchemy/image_loader.gif +0 -0
  10. data/app/assets/images/alchemy/placeholder.png +0 -0
  11. data/app/assets/images/alchemy/shading.png +0 -0
  12. data/app/assets/images/alchemy/swfupload/browse_button.png +0 -0
  13. data/app/assets/images/alchemy/tabs.gif +0 -0
  14. data/app/assets/images/alchemy/ui-icons_666666_256x240.png +0 -0
  15. data/app/assets/images/sassy-ie-overlay.png +0 -0
  16. data/app/assets/javascripts/alchemy/alchemy.base.js +1 -3
  17. data/app/assets/javascripts/alchemy/alchemy.browser.js.coffee +28 -0
  18. data/app/assets/javascripts/alchemy/alchemy.jquery_loader.js +2 -2
  19. data/app/assets/javascripts/alchemy/alchemy.js +2 -0
  20. data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +79 -47
  21. data/app/assets/javascripts/alchemy/alchemy.menubar.js +12 -4
  22. data/app/assets/javascripts/alchemy/alchemy.onload.js.coffee +1 -1
  23. data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +103 -0
  24. data/app/assets/javascripts/alchemy/alchemy.swf_upload.js +1 -1
  25. data/app/assets/javascripts/alchemy/alchemy.uploader.js +4 -6
  26. data/app/assets/javascripts/alchemy/preview.js +1 -0
  27. data/app/assets/stylesheets/alchemy/admin.css.scss +25 -0
  28. data/app/assets/stylesheets/alchemy/{archive.css.scss → archive.scss} +0 -2
  29. data/app/assets/stylesheets/alchemy/{base.css.scss → base.scss} +1 -57
  30. data/app/assets/stylesheets/alchemy/{custom.css → custom.scss} +0 -0
  31. data/app/assets/stylesheets/alchemy/{dashboard.css.scss → dashboard.scss} +0 -2
  32. data/app/assets/stylesheets/alchemy/defaults.scss +5 -0
  33. data/app/assets/stylesheets/alchemy/{elements.css.scss → elements.scss} +24 -37
  34. data/app/assets/stylesheets/alchemy/{errors.css.scss → errors.scss} +0 -2
  35. data/app/assets/stylesheets/alchemy/{flash.css.scss → flash.scss} +0 -2
  36. data/app/assets/stylesheets/alchemy/{form_elements.css.scss → form_elements.scss} +39 -12
  37. data/app/assets/stylesheets/alchemy/{frame.css.scss → frame.scss} +0 -2
  38. data/app/assets/stylesheets/alchemy/{icons.css.scss → icons.scss} +20 -2
  39. data/app/assets/stylesheets/alchemy/{jquery-ui.alchemy.css.scss → jquery-ui.scss} +6 -3
  40. data/app/assets/stylesheets/alchemy/{login.css.scss → login.scss} +3 -3
  41. data/app/assets/stylesheets/alchemy/menubar.css.scss +0 -1
  42. data/app/assets/stylesheets/alchemy/{_defaults.scss → mixins.scss} +2 -39
  43. data/app/assets/stylesheets/alchemy/{modules.css.scss → modules.scss} +4 -2
  44. data/app/assets/stylesheets/alchemy/notices.scss +51 -0
  45. data/app/assets/stylesheets/alchemy/{pagination.css.scss → pagination.scss} +0 -2
  46. data/app/assets/stylesheets/alchemy/{print.css → print.css.scss} +3 -3
  47. data/app/assets/stylesheets/alchemy/search.scss +63 -0
  48. data/app/assets/stylesheets/alchemy/{sitemap.css.scss → sitemap.scss} +1 -2
  49. data/app/assets/stylesheets/alchemy/{tables.css.scss → tables.scss} +16 -3
  50. data/app/assets/stylesheets/alchemy/tinymce_content.css.scss +3 -0
  51. data/app/assets/stylesheets/alchemy/tinymce_dialog.css.scss +3 -0
  52. data/app/assets/stylesheets/alchemy/{upload.css.scss → upload.scss} +0 -2
  53. data/app/assets/stylesheets/alchemy/variables.scss +33 -0
  54. data/app/controllers/alchemy/admin/elements_controller.rb +1 -2
  55. data/app/controllers/alchemy/admin/tags_controller.rb +64 -0
  56. data/app/controllers/alchemy/base_controller.rb +8 -23
  57. data/app/controllers/alchemy/pages_controller.rb +5 -18
  58. data/app/helpers/alchemy/admin/base_helper.rb +1 -1
  59. data/app/helpers/alchemy/admin/elements_helper.rb +1 -0
  60. data/app/helpers/alchemy/elements_block_helper.rb +162 -0
  61. data/app/helpers/alchemy/elements_helper.rb +41 -3
  62. data/app/helpers/alchemy/pages_helper.rb +2 -1
  63. data/app/models/alchemy/attachment.rb +2 -1
  64. data/app/models/alchemy/element.rb +13 -10
  65. data/app/models/alchemy/essence_link.rb +11 -0
  66. data/app/models/alchemy/essence_picture.rb +15 -4
  67. data/app/models/alchemy/page.rb +23 -25
  68. data/app/models/alchemy/picture.rb +2 -2
  69. data/app/models/alchemy/tag.rb +16 -0
  70. data/app/models/alchemy/user.rb +3 -1
  71. data/app/views/alchemy/admin/attachments/_attachment.html.erb +12 -12
  72. data/app/views/alchemy/admin/attachments/edit.html.erb +10 -4
  73. data/app/views/alchemy/admin/elements/_element.html.erb +10 -13
  74. data/app/views/alchemy/admin/elements/_element_foot.html.erb +1 -1
  75. data/app/views/alchemy/admin/essence_files/edit.html.erb +12 -76
  76. data/app/views/alchemy/admin/essence_pictures/crop.html.erb +9 -4
  77. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +1 -1
  78. data/app/views/alchemy/admin/layoutpages/index.html.erb +1 -1
  79. data/app/views/alchemy/admin/pages/_external_link.html.erb +9 -4
  80. data/app/views/alchemy/admin/pages/configure.html.erb +22 -12
  81. data/app/views/alchemy/admin/pages/edit.html.erb +40 -40
  82. data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +9 -0
  83. data/app/views/alchemy/admin/pictures/edit.html.erb +1 -1
  84. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +11 -2
  85. data/app/views/alchemy/admin/tags/_radio_tag.html.erb +6 -0
  86. data/app/views/alchemy/admin/tags/_tag.html.erb +29 -0
  87. data/app/views/alchemy/admin/tags/edit.html.erb +41 -0
  88. data/app/views/alchemy/admin/tags/index.html.erb +46 -0
  89. data/app/views/alchemy/admin/tags/new.html.erb +16 -0
  90. data/app/views/alchemy/admin/users/_table.html.erb +18 -10
  91. data/app/views/alchemy/admin/users/_user.html.erb +2 -1
  92. data/app/views/alchemy/admin/users/index.html.erb +2 -1
  93. data/app/views/alchemy/elements/_article_view.html.erb +1 -1
  94. data/app/views/alchemy/essences/_essence_link_editor.html.erb +23 -0
  95. data/app/views/alchemy/essences/_essence_link_view.html.erb +0 -0
  96. data/app/views/alchemy/essences/_essence_picture_tools.html.erb +1 -1
  97. data/app/views/alchemy/essences/_essence_text_editor.html.erb +1 -9
  98. data/app/views/alchemy/essences/_linkable_essence_tools.html.erb +19 -0
  99. data/app/views/layouts/alchemy/admin.html.erb +1 -1
  100. data/config/alchemy/elements.yml +2 -0
  101. data/config/alchemy/modules.yml +12 -0
  102. data/config/alchemy/page_layouts.yml +2 -0
  103. data/config/authorization_rules.rb +2 -0
  104. data/config/locales/alchemy.de.yml +36 -5
  105. data/config/locales/alchemy.en.yml +3 -0
  106. data/config/routes.rb +6 -4
  107. data/db/migrate/20121026100815_alchemy_two_point_three.rb +0 -36
  108. data/db/migrate/20121113115120_create_alchemy_essence_links.rb +13 -0
  109. data/db/migrate/20121115100736_add_cached_tag_list_to_elements_pages_and_users.rb +7 -0
  110. data/db/migrate/20121116140636_add_cached_tag_list_to_alchemy_attachments.rb +5 -0
  111. data/db/migrate/20121116141016_change_alchemy_pictures_tag_list_column.rb +9 -0
  112. data/lib/alchemy/engine.rb +1 -1
  113. data/lib/alchemy/resource.rb +1 -1
  114. data/lib/alchemy/resources_helper.rb +1 -1
  115. data/lib/alchemy/upgrader.rb +17 -0
  116. data/lib/alchemy/version.rb +1 -1
  117. data/lib/alchemy_cms.rb +1 -0
  118. data/lib/rails/generators/alchemy/base.rb +41 -0
  119. data/lib/rails/generators/alchemy/deploy_script/templates/deploy.rb.tt +10 -3
  120. data/lib/rails/generators/alchemy/elements/elements_generator.rb +6 -14
  121. data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +8 -6
  122. data/lib/rails/generators/alchemy/elements/templates/editor.html.haml +13 -0
  123. data/lib/rails/generators/alchemy/elements/templates/editor.html.slim +13 -0
  124. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +4 -4
  125. data/lib/rails/generators/alchemy/elements/templates/view.html.haml +15 -0
  126. data/lib/rails/generators/alchemy/elements/templates/view.html.slim +15 -0
  127. data/lib/rails/generators/alchemy/essence/essence_generator.rb +1 -1
  128. data/lib/rails/generators/alchemy/essence/templates/editor.html.erb +2 -3
  129. data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +4 -13
  130. data/lib/rails/generators/alchemy/page_layouts/templates/layout.html.haml +1 -0
  131. data/lib/rails/generators/alchemy/page_layouts/templates/layout.html.slim +1 -0
  132. data/spec/controllers/pages_controller_spec.rb +41 -34
  133. data/spec/dummy/app/views/layouts/application.html.erb +51 -0
  134. data/spec/dummy/db/migrate/20121026100815_alchemy_two_point_three.rb +0 -36
  135. data/spec/dummy/db/migrate/20121113115120_create_alchemy_essence_links.rb +13 -0
  136. data/spec/dummy/db/migrate/20121115100736_add_cached_tag_list_to_elements_pages_and_users.rb +7 -0
  137. data/spec/dummy/db/migrate/20121116140636_add_cached_tag_list_to_alchemy_attachments.rb +5 -0
  138. data/spec/dummy/db/migrate/20121116141016_change_alchemy_pictures_tag_list_column.rb +9 -0
  139. data/spec/dummy/db/schema.rb +24 -45
  140. data/spec/helpers/elements_block_helper_spec.rb +135 -0
  141. data/spec/helpers/elements_helper_spec.rb +43 -5
  142. data/spec/integration/pages_controller_spec.rb +22 -18
  143. data/spec/integration/translation_integration_spec.rb +0 -15
  144. data/spec/models/element_spec.rb +44 -36
  145. data/spec/models/essence_picture_spec.rb +22 -6
  146. data/spec/models/page_spec.rb +28 -0
  147. data/spec/spec_helper.rb +8 -3
  148. data/spec/support/ci/install_phantomjs +6 -0
  149. metadata +82 -40
  150. data/app/assets/images/alchemy/gui/navi-tab.png +0 -0
  151. data/app/assets/images/alchemy/gui/shading_90.png +0 -0
  152. data/app/assets/images/alchemy/jquery-sb/select_arrow.gif +0 -0
  153. data/app/assets/images/alchemy/jquery-sb/select_arrow_bg.gif +0 -0
  154. data/app/assets/images/alchemy/jquery-sb/select_arrow_bg_hover.gif +0 -0
  155. data/app/assets/javascripts/alchemy/alchemy.preview.js +0 -98
  156. data/app/assets/stylesheets/alchemy/alchemy.css +0 -21
  157. data/app/controllers/alchemy/admin/essence_audios_controller.rb +0 -12
  158. data/app/controllers/alchemy/admin/essence_flashes_controller.rb +0 -12
  159. data/app/controllers/alchemy/admin/essence_videos_controller.rb +0 -12
  160. data/app/models/alchemy/essence_audio.rb +0 -14
  161. data/app/models/alchemy/essence_flash.rb +0 -12
  162. data/app/models/alchemy/essence_video.rb +0 -20
  163. data/app/views/alchemy/essences/_essence_audio_editor.html.erb +0 -1
  164. data/app/views/alchemy/essences/_essence_audio_view.html.erb +0 -33
  165. data/app/views/alchemy/essences/_essence_flash_editor.html.erb +0 -1
  166. data/app/views/alchemy/essences/_essence_flash_view.html.erb +0 -26
  167. data/app/views/alchemy/essences/_essence_video_editor.html.erb +0 -1
  168. data/app/views/alchemy/essences/_essence_video_view.html.erb +0 -35
@@ -172,7 +172,7 @@ if (typeof(Alchemy) === 'undefined') {
172
172
 
173
173
  queueComplete: function(numFilesUploaded) {
174
174
  var $status = $("#upload_info");
175
- if (Alchemy.Uploader.locale == 'en') {
175
+ if (Alchemy.locale === 'en') {
176
176
  $status.text(numFilesUploaded + " file" + (numFilesUploaded === 1 ? "" : "s") + " uploaded.");
177
177
  } else {
178
178
  $status.text(numFilesUploaded + " Datei" + (numFilesUploaded === 1 ? "" : "en") + " hochgeladen.");
@@ -45,7 +45,7 @@ Alchemy.Uploader = {
45
45
  },
46
46
  onQueueStart: function(files) {
47
47
  var $status = $("#upload_info");
48
- if (Alchemy.Uploader.locale == 'en') {
48
+ if (Alchemy.locale === 'en') {
49
49
  $status.text(files + " file" + (files === 1 ? "" : "s") + " queued.");
50
50
  } else {
51
51
  $status.text(files + " Datei" + (files === 1 ? "" : "en") + " in der Warteschlange.");
@@ -57,7 +57,7 @@ Alchemy.Uploader = {
57
57
  },
58
58
  onQueueComplete: function(files, status) {
59
59
  var $status = $("#upload_info");
60
- if (Alchemy.Uploader.locale == 'en') {
60
+ if (Alchemy.locale === 'en') {
61
61
  $status.text(files + " file" + (files === 1 ? "" : "s") + " uploaded.");
62
62
  } else {
63
63
  $status.text(files + " Datei" + (files === 1 ? "" : "en") + " hochgeladen.");
@@ -125,7 +125,7 @@ Alchemy.Uploader = {
125
125
  file_upload_limit: settings.file_upload_limit,
126
126
  file_queue_limit: 0,
127
127
  custom_settings: {
128
- language: settings.locale
128
+ language: Alchemy.locale
129
129
  },
130
130
  debug: false,
131
131
  button_image_url: "/assets/alchemy/swfupload/browse_button.png",
@@ -162,8 +162,6 @@ Alchemy.Uploader = {
162
162
  }
163
163
  }
164
164
 
165
- self.locale = settings.locale;
166
-
167
165
  if (self.HTML5uploadPossible()) {
168
166
  $('#swf_upload_container').hide();
169
167
  $('#explain_step3').hide();
@@ -264,7 +262,7 @@ Alchemy.Uploader = {
264
262
  var self = Alchemy.Uploader;
265
263
  var translation = self.translation[id];
266
264
  if (translation) {
267
- return translation[self.locale];
265
+ return translation[Alchemy.locale];
268
266
  } else {
269
267
  return id;
270
268
  }
@@ -1,2 +1,3 @@
1
1
  //= require alchemy/alchemy.jquery_loader
2
+ //= require alchemy/alchemy.browser
2
3
  //= require alchemy/alchemy.preview
@@ -0,0 +1,25 @@
1
+ /* Alchemy CMS Sprockets Manifest
2
+ * -------------------------------
3
+ *= require_self
4
+ */
5
+ @import "alchemy/defaults";
6
+ @import "alchemy/base";
7
+ @import "alchemy/archive";
8
+ @import "alchemy/dashboard";
9
+ @import "alchemy/elements";
10
+ @import "alchemy/errors";
11
+ @import "alchemy/flash";
12
+ @import "alchemy/form_elements";
13
+ @import "alchemy/frame";
14
+ @import "alchemy/icons";
15
+ @import "alchemy/login";
16
+ @import "alchemy/modules";
17
+ @import "alchemy/notices";
18
+ @import "alchemy/pagination";
19
+ @import "alchemy/search";
20
+ @import "alchemy/sitemap";
21
+ @import "alchemy/tables";
22
+ @import "alchemy/upload";
23
+ @import "alchemy/jquery-ui";
24
+ @import "jquery.Jcrop.min";
25
+ @import "alchemy/custom";
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  div#image_assign_filter_and_image_sizing {
4
2
  width: 100%;
5
3
  height: 40px;
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  html {
4
2
  height: 100%;
5
3
  }
@@ -118,16 +116,6 @@ a.drop_down_select img {
118
116
  margin-right: 4px;
119
117
  }
120
118
 
121
- #alchemy a.search_field_clear {
122
- width: 16px;
123
- height: 16px;
124
- background: url('ui-icons_666666_256x240.png') no-repeat -80px -128px;
125
- position: absolute;
126
- right: 8px;
127
- top: 7px;
128
- @include rounded-corner;
129
- }
130
-
131
119
  #language_select {
132
120
  margin-bottom: 4px;
133
121
  }
@@ -144,22 +132,6 @@ div.edit_source_buttons {
144
132
  clear: both;
145
133
  }
146
134
 
147
- div.info {
148
- padding: 8px 8px 8px 32px;
149
- line-height: 17px;
150
- color: $text-color;
151
- border: 1px solid #0b5c84;
152
- @include rounded-corner;
153
- background-color: #eaf4f9;
154
- position: relative;
155
- margin-bottom: 8px;
156
- }
157
-
158
- div.info.footnote {
159
- font-size: 10px;
160
- margin: 16px;
161
- }
162
-
163
135
  div#page {
164
136
  height: auto !important;
165
137
  height: 100%;
@@ -203,7 +175,7 @@ div.tip {
203
175
  }
204
176
 
205
177
  #page_names textarea {
206
- height: 78px;
178
+ height: 56px;
207
179
  }
208
180
 
209
181
  div#new_page_from_clipboard {
@@ -284,12 +256,6 @@ div#user_list_legend {
284
256
  margin-top: $default-margin;
285
257
  }
286
258
 
287
- #toolbar div.search_field {
288
- position: relative;
289
- float: left;
290
- margin-bottom: $default-margin;
291
- }
292
-
293
259
  #toolbar div p {
294
260
  float: right;
295
261
  margin: 3px $default-margin 0 0;
@@ -328,12 +294,6 @@ div#toolbar a.button:active {
328
294
  margin-top: 1em;
329
295
  }
330
296
 
331
- div.info span.icon.info {
332
- position: absolute;
333
- top: 8px;
334
- left: 8px;
335
- }
336
-
337
297
  div.table_right span.tools a.icon_button img {
338
298
  left: -1px;
339
299
  }
@@ -749,12 +709,6 @@ input#user_admin {
749
709
  }
750
710
  }
751
711
 
752
- div#image_assign_filter_and_image_sizing form div.search_field {
753
- margin-right: 4px;
754
- float: left;
755
- position: relative;
756
- }
757
-
758
712
  div#image_assign_filter_and_image_sizing form input.button {
759
713
  float: right;
760
714
  }
@@ -1038,16 +992,6 @@ select#url_protocol.medium {
1038
992
  background-color: #d1d1d1;
1039
993
  }
1040
994
 
1041
- div.info ol {
1042
- margin: 0 0 8px;
1043
- padding-left: 20px;
1044
- }
1045
-
1046
- div.info ol li {
1047
- text-indent: 0;
1048
- margin-bottom: 4px;
1049
- }
1050
-
1051
995
  div#overlay_toolbar {
1052
996
  background: $medium-gray url('shading.png') repeat-x 0 -42px;
1053
997
  border: $default-border;
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  #dashboard {
4
2
  overflow: auto;
5
3
  float: left;
@@ -0,0 +1,5 @@
1
+ @import "compass/css3";
2
+ @import "compass/css3/user-interface";
3
+ @import "sassy-buttons";
4
+ @import "alchemy/variables";
5
+ @import "alchemy/mixins";
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  .element_heading .preview_text_quote {
4
2
  font-size: 10px;
5
3
  font-style: italic;
@@ -112,13 +110,14 @@ img.add_element_spinner {
112
110
  }
113
111
 
114
112
  .element_foot {
115
- padding: 2*$default-padding;
113
+ padding: 2 * $default-padding;
116
114
  border-top-style: none;
117
115
  position: relative;
118
116
  background-color: #e5dcca;
119
117
  width: 100%;
120
- height: 27px;
118
+ height: 29px;
121
119
  margin-left: -8px;
120
+ margin-right: -8px;
122
121
 
123
122
  .element_tools {
124
123
  float: left;
@@ -174,33 +173,8 @@ div.element_editor {
174
173
  }
175
174
 
176
175
  &.selected {
177
- border-color: #4b93db;
178
- -moz-box-shadow: 0 0 3px #4b93db;
179
- -webkit-box-shadow: 0 0 3px #4b93db;
180
- box-shadow: 0 0 3px #4b93db;
181
- }
182
-
183
- div.error, div.warning {
184
- padding: 8px 4px 8px 32px;
185
- margin-bottom: 8px;
186
- margin-top: 8px;
187
- @include rounded-corner;
188
- background-color: #f1c9ca;
189
- color: #931f23;
190
- border-style: solid;
191
- border-width: 1px;
192
- position: relative;
193
-
194
- span.icon {
195
- position: absolute;
196
- left: 8px;
197
- top: 8px;
198
- }
199
- }
200
-
201
- div.warning {
202
- background-color: #f7efb8;
203
- color: #756f47;
176
+ border-color: $blue;
177
+ @include box-shadow(0 0 4px $blue);
204
178
  }
205
179
 
206
180
  .validation_notice {
@@ -229,6 +203,23 @@ div.element_editor {
229
203
  margin-right: 8px;
230
204
  }
231
205
  }
206
+
207
+ .autocomplete_tag_list {
208
+ background-color: #e5dcca;
209
+ margin: 0 -8px 1px -8px;
210
+ padding: 2 * $default-padding;
211
+
212
+ label {
213
+ top: 17px;
214
+ left: 14px;
215
+ }
216
+
217
+ input[data-autocomplete] {
218
+ padding-left: 25px;
219
+ width: 357px;
220
+ background-color: #F1EAD9;
221
+ }
222
+ }
232
223
  }
233
224
 
234
225
  #alchemy .ui-dialog div.element_editor form {
@@ -323,7 +314,7 @@ div#element_area .sortable_cell {
323
314
  top: 5px;
324
315
  }
325
316
 
326
- span.linkable_text_essence_tools {
317
+ span.linkable_essence_tools {
327
318
  position: absolute;
328
319
  bottom: 0;
329
320
  right: 2px;
@@ -383,10 +374,6 @@ a.fold_element {
383
374
  height: 18px;
384
375
  }
385
376
 
386
- a.icon_button.linked {
387
- background-color: #ffd77a;
388
- }
389
-
390
377
  .edit_images_bottom a.linked {
391
378
  position: relative;
392
379
  @include rounded-corner;
@@ -587,7 +574,7 @@ table.content_editor_table {
587
574
 
588
575
  a.new_content_link {
589
576
  float: none;
590
- margin-bottom: 8px !important;
577
+ margin-bottom: 12px !important;
591
578
  margin-top: 4px !important;
592
579
  }
593
580
 
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  #errorExplanation {
4
2
  background: #ffdfdf;
5
3
  padding: 2*$default-padding;
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  div#flash_notices {
4
2
  position: fixed;
5
3
  right: 0;
@@ -1,5 +1,3 @@
1
- @import "alchemy/defaults";
2
-
3
1
  @mixin default-label-style {
4
2
  font-size: 10px;
5
3
  text-shadow: #fff 0 1px 2px;
@@ -135,12 +133,18 @@ button, input[type="submit"], a.button, input.button {
135
133
  }
136
134
 
137
135
  &:hover {
138
- background-color: #f7f7f7;
136
+ background-color: #D3D3D3;
139
137
  border: 1px solid #9a9a9a;
140
138
  cursor: default;
141
139
  }
142
140
  }
143
141
 
142
+ &.linked {
143
+ @include sassy-button('matte', $sb-border-radius, $sb-font-size, #ffd77a, $sb-second-color, $sb-text-color, $sb-text-style, $sb-pseudo-states, $sb-ie-support);
144
+ padding: 3px;
145
+ border-color: $default-border-color;
146
+ }
147
+
144
148
  &:focus {
145
149
  @include default-focus-style;
146
150
  }
@@ -304,7 +308,7 @@ select {
304
308
  */
305
309
 
306
310
  form td.select div.selectboxit {
307
- width: 200px;
311
+ width: 208px;
308
312
 
309
313
  .selectboxit-text {
310
314
  max-width: 180px !important;
@@ -325,12 +329,20 @@ div.selectboxit-container {
325
329
  @include default-button-style;
326
330
  width: auto;
327
331
  height: 15px;
328
- padding: 6px 0 6px 18px;
332
+ padding: 6px 0 6px 10px;
329
333
  margin: 0;
330
334
  @include inline-block;
331
335
  overflow: hidden;
332
336
  white-space: nowrap;
333
337
 
338
+ &.very_short {
339
+ width: 80px;
340
+
341
+ .selectboxit-text {
342
+ max-width: 60px !important;
343
+ }
344
+ }
345
+
334
346
  &.short {
335
347
  width: 80px;
336
348
 
@@ -340,7 +352,7 @@ div.selectboxit-container {
340
352
  }
341
353
 
342
354
  &.medium {
343
- width: 140px;
355
+ width: 148px;
344
356
 
345
357
  .selectboxit-text {
346
358
  max-width: 120px !important;
@@ -348,7 +360,7 @@ div.selectboxit-container {
348
360
  }
349
361
 
350
362
  &.long {
351
- width: 230px;
363
+ width: 238px;
352
364
 
353
365
  .selectboxit-text {
354
366
  max-width: 210px !important;
@@ -356,7 +368,7 @@ div.selectboxit-container {
356
368
  }
357
369
 
358
370
  &.very_long {
359
- width: 300px;
371
+ width: 308px;
360
372
 
361
373
  .selectboxit-text {
362
374
  max-width: 280px !important;
@@ -364,7 +376,7 @@ div.selectboxit-container {
364
376
  }
365
377
 
366
378
  &.full_width {
367
- width: 416px;
379
+ width: 424px;
368
380
 
369
381
  .selectboxit-text {
370
382
  max-width: 396px !important;
@@ -402,7 +414,7 @@ div.selectboxit-container {
402
414
  /* Dropdown List Down Arrow Container (if an image is not used) */
403
415
  .selectboxit-arrow-container {
404
416
  /* Positions the down arrow */
405
- width: 24px;
417
+ width: 20px;
406
418
  padding: 0 0.25em 0 0;
407
419
  margin-left: 0.5em;
408
420
  position: absolute;
@@ -453,7 +465,7 @@ div.selectboxit-container {
453
465
  white-space: nowrap;
454
466
  list-style: none;
455
467
  margin: 0;
456
- padding: 0.5em 1.5em;
468
+ padding: 6px 10px;
457
469
  }
458
470
 
459
471
  li.selectboxit-hover, li.selectboxit-focus {
@@ -473,7 +485,7 @@ div.selectboxit-container {
473
485
 
474
486
  /* Dropdown List Optgroup Options */
475
487
  .selectboxit-optgroup-option {
476
- text-indent: 20px;
488
+ text-indent: 10px;
477
489
  }
478
490
 
479
491
  /* Dropdown List Optgroup Header hover psuedo class */
@@ -482,3 +494,18 @@ div.selectboxit-container {
482
494
  }
483
495
  }
484
496
  }
497
+
498
+ .autocomplete_tag_list {
499
+ position: relative;
500
+
501
+ label {
502
+ position: absolute;
503
+ top: 8px;
504
+ left: 6px;
505
+ }
506
+
507
+ input[data-autocomplete] {
508
+ width: 220px;
509
+ padding-left: 24px;
510
+ }
511
+ }