semantic-ui-sass 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +51 -0
  6. data/Rakefile +5 -0
  7. data/app/assets/fonts/semantic-ui/basic.icons.eot +0 -0
  8. data/app/assets/fonts/semantic-ui/basic.icons.svg +450 -0
  9. data/app/assets/fonts/semantic-ui/basic.icons.ttf +0 -0
  10. data/app/assets/fonts/semantic-ui/basic.icons.woff +0 -0
  11. data/app/assets/fonts/semantic-ui/icons.eot +0 -0
  12. data/app/assets/fonts/semantic-ui/icons.otf +0 -0
  13. data/app/assets/fonts/semantic-ui/icons.svg +399 -0
  14. data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
  15. data/app/assets/fonts/semantic-ui/icons.woff +0 -0
  16. data/app/assets/images/semantic-ui/loader-large-inverted.gif +0 -0
  17. data/app/assets/images/semantic-ui/loader-large.gif +0 -0
  18. data/app/assets/images/semantic-ui/loader-medium-inverted.gif +0 -0
  19. data/app/assets/images/semantic-ui/loader-medium.gif +0 -0
  20. data/app/assets/images/semantic-ui/loader-mini-inverted.gif +0 -0
  21. data/app/assets/images/semantic-ui/loader-mini.gif +0 -0
  22. data/app/assets/images/semantic-ui/loader-small-inverted.gif +0 -0
  23. data/app/assets/images/semantic-ui/loader-small.gif +0 -0
  24. data/app/assets/javascripts/semantic-ui.js +20 -0
  25. data/app/assets/javascripts/semantic-ui/accordion.js +419 -0
  26. data/app/assets/javascripts/semantic-ui/behavior/api.js +638 -0
  27. data/app/assets/javascripts/semantic-ui/behavior/colorize.js +270 -0
  28. data/app/assets/javascripts/semantic-ui/behavior/form.js +702 -0
  29. data/app/assets/javascripts/semantic-ui/behavior/state.js +725 -0
  30. data/app/assets/javascripts/semantic-ui/chatroom.js +769 -0
  31. data/app/assets/javascripts/semantic-ui/checkbox.js +344 -0
  32. data/app/assets/javascripts/semantic-ui/dimmer.js +564 -0
  33. data/app/assets/javascripts/semantic-ui/dropdown.js +724 -0
  34. data/app/assets/javascripts/semantic-ui/modal.js +553 -0
  35. data/app/assets/javascripts/semantic-ui/nag.js +545 -0
  36. data/app/assets/javascripts/semantic-ui/popup.js +727 -0
  37. data/app/assets/javascripts/semantic-ui/rating.js +403 -0
  38. data/app/assets/javascripts/semantic-ui/search.js +772 -0
  39. data/app/assets/javascripts/semantic-ui/shape.js +778 -0
  40. data/app/assets/javascripts/semantic-ui/sidebar.js +490 -0
  41. data/app/assets/javascripts/semantic-ui/tab.js +689 -0
  42. data/app/assets/javascripts/semantic-ui/transition.js +654 -0
  43. data/app/assets/javascripts/semantic-ui/video.js +457 -0
  44. data/app/assets/stylesheets/semantic-ui.scss +4 -0
  45. data/app/assets/stylesheets/semantic-ui/collections/_all.scss +6 -0
  46. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +77 -0
  47. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +569 -0
  48. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +643 -0
  49. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +1767 -0
  50. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +347 -0
  51. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +524 -0
  52. data/app/assets/stylesheets/semantic-ui/elements/_all.scss +12 -0
  53. data/app/assets/stylesheets/semantic-ui/elements/_basic.icon.scss +479 -0
  54. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1187 -0
  55. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +199 -0
  56. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +342 -0
  57. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +772 -0
  58. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +181 -0
  59. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +338 -0
  60. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +827 -0
  61. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +185 -0
  62. data/app/assets/stylesheets/semantic-ui/elements/_progress.scss +352 -0
  63. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +464 -0
  64. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +293 -0
  65. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +199 -0
  66. data/app/assets/stylesheets/semantic-ui/modules/_all.scss +16 -0
  67. data/app/assets/stylesheets/semantic-ui/modules/_chatroom.scss +281 -0
  68. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +481 -0
  69. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +236 -0
  70. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +548 -0
  71. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +217 -0
  72. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +173 -0
  73. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +255 -0
  74. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +179 -0
  75. data/app/assets/stylesheets/semantic-ui/modules/_reveal.scss +365 -0
  76. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +273 -0
  77. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +113 -0
  78. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +150 -0
  79. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +63 -0
  80. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1096 -0
  81. data/app/assets/stylesheets/semantic-ui/modules/_video.scss +98 -0
  82. data/app/assets/stylesheets/semantic-ui/views/_all.scss +5 -0
  83. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +221 -0
  84. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +152 -0
  85. data/app/assets/stylesheets/semantic-ui/views/_item.scss +651 -0
  86. data/app/assets/stylesheets/semantic-ui/views/_list.scss +555 -0
  87. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +27 -0
  88. data/lib/semantic/ui/sass.rb +10 -0
  89. data/lib/semantic/ui/sass/engine.rb +13 -0
  90. data/lib/semantic/ui/sass/version.rb +8 -0
  91. data/semantic-ui-sass.gemspec +24 -0
  92. data/tasks/converter.rb +237 -0
  93. metadata +177 -0
