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.
- data/.gitignore +1 -1
- data/.travis.yml +3 -4
- data/Gemfile +1 -0
- data/README.md +10 -6
- data/alchemy_cms.gemspec +5 -2
- data/app/assets/images/alchemy/icons.png +0 -0
- data/app/assets/images/sassy-ie-overlay.png +0 -0
- data/app/assets/javascripts/alchemy/alchemy.base.js +50 -59
- data/app/assets/javascripts/alchemy/alchemy.buttons.js +14 -4
- data/app/assets/javascripts/alchemy/alchemy.datepicker.js +8 -2
- data/app/assets/javascripts/alchemy/alchemy.elements_window.js +11 -3
- data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +14 -1
- data/app/assets/javascripts/alchemy/alchemy.preview.js +1 -1
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js +12 -4
- data/app/assets/javascripts/alchemy/alchemy.uploader.js +4 -1
- data/app/assets/javascripts/alchemy/alchemy.windows.js +18 -8
- data/app/assets/stylesheets/alchemy/_defaults.scss +84 -120
- data/app/assets/stylesheets/alchemy/alchemy.css +2 -2
- data/app/assets/stylesheets/alchemy/archive.css.scss +288 -0
- data/app/assets/stylesheets/alchemy/base.css.scss +95 -390
- data/app/assets/stylesheets/alchemy/dashboard.css.scss +4 -4
- data/app/assets/stylesheets/alchemy/elements.css.scss +83 -118
- data/app/assets/stylesheets/alchemy/flash.css.scss +1 -1
- data/app/assets/stylesheets/alchemy/form_elements.css.scss +528 -0
- data/app/assets/stylesheets/alchemy/frame.css.scss +13 -39
- data/app/assets/stylesheets/alchemy/icons.css.scss +217 -228
- data/app/assets/stylesheets/alchemy/jquery-ui.alchemy.css.scss +48 -50
- data/app/assets/stylesheets/alchemy/jquery.Jcrop.css.scss +1 -1
- data/app/assets/stylesheets/alchemy/login.css.scss +1 -5
- data/app/assets/stylesheets/alchemy/menubar.css.scss +19 -29
- data/app/assets/stylesheets/alchemy/pagination.css.scss +3 -4
- data/app/assets/stylesheets/alchemy/sitemap.css.scss +81 -81
- data/app/assets/stylesheets/alchemy/tables.css.scss +63 -57
- data/app/assets/stylesheets/alchemy/tinymce_dialog.css.scss +57 -57
- data/app/assets/stylesheets/alchemy/upload.css.scss +6 -6
- data/app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/alchemy/window.css.scss +6 -10
- data/app/controllers/alchemy/admin/attachments_controller.rb +5 -4
- data/app/controllers/alchemy/admin/base_controller.rb +1 -9
- data/app/controllers/alchemy/admin/contents_controller.rb +4 -6
- data/app/controllers/alchemy/admin/elements_controller.rb +2 -2
- data/app/controllers/alchemy/admin/pages_controller.rb +2 -2
- data/app/controllers/alchemy/admin/pictures_controller.rb +74 -15
- data/app/controllers/alchemy/attachments_controller.rb +8 -2
- data/app/controllers/alchemy/base_controller.rb +47 -5
- data/app/controllers/alchemy/elements_controller.rb +1 -1
- data/app/controllers/alchemy/messages_controller.rb +12 -12
- data/app/controllers/alchemy/pages_controller.rb +5 -1
- data/app/controllers/alchemy/pictures_controller.rb +9 -4
- data/app/controllers/alchemy/user_sessions_controller.rb +2 -4
- data/app/helpers/alchemy/admin/base_helper.rb +98 -19
- data/app/helpers/alchemy/admin/contents_helper.rb +2 -2
- data/app/helpers/alchemy/admin/elements_helper.rb +2 -3
- data/app/helpers/alchemy/base_helper.rb +6 -5
- data/app/helpers/alchemy/elements_helper.rb +2 -2
- data/app/helpers/alchemy/essences_helper.rb +4 -5
- data/app/helpers/alchemy/pages_helper.rb +15 -79
- data/app/helpers/alchemy/url_helper.rb +67 -0
- data/app/mailers/alchemy/messages.rb +1 -1
- data/app/mailers/alchemy/notifications.rb +1 -1
- data/app/models/alchemy/attachment.rb +11 -2
- data/app/models/alchemy/cell.rb +20 -10
- data/app/models/alchemy/content.rb +4 -3
- data/app/models/alchemy/element.rb +170 -178
- data/app/models/alchemy/language/code.rb +4 -1
- data/app/models/alchemy/message.rb +19 -3
- data/app/models/alchemy/page.rb +45 -40
- data/app/models/alchemy/picture.rb +24 -2
- data/app/models/alchemy/user.rb +2 -3
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +12 -12
- data/app/views/alchemy/admin/attachments/_attachment.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/create.js.erb +1 -0
- data/app/views/alchemy/admin/attachments/edit.html.erb +9 -3
- data/app/views/alchemy/admin/attachments/index.html.erb +3 -2
- data/app/views/alchemy/admin/contents/_missing.html.erb +1 -1
- data/app/views/alchemy/admin/contents/create.js.erb +54 -0
- data/app/views/alchemy/admin/contents/new.html.erb +9 -4
- data/app/views/alchemy/admin/elements/{_add_content.html.erb → _add_picture.html.erb} +4 -4
- data/app/views/alchemy/admin/elements/_elements_select.html.erb +2 -1
- data/app/views/alchemy/admin/elements/_new_element_form.html.erb +1 -1
- data/app/views/alchemy/admin/elements/{_picture_editor.html.erb → _picture_gallery_editor.html.erb} +7 -11
- data/app/views/alchemy/admin/elements/fold.js.erb +46 -0
- data/app/views/alchemy/admin/elements/index.html.erb +24 -24
- data/app/views/alchemy/admin/elements/list.js.erb +11 -9
- data/app/views/alchemy/admin/essence_files/assign.js.erb +3 -1
- data/app/views/alchemy/admin/essence_pictures/destroy.js.erb +28 -0
- data/app/views/alchemy/admin/pages/_contactform_links.html.erb +8 -6
- data/app/views/alchemy/admin/pages/_external_link.html.erb +11 -9
- data/app/views/alchemy/admin/pages/_file_link.html.erb +10 -8
- data/app/views/alchemy/admin/pages/_internal_link.html.erb +14 -10
- data/app/views/alchemy/admin/pages/_new_page_form.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_page.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_page_for_links.html.erb +32 -21
- data/app/views/alchemy/admin/pages/configure.html.erb +2 -2
- data/app/views/alchemy/admin/pages/configure_external.html.erb +13 -13
- data/app/views/alchemy/admin/pages/edit.html.erb +2 -2
- data/app/views/alchemy/admin/pages/index.html.erb +26 -24
- data/app/views/alchemy/admin/pages/link.html.erb +2 -5
- data/app/views/alchemy/admin/partials/_upload_form.html.erb +28 -12
- data/app/views/alchemy/admin/pictures/_archive.html.erb +54 -0
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +10 -7
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +21 -22
- data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +31 -0
- data/app/views/alchemy/admin/pictures/_overlay_picture_list.html.erb +9 -0
- data/app/views/alchemy/admin/pictures/_picture.html.erb +36 -6
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +27 -0
- data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +3 -1
- data/app/views/alchemy/admin/pictures/create.js.erb +4 -5
- data/app/views/alchemy/admin/pictures/edit.html.erb +26 -0
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +39 -0
- data/app/views/alchemy/admin/pictures/index.html.erb +81 -70
- data/app/views/alchemy/admin/pictures/index.js.erb +3 -0
- data/app/views/alchemy/admin/pictures/new.html.erb +1 -0
- data/app/views/alchemy/admin/resources/index.html.erb +3 -1
- data/app/views/alchemy/admin/users/_table.html.erb +1 -1
- data/app/views/alchemy/admin/users/index.html.erb +27 -23
- data/app/views/alchemy/elements/_article_editor.html.erb +7 -2
- data/app/views/alchemy/elements/_bild_editor.html.erb +1 -1
- data/app/views/alchemy/elements/_bild_text_editor.html.erb +6 -1
- data/app/views/alchemy/elements/_bild_text_view.html.erb +3 -3
- data/app/views/alchemy/elements/_image_mosaic_editor.html.erb +1 -1
- data/app/views/alchemy/elements/_image_mosaic_view.html.erb +2 -2
- data/app/views/alchemy/elements/_intro_image_text_view.html.erb +4 -4
- data/app/views/alchemy/elements/_searchresult_editor.html.erb +4 -1
- data/app/views/alchemy/essences/_essence_boolean_editor.html.erb +1 -1
- data/app/views/alchemy/essences/_essence_picture_editor.html.erb +2 -3
- data/app/views/alchemy/essences/_essence_picture_tools.html.erb +1 -1
- data/app/views/alchemy/search/_form.html.erb +8 -0
- data/app/views/alchemy/search/_result.html.erb +3 -2
- data/app/views/alchemy/search/_results.html.erb +28 -0
- data/app/views/alchemy/user_sessions/leave.html.erb +4 -4
- data/app/views/alchemy/user_sessions/login.html.erb +1 -2
- data/app/views/layouts/alchemy/admin.html.erb +30 -10
- data/app/views/layouts/alchemy/login.html.erb +2 -39
- data/config/alchemy/elements.yml +1 -2
- data/config/alchemy/page_layouts.yml +8 -5
- data/config/authorization_rules.rb +27 -18
- data/config/initializers/localeapp.rb +9 -0
- data/config/locales/alchemy.de.yml +93 -56
- data/config/locales/alchemy.en.yml +73 -50
- data/config/routes.rb +3 -1
- data/db/migrate/20120704181529_add_upload_hash_to_alchemy_picture.rb +5 -0
- data/db/migrate/20120705214247_acts_as_taggable_on_migration.rb +28 -0
- data/db/migrate/20120728185830_add_cached_tag_list_to_alchemy_pictures.rb +5 -0
- data/db/migrate/20120831135441_set_alchemy_languages_country_code_default_to_empty_string.rb +9 -0
- data/lib/alchemy/capistrano.rb +2 -2
- data/lib/alchemy/essence.rb +14 -0
- data/lib/alchemy/page_layout.rb +0 -6
- data/lib/alchemy/resource.rb +9 -15
- data/lib/alchemy/upgrader.rb +18 -3
- data/lib/alchemy/version.rb +5 -1
- data/lib/alchemy_cms.rb +4 -1
- data/lib/rails/generators/alchemy/deploy_script/deploy_script_generator.rb +16 -6
- data/lib/rails/generators/alchemy/deploy_script/templates/deploy.rb.tt +17 -3
- data/lib/rails/generators/alchemy/elements/elements_generator.rb +6 -1
- data/lib/rails/generators/alchemy/elements/templates/editor.html.erb +10 -1
- data/lib/rails/generators/alchemy/elements/templates/view.html.erb +17 -18
- data/lib/rails/generators/alchemy/scaffold/files/pages.html.erb +4 -2
- data/lib/tasks/fleximage.rake +2 -2
- data/spec/controllers/admin/contents_controller_spec.rb +2 -2
- data/spec/controllers/admin/elements_controller_spec.rb +30 -1
- data/spec/controllers/admin/pages_controller_spec.rb +35 -18
- data/spec/controllers/admin/trash_controller_spec.rb +40 -16
- data/spec/controllers/attachments_controller_spec.rb +62 -0
- data/spec/controllers/base_controller_spec.rb +43 -42
- data/spec/controllers/elements_controller_spec.rb +30 -0
- data/spec/controllers/pages_controller_spec.rb +22 -5
- data/spec/controllers/pictures_controller_spec.rb +82 -0
- data/spec/dummy/app/models/event.rb +2 -1
- data/spec/dummy/config/database.yml +3 -2
- data/spec/dummy/db/schema.rb +51 -27
- data/spec/factories.rb +29 -8
- data/spec/helpers/admin/base_helper_spec.rb +134 -21
- data/spec/helpers/admin/contents_helper_spec.rb +2 -2
- data/spec/helpers/admin/elements_helper_spec.rb +17 -9
- data/spec/helpers/admin/essences_helper_spec.rb +7 -6
- data/spec/helpers/essences_helper_spec.rb +8 -7
- data/spec/helpers/pages_helper_spec.rb +208 -325
- data/spec/helpers/url_helper_spec.rb +171 -0
- data/spec/integration/admin/link_overlay_spec.rb +53 -0
- data/spec/integration/admin/modules_integration_spec.rb +22 -26
- data/spec/integration/admin/pages_controller_spec.rb +10 -19
- data/spec/integration/admin/picture_library_integration_spec.rb +52 -0
- data/spec/integration/admin/resources_integration_spec.rb +68 -75
- data/spec/integration/pages_controller_spec.rb +70 -61
- data/spec/integration/security_spec.rb +3 -5
- data/spec/integration/translation_integration_spec.rb +56 -0
- data/spec/libraries/essence_spec.rb +18 -0
- data/spec/libraries/resource_spec.rb +101 -79
- data/spec/libraries/resources_helper_spec.rb +3 -0
- data/spec/models/content_spec.rb +63 -60
- data/spec/models/element_spec.rb +203 -93
- data/spec/models/language_spec.rb +90 -65
- data/spec/models/page_layout_spec.rb +37 -0
- data/spec/models/page_spec.rb +181 -113
- data/spec/models/picture_spec.rb +73 -26
- data/spec/models/resource_spec.rb +52 -23
- data/spec/support/alchemy/specs_helpers.rb +2 -0
- data/spec/support/image.png +0 -0
- data/spec/{helpers/url_helpers_spec.rb → url_helpers_spec.rb} +0 -0
- data/vendor/assets/javascripts/jquery_plugins/jquery.selectBoxIt.js +1909 -0
- data/vendor/assets/javascripts/jquery_plugins/preloadCssImages.jQuery_v5.js +152 -0
- metadata +106 -33
- data/app/assets/stylesheets/alchemy/buttons.css.scss +0 -361
- data/app/assets/stylesheets/alchemy/jquery.sb.css.scss +0 -260
- data/app/views/alchemy/admin/contents/create.js.coffee +0 -49
- data/app/views/alchemy/admin/elements/fold.js.coffee +0 -37
- data/app/views/alchemy/admin/essence_pictures/destroy.js.coffee +0 -19
- data/app/views/alchemy/admin/pictures/_pictures_list.html.erb +0 -16
- data/app/views/alchemy/admin/pictures/update.js.erb +0 -3
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/locales/fo.yml +0 -5
- data/spec/page_layout_spec.rb +0 -35
- data/vendor/assets/javascripts/jquery_plugins/jquery.in-place-edit.js +0 -172
- 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
|
+
}
|