radiant-race_results-extension 1.4.3 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/admin/race_instances_controller.rb +1 -1
- data/app/controllers/race_instances_controller.rb +7 -1
- data/app/controllers/race_performances_controller.rb +8 -0
- data/app/models/race.rb +7 -0
- data/app/models/race_checkpoint.rb +27 -1
- data/app/models/race_checkpoint_time.rb +33 -5
- data/app/models/race_instance.rb +38 -9
- data/app/models/race_performance.rb +81 -3
- data/app/views/admin/races/_form.html.haml +1 -2
- data/app/views/race_clubs/show.html.haml +3 -3
- data/app/views/race_instances/_results_header.html.haml +10 -0
- data/app/views/race_instances/_splits_header.html.haml +9 -0
- data/app/views/race_instances/show.html.haml +17 -8
- data/app/views/race_instances/splits.html.haml +19 -14
- data/app/views/race_performances/_performance.html.haml +12 -2
- data/app/views/race_performances/_splits.html.haml +30 -8
- data/app/views/race_performances/show.html.haml +18 -76
- data/app/views/races/show.html.haml +2 -1
- data/config/locales/en.yml +20 -0
- data/config/routes.rb +1 -1
- data/db/migrate/20111103150827_mapping_routes.rb +22 -0
- data/db/migrate/20111115150827_finish_checkpoint.rb +8 -0
- data/lib/race_tags.rb +3 -3
- data/lib/radiant-race_results-extension.rb +1 -1
- data/public/images/race_results/sorts.png +0 -0
- data/public/javascripts/flot/API.txt +1201 -0
- data/public/javascripts/flot/FAQ.txt +76 -0
- data/public/javascripts/flot/LICENSE.txt +22 -0
- data/public/javascripts/flot/Makefile +9 -0
- data/public/javascripts/flot/NEWS.txt +508 -0
- data/public/javascripts/flot/PLUGINS.txt +137 -0
- data/public/javascripts/flot/README.txt +90 -0
- data/public/javascripts/flot/examples/ajax.html +143 -0
- data/public/javascripts/flot/examples/annotating.html +75 -0
- data/public/javascripts/flot/examples/arrow-down.gif +0 -0
- data/public/javascripts/flot/examples/arrow-left.gif +0 -0
- data/public/javascripts/flot/examples/arrow-right.gif +0 -0
- data/public/javascripts/flot/examples/arrow-up.gif +0 -0
- data/public/javascripts/flot/examples/basic.html +38 -0
- data/public/javascripts/flot/examples/data-eu-gdp-growth-1.json +4 -0
- data/public/javascripts/flot/examples/data-eu-gdp-growth-2.json +4 -0
- data/public/javascripts/flot/examples/data-eu-gdp-growth-3.json +4 -0
- data/public/javascripts/flot/examples/data-eu-gdp-growth-4.json +4 -0
- data/public/javascripts/flot/examples/data-eu-gdp-growth-5.json +4 -0
- data/public/javascripts/flot/examples/data-eu-gdp-growth.json +4 -0
- data/public/javascripts/flot/examples/data-japan-gdp-growth.json +4 -0
- data/public/javascripts/flot/examples/data-usa-gdp-growth.json +4 -0
- data/public/javascripts/flot/examples/graph-types.html +75 -0
- data/public/javascripts/flot/examples/hs-2004-27-a-large_web.jpg +0 -0
- data/public/javascripts/flot/examples/image.html +45 -0
- data/public/javascripts/flot/examples/index.html +44 -0
- data/public/javascripts/flot/examples/interacting-axes.html +97 -0
- data/public/javascripts/flot/examples/interacting.html +93 -0
- data/public/javascripts/flot/examples/layout.css +6 -0
- data/public/javascripts/flot/examples/multiple-axes.html +60 -0
- data/public/javascripts/flot/examples/navigate.html +118 -0
- data/public/javascripts/flot/examples/percentiles.html +57 -0
- data/public/javascripts/flot/examples/pie.html +756 -0
- data/public/javascripts/flot/examples/realtime.html +83 -0
- data/public/javascripts/flot/examples/resize.html +61 -0
- data/public/javascripts/flot/examples/selection.html +114 -0
- data/public/javascripts/flot/examples/setting-options.html +61 -0
- data/public/javascripts/flot/examples/stacking.html +77 -0
- data/public/javascripts/flot/examples/symbols.html +49 -0
- data/public/javascripts/flot/examples/thresholding.html +54 -0
- data/public/javascripts/flot/examples/time.html +71 -0
- data/public/javascripts/flot/examples/tracking.html +95 -0
- data/public/javascripts/flot/examples/turning-series.html +98 -0
- data/public/javascripts/flot/examples/visitors.html +90 -0
- data/public/javascripts/flot/examples/zooming.html +98 -0
- data/public/javascripts/flot/excanvas.js +1427 -0
- data/public/javascripts/flot/excanvas.min.js +1 -0
- data/public/javascripts/flot/jquery.colorhelpers.js +179 -0
- data/public/javascripts/flot/jquery.colorhelpers.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.crosshair.js +167 -0
- data/public/javascripts/flot/jquery.flot.crosshair.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.fillbetween.js +183 -0
- data/public/javascripts/flot/jquery.flot.fillbetween.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.image.js +238 -0
- data/public/javascripts/flot/jquery.flot.image.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.js +2599 -0
- data/public/javascripts/flot/jquery.flot.min.js +6 -0
- data/public/javascripts/flot/jquery.flot.navigate.js +336 -0
- data/public/javascripts/flot/jquery.flot.navigate.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.pie.js +750 -0
- data/public/javascripts/flot/jquery.flot.pie.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.resize.js +60 -0
- data/public/javascripts/flot/jquery.flot.resize.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.selection.js +344 -0
- data/public/javascripts/flot/jquery.flot.selection.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.stack.js +184 -0
- data/public/javascripts/flot/jquery.flot.stack.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.symbol.js +70 -0
- data/public/javascripts/flot/jquery.flot.symbol.min.js +1 -0
- data/public/javascripts/flot/jquery.flot.threshold.js +103 -0
- data/public/javascripts/flot/jquery.flot.threshold.min.js +1 -0
- data/public/javascripts/flot/jquery.js +8316 -0
- data/public/javascripts/flot/jquery.min.js +23 -0
- data/public/javascripts/jquery.qtip.js +2675 -0
- data/public/javascripts/jquery.sparkline.js +1271 -0
- data/public/javascripts/races.js +245 -0
- data/public/stylesheets/sass/admin/races.sass +65 -70
- data/public/stylesheets/sass/jquery.flot.sass +416 -0
- data/public/stylesheets/sass/race_results.sass +38 -2
- data/radiant-race_results-extension.gemspec +1 -1
- metadata +95 -11
- data/public/javascripts/tablesorter.js +0 -3
@@ -0,0 +1,245 @@
|
|
1
|
+
Array.prototype.sortBy = function(property, reversed) {
|
2
|
+
if (typeof this[0][property] == "number") {
|
3
|
+
this.sort(function (a,b) {
|
4
|
+
if (reversed) {
|
5
|
+
return b[property] - a[property];
|
6
|
+
} else {
|
7
|
+
return a[property] - b[property];
|
8
|
+
}
|
9
|
+
});
|
10
|
+
} else {
|
11
|
+
this.sort(function (a,b) {
|
12
|
+
if (reversed) {
|
13
|
+
return b[property].localeCompare(a[property]);
|
14
|
+
} else {
|
15
|
+
return a[property].localeCompare(b[property]);
|
16
|
+
}
|
17
|
+
});
|
18
|
+
}
|
19
|
+
};
|
20
|
+
|
21
|
+
String.prototype.toSeconds = function() {
|
22
|
+
var timeArray = this.split(":");
|
23
|
+
var seconds = 0;
|
24
|
+
seconds += (parseInt(timeArray[0], 10) * 3600);
|
25
|
+
seconds += (parseInt(timeArray[1], 10) * 60);
|
26
|
+
seconds += (parseInt(timeArray[2], 10));
|
27
|
+
return seconds;
|
28
|
+
};
|
29
|
+
|
30
|
+
(function($) {
|
31
|
+
|
32
|
+
var timeFormat = function(value, axis) {
|
33
|
+
if (value == 0) return '0';
|
34
|
+
var prefix = '';
|
35
|
+
if (value < 0) {
|
36
|
+
value = Math.abs(value);
|
37
|
+
prefix = '-';
|
38
|
+
}
|
39
|
+
var h = Math.floor(value/3600);
|
40
|
+
var m = Math.floor((value % 3600)/60);
|
41
|
+
if ( m < 10) m = "0" + m;
|
42
|
+
var s = value % 60;
|
43
|
+
if ( s < 10) s = "0" + s;
|
44
|
+
var tc = [h,m,s].join(":");
|
45
|
+
return prefix + tc;
|
46
|
+
};
|
47
|
+
|
48
|
+
function ResultsRow(tr) {
|
49
|
+
var self = this;
|
50
|
+
$.extend(self, {
|
51
|
+
element: $(tr),
|
52
|
+
pos: null,
|
53
|
+
club: null,
|
54
|
+
cat: null,
|
55
|
+
name: null,
|
56
|
+
time: null
|
57
|
+
});
|
58
|
+
this.club = this.element.find('td.club').text();
|
59
|
+
if (this.club == "") this.club = "UA";
|
60
|
+
this.pos = parseInt(this.element.find('td.pos').text(), 10);
|
61
|
+
this.name = this.element.find('td.name').text();
|
62
|
+
this.cat = this.element.find('td.cat').text();
|
63
|
+
this.prizes = this.element.find('td.prizes').text();
|
64
|
+
this.time = this.element.find('td.time').text().toSeconds();
|
65
|
+
};
|
66
|
+
|
67
|
+
function ResultsColumn(th, table) {
|
68
|
+
var self = this;
|
69
|
+
$.extend(self, {
|
70
|
+
element: $(th),
|
71
|
+
link: $(th).find('a'),
|
72
|
+
table: table,
|
73
|
+
sortProperty: $(th).attr('class'),
|
74
|
+
toggle: function (event) {
|
75
|
+
event.preventDefault();
|
76
|
+
if (self.element.hasClass('up')) {
|
77
|
+
self.table.sort(self.sortProperty, true);
|
78
|
+
self.link.removeClass('up');
|
79
|
+
self.link.addClass('down');
|
80
|
+
}
|
81
|
+
else if (self.element.hasClass('down')) {
|
82
|
+
self.table.sort(self.sortProperty);
|
83
|
+
self.link.removeClass('down');
|
84
|
+
self.link.addClass('up');
|
85
|
+
}
|
86
|
+
else {
|
87
|
+
self.table.sort(self.sortProperty);
|
88
|
+
self.link.addClass('up');
|
89
|
+
}
|
90
|
+
},
|
91
|
+
reset: function () {
|
92
|
+
self.link.removeClass('up');
|
93
|
+
self.link.removeClass('down');
|
94
|
+
}
|
95
|
+
});
|
96
|
+
self.link.addClass('sortable');
|
97
|
+
if (self.sortProperty == 'pos') self.link.addClass('up');
|
98
|
+
self.link.click(self.toggle);
|
99
|
+
};
|
100
|
+
|
101
|
+
function ResultsTable(table) {
|
102
|
+
var self = this;
|
103
|
+
var tbody = $(table).find('tbody');
|
104
|
+
$.extend(self, {
|
105
|
+
element: $(table),
|
106
|
+
wrapper: tbody,
|
107
|
+
finishers: [],
|
108
|
+
dnfs: [],
|
109
|
+
columns: [],
|
110
|
+
sort: function (property, reversed) {
|
111
|
+
self.reset();
|
112
|
+
self.finishers.sortBy(property, reversed);
|
113
|
+
self.refresh();
|
114
|
+
},
|
115
|
+
reset: function (argument) {
|
116
|
+
self.finishers.sortBy('pos');
|
117
|
+
$.each(self.columns, function () { this.reset(); });
|
118
|
+
},
|
119
|
+
refresh: function () {
|
120
|
+
$.each(self.finishers.concat(self.dnfs), function (i, row) {
|
121
|
+
self.wrapper.append(row.element);
|
122
|
+
});
|
123
|
+
}
|
124
|
+
});
|
125
|
+
self.element.find('tr.finisher').each(function () {
|
126
|
+
self.finishers.push(new ResultsRow(this));
|
127
|
+
});
|
128
|
+
self.element.find('tr.unfinished').each(function () {
|
129
|
+
self.dnfs.push(new ResultsRow(this));
|
130
|
+
});
|
131
|
+
self.element.find('th').each(function () {
|
132
|
+
self.columns.push(new ResultsColumn(this, self));
|
133
|
+
});
|
134
|
+
};
|
135
|
+
|
136
|
+
$.fn.sortable_results = function () {
|
137
|
+
this.each(function () {
|
138
|
+
new ResultsTable(this);
|
139
|
+
});
|
140
|
+
};
|
141
|
+
|
142
|
+
$.fn.build_chart = function () {
|
143
|
+
this.each(function () {
|
144
|
+
var self = $(this);
|
145
|
+
var waiter = self.find('a.waiting');
|
146
|
+
var href = waiter.attr('href');
|
147
|
+
var list = self.find('ul.labels').eq(0);
|
148
|
+
var ticks = [];
|
149
|
+
list.find('li').each(function (i, el) { ticks.push($(el).text()); });
|
150
|
+
list.hide();
|
151
|
+
|
152
|
+
self.qtip({
|
153
|
+
prerender: true,
|
154
|
+
content: 'Loading...', // Use a loading message primarily
|
155
|
+
position: {
|
156
|
+
viewport: $(window), // Keep it visible within the window if possible
|
157
|
+
target: 'mouse', // Position it in relation to the mouse
|
158
|
+
adjust: { x: 7 } // ...but adjust it a bit so it doesn't overlap it.
|
159
|
+
},
|
160
|
+
show: false, // We'll show it programatically, so no show event is needed
|
161
|
+
style: {
|
162
|
+
classes: 'ui-tooltip-shadow ui-tooltip-tipped',
|
163
|
+
tip: false // Remove the default tip.
|
164
|
+
}
|
165
|
+
});
|
166
|
+
|
167
|
+
$.getJSON(href, function (data) {
|
168
|
+
var length = data[0].length;
|
169
|
+
var series = [];
|
170
|
+
var markers = [];
|
171
|
+
$.each(data[0]['splits'], function () {
|
172
|
+
markers.push([this[0], ticks.shift()]);
|
173
|
+
});
|
174
|
+
|
175
|
+
var plot_options = {
|
176
|
+
series: {
|
177
|
+
lines: {
|
178
|
+
show: true
|
179
|
+
},
|
180
|
+
shadowSize: 2,
|
181
|
+
points: {show: true}
|
182
|
+
},
|
183
|
+
xaxis: {
|
184
|
+
show: true,
|
185
|
+
ticks: markers
|
186
|
+
},
|
187
|
+
yaxis: {
|
188
|
+
show: true,
|
189
|
+
tickFormatter: timeFormat
|
190
|
+
},
|
191
|
+
grid: {
|
192
|
+
show: true,
|
193
|
+
borderWidth: 0,
|
194
|
+
hoverable: true,
|
195
|
+
clickable: true
|
196
|
+
},
|
197
|
+
legend: {
|
198
|
+
show: false
|
199
|
+
}
|
200
|
+
};
|
201
|
+
|
202
|
+
$.each(data, function () {
|
203
|
+
points = this['splits'].unshift([0,0]);
|
204
|
+
series.push({
|
205
|
+
data: this['splits'],
|
206
|
+
label: this['name']
|
207
|
+
});
|
208
|
+
});
|
209
|
+
|
210
|
+
self.empty();
|
211
|
+
|
212
|
+
var plot = $.plot($(self), series, plot_options);
|
213
|
+
|
214
|
+
$(self).bind("plothover", function (event, pos, item) {
|
215
|
+
var qtip = self.qtip();
|
216
|
+
if(!item) {
|
217
|
+
qtip.cache.point = false;
|
218
|
+
qtip.cache.series = false;
|
219
|
+
return qtip.hide(event);
|
220
|
+
}
|
221
|
+
var previousPoint = qtip.cache.point;
|
222
|
+
if (qtip.cache.point != item.dataIndex + item.series.label) {
|
223
|
+
qtip.cache.point = item.dataIndex + item.series.label;
|
224
|
+
qtip.elements.tooltip.stop(1, 1);
|
225
|
+
var content = item.series.label + ": " + timeFormat(item.datapoint[1]);
|
226
|
+
qtip.set();
|
227
|
+
qtip.set('content.text', content);
|
228
|
+
qtip.show(pos);
|
229
|
+
}
|
230
|
+
});
|
231
|
+
});
|
232
|
+
});
|
233
|
+
};
|
234
|
+
|
235
|
+
$.fn.rebuild_chart = function (selector) {
|
236
|
+
this.each(function () {
|
237
|
+
var self = $(this);
|
238
|
+
self.submit(function (e) {
|
239
|
+
$(selector).build_chart(self.attr('action') + '?' + self.serialize());
|
240
|
+
return false;
|
241
|
+
});
|
242
|
+
});
|
243
|
+
};
|
244
|
+
|
245
|
+
})(jQuery);
|
@@ -1,94 +1,98 @@
|
|
1
|
-
@import
|
2
|
-
@import
|
3
|
-
@import modules/grid.sass
|
1
|
+
@import compass/css3
|
2
|
+
@import grid.sass
|
4
3
|
|
5
4
|
=standard_input
|
6
|
-
:
|
7
|
-
:
|
8
|
-
:
|
9
|
-
|
10
|
-
|
5
|
+
width: 100%
|
6
|
+
padding: 6px 0
|
7
|
+
border: 1px solid #666666
|
8
|
+
font-family: Monaco, "Courier New", Courier, monospace
|
9
|
+
font-size: 95%
|
11
10
|
|
12
11
|
=quiet
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
:
|
17
|
-
|
18
|
-
|
12
|
+
font-family: helvetica, arial, sans-serif
|
13
|
+
font-weight: lighter
|
14
|
+
font-size: 85%
|
15
|
+
color: #cccccc
|
16
|
+
line-height: 1.3
|
17
|
+
text-shadow: none
|
19
18
|
|
20
19
|
=flatbottom
|
21
|
-
|
20
|
+
margin-bottom: 0
|
22
21
|
|
23
|
-
|
22
|
+
=clear
|
23
|
+
clear: left
|
24
|
+
|
25
|
+
table.index
|
24
26
|
td.race_name
|
25
|
-
|
26
|
-
|
27
|
-
|
27
|
+
font-size: 115%
|
28
|
+
font-weight: bold
|
29
|
+
vertical-align: top
|
28
30
|
a
|
29
|
-
:
|
30
|
-
|
31
|
-
|
31
|
+
color: black
|
32
|
+
text-decoration: none
|
32
33
|
td.race_instances
|
33
|
-
:
|
34
|
-
:
|
35
|
-
|
36
|
-
|
34
|
+
padding: 8px
|
35
|
+
width: 75%
|
36
|
+
font-size: 90%
|
37
|
+
vertical-align: top
|
37
38
|
ul.instances
|
38
|
-
|
39
|
-
|
39
|
+
list-style: square
|
40
|
+
padding-left: 0
|
40
41
|
li
|
41
|
-
|
42
|
-
:
|
43
|
-
|
42
|
+
margin-bottom: 6px
|
43
|
+
float: left
|
44
|
+
margin-right: 32px
|
44
45
|
a
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
font-size: 115%
|
47
|
+
font-weight: bold
|
48
|
+
text-decoration: none
|
48
49
|
p.new_instance
|
49
|
-
:
|
50
|
+
clear: left
|
50
51
|
|
51
52
|
a.remove
|
52
|
-
|
53
|
-
:
|
54
|
-
|
53
|
+
font-weight: bold
|
54
|
+
color: #cc0000
|
55
|
+
text-decoration: none
|
55
56
|
|
56
57
|
span.formnote, span.info
|
57
|
-
:
|
58
|
-
|
58
|
+
color: #666666
|
59
|
+
font-size: 85%
|
59
60
|
|
60
61
|
#content .form-area p.body
|
61
|
-
|
62
|
+
margin-top: 20px
|
62
63
|
|
63
64
|
ul.help
|
64
|
-
|
65
|
-
:
|
66
|
-
|
67
|
-
|
65
|
+
list-style: square
|
66
|
+
color: #666666
|
67
|
+
font-size: 85%
|
68
68
|
code
|
69
|
-
:
|
70
|
-
|
69
|
+
color: #cc0000
|
70
|
+
font-size: 115%
|
71
71
|
|
72
72
|
p.haserror
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
:
|
77
|
-
|
73
|
+
border-left: 4px solid #cc0000
|
74
|
+
margin-left: -16px
|
75
|
+
padding-left: 12px
|
76
|
+
color: #cc0000 !important
|
78
77
|
|
78
|
+
#form_container
|
79
|
+
+grid-container
|
80
|
+
h2
|
81
|
+
font-size: 200%
|
82
|
+
|
79
83
|
#content form
|
80
84
|
input.textbox, select.textbox, textarea
|
81
85
|
+standard_input
|
82
|
-
|
86
|
+
margin-top: 0.3em
|
83
87
|
p.title
|
84
88
|
+grid(8)
|
85
89
|
p.slug
|
86
90
|
+grid(4)
|
87
91
|
input.textbox
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
:
|
92
|
+
margin-top: 4px
|
93
|
+
font-family: Georgia, Palatino, "Times New Roman", Times, serif
|
94
|
+
font-size: 200%
|
95
|
+
width: 99.5%
|
92
96
|
p.distance
|
93
97
|
+grid(4)
|
94
98
|
p.climb
|
@@ -97,13 +101,13 @@ p.haserror
|
|
97
101
|
+clear
|
98
102
|
+grid(8)
|
99
103
|
textarea
|
100
|
-
:
|
101
|
-
:
|
104
|
+
width: 100%
|
105
|
+
height: 8em
|
102
106
|
#attachments
|
103
107
|
+grid(4)
|
104
108
|
img
|
105
|
-
:
|
106
|
-
:
|
109
|
+
float: left
|
110
|
+
margin: 4px 10px 10px 0
|
107
111
|
#records, #checkpoints
|
108
112
|
+grid(6)
|
109
113
|
.category
|
@@ -120,12 +124,3 @@ p.haserror
|
|
120
124
|
+flush_right
|
121
125
|
.options
|
122
126
|
+clear
|
123
|
-
|
124
|
-
a.toggleMCE
|
125
|
-
:display block
|
126
|
-
:width 24px
|
127
|
-
:height 24px
|
128
|
-
:padding-left 24px
|
129
|
-
:float right
|
130
|
-
|
131
|
-
|
@@ -0,0 +1,416 @@
|
|
1
|
+
/*
|
2
|
+
** qTip2 - Pretty powerful tooltips
|
3
|
+
** http://craigsworks.com/projects/qtip2/
|
4
|
+
**
|
5
|
+
** Version: nightly
|
6
|
+
** Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com
|
7
|
+
**
|
8
|
+
** Dual licensed under MIT or GPLv2 licenses
|
9
|
+
** http://en.wikipedia.org/wiki/MIT_License
|
10
|
+
** http://en.wikipedia.org/wiki/GNU_General_Public_License
|
11
|
+
**
|
12
|
+
** Date: Sun Nov 13 11:19:27.0000000000 2011
|
13
|
+
|
14
|
+
/* Core qTip styles
|
15
|
+
|
16
|
+
.ui-tooltip, .qtip
|
17
|
+
position: absolute
|
18
|
+
left: -28000px
|
19
|
+
top: -28000px
|
20
|
+
display: none
|
21
|
+
max-width: 280px
|
22
|
+
min-width: 50px
|
23
|
+
font-size: 10.5px
|
24
|
+
line-height: 12px
|
25
|
+
z-index: 15000
|
26
|
+
|
27
|
+
/* Fluid class for determining actual width in IE
|
28
|
+
|
29
|
+
.ui-tooltip-fluid
|
30
|
+
display: block
|
31
|
+
visibility: hidden
|
32
|
+
position: static !important
|
33
|
+
float: left !important
|
34
|
+
|
35
|
+
.ui-tooltip-content
|
36
|
+
position: relative
|
37
|
+
padding: 5px 9px
|
38
|
+
overflow: hidden
|
39
|
+
border-width: 1px
|
40
|
+
border-style: solid
|
41
|
+
text-align: left
|
42
|
+
word-wrap: break-word
|
43
|
+
overflow: hidden
|
44
|
+
|
45
|
+
.ui-tooltip-titlebar
|
46
|
+
position: relative
|
47
|
+
min-height: 14px
|
48
|
+
padding: 5px 35px 5px 10px
|
49
|
+
overflow: hidden
|
50
|
+
border-width: 1px 1px 0
|
51
|
+
border-style: solid
|
52
|
+
font-weight: bold
|
53
|
+
+ .ui-tooltip-content
|
54
|
+
border-top-width: 0px !important
|
55
|
+
.ui-state-default
|
56
|
+
position: absolute
|
57
|
+
right: 4px
|
58
|
+
top: 50%
|
59
|
+
margin-top: -9px
|
60
|
+
cursor: pointer
|
61
|
+
outline: medium none
|
62
|
+
border-width: 1px
|
63
|
+
border-style: solid
|
64
|
+
|
65
|
+
/*! Default close button class
|
66
|
+
|
67
|
+
* html .ui-tooltip-titlebar .ui-state-default
|
68
|
+
top: 16px
|
69
|
+
|
70
|
+
/* IE fix
|
71
|
+
|
72
|
+
.ui-tooltip-titlebar .ui-icon
|
73
|
+
display: block
|
74
|
+
text-indent: -1000em
|
75
|
+
|
76
|
+
.ui-tooltip-icon
|
77
|
+
.ui-icon
|
78
|
+
display: block
|
79
|
+
text-indent: -1000em
|
80
|
+
-moz-border-radius: 3px
|
81
|
+
-webkit-border-radius: 3px
|
82
|
+
border-radius: 3px
|
83
|
+
width: 18px
|
84
|
+
height: 14px
|
85
|
+
text-align: center
|
86
|
+
text-indent: 0
|
87
|
+
font: normal bold 10px / 13px Tahoma, sans-serif
|
88
|
+
color: inherit
|
89
|
+
background: transparent none no-repeat -100em -100em
|
90
|
+
-moz-border-radius: 3px
|
91
|
+
-webkit-border-radius: 3px
|
92
|
+
border-radius: 3px
|
93
|
+
|
94
|
+
/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with
|
95
|
+
|
96
|
+
.ui-tooltip-focus, .ui-tooltip-hover
|
97
|
+
|
98
|
+
/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively
|
99
|
+
|
100
|
+
/*! Default tooltip style
|
101
|
+
|
102
|
+
.ui-tooltip-default
|
103
|
+
.ui-tooltip-titlebar, .ui-tooltip-content
|
104
|
+
border-color: #F1D031
|
105
|
+
background-color: #FFFFA3
|
106
|
+
color: #555
|
107
|
+
.ui-tooltip-titlebar
|
108
|
+
background-color: #FFEF93
|
109
|
+
.ui-tooltip-icon
|
110
|
+
border-color: #CCC
|
111
|
+
background: #F1F1F1
|
112
|
+
color: #777
|
113
|
+
.ui-tooltip-titlebar .ui-state-hover
|
114
|
+
border-color: #AAA
|
115
|
+
color: #111
|
116
|
+
|
117
|
+
/* Tips plugin
|
118
|
+
|
119
|
+
.ui-tooltip .ui-tooltip-tip
|
120
|
+
margin: 0 auto
|
121
|
+
overflow: hidden
|
122
|
+
z-index: 10
|
123
|
+
position: absolute
|
124
|
+
line-height: 0.1px !important
|
125
|
+
font-size: 0.1px !important
|
126
|
+
color: #123456
|
127
|
+
background: transparent
|
128
|
+
border: 0px dashed transparent
|
129
|
+
*
|
130
|
+
position: absolute
|
131
|
+
line-height: 0.1px !important
|
132
|
+
font-size: 0.1px !important
|
133
|
+
color: #123456
|
134
|
+
background: transparent
|
135
|
+
border: 0px dashed transparent
|
136
|
+
canvas
|
137
|
+
top: 0
|
138
|
+
left: 0
|
139
|
+
|
140
|
+
/*! Light tooltip style
|
141
|
+
|
142
|
+
.ui-tooltip-light
|
143
|
+
.ui-tooltip-titlebar
|
144
|
+
border-color: #E2E2E2
|
145
|
+
color: #454545
|
146
|
+
.ui-tooltip-content
|
147
|
+
border-color: #E2E2E2
|
148
|
+
color: #454545
|
149
|
+
background-color: white
|
150
|
+
.ui-tooltip-titlebar
|
151
|
+
background-color: #f1f1f1
|
152
|
+
|
153
|
+
/*! Dark tooltip style
|
154
|
+
|
155
|
+
.ui-tooltip-dark
|
156
|
+
.ui-tooltip-titlebar
|
157
|
+
border-color: #303030
|
158
|
+
color: #f3f3f3
|
159
|
+
.ui-tooltip-content
|
160
|
+
border-color: #303030
|
161
|
+
color: #f3f3f3
|
162
|
+
background-color: #505050
|
163
|
+
.ui-tooltip-titlebar
|
164
|
+
background-color: #404040
|
165
|
+
.ui-tooltip-icon
|
166
|
+
border-color: #444
|
167
|
+
.ui-tooltip-titlebar .ui-state-hover
|
168
|
+
border-color: #303030
|
169
|
+
|
170
|
+
/*! Cream tooltip style
|
171
|
+
|
172
|
+
.ui-tooltip-cream
|
173
|
+
.ui-tooltip-titlebar
|
174
|
+
border-color: #F9E98E
|
175
|
+
color: #A27D35
|
176
|
+
.ui-tooltip-content
|
177
|
+
border-color: #F9E98E
|
178
|
+
color: #A27D35
|
179
|
+
background-color: #FBF7AA
|
180
|
+
.ui-tooltip-titlebar
|
181
|
+
background-color: #F0DE7D
|
182
|
+
.ui-state-default .ui-tooltip-icon
|
183
|
+
background-position: -82px 0
|
184
|
+
|
185
|
+
/*! Red tooltip style
|
186
|
+
|
187
|
+
.ui-tooltip-red
|
188
|
+
.ui-tooltip-titlebar
|
189
|
+
border-color: #D95252
|
190
|
+
color: #912323
|
191
|
+
.ui-tooltip-content
|
192
|
+
border-color: #D95252
|
193
|
+
color: #912323
|
194
|
+
background-color: #F78B83
|
195
|
+
.ui-tooltip-titlebar
|
196
|
+
background-color: #F06D65
|
197
|
+
.ui-state-default .ui-tooltip-icon
|
198
|
+
background-position: -102px 0
|
199
|
+
.ui-tooltip-icon, .ui-tooltip-titlebar .ui-state-hover
|
200
|
+
border-color: #D95252
|
201
|
+
|
202
|
+
/*! Green tooltip style
|
203
|
+
|
204
|
+
.ui-tooltip-green
|
205
|
+
.ui-tooltip-titlebar
|
206
|
+
border-color: #90D93F
|
207
|
+
color: #3F6219
|
208
|
+
.ui-tooltip-content
|
209
|
+
border-color: #90D93F
|
210
|
+
color: #3F6219
|
211
|
+
background-color: #CAED9E
|
212
|
+
.ui-tooltip-titlebar
|
213
|
+
background-color: #B0DE78
|
214
|
+
.ui-state-default .ui-tooltip-icon
|
215
|
+
background-position: -42px 0
|
216
|
+
|
217
|
+
/*! Blue tooltip style
|
218
|
+
|
219
|
+
.ui-tooltip-blue
|
220
|
+
.ui-tooltip-titlebar
|
221
|
+
border-color: #ADD9ED
|
222
|
+
color: #5E99BD
|
223
|
+
.ui-tooltip-content
|
224
|
+
border-color: #ADD9ED
|
225
|
+
color: #5E99BD
|
226
|
+
background-color: #E5F6FE
|
227
|
+
.ui-tooltip-titlebar
|
228
|
+
background-color: #D0E9F5
|
229
|
+
.ui-state-default .ui-tooltip-icon
|
230
|
+
background-position: -2px 0
|
231
|
+
|
232
|
+
/*! Add shadows to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE6+, Safari 2+
|
233
|
+
|
234
|
+
.ui-tooltip-shadow
|
235
|
+
-webkit-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15)
|
236
|
+
-moz-box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15)
|
237
|
+
box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.15)
|
238
|
+
.ui-tooltip-titlebar, .ui-tooltip-content
|
239
|
+
filter: progid:DXImageTransform.Microsoft.Shadow(Color='gray', Direction=135, Strength=3)
|
240
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Color='gray', Direction=135, Strength=3)"
|
241
|
+
_margin-bottom: -3px
|
242
|
+
.margin-bottom: -3px
|
243
|
+
|
244
|
+
/*! Add rounded corners to your tooltips in: FF3+, Chrome 2+, Opera 10.6+, IE9+, Safari 2+
|
245
|
+
|
246
|
+
.ui-tooltip-rounded, .ui-tooltip-tipsy, .ui-tooltip-youtube
|
247
|
+
-moz-border-radius: 4px
|
248
|
+
-webkit-border-radius: 4px
|
249
|
+
border-radius: 4px
|
250
|
+
.ui-tooltip-content
|
251
|
+
-moz-border-radius: 4px
|
252
|
+
-webkit-border-radius: 4px
|
253
|
+
border-radius: 4px
|
254
|
+
|
255
|
+
.ui-tooltip-rounded .ui-tooltip-titlebar, .ui-tooltip-tipsy .ui-tooltip-titlebar, .ui-tooltip-youtube .ui-tooltip-titlebar
|
256
|
+
-moz-border-radius: 5px 5px 0 0
|
257
|
+
-webkit-border-radius: 5px 5px 0 0
|
258
|
+
border-radius: 5px 5px 0 0
|
259
|
+
|
260
|
+
.ui-tooltip-rounded .ui-tooltip-titlebar + .ui-tooltip-content, .ui-tooltip-tipsy .ui-tooltip-titlebar + .ui-tooltip-content
|
261
|
+
-moz-border-radius: 0 0 5px 5px
|
262
|
+
-webkit-border-radius: 0 0 5px 5px
|
263
|
+
border-radius: 0 0 5px 5px
|
264
|
+
|
265
|
+
.ui-tooltip-youtube
|
266
|
+
.ui-tooltip-titlebar
|
267
|
+
+ .ui-tooltip-content
|
268
|
+
-moz-border-radius: 0 0 5px 5px
|
269
|
+
-webkit-border-radius: 0 0 5px 5px
|
270
|
+
border-radius: 0 0 5px 5px
|
271
|
+
_margin-bottom: 0
|
272
|
+
.margin-bottom: 0
|
273
|
+
background: transparent
|
274
|
+
background: rgba(0, 0, 0, 0.85)
|
275
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)
|
276
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)"
|
277
|
+
color: white
|
278
|
+
border-color: #CCCCCC
|
279
|
+
-webkit-box-shadow: 0 0 3px #333
|
280
|
+
-moz-box-shadow: 0 0 3px #333
|
281
|
+
box-shadow: 0 0 3px #333
|
282
|
+
.ui-tooltip-content
|
283
|
+
_margin-bottom: 0
|
284
|
+
.margin-bottom: 0
|
285
|
+
background: transparent
|
286
|
+
background: rgba(0, 0, 0, 0.85)
|
287
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)
|
288
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)"
|
289
|
+
color: white
|
290
|
+
border-color: #CCCCCC
|
291
|
+
.ui-tooltip-icon
|
292
|
+
border-color: #222
|
293
|
+
.ui-tooltip-titlebar .ui-state-hover
|
294
|
+
border-color: #303030
|
295
|
+
|
296
|
+
/*! Youtube tooltip style
|
297
|
+
|
298
|
+
/* jQuery TOOLS Tooltip style
|
299
|
+
|
300
|
+
.ui-tooltip-jtools
|
301
|
+
background: #232323
|
302
|
+
background: rgba(0, 0, 0, 0.7)
|
303
|
+
background-image: -moz-linear-gradient(top, #717171, #232323)
|
304
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#717171), to(#232323))
|
305
|
+
border: 2px solid #ddd
|
306
|
+
border: 2px solid rgba(241, 241, 241, 1)
|
307
|
+
-moz-border-radius: 2px
|
308
|
+
-webkit-border-radius: 2px
|
309
|
+
border-radius: 2px
|
310
|
+
-webkit-box-shadow: 0 0 12px #333
|
311
|
+
-moz-box-shadow: 0 0 12px #333
|
312
|
+
box-shadow: 0 0 12px #333
|
313
|
+
.ui-tooltip-titlebar
|
314
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)
|
315
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171,endColorstr=#4A4A4A)"
|
316
|
+
.ui-tooltip-content
|
317
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)
|
318
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A,endColorstr=#232323)"
|
319
|
+
.ui-tooltip-titlebar, .ui-tooltip-content
|
320
|
+
background: transparent
|
321
|
+
color: white
|
322
|
+
border: 0 dashed transparent
|
323
|
+
.ui-tooltip-icon
|
324
|
+
border-color: #555
|
325
|
+
.ui-tooltip-titlebar .ui-state-hover
|
326
|
+
border-color: #333
|
327
|
+
|
328
|
+
/* IE Specific
|
329
|
+
|
330
|
+
/* Cluetip style
|
331
|
+
|
332
|
+
.ui-tooltip-cluetip
|
333
|
+
-webkit-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4)
|
334
|
+
-moz-box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4)
|
335
|
+
box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.4)
|
336
|
+
.ui-tooltip-titlebar
|
337
|
+
background-color: #87876A
|
338
|
+
color: white
|
339
|
+
border: 0 dashed transparent
|
340
|
+
.ui-tooltip-content
|
341
|
+
background-color: #D9D9C2
|
342
|
+
color: #111
|
343
|
+
border: 0 dashed transparent
|
344
|
+
.ui-tooltip-icon
|
345
|
+
border-color: #808064
|
346
|
+
.ui-tooltip-titlebar .ui-state-hover
|
347
|
+
border-color: #696952
|
348
|
+
color: #696952
|
349
|
+
|
350
|
+
/* Tipsy style
|
351
|
+
|
352
|
+
.ui-tooltip-tipsy
|
353
|
+
border: 0
|
354
|
+
.ui-tooltip-titlebar, .ui-tooltip-content
|
355
|
+
_margin-bottom: 0
|
356
|
+
.margin-bottom: 0
|
357
|
+
background: transparent
|
358
|
+
background: rgba(0, 0, 0, 0.87)
|
359
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)
|
360
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#D9000000,endColorstr=#D9000000)"
|
361
|
+
color: white
|
362
|
+
border: 0px transparent
|
363
|
+
font-size: 11px
|
364
|
+
font-family: 'Lucida Grande', sans-serif
|
365
|
+
font-weight: bold
|
366
|
+
line-height: 16px
|
367
|
+
text-shadow: 0 1px black
|
368
|
+
.ui-tooltip-titlebar
|
369
|
+
padding: 6px 35px 0 10
|
370
|
+
.ui-tooltip-content
|
371
|
+
padding: 6px 10
|
372
|
+
.ui-tooltip-icon
|
373
|
+
border-color: #222
|
374
|
+
text-shadow: none
|
375
|
+
.ui-tooltip-titlebar .ui-state-hover
|
376
|
+
border-color: #303030
|
377
|
+
|
378
|
+
/* Tipped style
|
379
|
+
|
380
|
+
.ui-tooltip-tipped
|
381
|
+
.ui-tooltip-titlebar, .ui-tooltip-content
|
382
|
+
border: 3px solid #959FA9
|
383
|
+
filter: none
|
384
|
+
-ms-filter: none
|
385
|
+
.ui-tooltip-titlebar
|
386
|
+
background: #3A79B8
|
387
|
+
background-image: -moz-linear-gradient(top, #3a79b8, #2e629d)
|
388
|
+
background-image: -webkit-gradient(linear, left top, left bottom, from(#3a79b8), to(#2e629d))
|
389
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)
|
390
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8,endColorstr=#2E629D)"
|
391
|
+
color: white
|
392
|
+
font-weight: normal
|
393
|
+
font-family: serif
|
394
|
+
border-bottom-width: 0
|
395
|
+
-moz-border-radius: 3px 3px 0 0
|
396
|
+
-webkit-border-radius: 3px 3px 0 0
|
397
|
+
border-radius: 3px 3px 0 0
|
398
|
+
.ui-tooltip-content
|
399
|
+
background-color: #F9F9F9
|
400
|
+
color: #454545
|
401
|
+
-moz-border-radius: 0 0 3px 3px
|
402
|
+
-webkit-border-radius: 0 0 3px 3px
|
403
|
+
border-radius: 0 0 3px 3px
|
404
|
+
.ui-tooltip-icon
|
405
|
+
border: 2px solid #285589
|
406
|
+
background: #285589
|
407
|
+
.ui-icon
|
408
|
+
background-color: #FBFBFB
|
409
|
+
color: #555
|
410
|
+
|
411
|
+
/* IE9 fix - removes all filters
|
412
|
+
|
413
|
+
.ui-tooltip:not(.ie9haxors) div
|
414
|
+
&.ui-tooltip-content, &.ui-tooltip-titlebar
|
415
|
+
filter: none
|
416
|
+
-ms-filter: none
|