surveyor 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/CHANGELOG.md +26 -0
  2. data/README.md +67 -168
  3. data/app/models/survey_translation.rb +5 -0
  4. data/app/views/partials/_answer.html.haml +9 -5
  5. data/app/views/partials/_question.html.haml +3 -3
  6. data/app/views/partials/_question_group.html.haml +9 -8
  7. data/app/views/partials/_section.html.haml +1 -1
  8. data/app/views/surveyor/edit.html.haml +3 -3
  9. data/app/views/surveyor/export.json.rabl +12 -8
  10. data/app/views/surveyor/new.html.haml +9 -14
  11. data/app/views/surveyor/show.html.haml +2 -2
  12. data/doc/surveyor_models.png +0 -0
  13. data/doc/surveyor_models2.png +0 -0
  14. data/features/export_to_json.feature +97 -1
  15. data/features/internationalization.feature +55 -0
  16. data/features/step_definitions/parser_steps.rb +7 -0
  17. data/features/step_definitions/surveyor_steps.rb +43 -6
  18. data/features/step_definitions/ui_steps.rb +22 -0
  19. data/features/support/env.rb +2 -0
  20. data/features/support/hooks.rb +4 -0
  21. data/features/surveyor.feature +117 -1
  22. data/features/surveyor_dependencies.feature +56 -2
  23. data/features/surveyor_parser.feature +10 -10
  24. data/lib/assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  25. data/lib/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  26. data/lib/assets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  27. data/lib/assets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  28. data/lib/assets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  29. data/lib/assets/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  30. data/lib/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  31. data/lib/assets/images/{ui-icons_ef8c08_256x240.png → ui-icons_222222_256x240.png} +0 -0
  32. data/lib/assets/images/ui-icons_2e83ff_256x240.png +0 -0
  33. data/lib/assets/images/{ui-icons_ffffff_256x240.png → ui-icons_454545_256x240.png} +0 -0
  34. data/lib/assets/images/ui-icons_888888_256x240.png +0 -0
  35. data/lib/assets/images/ui-icons_cd0a0a_256x240.png +0 -0
  36. data/lib/assets/javascripts/surveyor/jquery-1.9.0.js +9555 -0
  37. data/lib/assets/javascripts/surveyor/jquery-ui-1.10.0.custom.js +14850 -0
  38. data/lib/assets/javascripts/surveyor/jquery-ui-timepicker-addon.js +1795 -1153
  39. data/lib/assets/javascripts/surveyor/jquery.maskedinput.js +338 -0
  40. data/lib/assets/javascripts/surveyor/jquery.surveyor.js +8 -0
  41. data/lib/assets/stylesheets/surveyor.sass +2 -2
  42. data/lib/assets/stylesheets/surveyor/jquery-ui-1.10.0.custom.css +1174 -0
  43. data/lib/assets/stylesheets/surveyor/jquery-ui-timepicker-addon.css +7 -2
  44. data/lib/assets/stylesheets/surveyor/reset.css +24 -26
  45. data/lib/generators/surveyor/install_generator.rb +4 -0
  46. data/lib/generators/surveyor/templates/app/assets/javascripts/surveyor_all.js +4 -3
  47. data/lib/generators/surveyor/templates/app/assets/stylesheets/surveyor_all.css +2 -2
  48. data/lib/generators/surveyor/templates/config/locales/surveyor_en.yml +1 -0
  49. data/lib/generators/surveyor/templates/config/locales/surveyor_he.yml +1 -1
  50. data/lib/generators/surveyor/templates/config/locales/surveyor_ko.yml +18 -0
  51. data/lib/generators/surveyor/templates/db/migrate/add_input_mask_attributes_to_answer.rb +12 -0
  52. data/lib/generators/surveyor/templates/db/migrate/create_survey_translations.rb +19 -0
  53. data/lib/generators/surveyor/templates/surveys/kitchen_sink_survey.rb +5 -0
  54. data/lib/generators/surveyor/templates/surveys/languages.rb +10 -0
  55. data/lib/generators/surveyor/templates/surveys/translations/languages.es.yml +14 -0
  56. data/lib/generators/surveyor/templates/surveys/translations/languages.he.yml +14 -0
  57. data/lib/generators/surveyor/templates/surveys/translations/languages.ko.yml +14 -0
  58. data/lib/surveyor/helpers/formtastic_custom_input.rb +4 -8
  59. data/lib/surveyor/helpers/surveyor_helper_methods.rb +22 -26
  60. data/lib/surveyor/models/answer_methods.rb +41 -10
  61. data/lib/surveyor/models/question_group_methods.rb +17 -3
  62. data/lib/surveyor/models/question_methods.rb +32 -5
  63. data/lib/surveyor/models/response_methods.rb +7 -7
  64. data/lib/surveyor/models/survey_methods.rb +20 -4
  65. data/lib/surveyor/models/survey_section_methods.rb +10 -5
  66. data/lib/surveyor/models/survey_translation_methods.rb +33 -0
  67. data/lib/surveyor/mustache_context.rb +11 -0
  68. data/lib/surveyor/parser.rb +15 -2
  69. data/lib/surveyor/surveyor_controller_methods.rb +19 -17
  70. data/lib/surveyor/version.rb +1 -1
  71. data/spec/controllers/surveyor_controller_spec.rb +3 -3
  72. data/spec/factories.rb +21 -7
  73. data/spec/helpers/formtastic_custom_input_spec.rb +2 -3
  74. data/spec/helpers/surveyor_helper_spec.rb +64 -100
  75. data/spec/models/answer_spec.rb +166 -58
  76. data/spec/models/question_group_spec.rb +84 -38
  77. data/spec/models/question_spec.rb +188 -116
  78. data/spec/models/survey_section_spec.rb +77 -40
  79. data/spec/models/survey_spec.rb +176 -145
  80. data/spec/spec_helper.rb +3 -0
  81. data/stacktests.sh +52 -0
  82. metadata +36 -18
  83. data/lib/assets/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  84. data/lib/assets/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  85. data/lib/assets/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  86. data/lib/assets/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  87. data/lib/assets/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  88. data/lib/assets/javascripts/surveyor/jquery-ui.js +0 -11729
  89. data/lib/assets/javascripts/surveyor/jquery.tools.min.js +0 -204
  90. data/lib/assets/stylesheets/surveyor/dateinput.css +0 -149
  91. data/lib/assets/stylesheets/surveyor/jquery-ui.custom.css +0 -572
  92. data/lib/surveyor/render_text.rb +0 -23
  93. data/lib/surveyor/surveyor_admin_controller_methods.rb +0 -55