@@ -0,0 +1,654 @@
1
+ /*
2
+ * # Semantic - Transition
3
+ * http://github.com/jlukic/semantic-ui/
4
+ *
5
+ *
6
+ * Copyright 2013 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+
12
+ ;(function ( $, window, document, undefined ) {
13
+
14
+ $.fn.transition = function() {
15
+ var
16
+ $allModules = $(this),
17
+ moduleSelector = $allModules.selector || '',
18
+
19
+ time = new Date().getTime(),
20
+ performance = [],
21
+
22
+ moduleArguments = arguments,
23
+ query = moduleArguments[0],
24
+ queryArguments = [].slice.call(arguments, 1),
25
+ methodInvoked = (typeof query === 'string'),
26
+
27
+ requestAnimationFrame = window.requestAnimationFrame
28
+ || window.mozRequestAnimationFrame
29
+ || window.webkitRequestAnimationFrame
30
+ || window.msRequestAnimationFrame
31
+ || function(callback) { setTimeout(callback, 0); },
32
+
33
+ invokedResponse
34
+ ;
35
+ $allModules
36
+ .each(function() {
37
+ var
38
+ $module = $(this),
39
+ element = this,
40
+
41
+ // set at run time
42
+ settings,
43
+ instance,
44
+
45
+ error,
46
+ className,
47
+ metadata,
48
+ animationEnd,
49
+ animationName,
50
+
51
+ namespace,
52
+ moduleNamespace,
53
+ module
54
+ ;
55
+
56
+ module = {
57
+
58
+ initialize: function() {
59
+ // get settings
60
+ settings = module.get.settings.apply(element, moduleArguments);
61
+ module.verbose('Converted arguments into settings object', settings);
62
+
63
+ // set shortcuts
64
+ error = settings.error;
65
+ className = settings.className;
66
+ namespace = settings.namespace;
67
+ metadata = settings.metadata;
68
+ moduleNamespace = 'module-' + namespace;
69
+
70
+ animationEnd = module.get.animationEvent();
71
+ animationName = module.get.animationName();
72
+
73
+ instance = $module.data(moduleNamespace);
74
+
75
+ if(instance === undefined) {
76
+ module.instantiate();
77
+ }
78
+ if(methodInvoked) {
79
+ methodInvoked = module.invoke(query);
80
+ }
81
+ // no internal method was found matching query or query not made
82
+ if(methodInvoked === false) {
83
+ module.animate();
84
+ }
85
+ },
86
+
87
+ instantiate: function() {
88
+ module.verbose('Storing instance of module', module);
89
+ instance = module;
90
+ $module
91
+ .data(moduleNamespace, instance)
92
+ ;
93
+ },
94
+
95
+ destroy: function() {
96
+ module.verbose('Destroying previous module for', element);
97
+ $module
98
+ .removeData(moduleNamespace)
99
+ ;
100
+ },
101
+
102
+ animate: function(overrideSettings) {
103
+ settings = overrideSettings || settings;
104
+ module.debug('Preparing animation', settings.animation);
105
+ if(module.is.animating()) {
106
+ if(settings.queue) {
107
+ module.queue(settings.animation);
108
+ }
109
+ return false;
110
+ }
111
+ module.save.conditions();
112
+ module.set.duration(settings.duration);
113
+ module.set.animating();
114
+ module.repaint();
115
+ $module
116
+ .addClass(className.transition)
117
+ .addClass(settings.animation)
118
+ .one(animationEnd, module.complete)
119
+ ;
120
+ if(!module.has.direction() && module.can.transition()) {
121
+ module.set.direction();
122
+ }
123
+ if(!module.can.animate()) {
124
+ module.restore.conditions();
125
+ module.error(error.noAnimation);
126
+ return false;
127
+ }
128
+ module.show();
129
+ module.debug('Starting tween', settings.animation, $module.attr('class'));
130
+ },
131
+
132
+ queue: function(animation) {
133
+ module.debug('Queueing animation of', animation);
134
+ instance.queuing = true;
135
+ $module
136
+ .one(animationEnd, function() {
137
+ instance.queuing = false;
138
+ module.animate.apply(this, settings);
139
+ })
140
+ ;
141
+ },
142
+
143
+ complete: function () {
144
+ module.verbose('CSS animation complete', settings.animation);
145
+ if(!module.is.looping()) {
146
+ if($module.hasClass(className.outward)) {
147
+ module.restore.conditions();
148
+ module.hide();
149
+ }
150
+ else if($module.hasClass(className.inward)) {
151
+ module.restore.conditions();
152
+ module.show();
153
+ }
154
+ else {
155
+ module.restore.conditions();
156
+ }
157
+ module.remove.animating();
158
+ }
159
+ $.proxy(settings.complete, this)();
160
+ },
161
+
162
+ repaint: function(fakeAssignment) {
163
+ module.verbose('Forcing repaint event');
164
+ fakeAssignment = element.offsetWidth;
165
+ },
166
+
167
+ has: {
168
+ direction: function(animation) {
169
+ animation = animation || settings.animation;
170
+ if( $module.hasClass(className.inward) || $module.hasClass(className.outward) ) {
171
+ return true;
172
+ }
173
+ }
174
+ },
175
+
176
+ set: {
177
+
178
+ animating: function() {
179
+ $module.addClass(className.animating);
180
+ },
181
+
182
+ direction: function() {
183
+ if($module.is(':visible')) {
184
+ module.debug('Automatically determining the direction of animation', 'Outward');
185
+ $module
186
+ .addClass(className.outward)
187
+ .removeClass(className.inward)
188
+ ;
189
+ }
190
+ else {
191
+ module.debug('Automatically determining the direction of animation', 'Inward');
192
+ $module
193
+ .addClass(className.inward)
194
+ .removeClass(className.outward)
195
+ ;
196
+ }
197
+ },
198
+
199
+ looping: function() {
200
+ module.debug('Transition set to loop');
201
+ $module
202
+ .addClass(className.looping)
203
+ ;
204
+ },
205
+
206
+ duration: function(duration) {
207
+ duration = duration || settings.duration;
208
+ duration = (typeof duration == 'number')
209
+ ? duration + 'ms'
210
+ : duration
211
+ ;
212
+ module.verbose('Setting animation duration', duration);
213
+ $module
214
+ .css({
215
+ '-webkit-animation-duration': duration,
216
+ '-moz-animation-duration': duration,
217
+ '-ms-animation-duration': duration,
218
+ '-o-animation-duration': duration,
219
+ 'animation-duration': duration
220
+ })
221
+ ;
222
+ }
223
+ },
224
+
225
+ save: {
226
+ conditions: function() {
227
+ module.cache = {
228
+ className : $module.attr('class'),
229
+ style : $module.attr('style')
230
+ };
231
+ module.verbose('Saving original attributes', module.cache);
232
+ }
233
+ },
234
+
235
+ restore: {
236
+ conditions: function() {
237
+ if(typeof module.cache === undefined) {
238
+ module.error(error.cache);
239
+ return false;
240
+ }
241
+ if(module.cache.className) {
242
+ $module.attr('class', module.cache.className);
243
+ }
244
+ else {
245
+ $module.removeAttr('class');
246
+ }
247
+ if(module.cache.style) {
248
+ $module.attr('style', module.cache.style);
249
+ }
250
+ else {
251
+ $module.removeAttr('style');
252
+ }
253
+ if(module.is.looping()) {
254
+ module.remove.looping();
255
+ }
256
+ module.verbose('Restoring original attributes', module.cache);
257
+ }
258
+ },
259
+
260
+ remove: {
261
+
262
+ animating: function() {
263
+ $module.removeClass(className.animating);
264
+ },
265
+
266
+ looping: function() {
267
+ module.debug('Transitions are no longer looping');
268
+ $module
269
+ .removeClass(className.looping)
270
+ ;
271
+ module.repaint();
272
+ }
273
+
274
+ },
275
+
276
+ get: {
277
+
278
+ settings: function(animation, duration, complete) {
279
+ // single settings object
280
+ if($.isPlainObject(animation)) {
281
+ return $.extend(true, {}, $.fn.transition.settings, animation);
282
+ }
283
+ // all arguments provided
284
+ else if(typeof complete == 'function') {
285
+ return $.extend(true, {}, $.fn.transition.settings, {
286
+ animation : animation,
287
+ complete : complete,
288
+ duration : duration
289
+ });
290
+ }
291
+ // only duration provided
292
+ else if(typeof duration == 'string' || typeof duration == 'number') {
293
+ return $.extend(true, {}, $.fn.transition.settings, {
294
+ animation : animation,
295
+ duration : duration
296
+ });
297
+ }
298
+ // duration is actually settings object
299
+ else if(typeof duration == 'object') {
300
+ return $.extend(true, {}, $.fn.transition.settings, duration, {
301
+ animation : animation
302
+ });
303
+ }
304
+ // duration is actually callback
305
+ else if(typeof duration == 'function') {
306
+ return $.extend(true, {}, $.fn.transition.settings, {
307
+ animation : animation,
308
+ complete : duration
309
+ });
310
+ }
311
+ // only animation provided
312
+ else {
313
+ return $.extend(true, {}, $.fn.transition.settings, {
314
+ animation : animation
315
+ });
316
+ }
317
+ return $.fn.transition.settings;
318
+ },
319
+
320
+ animationName: function() {
321
+ var
322
+ element = document.createElement('div'),
323
+ animations = {
324
+ 'animation' :'animationName',
325
+ 'OAnimation' :'oAnimationName',
326
+ 'MozAnimation' :'mozAnimationName',
327
+ 'WebkitAnimation' :'webkitAnimationName'
328
+ },
329
+ animation
330
+ ;
331
+ for(animation in animations){
332
+ if( element.style[animation] !== undefined ){
333
+ module.verbose('Determining animation vendor name property', animations[animation]);
334
+ return animations[animation];
335
+ }
336
+ }
337
+ return false;
338
+ },
339
+
340
+ animationEvent: function() {
341
+ var
342
+ element = document.createElement('div'),
343
+ animations = {
344
+ 'animation' :'animationend',
345
+ 'OAnimation' :'oAnimationEnd',
346
+ 'MozAnimation' :'mozAnimationEnd',
347
+ 'WebkitAnimation' :'webkitAnimationEnd'
348
+ },
349
+ animation
350
+ ;
351
+ for(animation in animations){
352
+ if( element.style[animation] !== undefined ){
353
+ module.verbose('Determining animation vendor end event', animations[animation]);
354
+ return animations[animation];
355
+ }
356
+ }
357
+ return false;
358
+ }
359
+
360
+ },
361
+
362
+ can: {
363
+ animate: function() {
364
+ if($module.css(animationName) !== 'none') {
365
+ module.debug('CSS definition found');
366
+ return true;
367
+ }
368
+ else {
369
+ module.debug('Unable to find css definition');
370
+ return false;
371
+ }
372
+ },
373
+ transition: function() {
374
+ var
375
+ $clone = $('<div>').addClass( $module.attr('class') ).appendTo($('body')),
376
+ currentAnimation = $clone.css(animationName),
377
+ inAnimation = $clone.addClass(className.inward).css(animationName)
378
+ ;
379
+ if(currentAnimation != inAnimation) {
380
+ module.debug('In/out transitions exist');
381
+ $clone.remove();
382
+ return true;
383
+ }
384
+ else {
385
+ module.debug('Static animation found');
386
+ $clone.remove();
387
+ return false;
388
+ }
389
+ }
390
+ },
391
+
392
+ is: {
393
+ animating: function() {
394
+ return $module.hasClass(className.animating);
395
+ },
396
+ looping: function() {
397
+ return $module.hasClass(className.looping);
398
+ },
399
+ visible: function() {
400
+ return $module.is(':visible');
401
+ }
402
+ },
403
+
404
+ hide: function() {
405
+ module.verbose('Hiding element');
406
+ $module
407
+ .removeClass(className.visible)
408
+ .addClass(className.transition)
409
+ .addClass(className.hidden)
410
+ ;
411
+ module.repaint();
412
+ },
413
+ show: function() {
414
+ module.verbose('Showing element');
415
+ $module
416
+ .removeClass(className.hidden)
417
+ .addClass(className.transition)
418
+ .addClass(className.visible)
419
+ ;
420
+ module.repaint();
421
+ },
422
+
423
+ start: function() {
424
+ module.verbose('Starting animation');
425
+ $module.removeClass(className.disabled);
426
+ },
427
+
428
+ stop: function() {
429
+ module.debug('Stopping animation');
430
+ $module.addClass(className.disabled);
431
+ },
432
+
433
+ toggle: function() {
434
+ module.debug('Toggling play status');
435
+ $module.toggleClass(className.disabled);
436
+ },
437
+
438
+ setting: function(name, value) {
439
+ if(value !== undefined) {
440
+ if( $.isPlainObject(name) ) {
441
+ $.extend(true, settings, name);
442
+ }
443
+ else {
444
+ settings[name] = value;
445
+ }
446
+ }
447
+ else {
448
+ return settings[name];
449
+ }
450
+ },
451
+ internal: function(name, value) {
452
+ if(value !== undefined) {
453
+ if( $.isPlainObject(name) ) {
454
+ $.extend(true, module, name);
455
+ }
456
+ else {
457
+ module[name] = value;
458
+ }
459
+ }
460
+ else {
461
+ return module[name];
462
+ }
463
+ },
464
+ debug: function() {
465
+ if(settings.debug) {
466
+ if(settings.performance) {
467
+ module.performance.log(arguments);
468
+ }
469
+ else {
470
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
471
+ module.debug.apply(console, arguments);
472
+ }
473
+ }
474
+ },
475
+ verbose: function() {
476
+ if(settings.verbose && settings.debug) {
477
+ if(settings.performance) {
478
+ module.performance.log(arguments);
479
+ }
480
+ else {
481
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
482
+ module.verbose.apply(console, arguments);
483
+ }
484
+ }
485
+ },
486
+ error: function() {
487
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
488
+ module.error.apply(console, arguments);
489
+ },
490
+ performance: {
491
+ log: function(message) {
492
+ var
493
+ currentTime,
494
+ executionTime,
495
+ previousTime
496
+ ;
497
+ if(settings.performance) {
498
+ currentTime = new Date().getTime();
499
+ previousTime = time || currentTime;
500
+ executionTime = currentTime - previousTime;
501
+ time = currentTime;
502
+ performance.push({
503
+ 'Element' : element,
504
+ 'Name' : message[0],
505
+ 'Arguments' : [].slice.call(message, 1) || '',
506
+ 'Execution Time' : executionTime
507
+ });
508
+ }
509
+ clearTimeout(module.performance.timer);
510
+ module.performance.timer = setTimeout(module.performance.display, 100);
511
+ },
512
+ display: function() {
513
+ var
514
+ title = settings.name + ':',
515
+ totalTime = 0
516
+ ;
517
+ time = false;
518
+ clearTimeout(module.performance.timer);
519
+ $.each(performance, function(index, data) {
520
+ totalTime += data['Execution Time'];
521
+ });
522
+ title += ' ' + totalTime + 'ms';
523
+ if(moduleSelector) {
524
+ title += ' \'' + moduleSelector + '\'';
525
+ }
526
+ if($allModules.size() > 1) {
527
+ title += ' ' + '(' + $allModules.size() + ')';
528
+ }
529
+ if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
530
+ console.groupCollapsed(title);
531
+ if(console.table) {
532
+ console.table(performance);
533
+ }
534
+ else {
535
+ $.each(performance, function(index, data) {
536
+ console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
537
+ });
538
+ }
539
+ console.groupEnd();
540
+ }
541
+ performance = [];
542
+ }
543
+ },
544
+ invoke: function(query, passedArguments, context) {
545
+ var
546
+ maxDepth,
547
+ found,
548
+ response
549
+ ;
550
+ passedArguments = passedArguments || queryArguments;
551
+ context = element || context;
552
+ if(typeof query == 'string' && instance !== undefined) {
553
+ query = query.split(/[\. ]/);
554
+ maxDepth = query.length - 1;
555
+ $.each(query, function(depth, value) {
556
+ var camelCaseValue = (depth != maxDepth)
557
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
558
+ : query
559
+ ;
560
+ if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
561
+ instance = instance[value];
562
+ }
563
+ else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
564
+ instance = instance[camelCaseValue];
565
+ }
566
+ else if( instance[value] !== undefined ) {
567
+ found = instance[value];
568
+ return false;
569
+ }
570
+ else if( instance[camelCaseValue] !== undefined ) {
571
+ found = instance[camelCaseValue];
572
+ return false;
573
+ }
574
+ else {
575
+ return false;
576
+ }
577
+ });
578
+ }
579
+ if ( $.isFunction( found ) ) {
580
+ response = found.apply(context, passedArguments);
581
+ }
582
+ else if(found !== undefined) {
583
+ response = found;
584
+ }
585
+ if($.isArray(invokedResponse)) {
586
+ invokedResponse.push(response);
587
+ }
588
+ else if(typeof invokedResponse == 'string') {
589
+ invokedResponse = [invokedResponse, response];
590
+ }
591
+ else if(response !== undefined) {
592
+ invokedResponse = response;
593
+ }
594
+ return found || false;
595
+ }
596
+ };
597
+ module.initialize();
598
+ })
599
+ ;
600
+ return (invokedResponse !== undefined)
601
+ ? invokedResponse
602
+ : this
603
+ ;
604
+ };
605
+
606
+ $.fn.transition.settings = {
607
+
608
+ // module info
609
+ name : 'Transition',
610
+
611
+ // debug content outputted to console
612
+ debug : true,
613
+
614
+ // verbose debug output
615
+ verbose : true,
616
+
617
+ // performance data output
618
+ performance : true,
619
+
620
+ // event namespace
621
+ namespace : 'transition',
622
+
623
+ // animation complete event
624
+ complete : function() {},
625
+
626
+ // animation duration
627
+ animation : 'fade',
628
+ duration : '700ms',
629
+
630
+ // queue up animations
631
+ queue : true,
632
+
633
+ className : {
634
+ transition : 'ui transition',
635
+ animating : 'animating',
636
+ looping : 'looping',
637
+ loading : 'loading',
638
+ disabled : 'disabled',
639
+ hidden : 'hidden',
640
+ visible : 'visible',
641
+ inward : 'in',
642
+ outward : 'out'
643
+ },
644
+
645
+ // possible errors
646
+ error: {
647
+ noAnimation : 'There is no css animation matching the one you specified.',
648
+ method : 'The method you called is not defined'
649
+ }
650
+
651
+ };
652
+
653
+
654
+ })( jQuery, window , document );