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
@@ -0,0 +1,528 @@
1
+ @import "alchemy/defaults";
2
+
3
+ @mixin default-label-style {
4
+ font-size: 10px;
5
+ text-shadow: #fff 0 1px 2px;
6
+ margin-top: $default-margin;
7
+ display: block;
8
+ line-height: 100%;
9
+ @include disable-user-select;
10
+ clear: both;
11
+ }
12
+
13
+ button, input[type="submit"], a.button, input.button {
14
+ @include default-button-style;
15
+
16
+ &.small {
17
+ padding: 2px 2*$default-padding;
18
+ @include border-radius(10px);
19
+ vertical-align: inherit;
20
+ line-height: 4*$default-padding;
21
+ font-size: inherit;
22
+
23
+ &.with_icon {
24
+ padding: 2px 2*$default-padding 2px $default-padding;
25
+ }
26
+ }
27
+
28
+ &.with_icon {
29
+ padding: 6px 18px 6px 6px;
30
+
31
+ span.icon {
32
+ margin-top: -5px;
33
+ padding-right: 0.25em;
34
+ height: 15px;
35
+ }
36
+ }
37
+
38
+ &.cloned-button, &.cloned-button:hover, &.cloned-button:active {
39
+ display: inline-block;
40
+ padding: 0;
41
+ color: $text-color;
42
+ text-shadow: none;
43
+ @include box-shadow(none);
44
+ cursor: default;
45
+ background-image: none;
46
+ text-align: center;
47
+
48
+ img {
49
+ vertical-align: middle;
50
+ }
51
+ }
52
+
53
+ &:focus {
54
+ @include default-focus-style;
55
+ }
56
+ }
57
+
58
+ .icon_button {
59
+ @include default-button-style;
60
+ width: 21px;
61
+ height: 21px;
62
+ line-height: 19px;
63
+ margin: 0;
64
+ padding: 3px;
65
+ overflow: hidden;
66
+ text-align: center;
67
+
68
+ .icon {
69
+ @include inline-block;
70
+ vertical-align: middle;
71
+ }
72
+
73
+ .old_icon {
74
+ position: relative;
75
+ background-repeat: no-repeat;
76
+ width: 22px;
77
+ height: 20px;
78
+ @include inline-block;
79
+ top: -1px;
80
+ left: -1px;
81
+ }
82
+
83
+ img {
84
+ position: absolute;
85
+ top: 2px;
86
+ left: 3px;
87
+ }
88
+
89
+ &.small {
90
+ width: 15px;
91
+ height: 15px;
92
+ padding: 0;
93
+ float: none;
94
+ @include inline-block;
95
+ position: relative;
96
+ top: -2px;
97
+ background: none;
98
+ border: none;
99
+ @include box-shadow(none);
100
+
101
+ .icon {
102
+ left: auto;
103
+ position: absolute;
104
+ right: 4px;
105
+ top: 4px;
106
+ width: 8px;
107
+ height: 8px;
108
+
109
+ &.delete-small {
110
+ background-position: -4px -76px;
111
+ }
112
+ }
113
+
114
+ &:hover {
115
+ border: $default-border-width $default-border-style $button-hover-border-color;
116
+ @include border-radius($default-border-radius);
117
+ background: $button-hover-bg-color;
118
+ top: -2px;
119
+ right: 0px;
120
+
121
+ .icon {
122
+ right: 3px;
123
+ top: 3px;
124
+ }
125
+ }
126
+ }
127
+
128
+ &.old_icon {
129
+ width: 20px;
130
+ height: 19px;
131
+
132
+ img {
133
+ top: 0;
134
+ left: 1px;
135
+ }
136
+ }
137
+
138
+ &.disabled {
139
+
140
+ span {
141
+ position: relative;
142
+ @include opacity(0.3);
143
+ cursor: default;
144
+ }
145
+
146
+ &:hover {
147
+ background-color: #f7f7f7;
148
+ border: 1px solid #9a9a9a;
149
+ cursor: default;
150
+ }
151
+ }
152
+
153
+ &:focus {
154
+ @include default-focus-style;
155
+ }
156
+ }
157
+
158
+ button.icon_button {
159
+ width: 29px;
160
+ height: 29px;
161
+ }
162
+
163
+ // a.button {
164
+ // padding: 5px 8px;
165
+ // text-decoration: none;
166
+ // float: left;
167
+ // line-height: 13px;
168
+
169
+ // &.small {
170
+ // height: 14px;
171
+ // padding-top: 2px;
172
+ // padding-bottom: 2px;
173
+ // border-radius: 10px;
174
+ // -o-border-radius: 10px;
175
+ // -ms-border-radius: 10px;
176
+ // -moz-border-radius: 10px;
177
+ // -webkit-border-radius: 10px;
178
+
179
+ // &.cloned-button img {
180
+ // @include inline-block;
181
+ // float: none;
182
+ // position: relative;
183
+ // height: 16px;
184
+ // width: 16px;
185
+ // top: -1px;
186
+ // }
187
+
188
+ // &.with_icon span.icon {
189
+ // margin-top: -5px;
190
+ // position: relative;
191
+ // top: 3px;
192
+ // left: -1px;
193
+ // }
194
+ // }
195
+
196
+ // span.icon {
197
+ // vertical-align: -2px;
198
+ // margin-bottom: -2px;
199
+ // margin-left: -4px;
200
+ // }
201
+ // }
202
+
203
+ #new_element button.button {
204
+ float: right;
205
+ }
206
+
207
+ #new_page_form tbody tr td.second_row .button {
208
+ float: right;
209
+ }
210
+
211
+ div#toolbar label {
212
+ @include default-label-style;
213
+ }
214
+
215
+ div.button_with_label {
216
+ text-align: center;
217
+ margin-right: 8px;
218
+ margin-left: 8px;
219
+ float: left;
220
+ min-width: 70px;
221
+ line-height: 0;
222
+
223
+ label {
224
+ @include default-label-style;
225
+ }
226
+
227
+ &.active {
228
+
229
+ .icon_button {
230
+ $second-color: darken($sb-base-color, 10%);
231
+ @include sassy-button-active-shadow($second-color);
232
+ background-color: $second-color;
233
+ @include background(linear-gradient(color-stops(darken($sb-base-color, 2%), $second-color 50%, darken($second-color, 8%))))
234
+ }
235
+
236
+ label {
237
+ color: black;
238
+ text-shadow: white 0 0 2px;
239
+ }
240
+ }
241
+
242
+ .selectboxit-container {
243
+ margin: 0;
244
+ top: 0;
245
+ }
246
+
247
+ .icon_button {
248
+ float: none;
249
+ margin-right: auto;
250
+ margin-left: auto;
251
+ @include inline-block;
252
+ position: relative;
253
+ }
254
+
255
+ &.disabled {
256
+ position: relative;
257
+ @include opacity(0.5);
258
+ cursor: default;
259
+
260
+ a {
261
+ cursor: default;
262
+ background-color: #f7f7f7;
263
+ border: 1px solid #9a9a9a;
264
+ }
265
+
266
+ &:before {
267
+ content: '';
268
+ position: absolute;
269
+ z-index: 1;
270
+ width: 100%;
271
+ height: 100%;
272
+ }
273
+ }
274
+ }
275
+
276
+ div.sitemap_right_tools .sitemap_sitetools a.icon_button {
277
+ margin-right: 4px;
278
+ }
279
+
280
+ textarea, input[type="text"], input[type="email"], input[type="password"], .thin_border, .input_field {
281
+ @include default-input-style;
282
+
283
+ &.dirty {
284
+ background-color: #fff8df;
285
+ }
286
+ }
287
+
288
+ textarea {
289
+ height: auto;
290
+ padding: 4px !important;
291
+ line-height: 19px !important;
292
+ }
293
+
294
+ input#search_input_field {
295
+ width: 170px;
296
+ text-align: left;
297
+ @include border-radius(21px);
298
+ padding: 3px 26px;
299
+ margin: 0;
300
+ height: 21px;
301
+ }
302
+
303
+ div.search_field span.icon, div.js_filter_field_box span.icon {
304
+ position: absolute;
305
+ left: 8px;
306
+ top: 6px;
307
+ }
308
+
309
+ .js_filter_field_box {
310
+ position: relative;
311
+ float: right;
312
+ margin-left: 4px;
313
+
314
+ .js_filter_field {
315
+ width: 170px;
316
+ text-align: left;
317
+ @include border-radius(15px);
318
+ padding: 3px 24px;
319
+ height: 21px;
320
+ margin: 0;
321
+ }
322
+
323
+ label {
324
+ font-size: 10px;
325
+ display: block;
326
+ text-align: center;
327
+ padding-top: 3px;
328
+ }
329
+
330
+ .js_filter_field_clear {
331
+ width: 15px;
332
+ height: 15px;
333
+ background: url('icons.png') no-repeat 0 -70px;
334
+ position: absolute;
335
+ right: 8px;
336
+ top: 4px;
337
+ @include rounded-corner;
338
+ }
339
+ }
340
+
341
+ // Just some basic styling for select tags.
342
+ // Not used, because we use the .selectBoxIt() jQuery plugin.
343
+
344
+ select {
345
+ @include default-button-style;
346
+ height: 29px;
347
+ padding: 0.4em 0.6em;
348
+ }
349
+
350
+ /*
351
+ * jQuery.selectBoxIt.css 0.9.0
352
+ * Author: @gregfranko
353
+ */
354
+
355
+ form td.select div.selectboxit {
356
+ width: 200px;
357
+
358
+ .selectboxit-text {
359
+ max-width: 180px !important;
360
+ }
361
+ }
362
+
363
+ div.selectboxit-container {
364
+ @include inline-block;
365
+ margin: $default-form-field-margin;
366
+ position: relative;
367
+ height: 29px;
368
+ text-align: left;
369
+ top: -2px;
370
+
371
+ div.selectboxit {
372
+ @include default-button-style;
373
+ width: auto;
374
+ height: 15px;
375
+ padding: 6px 0 6px 18px;
376
+ margin: 0;
377
+ @include inline-block;
378
+ overflow: hidden;
379
+ white-space: nowrap;
380
+
381
+ &.short {
382
+ width: 80px;
383
+
384
+ .selectboxit-text {
385
+ max-width: 60px !important;
386
+ }
387
+ }
388
+
389
+ &.medium {
390
+ width: 140px;
391
+
392
+ .selectboxit-text {
393
+ max-width: 120px !important;
394
+ }
395
+ }
396
+
397
+ &.long {
398
+ width: 240px;
399
+
400
+ .selectboxit-text {
401
+ max-width: 220px !important;
402
+ }
403
+ }
404
+
405
+ &.very_long {
406
+ width: 300px;
407
+
408
+ .selectboxit-text {
409
+ max-width: 280px !important;
410
+ }
411
+ }
412
+
413
+ &.full_width {
414
+ width: 416px;
415
+
416
+ .selectboxit-text {
417
+ max-width: 396px !important;
418
+ }
419
+ }
420
+
421
+ &.tiny {
422
+ padding: 2px 2px 2px 8px;
423
+ height: 14px;
424
+
425
+ .selectboxit-text {
426
+ padding-right: 24px;
427
+ font-size: 10px;
428
+ line-height: 14px;
429
+ }
430
+ }
431
+
432
+ &:focus {
433
+ @include default-focus-style;
434
+ }
435
+
436
+ /* Dropdown List Box Text */
437
+ span.selectboxit-text {
438
+ font: $default-font-style;
439
+ overflow: hidden;
440
+ float: left;
441
+ white-space: nowrap;
442
+ @include disable-user-select;
443
+ @include text-overflow(ellipsis);
444
+ padding-right: 32px;
445
+ }
446
+
447
+ /* Dropdown List Down Arrow Container (if an image is not used) */
448
+ span.selectboxit-arrow-container {
449
+ /* Positions the down arrow */
450
+ width: 16px;
451
+ padding: 0 0.25em 0 0;
452
+ margin-left: 0.5em;
453
+ position: absolute;
454
+ right: 0;
455
+ top: 7px;
456
+ border-left: 1px solid darken($medium-gray, 10%);
457
+ height: auto !important;
458
+
459
+ /* Dropdown List Down Arrow */
460
+ span.selectboxit-arrow {
461
+ /* Horizontally centers the down arrow */
462
+ margin-right: auto;
463
+ margin-left: auto;
464
+ width: 16px;
465
+ height: 15px;
466
+ text-indent: -99999px;
467
+ overflow: hidden;
468
+ display: block;
469
+ background: url('ui-icons_666666_256x240.png') -127px -17px no-repeat;
470
+ }
471
+ }
472
+ }
473
+
474
+ /* Dropdown List Options List*/
475
+ ul {
476
+ min-height: 28px;
477
+ min-width: 100%;
478
+ background: white;
479
+ max-height: 180px; /* A vertical scrollbar appears if your select box options are taller than this */
480
+ margin: 0;
481
+ padding: 0;
482
+ list-style: none;
483
+ position: absolute;
484
+ overflow: auto;
485
+ cursor: pointer;
486
+ display: none;
487
+ z-index: 99999;
488
+ outline: none;
489
+ @include rounded-corner;
490
+ @include box-shadow(0 4px 16px $dark-gray);
491
+ border: $default-border;
492
+
493
+ /* Dropdown List Individual Options */
494
+ li, .selectboxit-optgroup-header {
495
+ line-height: 1.5em; /* Height of Individual Select Box Options */
496
+ overflow: hidden;
497
+ white-space: nowrap;
498
+ list-style: none;
499
+ margin: 0;
500
+ padding: 0.5em 1.5em;
501
+ }
502
+
503
+ li.selectboxit-hover, li.selectboxit-focus {
504
+ background-color: #e6f0f5;
505
+ color: $text-color;
506
+ }
507
+
508
+ /* Dropdown List Individual Option Icon Positioning */
509
+ li span {
510
+ float:left;
511
+ }
512
+
513
+ /* Dropdown List Optgroup Headers */
514
+ .selectboxit-optgroup-header {
515
+ font-weight: bold;
516
+ }
517
+
518
+ /* Dropdown List Optgroup Options */
519
+ .selectboxit-optgroup-option {
520
+ text-indent: 20px;
521
+ }
522
+
523
+ /* Dropdown List Optgroup Header hover psuedo class */
524
+ .selectboxit-optgroup-header[data-disabled='true']:hover {
525
+ cursor: default;
526
+ }
527
+ }
528
+ }