@@ -0,0 +1,338 @@
1
+ /*
2
+ Masked Input plugin for jQuery
3
+ Copyright (c) 2007-2013 Josh Bush (digitalbush.com)
4
+ Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
5
+ Version: 1.3.1
6
+ */
7
+ (function($) {
8
+ function getPasteEvent() {
9
+ var el = document.createElement('input'),
10
+ name = 'onpaste';
11
+ el.setAttribute(name, '');
12
+ return (typeof el[name] === 'function')?'paste':'input';
13
+ }
14
+
15
+ var pasteEventName = getPasteEvent() + ".mask",
16
+ ua = navigator.userAgent,
17
+ iPhone = /iphone/i.test(ua),
18
+ android=/android/i.test(ua),
19
+ caretTimeoutId;
20
+
21
+ $.mask = {
22
+ //Predefined character definitions
23
+ definitions: {
24
+ '9': "[0-9]",
25
+ 'a': "[A-Za-z]",
26
+ '*': "[A-Za-z0-9]"
27
+ },
28
+ dataName: "rawMaskFn",
29
+ placeholder: '_',
30
+ };
31
+
32
+ $.fn.extend({
33
+ //Helper Function for Caret positioning
34
+ caret: function(begin, end) {
35
+ var range;
36
+
37
+ if (this.length === 0 || this.is(":hidden")) {
38
+ return;
39
+ }
40
+
41
+ if (typeof begin == 'number') {
42
+ end = (typeof end === 'number') ? end : begin;
43
+ return this.each(function() {
44
+ if (this.setSelectionRange) {
45
+ this.setSelectionRange(begin, end);
46
+ } else if (this.createTextRange) {
47
+ range = this.createTextRange();
48
+ range.collapse(true);
49
+ range.moveEnd('character', end);
50
+ range.moveStart('character', begin);
51
+ range.select();
52
+ }
53
+ });
54
+ } else {
55
+ if (this[0].setSelectionRange) {
56
+ begin = this[0].selectionStart;
57
+ end = this[0].selectionEnd;
58
+ } else if (document.selection && document.selection.createRange) {
59
+ range = document.selection.createRange();
60
+ begin = 0 - range.duplicate().moveStart('character', -100000);
61
+ end = begin + range.text.length;
62
+ }
63
+ return { begin: begin, end: end };
64
+ }
65
+ },
66
+ unmask: function() {
67
+ return this.trigger("unmask");
68
+ },
69
+ mask: function(mask, settings) {
70
+ var input,
71
+ defs,
72
+ tests,
73
+ partialPosition,
74
+ firstNonMaskPos,
75
+ len;
76
+
77
+ if (!mask && this.length > 0) {
78
+ input = $(this[0]);
79
+ return input.data($.mask.dataName)();
80
+ }
81
+ settings = $.extend({
82
+ placeholder: $.mask.placeholder, // Load default placeholder
83
+ completed: null
84
+ }, settings);
85
+
86
+
87
+ defs = $.mask.definitions;
88
+ tests = [];
89
+ partialPosition = len = mask.length;
90
+ firstNonMaskPos = null;
91
+
92
+ $.each(mask.split(""), function(i, c) {
93
+ if (c == '?') {
94
+ len--;
95
+ partialPosition = i;
96
+ } else if (defs[c]) {
97
+ tests.push(new RegExp(defs[c]));
98
+ if (firstNonMaskPos === null) {
99
+ firstNonMaskPos = tests.length - 1;
100
+ }
101
+ } else {
102
+ tests.push(null);
103
+ }
104
+ });
105
+
106
+ return this.trigger("unmask").each(function() {
107
+ var input = $(this),
108
+ buffer = $.map(
109
+ mask.split(""),
110
+ function(c, i) {
111
+ if (c != '?') {
112
+ return defs[c] ? settings.placeholder : c;
113
+ }
114
+ }),
115
+ focusText = input.val();
116
+
117
+ function seekNext(pos) {
118
+ while (++pos < len && !tests[pos]);
119
+ return pos;
120
+ }
121
+
122
+ function seekPrev(pos) {
123
+ while (--pos >= 0 && !tests[pos]);
124
+ return pos;
125
+ }
126
+
127
+ function shiftL(begin,end) {
128
+ var i,
129
+ j;
130
+
131
+ if (begin<0) {
132
+ return;
133
+ }
134
+
135
+ for (i = begin, j = seekNext(end); i < len; i++) {
136
+ if (tests[i]) {
137
+ if (j < len && tests[i].test(buffer[j])) {
138
+ buffer[i] = buffer[j];
139
+ buffer[j] = settings.placeholder;
140
+ } else {
141
+ break;
142
+ }
143
+
144
+ j = seekNext(j);
145
+ }
146
+ }
147
+ writeBuffer();
148
+ input.caret(Math.max(firstNonMaskPos, begin));
149
+ }
150
+
151
+ function shiftR(pos) {
152
+ var i,
153
+ c,
154
+ j,
155
+ t;
156
+
157
+ for (i = pos, c = settings.placeholder; i < len; i++) {
158
+ if (tests[i]) {
159
+ j = seekNext(i);
160
+ t = buffer[i];
161
+ buffer[i] = c;
162
+ if (j < len && tests[j].test(t)) {
163
+ c = t;
164
+ } else {
165
+ break;
166
+ }
167
+ }
168
+ }
169
+ }
170
+
171
+ function keydownEvent(e) {
172
+ var k = e.which,
173
+ pos,
174
+ begin,
175
+ end;
176
+
177
+ //backspace, delete, and escape get special treatment
178
+ if (k === 8 || k === 46 || (iPhone && k === 127)) {
179
+ pos = input.caret();
180
+ begin = pos.begin;
181
+ end = pos.end;
182
+
183
+ if (end - begin === 0) {
184
+ begin=k!==46?seekPrev(begin):(end=seekNext(begin-1));
185
+ end=k===46?seekNext(end):end;
186
+ }
187
+ clearBuffer(begin, end);
188
+ shiftL(begin, end - 1);
189
+
190
+ e.preventDefault();
191
+ } else if (k == 27) {//escape
192
+ input.val(focusText);
193
+ input.caret(0, checkVal());
194
+ e.preventDefault();
195
+ }
196
+ }
197
+
198
+ function keypressEvent(e) {
199
+ var k = e.which,
200
+ pos = input.caret(),
201
+ p,
202
+ c,
203
+ next;
204
+
205
+ if (e.ctrlKey || e.altKey || e.metaKey || k < 32) {//Ignore
206
+ return;
207
+ } else if (k) {
208
+ if (pos.end - pos.begin !== 0){
209
+ clearBuffer(pos.begin, pos.end);
210
+ shiftL(pos.begin, pos.end-1);
211
+ }
212
+
213
+ p = seekNext(pos.begin - 1);
214
+ if (p < len) {
215
+ c = String.fromCharCode(k);
216
+ if (tests[p].test(c)) {
217
+ shiftR(p);
218
+
219
+ buffer[p] = c;
220
+ writeBuffer();
221
+ next = seekNext(p);
222
+
223
+ if(android){
224
+ setTimeout($.proxy($.fn.caret,input,next),0);
225
+ }else{
226
+ input.caret(next);
227
+ }
228
+
229
+ if (settings.completed && next >= len) {
230
+ settings.completed.call(input);
231
+ }
232
+ }
233
+ }
234
+ e.preventDefault();
235
+ }
236
+ }
237
+
238
+ function clearBuffer(start, end) {
239
+ var i;
240
+ for (i = start; i < end && i < len; i++) {
241
+ if (tests[i]) {
242
+ buffer[i] = settings.placeholder;
243
+ }
244
+ }
245
+ }
246
+
247
+ function writeBuffer() { input.val(buffer.join('')); }
248
+
249
+ function checkVal(allow) {
250
+ //try to place characters where they belong
251
+ var test = input.val(),
252
+ lastMatch = -1,
253
+ i,
254
+ c;
255
+
256
+ for (i = 0, pos = 0; i < len; i++) {
257
+ if (tests[i]) {
258
+ buffer[i] = settings.placeholder;
259
+ while (pos++ < test.length) {
260
+ c = test.charAt(pos - 1);
261
+ if (tests[i].test(c)) {
262
+ buffer[i] = c;
263
+ lastMatch = i;
264
+ break;
265
+ }
266
+ }
267
+ if (pos > test.length) {
268
+ break;
269
+ }
270
+ } else if (buffer[i] === test.charAt(pos) && i !== partialPosition) {
271
+ pos++;
272
+ lastMatch = i;
273
+ }
274
+ }
275
+ if (allow) {
276
+ writeBuffer();
277
+ } else if (lastMatch + 1 < partialPosition) {
278
+ input.val("");
279
+ clearBuffer(0, len);
280
+ } else {
281
+ writeBuffer();
282
+ input.val(input.val().substring(0, lastMatch + 1));
283
+ }
284
+ return (partialPosition ? i : firstNonMaskPos);
285
+ }
286
+
287
+ input.data($.mask.dataName,function(){
288
+ return $.map(buffer, function(c, i) {
289
+ return tests[i]&&c!=settings.placeholder ? c : null;
290
+ }).join('');
291
+ });
292
+
293
+ if (!input.attr("readonly"))
294
+ input
295
+ .one("unmask", function() {
296
+ input
297
+ .unbind(".mask")
298
+ .removeData($.mask.dataName);
299
+ })
300
+ .bind("focus.mask", function() {
301
+ clearTimeout(caretTimeoutId);
302
+ var pos,
303
+ moveCaret;
304
+
305
+ focusText = input.val();
306
+ pos = checkVal();
307
+
308
+ caretTimeoutId = setTimeout(function(){
309
+ writeBuffer();
310
+ if (pos == mask.length) {
311
+ input.caret(0, pos);
312
+ } else {
313
+ input.caret(pos);
314
+ }
315
+ }, 10);
316
+ })
317
+ .bind("blur.mask", function() {
318
+ checkVal();
319
+ if (input.val() != focusText)
320
+ input.change();
321
+ })
322
+ .bind("keydown.mask", keydownEvent)
323
+ .bind("keypress.mask", keypressEvent)
324
+ .bind(pasteEventName, function() {
325
+ setTimeout(function() {
326
+ var pos=checkVal(true);
327
+ input.caret(pos);
328
+ if (settings.completed && pos == input.val().length)
329
+ settings.completed.call(input);
330
+ }, 0);
331
+ });
332
+ checkVal(); //Perform initial check for existing values
333
+ });
334
+ }
335
+ });
336
+
337
+
338
+ })(jQuery);
@@ -139,4 +139,12 @@ jQuery(document).ready(function(){
139
139
  others.attr('disabled', false);
140
140
  }
141
141
  });
