kodiak 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,87 @@
1
+ var Overlay = function(layer, data){
2
+
3
+ var self = this;
4
+
5
+ self.initialize = function(){
6
+ self.data = data;
7
+ self.data.paths = [];
8
+ self.hidden = false;
9
+ self.layer = layer;
10
+ self.map = map = self.layer.map;
11
+ self.build();
12
+ return self;
13
+ };
14
+
15
+
16
+ self.build = function(){
17
+ self.polygon = new google.maps.Polygon(this.data);
18
+
19
+ for ( var index in self.data.points ) {
20
+ self.addPoint({lat : self.data.points[index].lat, lng: self.data.points[index].lng});
21
+ }
22
+
23
+ self.polygon.setMap(self.map.canvas);
24
+ };
25
+
26
+
27
+ self.addPoint = function(points){
28
+ self.data.paths.push( new google.maps.LatLng(points.lat, points.lng) );
29
+ self.data.points.push(points);
30
+ self.polygon.setPaths(self.data.paths);
31
+ };
32
+
33
+
34
+ self.show = function(){
35
+ self.polygon.setMap(self.map.canvas);
36
+ self.hidden = false;
37
+ return self;
38
+ };
39
+
40
+
41
+
42
+ self.hide = function(){
43
+ self.polygon.setMap(null);
44
+ self.hidden = true;
45
+ return self;
46
+ };
47
+
48
+
49
+ self.remove = function(){
50
+ self.hide();
51
+ return self;
52
+ };
53
+
54
+
55
+ self.draw = function(){
56
+ self.map.canvas.setOptions({ draggableCursor: 'crosshair' });
57
+
58
+ self.data.paths = [];
59
+ self.data.points = [];
60
+
61
+ google.maps.event.addListener(self.map.canvas, 'click', function(mdEvent) {
62
+
63
+ google.maps.event.addListener(self.map.canvas, 'mousemove', function(event) {
64
+ self.addPoint({ lat: event.latLng.lat(), lng: event.latLng.lng() });
65
+ });
66
+
67
+ google.maps.event.addListener(self.map.canvas, 'click', function(event) {
68
+ google.maps.event.clearListeners(self.map.canvas);
69
+ google.maps.event.clearListeners(self.polygon);
70
+ });
71
+
72
+ google.maps.event.addListener(self.polygon, 'mousemove', function(event) {
73
+ self.addPoint({ lat: event.latLng.lat(), lng: event.latLng.lng() });
74
+ });
75
+
76
+ google.maps.event.addListener(self.polygon, 'click', function(event) {
77
+ google.maps.event.clearListeners(map.canvas);
78
+ google.maps.event.clearListeners(self.polygon);
79
+ });
80
+
81
+ });
82
+
83
+ };
84
+
85
+
86
+ return self.initialize();
87
+ };
@@ -0,0 +1,21 @@
1
+ // require utils
2
+
3
+ var Point = function(params){
4
+
5
+ var self = Utils.extend(params, this);
6
+ var path = null;
7
+
8
+ self.initialize = function(){
9
+ self.hidden = false;
10
+ return self;
11
+ };
12
+
13
+
14
+ self.path = function(){
15
+ if ( ! path ) { path = new google.maps.LatLng(self.lat, self.lng); }
16
+ return path;
17
+ };
18
+
19
+
20
+ return self.initialize();
21
+ };
@@ -0,0 +1,49 @@
1
+ // require utils
2
+
3
+ var Polygon = function(params){
4
+
5
+ var self = Utils.extend(params, this);
6
+ self.paths = {};
7
+
8
+ self.initialize = function(){
9
+ self.hidden = false;
10
+ self.build();
11
+ return self;
12
+ };
13
+
14
+
15
+ self.build = function(){
16
+
17
+ var points = self.points;
18
+ self.points = {};
19
+
20
+ for ( var index in points ) {
21
+ self.addPoint(points[index]);
22
+ }
23
+
24
+ console.log(self.points);
25
+
26
+
27
+ return self;
28
+ };
29
+
30
+
31
+ self.addPoint = function(point){
32
+ var point = new Point( point );
33
+ self.points[point.id] = point;
34
+ self.paths[point.id] = point.path();
35
+ return point;
36
+ };
37
+
38
+
39
+ self.show = function(){
40
+ return self;
41
+ };
42
+
43
+
44
+ self.hide = function(){
45
+ return self;
46
+ };
47
+
48
+ return self.initialize();
49
+ };
@@ -0,0 +1,129 @@
1
+ // require Utils
2
+ // require jquery
3
+ // require jquery.hashchange
4
+
5
+ Utils.Hash = function(config){
6
+
7
+ var self = this;
8
+ var defaults = { slash: true };
9
+ var config = Utils.extend(config, defaults);
10
+
11
+ self.initialize = function(){
12
+ if ( config.slash ) { self.add_slash_to_path(); }
13
+ return self;
14
+ };
15
+
16
+ self.get = function(){
17
+ return location.hash;
18
+ };
19
+
20
+ self.set = function(hash){
21
+ if ( config.slash ) { self.add_slash_to_path(); }
22
+ hash = config.slash ? self.add_slash_to_hash(hash) : hash;
23
+ location.hash = hash.replace(/-/g, "/");
24
+ return self.get();
25
+ };
26
+
27
+
28
+ self.element = function(){
29
+ var segments = self.segments();
30
+ var element = "";
31
+
32
+ for ( var index in segments ) {
33
+ var segment = segments[index];
34
+ var even = (index % 2);
35
+ var odd = ! even;
36
+
37
+ if ( index == 0 ) {
38
+ element += "#" + segment;
39
+ }
40
+
41
+ else {
42
+
43
+ if ( odd ) {
44
+ element += " > ." + segment;
45
+ }
46
+
47
+ if ( even ) {
48
+
49
+ var parent = segments[index - 1];
50
+
51
+ if ( parent.charAt(parent.length - 1) === "s") {
52
+ parent = parent.substring(0, parent.length - 1);
53
+ }
54
+
55
+ switch(true) {
56
+ case ( ! isNaN(segment) ) :
57
+ element += " > ." + parent + ":eq(" + ( segment - 1 ) + ")";
58
+ break;
59
+ case ( segment === "first" ) :
60
+ element += " > ." + parent + ":first";
61
+ break;
62
+ case ( segment === "last" ) :
63
+ element += " > ." + parent + ":last";
64
+ break;
65
+ default :
66
+ element += " > ." + segment;
67
+ }
68
+
69
+ }
70
+
71
+ }
72
+ };
73
+
74
+ return element;
75
+ };
76
+
77
+
78
+ self.segments = function(){
79
+ var hash = self.get();
80
+ var segments = self.remove_trailing_slash(hash).split("/");
81
+ segments.shift();
82
+ return segments;
83
+ };
84
+
85
+
86
+ self.segment = function(index){
87
+ var segments = self.segments();
88
+ var segment = segments[index - 1];
89
+ if ( typeof segment === 'undefined' ) {
90
+ console.log("Error: Hash segment at index " + index + " does not exist");
91
+ return false;
92
+ }
93
+ return segment;
94
+ };
95
+
96
+
97
+ self.onChange = function(func){
98
+ if( ! jQuery && jQuery().hashchange ) {
99
+ $(window).hashchange( func );
100
+ }
101
+ else {
102
+ window.onhashchange = func;
103
+ }
104
+ };
105
+
106
+
107
+ self.add_slash_to_path = function(){
108
+ if( location.pathname.charAt(location.pathname.length-1) !== "/"){
109
+ location.pathname += "/";
110
+ }
111
+ };
112
+
113
+ self.add_slash_to_hash = function(hash){
114
+ if( hash.charAt(0) !== "/"){
115
+ hash = "/" + hash;
116
+ }
117
+ return hash;
118
+ };
119
+
120
+ self.remove_trailing_slash = function(hash){
121
+ if( hash.charAt(hash.length - 1) === "/"){
122
+ hash = hash.substring(0, hash.length - 1);
123
+ }
124
+ return hash;
125
+ };
126
+
127
+
128
+ return self.initialize();
129
+ };
@@ -0,0 +1,19 @@
1
+ var Utils = Utils || {
2
+
3
+ extend : function(params, defaults) {
4
+ if( typeof params !== "undefined" && typeof params === "object") {
5
+ for(var index in defaults) {
6
+ if(typeof params[index] === "undefined") {
7
+ params[index] = defaults[index];
8
+ }
9
+ }
10
+ return params;
11
+ }
12
+ else {
13
+ return defaults;
14
+ }
15
+ }
16
+
17
+
18
+
19
+ };
@@ -0,0 +1,638 @@
1
+ /* ------------------------------------------------------------
2
+
3
+ global.reset
4
+ - Normalizes default browser styles
5
+
6
+ ------------------------------------------------------------ */
7
+ /* =Eric Meyer Reset v2.0 (2011-01-26)
8
+ ------------------------------------------------------------ */
9
+ html,
10
+ body,
11
+ div,
12
+ span,
13
+ applet,
14
+ object,
15
+ iframe,
16
+ h1,
17
+ h2,
18
+ h3,
19
+ h4,
20
+ h5,
21
+ h6,
22
+ p,
23
+ blockquote,
24
+ pre,
25
+ a,
26
+ abbr,
27
+ acronym,
28
+ address,
29
+ big,
30
+ cite,
31
+ code,
32
+ del,
33
+ dfn,
34
+ em,
35
+ img,
36
+ ins,
37
+ kbd,
38
+ q,
39
+ s,
40
+ samp,
41
+ small,
42
+ strike,
43
+ strong,
44
+ sub,
45
+ sup,
46
+ tt,
47
+ var,
48
+ b,
49
+ u,
50
+ i,
51
+ center,
52
+ dl,
53
+ dt,
54
+ dd,
55
+ ol,
56
+ ul,
57
+ li,
58
+ fieldset,
59
+ form,
60
+ label,
61
+ legend,
62
+ table,
63
+ caption,
64
+ tbody,
65
+ tfoot,
66
+ thead,
67
+ tr,
68
+ th,
69
+ td,
70
+ article,
71
+ aside,
72
+ canvas,
73
+ details,
74
+ embed,
75
+ figure,
76
+ figcaption,
77
+ footer,
78
+ header,
79
+ hgroup,
80
+ menu,
81
+ nav,
82
+ output,
83
+ ruby,
84
+ section,
85
+ summary,
86
+ time,
87
+ mark,
88
+ audio,
89
+ video {
90
+ margin: 0;
91
+ padding: 0;
92
+ border: 0;
93
+ font-size: 100%;
94
+ font: inherit;
95
+ vertical-align: baseline;
96
+ }
97
+ article,
98
+ aside,
99
+ details,
100
+ figcaption,
101
+ figure,
102
+ footer,
103
+ header,
104
+ hgroup,
105
+ menu,
106
+ nav,
107
+ section {
108
+ display: block;
109
+ }
110
+ body {
111
+ line-height: 1;
112
+ }
113
+ ol, ul {
114
+ list-style: none;
115
+ }
116
+ blockquote, q {
117
+ quotes: none;
118
+ }
119
+ blockquote:before,
120
+ blockquote:after,
121
+ q:before,
122
+ q:after {
123
+ content: '';
124
+ content: none;
125
+ }
126
+ table {
127
+ border-collapse: collapse;
128
+ border-spacing: 0;
129
+ }
130
+ /* =Custom
131
+ ------------------------------------------------------------ */
132
+ input,
133
+ select,
134
+ textarea,
135
+ button {
136
+ background: transparent;
137
+ margin: 0;
138
+ padding: 0;
139
+ border: 0;
140
+ }
141
+ ins {
142
+ text-decoration: none;
143
+ }
144
+ del {
145
+ text-decoration: line-through;
146
+ }
147
+ strong {
148
+ font-weight: bold;
149
+ }
150
+ em {
151
+ font-style: italic;
152
+ }
153
+ /* global.methods */
154
+ /* global.utility */
155
+ .autoclear:after {
156
+ content: ".";
157
+ display: block;
158
+ height: 0px;
159
+ line-height: 0px;
160
+ clear: both;
161
+ visibility: hidden;
162
+ }
163
+ .autoclear {
164
+ display: inline-block;
165
+ }
166
+ .autoclear {
167
+ display: block;
168
+ }
169
+ * html .autoclear {
170
+ height: 1px;
171
+ }
172
+ .hidden {
173
+ display: none;
174
+ }
175
+ .replaced {
176
+ text-indent: -9999em;
177
+ }
178
+ /* application.fonts */
179
+ @font-face {
180
+ font-family: 'Bebas';
181
+ src: url('/fonts/BebasNeue-webfont.eot');
182
+ src: url('/fonts/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'), url('/fonts/BebasNeue-webfont.woff') format('woff'), url('/fonts/BebasNeue-webfont.ttf') format('truetype'), url('/fonts/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
183
+ font-weight: normal;
184
+ font-style: normal;
185
+ }
186
+ @font-face {
187
+ font-family: 'Pictos';
188
+ src: url('/fonts/pictos-web.eot');
189
+ src: url('/fonts/pictos-web.eot?#iefix') format('embedded-opentype'), url('/fonts/pictos-web.woff') format('woff'), url('/fonts/pictos-web.ttf') format('truetype'), url('/fonts/pictos-web.svg#webfontIyfZbseF') format('svg');
190
+ font-weight: normal;
191
+ font-style: normal;
192
+ }
193
+ html {
194
+ width: 100%;
195
+ height: 100%;
196
+ background: #000;
197
+ }
198
+ body {
199
+ min-width: 100%;
200
+ height: 100%;
201
+ position: relative;
202
+ font: 13px/normal "Helvetica Neue", Arial, Helvetica, sans-serif;
203
+ color: #FFF;
204
+ background: #000;
205
+ text-shadow: 0 -1px 0 #000000;
206
+ }
207
+ h1,
208
+ h2,
209
+ h3,
210
+ h4,
211
+ h5 {
212
+ font-weight: bold;
213
+ }
214
+ h1 {
215
+ font-size: 22px;
216
+ margin-bottom: 15px;
217
+ }
218
+ h2 {
219
+ font-size: 20px;
220
+ margin-bottom: 10px;
221
+ }
222
+ h3 {
223
+ font-size: 18px;
224
+ color: #AAA;
225
+ margin-bottom: 5px;
226
+ }
227
+ h3 a {
228
+ font-size: 13px;
229
+ line-height: 18px;
230
+ font-weight: normal;
231
+ text-decoration: underline;
232
+ }
233
+ h4 {
234
+ font-size: 15px;
235
+ }
236
+ h4 a {
237
+ font-size: 13px;
238
+ margin-left: 5px;
239
+ font-weight: normal;
240
+ }
241
+ h5 {
242
+ font-size: 14px;
243
+ color: #777;
244
+ }
245
+ a {
246
+ color: #43a8d8;
247
+ text-decoration: none;
248
+ }
249
+ a:hover {
250
+ color: #3686ad;
251
+ text-decoration: underline;
252
+ }
253
+ a.delete, a.cancel {
254
+ color: #eb2020;
255
+ }
256
+ a.delete:hover, a.cancel:hover {
257
+ color: #bc1a1a;
258
+ }
259
+ a.save {
260
+ color: #348013;
261
+ }
262
+ a.save:hover {
263
+ color: #2a660f;
264
+ }
265
+ a.toggle-cancel.active {
266
+ color: #eb2020;
267
+ }
268
+ a.toggle-cancel.active:hover {
269
+ color: #bc1a1a;
270
+ }
271
+ button {
272
+ display: inline-block;
273
+ color: #000;
274
+ padding: 6px 12px;
275
+ background: #dddddd;
276
+ background: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#bbbbbb));
277
+ background: -moz-linear-gradient(top, #dddddd, #bbbbbb);
278
+ text-shadow: 0 1px 0 #ffffff;
279
+ }
280
+ button:hover {
281
+ cursor: pointer;
282
+ background: #dddddd;
283
+ background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc));
284
+ background: -moz-linear-gradient(top, #ffffff, #cccccc);
285
+ }
286
+ button:active {
287
+ background: #dddddd;
288
+ background: -webkit-gradient(linear, left top, left bottom, from(#cccccc), to(#eeeeee));
289
+ background: -moz-linear-gradient(top, #cccccc, #eeeeee);
290
+ color: #000;
291
+ }
292
+ ul.sxs {
293
+ display: block;
294
+ }
295
+ ul.sxs li {
296
+ display: block;
297
+ float: left;
298
+ }
299
+ ul.sxs li a {
300
+ display: block;
301
+ }
302
+ ul.actions {
303
+ margin: 15px 0;
304
+ }
305
+ ul.actions li a {
306
+ color: #CCC;
307
+ padding: 5px 10px;
308
+ border: 1px solid #111;
309
+ text-decoration: none;
310
+ font-weight: normal;
311
+ -webkit-box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.2);
312
+ -moz-box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.2);
313
+ box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.2);
314
+ -webkit-border-radius: 3px;
315
+ -moz-border-radius: 3px;
316
+ border-radius: 3px;
317
+ background: #444444;
318
+ background: -webkit-gradient(linear, left top, left bottom, from(#555555), to(#333333));
319
+ background: -moz-linear-gradient(top, #555555, #333333);
320
+ }
321
+ ul.actions li a:hover {
322
+ color: #FFF;
323
+ text-decoration: none;
324
+ background: #43a8d8;
325
+ background: -webkit-gradient(linear, left top, left bottom, from(#43a8d8), to(#2f7697));
326
+ background: -moz-linear-gradient(top, #43a8d8, #2f7697);
327
+ }
328
+ ul.actions li a:active {
329
+ background: #43a8d8;
330
+ background: -webkit-gradient(linear, left top, left bottom, from(#2f7697), to(#43a8d8));
331
+ background: -moz-linear-gradient(top, #2f7697, #43a8d8);
332
+ }
333
+ ul.actions li a b {
334
+ margin-right: 5px;
335
+ }
336
+ ul.actions li a.add:hover {
337
+ background: #348013;
338
+ background: -webkit-gradient(linear, left top, left bottom, from(#348013), to(#245a0d));
339
+ background: -moz-linear-gradient(top, #348013, #245a0d);
340
+ }
341
+ ul.actions li a.add:active {
342
+ background: #348013;
343
+ background: -webkit-gradient(linear, left top, left bottom, from(#245a0d), to(#348013));
344
+ background: -moz-linear-gradient(top, #245a0d, #348013);
345
+ }
346
+ ul.actions li a.delete:hover {
347
+ background: #eb2020;
348
+ background: -webkit-gradient(linear, left top, left bottom, from(#eb2020), to(#a51616));
349
+ background: -moz-linear-gradient(top, #eb2020, #a51616);
350
+ }
351
+ ul.actions li a.delete:active {
352
+ background: #eb2020;
353
+ background: -webkit-gradient(linear, left top, left bottom, from(#a51616), to(#eb2020));
354
+ background: -moz-linear-gradient(top, #a51616, #eb2020);
355
+ }
356
+ ul.actions li.left a {
357
+ border-right: 0;
358
+ -webkit-border-radius: 0px;
359
+ -moz-border-radius: 0px;
360
+ border-radius: 0px;
361
+ -webkit-border-top-left-radius: 3px;
362
+ -webkit-border-bottom-left-radius: 3px;
363
+ -moz-border-radius-topleft: 3px;
364
+ -moz-border-radius-bottomleft: 3px;
365
+ border-top-left-radius: 3px;
366
+ border-bottom-left-radius: 3px;
367
+ }
368
+ ul.actions li.right a {
369
+ -webkit-border-radius: 0px;
370
+ -moz-border-radius: 0px;
371
+ border-radius: 0px;
372
+ -webkit-border-top-right-radius: 3px;
373
+ -webkit-border-bottom-right-radius: 3px;
374
+ -moz-border-radius-topright: 3px;
375
+ -moz-border-radius-bottomright: 3px;
376
+ border-top-right-radius: 3px;
377
+ border-bottom-right-radius: 3px;
378
+ }
379
+ .pictos {
380
+ font-family: 'Pictos';
381
+ }
382
+ .light {
383
+ font-weight: 300;
384
+ }
385
+ b {
386
+ font-family: 'Pictos';
387
+ }
388
+ div#main {
389
+ position: absolute;
390
+ z-index: 0;
391
+ top: 0;
392
+ right: 0;
393
+ left: 290px;
394
+ bottom: 0;
395
+ }
396
+ div#main div#map {
397
+ width: 100%;
398
+ height: 100%;
399
+ }
400
+ div#main div#loading {
401
+ display: none;
402
+ position: absolute;
403
+ top: 0;
404
+ right: 0;
405
+ width: 100%;
406
+ height: 100%;
407
+ z-index: 9999;
408
+ background: rgba(0, 0, 0, 0.8);
409
+ }
410
+ div#main div#loading img {
411
+ display: block;
412
+ width: auto;
413
+ height: auto;
414
+ position: absolute;
415
+ top: 50%;
416
+ left: 50%;
417
+ }
418
+ div#panels {
419
+ position: absolute;
420
+ z-index: 1;
421
+ top: 0;
422
+ bottom: 0;
423
+ left: 0;
424
+ background: rgba(0, 0, 0, 0.5);
425
+ }
426
+ div.panel {
427
+ width: 250px;
428
+ position: absolute;
429
+ top: 0;
430
+ bottom: 0;
431
+ left: 0;
432
+ padding: 20px;
433
+ background: #222222;
434
+ background: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#111111));
435
+ background: -moz-linear-gradient(top, #333333, #111111);
436
+ }
437
+ div.panel div.panel {
438
+ display: none;
439
+ left: -100%;
440
+ -webkit-box-shadow: 0 0 20px #000000;
441
+ -moz-box-shadow: 0 0 20px #000000;
442
+ box-shadow: 0 0 20px #000000;
443
+ }
444
+ ul.nav {
445
+ margin-bottom: 15px;
446
+ }
447
+ ul.nav li {
448
+ display: block;
449
+ position: relative;
450
+ }
451
+ ul.nav li a {
452
+ display: block;
453
+ position: relative;
454
+ font-size: 18px;
455
+ line-height: 1;
456
+ font-weight: bold;
457
+ padding: 10px 0px;
458
+ border-top: 1px solid #444;
459
+ border-bottom: 1px solid #000;
460
+ text-decoration: none;
461
+ color: #AAA;
462
+ text-shadow: 0 -1px 0 #000000;
463
+ }
464
+ ul.nav li a b {
465
+ font-size: 60%;
466
+ line-height: inherit;
467
+ }
468
+ ul.nav li a b.check {
469
+ font-size: 100%;
470
+ margin-right: 10px;
471
+ color: #444;
472
+ }
473
+ ul.nav li a.active {
474
+ color: #FFF;
475
+ }
476
+ ul.nav li a.active b.check {
477
+ color: #348013;
478
+ text-shadow: 0 0 20px rgba(52, 128, 19, 0.5);
479
+ }
480
+ ul.nav li a:hover {
481
+ color: #FFF;
482
+ text-decoration: none;
483
+ }
484
+ ul.nav li a:hover b.check {
485
+ color: inerhit;
486
+ }
487
+ ul.nav li .mini {
488
+ color: #CCC;
489
+ padding: 5px 10px;
490
+ border: 1px solid #111;
491
+ text-decoration: none;
492
+ font-weight: normal;
493
+ -webkit-box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.2);
494
+ -moz-box-shadow: inset 0 1px 0px rgba(255, 255, 255, 0.2);
495
+ box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.2);
496
+ -webkit-border-radius: 3px;
497
+ -moz-border-radius: 3px;
498
+ border-radius: 3px;
499
+ background: #444444;
500
+ background: -webkit-gradient(linear, left top, left bottom, from(#555555), to(#333333));
501
+ background: -moz-linear-gradient(top, #555555, #333333);
502
+ position: absolute;
503
+ top: 10px;
504
+ right: 0px;
505
+ font-size: 12px;
506
+ line-height: 1;
507
+ padding: 4px 8px;
508
+ }
509
+ ul.nav li .mini:hover {
510
+ color: #FFF;
511
+ text-decoration: none;
512
+ background: #43a8d8;
513
+ background: -webkit-gradient(linear, left top, left bottom, from(#43a8d8), to(#2f7697));
514
+ background: -moz-linear-gradient(top, #43a8d8, #2f7697);
515
+ }
516
+ ul.nav li .mini:active {
517
+ background: #43a8d8;
518
+ background: -webkit-gradient(linear, left top, left bottom, from(#2f7697), to(#43a8d8));
519
+ background: -moz-linear-gradient(top, #2f7697, #43a8d8);
520
+ }
521
+ ul.nav li .mini b {
522
+ margin-right: 5px;
523
+ }
524
+ ul.nav li .mini.add:hover {
525
+ background: #348013;
526
+ background: -webkit-gradient(linear, left top, left bottom, from(#348013), to(#245a0d));
527
+ background: -moz-linear-gradient(top, #348013, #245a0d);
528
+ }
529
+ ul.nav li .mini.add:active {
530
+ background: #348013;
531
+ background: -webkit-gradient(linear, left top, left bottom, from(#245a0d), to(#348013));
532
+ background: -moz-linear-gradient(top, #245a0d, #348013);
533
+ }
534
+ ul.nav li .mini.delete:hover {
535
+ background: #eb2020;
536
+ background: -webkit-gradient(linear, left top, left bottom, from(#eb2020), to(#a51616));
537
+ background: -moz-linear-gradient(top, #eb2020, #a51616);
538
+ }
539
+ ul.nav li .mini.delete:active {
540
+ background: #eb2020;
541
+ background: -webkit-gradient(linear, left top, left bottom, from(#a51616), to(#eb2020));
542
+ background: -moz-linear-gradient(top, #a51616, #eb2020);
543
+ }
544
+ ul.overlays {
545
+ margin-bottom: 10px;
546
+ padding: 10px 0;
547
+ border-top: 1px solid #444;
548
+ }
549
+ div#menu div#header {
550
+ margin-bottom: 10px;
551
+ text-shadow: 0 -1px 0 #000000;
552
+ }
553
+ div#menu div#header h1 {
554
+ margin-bottom: 0;
555
+ }
556
+ div#menu ul#main-menu li a {
557
+ padding: 15px 0px 15px;
558
+ padding-left: 45px;
559
+ }
560
+ div#menu ul#main-menu li a b {
561
+ display: block;
562
+ font-size: 22px;
563
+ color: #555;
564
+ border: 2px solid #555;
565
+ -webkit-border-radius: 4px;
566
+ -moz-border-radius: 4px;
567
+ border-radius: 4px;
568
+ padding: 2px 2px 1px;
569
+ position: absolute;
570
+ top: 10px;
571
+ left: 0;
572
+ }
573
+ div#menu ul#main-menu li a.tucked {
574
+ display: none;
575
+ }
576
+ div#menu.inactive {
577
+ width: 50px;
578
+ }
579
+ div#menu.inactive div#header {
580
+ display: none;
581
+ }
582
+ div#menu.inactive ul#main-menu li a {
583
+ width: 50px;
584
+ height: 60px;
585
+ padding: 0;
586
+ }
587
+ div#menu.inactive ul#main-menu li a span {
588
+ display: none;
589
+ }
590
+ div#menu.inactive ul#main-menu li a b {
591
+ font-size: 31px;
592
+ padding: 4px 4px 3px;
593
+ left: 3px;
594
+ background: #222222;
595
+ background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.5)));
596
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
597
+ }
598
+ div#menu.inactive ul#main-menu li a b:hover {
599
+ color: #888;
600
+ border-color: #888;
601
+ background: #222222;
602
+ background: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#222222));
603
+ background: -moz-linear-gradient(top, #333333, #222222);
604
+ }
605
+ div#menu.inactive ul#main-menu li a.tucked {
606
+ display: block;
607
+ }
608
+ form label {
609
+ display: block;
610
+ margin-bottom: 5px;
611
+ font-weight: bold;
612
+ color: #CCC;
613
+ }
614
+ form input {
615
+ display: block;
616
+ width: 240px;
617
+ padding: 5px;
618
+ font: inherit;
619
+ border: 1px solid #CCC;
620
+ margin-bottom: 10px;
621
+ background: #ffffff;
622
+ background: -webkit-gradient(linear, left top, left bottom, from(#dddddd), to(#ffffff));
623
+ background: -moz-linear-gradient(top, #dddddd, #ffffff);
624
+ }
625
+ div.flyout {
626
+ display: none;
627
+ position: absolute;
628
+ top: 20px;
629
+ left: 100%;
630
+ padding: 20px;
631
+ border: 1px solid rgba(0, 0, 0, 0.9);
632
+ background: #000000;
633
+ background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.75)), to(rgba(0, 0, 0, 0.9)));
634
+ background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.9));
635
+ }
636
+ div.flyout h3 {
637
+ color: #FFF;
638
+ }