142
+
143
+ jQuery("input[data-input-mask]").each(function(i,e){
144
+ var inputMask = $(e).attr('data-input-mask');
145
+ var placeholder = $(e).attr('data-input-mask-placeholder');
146
+ var options = { placeholder: placeholder };
147
+ $(e).mask(inputMask, options);
148
+ });
149
+
142
150
  });
@@ -47,7 +47,7 @@ body
47
47
  :border-bottom-width 1px
48
48
  li.active, li.active input[type="submit"]
49
49
  :background-color $surveyor_menus_active_color
50
- .previous_section
50
+ //.previous_section
51
51
  .next_section
52
52
  :float right
53
53
  .survey_section
@@ -58,7 +58,7 @@ body
58
58
  :font-size 1.5em
59
59
 
60
60
  // question groups
61
- fieldset.g_inline fieldset
61
+ fieldset.g_inline fieldset, fieldset.g_inline ol li
62
62
  :display inline
63
63
  fieldset.g_grid
64
64
  table
@@ -0,0 +1,1174 @@
1
+ /*! jQuery UI - v1.10.0 - 2013-01-17
2
+ * http://jqueryui.com
3
+ * Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css
4
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/
5
+ * Copyright (c) 2013 jQuery Foundation and other contributors Licensed MIT */
6
+
7
+ /* Layout helpers
8
+ ----------------------------------*/
9
+ .ui-helper-hidden {
10
+ display: none;
11
+ }
12
+ .ui-helper-hidden-accessible {
13
+ border: 0;
14
+ clip: rect(0 0 0 0);
15
+ height: 1px;
16
+ margin: -1px;
17
+ overflow: hidden;
18
+ padding: 0;
19
+ position: absolute;
20
+ width: 1px;
21
+ }
22
+ .ui-helper-reset {
23
+ margin: 0;
24
+ padding: 0;
25
+ border: 0;
26
+ outline: 0;
27
+ line-height: 1.3;
28
+ text-decoration: none;
29
+ font-size: 100%;
30
+ list-style: none;
31
+ }
32
+ .ui-helper-clearfix:before,
33
+ .ui-helper-clearfix:after {
34
+ content: "";
35
+ display: table;
36
+ }
37
+ .ui-helper-clearfix:after {
38
+ clear: both;
39
+ }
40
+ .ui-helper-clearfix {
41
+ min-height: 0; /* support: IE7 */
42
+ }
43
+ .ui-helper-zfix {
44
+ width: 100%;
45
+ height: 100%;
46
+ top: 0;
47
+ left: 0;
48
+ position: absolute;
49
+ opacity: 0;
50
+ filter:Alpha(Opacity=0);
51
+ }
52
+
53
+ .ui-front {
54
+ z-index: 100;
55
+ }
56
+
57
+
58
+ /* Interaction Cues
59
+ ----------------------------------*/
60
+ .ui-state-disabled {
61
+ cursor: default !important;
62
+ }
63
+
64
+
65
+ /* Icons
66
+ ----------------------------------*/
67
+
68
+ /* states and images */
69
+ .ui-icon {
70
+ display: block;
71
+ text-indent: -99999px;
72
+ overflow: hidden;
73
+ background-repeat: no-repeat;
74
+ }
75
+
76
+
77
+ /* Misc visuals
78
+ ----------------------------------*/
79
+
80
+ /* Overlays */
81
+ .ui-widget-overlay {
82
+ position: fixed;
83
+ top: 0;
84
+ left: 0;
85
+ width: 100%;
86
+ height: 100%;
87
+ }
88
+ .ui-accordion .ui-accordion-header {
89
+ display: block;
90
+ cursor: pointer;
91
+ position: relative;
92
+ margin-top: 2px;
93
+ padding: .5em .5em .5em .7em;
94
+ min-height: 0; /* support: IE7 */
95
+ }
96
+ .ui-accordion .ui-accordion-icons {
97
+ padding-left: 2.2em;
98
+ }
99
+ .ui-accordion .ui-accordion-noicons {
100
+ padding-left: .7em;
101
+ }
102
+ .ui-accordion .ui-accordion-icons .ui-accordion-icons {
103
+ padding-left: 2.2em;
104
+ }
105
+ .ui-accordion .ui-accordion-header .ui-accordion-header-icon {
106
+ position: absolute;
107
+ left: .5em;
108
+ top: 50%;
109
+ margin-top: -8px;
110
+ }
111
+ .ui-accordion .ui-accordion-content {
112
+ padding: 1em 2.2em;
113
+ border-top: 0;
114
+ overflow: auto;
115
+ }
116
+ .ui-autocomplete {
117
+ position: absolute;
118
+ top: 0;
119
+ left: 0;
120
+ cursor: default;
121
+ }
122
+ .ui-button {
123
+ display: inline-block;
124
+ position: relative;
125
+ padding: 0;
126
+ line-height: normal;
127
+ margin-right: .1em;
128
+ cursor: pointer;
129
+ vertical-align: middle;
130
+ text-align: center;
131
+ overflow: visible; /* removes extra width in IE */
132
+ }
133
+ .ui-button,
134
+ .ui-button:link,
135
+ .ui-button:visited,
136
+ .ui-button:hover,
137
+ .ui-button:active {
138
+ text-decoration: none;
139
+ }
140
+ /* to make room for the icon, a width needs to be set here */
141
+ .ui-button-icon-only {
142
+ width: 2.2em;
143
+ }
144
+ /* button elements seem to need a little more width */
145
+ button.ui-button-icon-only {
146
+ width: 2.4em;
147
+ }
148
+ .ui-button-icons-only {
149
+ width: 3.4em;
150
+ }
151
+ button.ui-button-icons-only {
152
+ width: 3.7em;
153
+ }
154
+
155
+ /* button text element */
156
+ .ui-button .ui-button-text {
157
+ display: block;
158
+ line-height: normal;
159
+ }
160
+ .ui-button-text-only .ui-button-text {
161
+ padding: .4em 1em;
162
+ }
163
+ .ui-button-icon-only .ui-button-text,
164
+ .ui-button-icons-only .ui-button-text {
165
+ padding: .4em;
166
+ text-indent: -9999999px;
167
+ }
168
+ .ui-button-text-icon-primary .ui-button-text,
169
+ .ui-button-text-icons .ui-button-text {
170
+ padding: .4em 1em .4em 2.1em;
171
+ }
172
+ .ui-button-text-icon-secondary .ui-button-text,
173
+ .ui-button-text-icons .ui-button-text {
174
+ padding: .4em 2.1em .4em 1em;
175
+ }
176
+ .ui-button-text-icons .ui-button-text {
177
+ padding-left: 2.1em;
178
+ padding-right: 2.1em;
179
+ }
180
+ /* no icon support for input elements, provide padding by default */
181
+ input.ui-button {
182
+ padding: .4em 1em;
183
+ }
184
+
185
+ /* button icon element(s) */
186
+ .ui-button-icon-only .ui-icon,
187
+ .ui-button-text-icon-primary .ui-icon,
188
+ .ui-button-text-icon-secondary .ui-icon,
189
+ .ui-button-text-icons .ui-icon,
190
+ .ui-button-icons-only .ui-icon {
191
+ position: absolute;
192
+ top: 50%;
193
+ margin-top: -8px;
194
+ }
195
+ .ui-button-icon-only .ui-icon {
196
+ left: 50%;
197
+ margin-left: -8px;
198
+ }
199
+ .ui-button-text-icon-primary .ui-button-icon-primary,
200
+ .ui-button-text-icons .ui-button-icon-primary,
201
+ .ui-button-icons-only .ui-button-icon-primary {
202
+ left: .5em;
203
+ }
204
+ .ui-button-text-icon-secondary .ui-button-icon-secondary,
205
+ .ui-button-text-icons .ui-button-icon-secondary,
206
+ .ui-button-icons-only .ui-button-icon-secondary {
207
+ right: .5em;
208
+ }
209
+
210
+ /* button sets */
211
+ .ui-buttonset {
212
+ margin-right: 7px;
213
+ }
214
+ .ui-buttonset .ui-button {
215
+ margin-left: 0;
216
+ margin-right: -.3em;
217
+ }
218
+
219
+ /* workarounds */
220
+ /* reset extra padding in Firefox, see h5bp.com/l */
221
+ input.ui-button::-moz-focus-inner,
222
+ button.ui-button::-moz-focus-inner {
223
+ border: 0;
224
+ padding: 0;
225
+ }
226
+ .ui-datepicker {
227
+ width: 17em;
228
+ padding: .2em .2em 0;
229
+ display: none;
230
+ }
231
+ .ui-datepicker .ui-datepicker-header {
232
+ position: relative;
233
+ padding: .2em 0;
234
+ }
235
+ .ui-datepicker .ui-datepicker-prev,
236
+ .ui-datepicker .ui-datepicker-next {
237
+ position: absolute;
238
+ top: 2px;
239
+ width: 1.8em;
240
+ height: 1.8em;
241
+ }
242
+ .ui-datepicker .ui-datepicker-prev-hover,
243
+ .ui-datepicker .ui-datepicker-next-hover {
244
+ top: 1px;
245
+ }
246
+ .ui-datepicker .ui-datepicker-prev {
247
+ left: 2px;
248
+ }
249
+ .ui-datepicker .ui-datepicker-next {
250
+ right: 2px;
251
+ }
252
+ .ui-datepicker .ui-datepicker-prev-hover {
253
+ left: 1px;
254
+ }
255
+ .ui-datepicker .ui-datepicker-next-hover {
256
+ right: 1px;
257
+ }
258
+ .ui-datepicker .ui-datepicker-prev span,
259
+ .ui-datepicker .ui-datepicker-next span {
260
+ display: block;
261
+ position: absolute;
262
+ left: 50%;
263
+ margin-left: -8px;
264
+ top: 50%;
265
+ margin-top: -8px;
266
+ }
267
+ .ui-datepicker .ui-datepicker-title {
268
+ margin: 0 2.3em;
269
+ line-height: 1.8em;
270
+ text-align: center;
271
+ }
272
+ .ui-datepicker .ui-datepicker-title select {
273
+ font-size: 1em;
274
+ margin: 1px 0;
275
+ }
276
+ .ui-datepicker select.ui-datepicker-month-year {
277
+ width: 100%;
278
+ }
279
+ .ui-datepicker select.ui-datepicker-month,
280
+ .ui-datepicker select.ui-datepicker-year {
281
+ width: 49%;
282
+ }
283
+ .ui-datepicker table {
284
+ width: 100%;
285
+ font-size: .9em;
286
+ border-collapse: collapse;
287
+ margin: 0 0 .4em;
288
+ }
289
+ .ui-datepicker th {
290
+ padding: .7em .3em;
291
+ text-align: center;
292
+ font-weight: bold;
293
+ border: 0;
294
+ }
295
+ .ui-datepicker td {
296
+ border: 0;
297
+ padding: 1px;
298
+ }
299
+ .ui-datepicker td span,
300
+ .ui-datepicker td a {
301
+ display: block;
302
+ padding: .2em;
303
+ text-align: right;
304
+ text-decoration: none;
305
+ }
306
+ .ui-datepicker .ui-datepicker-buttonpane {
307
+ background-image: none;
308
+ margin: .7em 0 0 0;
309
+ padding: 0 .2em;
310
+ border-left: 0;
311
+ border-right: 0;
312
+ border-bottom: 0;
313
+ }
314
+ .ui-datepicker .ui-datepicker-buttonpane button {
315
+ float: right;
316
+ margin: .5em .2em .4em;
317
+ cursor: pointer;
318
+ padding: .2em .6em .3em .6em;
319
+ width: auto;
320
+ overflow: visible;
321
+ }
322
+ .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
323
+ float: left;
324
+ }
325
+
326
+ /* with multiple calendars */
327
+ .ui-datepicker.ui-datepicker-multi {
328
+ width: auto;
329
+ }
330
+ .ui-datepicker-multi .ui-datepicker-group {
331
+ float: left;
332
+ }
333
+ .ui-datepicker-multi .ui-datepicker-group table {
334
+ width: 95%;
335
+ margin: 0 auto .4em;
336
+ }
337
+ .ui-datepicker-multi-2 .ui-datepicker-group {
338
+ width: 50%;
339
+ }
340
+ .ui-datepicker-multi-3 .ui-datepicker-group {
341
+ width: 33.3%;
342
+ }
343
+ .ui-datepicker-multi-4 .ui-datepicker-group {
344
+ width: 25%;
345
+ }
346
+ .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,
347
+ .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
348
+ border-left-width: 0;
349
+ }
350
+ .ui-datepicker-multi .ui-datepicker-buttonpane {
351
+ clear: left;
352
+ }
353
+ .ui-datepicker-row-break {
354
+ clear: both;
355
+ width: 100%;
356
+ font-size: 0;
357
+ }
358
+
359
+ /* RTL support */
360
+ .ui-datepicker-rtl {
361
+ direction: rtl;
362
+ }
363
+ .ui-datepicker-rtl .ui-datepicker-prev {
364
+ right: 2px;
365
+ left: auto;
366
+ }
367
+ .ui-datepicker-rtl .ui-datepicker-next {
368
+ left: 2px;
369
+ right: auto;
370
+ }
371
+ .ui-datepicker-rtl .ui-datepicker-prev:hover {
372
+ right: 1px;
373
+ left: auto;
374
+ }
375
+ .ui-datepicker-rtl .ui-datepicker-next:hover {
376
+ left: 1px;
377
+ right: auto;
378
+ }
379
+ .ui-datepicker-rtl .ui-datepicker-buttonpane {
380
+ clear: right;
381
+ }
382
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button {
383
+ float: left;
384
+ }
385
+ .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,
386
+ .ui-datepicker-rtl .ui-datepicker-group {
387
+ float: right;
388
+ }
389
+ .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,
390
+ .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
391
+ border-right-width: 0;
392
+ border-left-width: 1px;
393
+ }
394
+ .ui-dialog {
395
+ position: absolute;
396
+ top: 0;
397
+ left: 0;
398
+ padding: .2em;
399
+ outline: 0;
400
+ }
401
+ .ui-dialog .ui-dialog-titlebar {
402
+ padding: .4em 1em;
403
+ position: relative;
404
+ }
405
+ .ui-dialog .ui-dialog-title {
406
+ float: left;
407
+ margin: .1em 0;
408
+ white-space: nowrap;
409
+ width: 90%;
410
+ overflow: hidden;
411
+ text-overflow: ellipsis;
412
+ }
413
+ .ui-dialog .ui-dialog-titlebar-close {
414
+ position: absolute;
415
+ right: .3em;
416
+ top: 50%;
417
+ width: 21px;
418
+ margin: -10px 0 0 0;
419
+ padding: 1px;
420
+ height: 20px;
421
+ }
422
+ .ui-dialog .ui-dialog-content {
423
+ position: relative;
424
+ border: 0;
425
+ padding: .5em 1em;
426
+ background: none;
427
+ overflow: auto;
428
+ }
429
+ .ui-dialog .ui-dialog-buttonpane {
430
+ text-align: left;
431
+ border-width: 1px 0 0 0;
432
+ background-image: none;
433
+ margin-top: .5em;
434
+ padding: .3em 1em .5em .4em;
435
+ }
436
+ .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
437
+ float: right;
438
+ }
439
+ .ui-dialog .ui-dialog-buttonpane button {
440
+ margin: .5em .4em .5em 0;
441
+ cursor: pointer;
442
+ }
443
+ .ui-dialog .ui-resizable-se {
444
+ width: 12px;
445
+ height: 12px;
446
+ right: -5px;
447
+ bottom: -5px;
448
+ background-position: 16px 16px;
449
+ }
450
+ .ui-draggable .ui-dialog-titlebar {
451
+ cursor: move;
452
+ }
453
+ .ui-menu {
454
+ list-style: none;
455
+ padding: 2px;
456
+ margin: 0;
457
+ display: block;
458
+ outline: none;
459
+ }
460
+ .ui-menu .ui-menu {
461
+ margin-top: -3px;
462
+ position: absolute;
463
+ }
464
+ .ui-menu .ui-menu-item {
465
+ margin: 0;
466
+ padding: 0;
467
+ width: 100%;
468
+ }
469
+ .ui-menu .ui-menu-divider {
470
+ margin: 5px -2px 5px -2px;
471
+ height: 0;
472
+ font-size: 0;
473
+ line-height: 0;
474
+ border-width: 1px 0 0 0;
475
+ }
476
+ .ui-menu .ui-menu-item a {
477
+ text-decoration: none;
478
+ display: block;
479
+ padding: 2px .4em;
480
+ line-height: 1.5;
481
+ min-height: 0; /* support: IE7 */
482
+ font-weight: normal;
483
+ }
484
+ .ui-menu .ui-menu-item a.ui-state-focus,
485
+ .ui-menu .ui-menu-item a.ui-state-active {
486
+ font-weight: normal;
487
+ margin: -1px;
488
+ }
489
+
490
+ .ui-menu .ui-state-disabled {
491
+ font-weight: normal;
492
+ margin: .4em 0 .2em;
493
+ line-height: 1.5;
494
+ }
495
+ .ui-menu .ui-state-disabled a {
496
+ cursor: default;
497
+ }
498
+
499
+ /* icon support */
500
+ .ui-menu-icons {
501
+ position: relative;
502
+ }
503
+ .ui-menu-icons .ui-menu-item a {
504
+ position: relative;
505
+ padding-left: 2em;
506
+ }
507
+
508
+ /* left-aligned */
509
+ .ui-menu .ui-icon {
510
+ position: absolute;
511
+ top: .2em;
512
+ left: .2em;
513
+ }
514
+
515
+ /* right-aligned */
516
+ .ui-menu .ui-menu-icon {
517
+ position: static;
518
+ float: right;
519
+ }
520
+ .ui-progressbar {
521
+ height: 2em;
522
+ text-align: left;
523
+ overflow: hidden;
524
+ }
525
+ .ui-progressbar .ui-progressbar-value {
526
+ margin: -1px;
527
+ height: 100%;
528
+ }
529
+ .ui-progressbar .ui-progressbar-overlay {
530
+ background: url("images/animated-overlay.gif");
531
+ height: 100%;
532
+ filter: alpha(opacity=25);
533
+ opacity: 0.25;
534
+ }
535
+ .ui-progressbar-indeterminate .ui-progressbar-value {
536
+ background-image: none;
537
+ }
538
+ .ui-resizable {
539
+ position: relative;
540
+ }
541
+ .ui-resizable-handle {
542
+ position: absolute;
543
+ font-size: 0.1px;
544
+ display: block;
545
+ }
546
+ .ui-resizable-disabled .ui-resizable-handle,
547
+ .ui-resizable-autohide .ui-resizable-handle {
548
+ display: none;
549
+ }
550
+ .ui-resizable-n {
551
+ cursor: n-resize;
552
+ height: 7px;
553
+ width: 100%;
554
+ top: -5px;
555
+ left: 0;
556
+ }
557
+ .ui-resizable-s {
558
+ cursor: s-resize;
559
+ height: 7px;
560
+ width: 100%;
561
+ bottom: -5px;
562
+ left: 0;
563
+ }
564
+ .ui-resizable-e {
565
+ cursor: e-resize;
566
+ width: 7px;
567
+ right: -5px;
568
+ top: 0;
569
+ height: 100%;
570
+ }
571
+ .ui-resizable-w {
572
+ cursor: w-resize;
573
+ width: 7px;
574
+ left: -5px;
575
+ top: 0;
576
+ height: 100%;
577
+ }
578
+ .ui-resizable-se {
579
+ cursor: se-resize;
580
+ width: 12px;
581
+ height: 12px;
582
+ right: 1px;
583
+ bottom: 1px;
584
+ }
585
+ .ui-resizable-sw {
586
+ cursor: sw-resize;
587
+ width: 9px;
588
+ height: 9px;
589
+ left: -5px;
590
+ bottom: -5px;
591
+ }
592
+ .ui-resizable-nw {
593
+ cursor: nw-resize;
594
+ width: 9px;
595
+ height: 9px;
596
+ left: -5px;
597
+ top: -5px;
598
+ }
599
+ .ui-resizable-ne {
600
+ cursor: ne-resize;
601
+ width: 9px;
602
+ height: 9px;
603
+ right: -5px;
604
+ top: -5px;
605
+ }
606
+ .ui-selectable-helper {
607
+ position: absolute;
608
+ z-index: 100;
609
+ border: 1px dotted black;
610
+ }
611
+ .ui-slider {
612
+ position: relative;
613
+ text-align: left;
614
+ }
615
+ .ui-slider .ui-slider-handle {
616
+ position: absolute;
617
+ z-index: 2;
618
+ width: 1.2em;
619
+ height: 1.2em;
620
+ cursor: default;
621
+ }
622
+ .ui-slider .ui-slider-range {
623
+ position: absolute;
624
+ z-index: 1;
625
+ font-size: .7em;
626
+ display: block;
627
+ border: 0;
628
+ background-position: 0 0;
629
+ }
630
+
631
+ /* For IE8 - See #6727 */
632
+ .ui-slider.ui-state-disabled .ui-slider-handle,
633
+ .ui-slider.ui-state-disabled .ui-slider-range {
634
+ filter: inherit;
635
+ }
636
+
637
+ .ui-slider-horizontal {
638
+ height: .8em;
639
+ }
640
+ .ui-slider-horizontal .ui-slider-handle {
641
+ top: -.3em;
642
+ margin-left: -.6em;
643
+ }
644
+ .ui-slider-horizontal .ui-slider-range {
645
+ top: 0;
646
+ height: 100%;
647
+ }
648
+ .ui-slider-horizontal .ui-slider-range-min {
649
+ left: 0;
650
+ }
651
+ .ui-slider-horizontal .ui-slider-range-max {
652
+ right: 0;
653
+ }
654
+
655
+ .ui-slider-vertical {
656
+ width: .8em;
657
+ height: 100px;
658
+ }
659
+ .ui-slider-vertical .ui-slider-handle {
660
+ left: -.3em;
661
+ margin-left: 0;
662
+ margin-bottom: -.6em;
663
+ }
664
+ .ui-slider-vertical .ui-slider-range {
665
+ left: 0;
666
+ width: 100%;
667
+ }
668
+ .ui-slider-vertical .ui-slider-range-min {
669
+ bottom: 0;
670
+ }
671
+ .ui-slider-vertical .ui-slider-range-max {
672
+ top: 0;
673
+ }
674
+ .ui-spinner {
675
+ position: relative;
676
+ display: inline-block;
677
+ overflow: hidden;
678
+ padding: 0;
679
+ vertical-align: middle;
680
+ }
681
+ .ui-spinner-input {
682
+ border: none;
683
+ background: none;
684
+ color: inherit;
685
+ padding: 0;
686
+ margin: .2em 0;
687
+ vertical-align: middle;
688
+ margin-left: .4em;
689
+ margin-right: 22px;
690
+ }
691
+ .ui-spinner-button {
692
+ width: 16px;
693
+ height: 50%;
694
+ font-size: .5em;
695
+ padding: 0;
696
+ margin: 0;
697
+ text-align: center;
698
+ position: absolute;
699
+ cursor: default;
700
+ display: block;
701
+ overflow: hidden;
702
+ right: 0;
703
+ }
704
+ /* more specificity required here to overide default borders */
705
+ .ui-spinner a.ui-spinner-button {
706
+ border-top: none;
707
+ border-bottom: none;
708
+ border-right: none;
709
+ }
710
+ /* vertical centre icon */
711
+ .ui-spinner .ui-icon {
712
+ position: absolute;
713
+ margin-top: -8px;
714
+ top: 50%;
715
+ left: 0;
716
+ }
717
+ .ui-spinner-up {
718
+ top: 0;
719
+ }
720
+ .ui-spinner-down {
721
+ bottom: 0;
722
+ }
723
+
724
+ /* TR overrides */
725
+ .ui-spinner .ui-icon-triangle-1-s {
726
+ /* need to fix icons sprite */
727
+ background-position: -65px -16px;
728
+ }
729
+ .ui-tabs {
730
+ position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
731
+ padding: .2em;
732
+ }
733
+ .ui-tabs .ui-tabs-nav {
734
+ margin: 0;
735
+ padding: .2em .2em 0;
736
+ }
737
+ .ui-tabs .ui-tabs-nav li {
738
+ list-style: none;
739
+ float: left;
740
+ position: relative;
741
+ top: 0;
742
+ margin: 1px .2em 0 0;
743
+ border-bottom: 0;
744
+ padding: 0;
745
+ white-space: nowrap;
746
+ }
747
+ .ui-tabs .ui-tabs-nav li a {
748
+ float: left;
749
+ padding: .5em 1em;
750
+ text-decoration: none;
751
+ }
752
+ .ui-tabs .ui-tabs-nav li.ui-tabs-active {
753
+ margin-bottom: -1px;
754
+ padding-bottom: 1px;
755
+ }
756
+ .ui-tabs .ui-tabs-nav li.ui-tabs-active a,
757
+ .ui-tabs .ui-tabs-nav li.ui-state-disabled a,
758
+ .ui-tabs .ui-tabs-nav li.ui-tabs-loading a {
759
+ cursor: text;
760
+ }
761
+ .ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
762
+ .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
763
+ cursor: pointer;
764
+ }
765
+ .ui-tabs .ui-tabs-panel {
766
+ display: block;
767
+ border-width: 0;
768
+ padding: 1em 1.4em;
769
+ background: none;
770
+ }
771
+ .ui-tooltip {
772
+ padding: 8px;
773
+ position: absolute;
774
+ z-index: 9999;
775
+ max-width: 300px;
776
+ -webkit-box-shadow: 0 0 5px #aaa;
777
+ box-shadow: 0 0 5px #aaa;
778
+ }
779
+ body .ui-tooltip {
780
+ border-width: 2px;
781
+ }
782
+
783
+ /* Component containers
784
+ ----------------------------------*/
785
+ .ui-widget {
786
+ font-family: Verdana,Arial,sans-serif;
787
+ font-size: 1.1em;
788
+ }
789
+ .ui-widget .ui-widget {
790
+ font-size: 1em;
791
+ }
792
+ .ui-widget input,
793
+ .ui-widget select,
794
+ .ui-widget textarea,
795
+ .ui-widget button {
796
+ font-family: Verdana,Arial,sans-serif;
797
+ font-size: 1em;
798
+ }
799
+ .ui-widget-content {
800
+ border: 1px solid #aaaaaa;
801
+ background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;
802
+ color: #222222;
803
+ }
804
+ .ui-widget-content a {
805
+ color: #222222;
806
+ }
807
+ .ui-widget-header {
808
+ border: 1px solid #aaaaaa;
809
+ background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;
810
+ color: #222222;
811
+ font-weight: bold;
812
+ }
813
+ .ui-widget-header a {
814
+ color: #222222;
815
+ }
816
+
817
+ /* Interaction states
818
+ ----------------------------------*/
819
+ .ui-state-default,
820
+ .ui-widget-content .ui-state-default,
821
+ .ui-widget-header .ui-state-default {
822
+ border: 1px solid #d3d3d3;
823
+ background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
824
+ font-weight: normal;
825
+ color: #555555;
826
+ }
827
+ .ui-state-default a,
828
+ .ui-state-default a:link,
829
+ .ui-state-default a:visited {
830
+ color: #555555;
831
+ text-decoration: none;
832
+ }
833
+ .ui-state-hover,
834
+ .ui-widget-content .ui-state-hover,
835
+ .ui-widget-header .ui-state-hover,
836
+ .ui-state-focus,
837
+ .ui-widget-content .ui-state-focus,
838
+ .ui-widget-header .ui-state-focus {
839
+ border: 1px solid #999999;
840
+ background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;
841
+ font-weight: normal;
842
+ color: #212121;
843
+ }
844
+ .ui-state-hover a,
845
+ .ui-state-hover a:hover,
846
+ .ui-state-hover a:link,
847
+ .ui-state-hover a:visited {
848
+ color: #212121;
849
+ text-decoration: none;
850
+ }
851
+ .ui-state-active,
852
+ .ui-widget-content .ui-state-active,
853
+ .ui-widget-header .ui-state-active {
854
+ border: 1px solid #aaaaaa;
855
+ background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
856
+ font-weight: normal;
857
+ color: #212121;
858
+ }
859
+ .ui-state-active a,
860
+ .ui-state-active a:link,
861
+ .ui-state-active a:visited {
862
+ color: #212121;
863
+ text-decoration: none;
864
+ }
865
+
866
+ /* Interaction Cues
867
+ ----------------------------------*/
868
+ .ui-state-highlight,
869
+ .ui-widget-content .ui-state-highlight,
870
+ .ui-widget-header .ui-state-highlight {
871
+ border: 1px solid #fcefa1;
872
+ background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;
873
+ color: #363636;
874
+ }
875
+ .ui-state-highlight a,
876
+ .ui-widget-content .ui-state-highlight a,
877
+ .ui-widget-header .ui-state-highlight a {
878
+ color: #363636;
879
+ }
880
+ .ui-state-error,
881
+ .ui-widget-content .ui-state-error,
882
+ .ui-widget-header .ui-state-error {
883
+ border: 1px solid #cd0a0a;
884
+ background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;
885
+ color: #cd0a0a;
886
+ }
887
+ .ui-state-error a,
888
+ .ui-widget-content .ui-state-error a,
889
+ .ui-widget-header .ui-state-error a {
890
+ color: #cd0a0a;
891
+ }
892
+ .ui-state-error-text,
893
+ .ui-widget-content .ui-state-error-text,
894
+ .ui-widget-header .ui-state-error-text {
895
+ color: #cd0a0a;
896
+ }
897
+ .ui-priority-primary,
898
+ .ui-widget-content .ui-priority-primary,
899
+ .ui-widget-header .ui-priority-primary {
900
+ font-weight: bold;
901
+ }
902
+ .ui-priority-secondary,
903
+ .ui-widget-content .ui-priority-secondary,
904
+ .ui-widget-header .ui-priority-secondary {
905
+ opacity: .7;
906
+ filter:Alpha(Opacity=70);
907
+ font-weight: normal;
908
+ }
909
+ .ui-state-disabled,
910
+ .ui-widget-content .ui-state-disabled,
911
+ .ui-widget-header .ui-state-disabled {
912
+ opacity: .35;
913
+ filter:Alpha(Opacity=35);
914
+ background-image: none;
915
+ }
916
+ .ui-state-disabled .ui-icon {
917
+ filter:Alpha(Opacity=35); /* For IE8 - See #6059 */
918
+ }
919
+
920
+ /* Icons
921
+ ----------------------------------*/
922
+
923
+ /* states and images */
924
+ .ui-icon {
925
+ width: 16px;
926
+ height: 16px;
927
+ background-position: 16px 16px;
928
+ }
929
+ .ui-icon,
930
+ .ui-widget-content .ui-icon {
931
+ background-image: url(images/ui-icons_222222_256x240.png);
932
+ }
933
+ .ui-widget-header .ui-icon {
934
+ background-image: url(images/ui-icons_222222_256x240.png);
935
+ }
936
+ .ui-state-default .ui-icon {
937
+ background-image: url(images/ui-icons_888888_256x240.png);
938
+ }
939
+ .ui-state-hover .ui-icon,
940
+ .ui-state-focus .ui-icon {
941
+ background-image: url(images/ui-icons_454545_256x240.png);
942
+ }
943
+ .ui-state-active .ui-icon {
944
+ background-image: url(images/ui-icons_454545_256x240.png);
945
+ }
946
+ .ui-state-highlight .ui-icon {
947
+ background-image: url(images/ui-icons_2e83ff_256x240.png);
948
+ }
949
+ .ui-state-error .ui-icon,
950
+ .ui-state-error-text .ui-icon {
951
+ background-image: url(images/ui-icons_cd0a0a_256x240.png);
952
+ }
953
+
954
+ /* positioning */
955
+ .ui-icon-carat-1-n { background-position: 0 0; }
956
+ .ui-icon-carat-1-ne { background-position: -16px 0; }
957
+ .ui-icon-carat-1-e { background-position: -32px 0; }
958
+ .ui-icon-carat-1-se { background-position: -48px 0; }
959
+ .ui-icon-carat-1-s { background-position: -64px 0; }
960
+ .ui-icon-carat-1-sw { background-position: -80px 0; }
961
+ .ui-icon-carat-1-w { background-position: -96px 0; }
962
+ .ui-icon-carat-1-nw { background-position: -112px 0; }
963
+ .ui-icon-carat-2-n-s { background-position: -128px 0; }
964
+ .ui-icon-carat-2-e-w { background-position: -144px 0; }
965
+ .ui-icon-triangle-1-n { background-position: 0 -16px; }
966
+ .ui-icon-triangle-1-ne { background-position: -16px -16px; }
967
+ .ui-icon-triangle-1-e { background-position: -32px -16px; }
968
+ .ui-icon-triangle-1-se { background-position: -48px -16px; }
969
+ .ui-icon-triangle-1-s { background-position: -64px -16px; }
970
+ .ui-icon-triangle-1-sw { background-position: -80px -16px; }
971
+ .ui-icon-triangle-1-w { background-position: -96px -16px; }
972
+ .ui-icon-triangle-1-nw { background-position: -112px -16px; }
973
+ .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
974
+ .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
975
+ .ui-icon-arrow-1-n { background-position: 0 -32px; }
976
+ .ui-icon-arrow-1-ne { background-position: -16px -32px; }
977
+ .ui-icon-arrow-1-e { background-position: -32px -32px; }
978
+ .ui-icon-arrow-1-se { background-position: -48px -32px; }
979
+ .ui-icon-arrow-1-s { background-position: -64px -32px; }
980
+ .ui-icon-arrow-1-sw { background-position: -80px -32px; }
981
+ .ui-icon-arrow-1-w { background-position: -96px -32px; }
982
+ .ui-icon-arrow-1-nw { background-position: -112px -32px; }
983
+ .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
984
+ .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
985
+ .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
986
+ .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
987
+ .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
988
+ .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
989
+ .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
990
+ .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
991
+ .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
992
+ .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
993
+ .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
994
+ .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
995
+ .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
996
+ .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
997
+ .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
998
+ .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
999
+ .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
1000
+ .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
1001
+ .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
1002
+ .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
1003
+ .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
1004
+ .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
1005
+ .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
1006
+ .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
1007
+ .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
1008
+ .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
1009
+ .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
1010
+ .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
1011
+ .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
1012
+ .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
1013
+ .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
1014
+ .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
1015
+ .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
1016
+ .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
1017
+ .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
1018
+ .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
1019
+ .ui-icon-arrow-4 { background-position: 0 -80px; }
1020
+ .ui-icon-arrow-4-diag { background-position: -16px -80px; }
1021
+ .ui-icon-extlink { background-position: -32px -80px; }
1022
+ .ui-icon-newwin { background-position: -48px -80px; }
1023
+ .ui-icon-refresh { background-position: -64px -80px; }
1024
+ .ui-icon-shuffle { background-position: -80px -80px; }
1025
+ .ui-icon-transfer-e-w { background-position: -96px -80px; }
1026
+ .ui-icon-transferthick-e-w { background-position: -112px -80px; }
1027
+ .ui-icon-folder-collapsed { background-position: 0 -96px; }
1028
+ .ui-icon-folder-open { background-position: -16px -96px; }
1029
+ .ui-icon-document { background-position: -32px -96px; }
1030
+ .ui-icon-document-b { background-position: -48px -96px; }
1031
+ .ui-icon-note { background-position: -64px -96px; }
1032
+ .ui-icon-mail-closed { background-position: -80px -96px; }
1033
+ .ui-icon-mail-open { background-position: -96px -96px; }
1034
+ .ui-icon-suitcase { background-position: -112px -96px; }
1035
+ .ui-icon-comment { background-position: -128px -96px; }
1036
+ .ui-icon-person { background-position: -144px -96px; }
1037
+ .ui-icon-print { background-position: -160px -96px; }
1038
+ .ui-icon-trash { background-position: -176px -96px; }
1039
+ .ui-icon-locked { background-position: -192px -96px; }
1040
+ .ui-icon-unlocked { background-position: -208px -96px; }
1041
+ .ui-icon-bookmark { background-position: -224px -96px; }
1042
+ .ui-icon-tag { background-position: -240px -96px; }
1043
+ .ui-icon-home { background-position: 0 -112px; }
1044
+ .ui-icon-flag { background-position: -16px -112px; }
1045
+ .ui-icon-calendar { background-position: -32px -112px; }
1046
+ .ui-icon-cart { background-position: -48px -112px; }
1047
+ .ui-icon-pencil { background-position: -64px -112px; }
1048
+ .ui-icon-clock { background-position: -80px -112px; }
1049
+ .ui-icon-disk { background-position: -96px -112px; }
1050
+ .ui-icon-calculator { background-position: -112px -112px; }
1051
+ .ui-icon-zoomin { background-position: -128px -112px; }
1052
+ .ui-icon-zoomout { background-position: -144px -112px; }
1053
+ .ui-icon-search { background-position: -160px -112px; }
1054
+ .ui-icon-wrench { background-position: -176px -112px; }
1055
+ .ui-icon-gear { background-position: -192px -112px; }
1056
+ .ui-icon-heart { background-position: -208px -112px; }
1057
+ .ui-icon-star { background-position: -224px -112px; }
1058
+ .ui-icon-link { background-position: -240px -112px; }
1059
+ .ui-icon-cancel { background-position: 0 -128px; }
1060
+ .ui-icon-plus { background-position: -16px -128px; }
1061
+ .ui-icon-plusthick { background-position: -32px -128px; }
1062
+ .ui-icon-minus { background-position: -48px -128px; }
1063
+ .ui-icon-minusthick { background-position: -64px -128px; }
1064
+ .ui-icon-close { background-position: -80px -128px; }
1065
+ .ui-icon-closethick { background-position: -96px -128px; }
1066
+ .ui-icon-key { background-position: -112px -128px; }
1067
+ .ui-icon-lightbulb { background-position: -128px -128px; }
1068
+ .ui-icon-scissors { background-position: -144px -128px; }
1069
+ .ui-icon-clipboard { background-position: -160px -128px; }
1070
+ .ui-icon-copy { background-position: -176px -128px; }
1071
+ .ui-icon-contact { background-position: -192px -128px; }
1072
+ .ui-icon-image { background-position: -208px -128px; }
1073
+ .ui-icon-video { background-position: -224px -128px; }
1074
+ .ui-icon-script { background-position: -240px -128px; }
1075
+ .ui-icon-alert { background-position: 0 -144px; }
1076
+ .ui-icon-info { background-position: -16px -144px; }
1077
+ .ui-icon-notice { background-position: -32px -144px; }
1078
+ .ui-icon-help { background-position: -48px -144px; }
1079
+ .ui-icon-check { background-position: -64px -144px; }
1080
+ .ui-icon-bullet { background-position: -80px -144px; }
1081
+ .ui-icon-radio-on { background-position: -96px -144px; }
1082
+ .ui-icon-radio-off { background-position: -112px -144px; }
1083
+ .ui-icon-pin-w { background-position: -128px -144px; }
1084
+ .ui-icon-pin-s { background-position: -144px -144px; }
1085
+ .ui-icon-play { background-position: 0 -160px; }
1086
+ .ui-icon-pause { background-position: -16px -160px; }
1087
+ .ui-icon-seek-next { background-position: -32px -160px; }
1088
+ .ui-icon-seek-prev { background-position: -48px -160px; }
1089
+ .ui-icon-seek-end { background-position: -64px -160px; }
1090
+ .ui-icon-seek-start { background-position: -80px -160px; }
1091
+ /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
1092
+ .ui-icon-seek-first { background-position: -80px -160px; }
1093
+ .ui-icon-stop { background-position: -96px -160px; }
1094
+ .ui-icon-eject { background-position: -112px -160px; }
1095
+ .ui-icon-volume-off { background-position: -128px -160px; }
1096
+ .ui-icon-volume-on { background-position: -144px -160px; }
1097
+ .ui-icon-power { background-position: 0 -176px; }
1098
+ .ui-icon-signal-diag { background-position: -16px -176px; }
1099
+ .ui-icon-signal { background-position: -32px -176px; }
1100
+ .ui-icon-battery-0 { background-position: -48px -176px; }
1101
+ .ui-icon-battery-1 { background-position: -64px -176px; }
1102
+ .ui-icon-battery-2 { background-position: -80px -176px; }
1103
+ .ui-icon-battery-3 { background-position: -96px -176px; }
1104
+ .ui-icon-circle-plus { background-position: 0 -192px; }
1105
+ .ui-icon-circle-minus { background-position: -16px -192px; }
1106
+ .ui-icon-circle-close { background-position: -32px -192px; }
1107
+ .ui-icon-circle-triangle-e { background-position: -48px -192px; }
1108
+ .ui-icon-circle-triangle-s { background-position: -64px -192px; }
1109
+ .ui-icon-circle-triangle-w { background-position: -80px -192px; }
1110
+ .ui-icon-circle-triangle-n { background-position: -96px -192px; }
1111
+ .ui-icon-circle-arrow-e { background-position: -112px -192px; }
1112
+ .ui-icon-circle-arrow-s { background-position: -128px -192px; }
1113
+ .ui-icon-circle-arrow-w { background-position: -144px -192px; }
1114
+ .ui-icon-circle-arrow-n { background-position: -160px -192px; }
1115
+ .ui-icon-circle-zoomin { background-position: -176px -192px; }
1116
+ .ui-icon-circle-zoomout { background-position: -192px -192px; }
1117
+ .ui-icon-circle-check { background-position: -208px -192px; }
1118
+ .ui-icon-circlesmall-plus { background-position: 0 -208px; }
1119
+ .ui-icon-circlesmall-minus { background-position: -16px -208px; }
1120
+ .ui-icon-circlesmall-close { background-position: -32px -208px; }
1121
+ .ui-icon-squaresmall-plus { background-position: -48px -208px; }
1122
+ .ui-icon-squaresmall-minus { background-position: -64px -208px; }
1123
+ .ui-icon-squaresmall-close { background-position: -80px -208px; }
1124
+ .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
1125
+ .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
1126
+ .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
1127
+ .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
1128
+ .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
1129
+ .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
1130
+
1131
+
1132
+ /* Misc visuals
1133
+ ----------------------------------*/
1134
+
1135
+ /* Corner radius */
1136
+ .ui-corner-all,
1137
+ .ui-corner-top,
1138
+ .ui-corner-left,
1139
+ .ui-corner-tl {
1140
+ border-top-left-radius: 4px;
1141
+ }
1142
+ .ui-corner-all,
1143
+ .ui-corner-top,
1144
+ .ui-corner-right,
1145
+ .ui-corner-tr {
1146
+ border-top-right-radius: 4px;
1147
+ }
1148
+ .ui-corner-all,
1149
+ .ui-corner-bottom,
1150
+ .ui-corner-left,
1151
+ .ui-corner-bl {
1152
+ border-bottom-left-radius: 4px;
1153
+ }
1154
+ .ui-corner-all,
1155
+ .ui-corner-bottom,
1156
+ .ui-corner-right,
1157
+ .ui-corner-br {
1158
+ border-bottom-right-radius: 4px;
1159
+ }
1160
+
1161
+ /* Overlays */
1162
+ .ui-widget-overlay {
1163
+ background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
1164
+ opacity: .3;
1165
+ filter: Alpha(Opacity=30);
1166
+ }
1167
+ .ui-widget-shadow {
1168
+ margin: -8px 0 0 -8px;
1169
+ padding: 8px;
1170
+ background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
1171
+ opacity: .3;
1172
+ filter: Alpha(Opacity=30);
1173
+ border-radius: 8px;
1174
+ }