fanforce-plugin-factory 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +21 -0
  3. data/Gemfile +2 -0
  4. data/README.md +218 -0
  5. data/Rakefile +16 -0
  6. data/fanforce-plugin-factory.gemspec +42 -0
  7. data/lib/fanforce/plugin_factory.rake +71 -0
  8. data/lib/fanforce/plugin_factory.rb +60 -0
  9. data/lib/fanforce/plugin_factory/_init_sinatra.rb +53 -0
  10. data/lib/fanforce/plugin_factory/assets/css/add_edit_initiative.scss +1 -0
  11. data/lib/fanforce/plugin_factory/assets/css/add_source.scss +1 -0
  12. data/lib/fanforce/plugin_factory/assets/css/engage.scss +1 -0
  13. data/lib/fanforce/plugin_factory/assets/css/new_message.scss +1 -0
  14. data/lib/fanforce/plugin_factory/assets/css/promotional.scss +1 -0
  15. data/lib/fanforce/plugin_factory/assets/css/source_details.scss +1 -0
  16. data/lib/fanforce/plugin_factory/assets/img/icon-16.png +0 -0
  17. data/lib/fanforce/plugin_factory/assets/img/icon-32.png +0 -0
  18. data/lib/fanforce/plugin_factory/assets/img/icon-42.png +0 -0
  19. data/lib/fanforce/plugin_factory/assets/js/add_edit_initiative.js +1 -0
  20. data/lib/fanforce/plugin_factory/assets/js/add_source.js +1 -0
  21. data/lib/fanforce/plugin_factory/assets/js/add_source_popup.js +0 -0
  22. data/lib/fanforce/plugin_factory/assets/js/engage.js +1 -0
  23. data/lib/fanforce/plugin_factory/assets/js/new_message.js +1 -0
  24. data/lib/fanforce/plugin_factory/assets/js/promotional.js +2 -0
  25. data/lib/fanforce/plugin_factory/assets/js/source_details.js +0 -0
  26. data/lib/fanforce/plugin_factory/assets/lib/common/_mixins.scss +97 -0
  27. data/lib/fanforce/plugin_factory/assets/lib/common/_module-error.scss +11 -0
  28. data/lib/fanforce/plugin_factory/assets/lib/common/_module-search-to-add-initiative.scss +66 -0
  29. data/lib/fanforce/plugin_factory/assets/lib/common/_module-video-thumbnail.scss +15 -0
  30. data/lib/fanforce/plugin_factory/assets/lib/common/_tags.scss +83 -0
  31. data/lib/fanforce/plugin_factory/assets/lib/common/_variables.scss +27 -0
  32. data/lib/fanforce/plugin_factory/assets/lib/common/broadcaster-divider-arrow.png +0 -0
  33. data/lib/fanforce/plugin_factory/assets/lib/common/icons/dropdown-arrow.png +0 -0
  34. data/lib/fanforce/plugin_factory/assets/lib/common/icons/initiative.png +0 -0
  35. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_add_edit_initiative.scss +23 -0
  36. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_add_source.scss +17 -0
  37. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_engage.scss +39 -0
  38. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_new_message.scss +26 -0
  39. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_promotional.scss +26 -0
  40. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_source_details.scss +16 -0
  41. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/add_edit_initiative.js +6 -0
  42. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/add_source.js +6 -0
  43. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/engage.js +0 -0
  44. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/new_message.js +5 -0
  45. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/promotional.js +1 -0
  46. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/source_details.js +5 -0
  47. data/lib/fanforce/plugin_factory/assets/lib/common/module-error/arrow-left.png +0 -0
  48. data/lib/fanforce/plugin_factory/assets/lib/common/module-error/icon-error.png +0 -0
  49. data/lib/fanforce/plugin_factory/assets/lib/common/module-search-to-add-initiative/icon-search.png +0 -0
  50. data/lib/fanforce/plugin_factory/assets/lib/common/module-search-to-add-initiative/spinner.gif +0 -0
  51. data/lib/fanforce/plugin_factory/assets/lib/common/module-search-to-add-initiative/sprite-arrows.png +0 -0
  52. data/lib/fanforce/plugin_factory/assets/lib/common/module-video-thumbnail/icon-play.png +0 -0
  53. data/lib/fanforce/plugin_factory/assets/lib/promotional/fanforce_bg.png +0 -0
  54. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-42.png +0 -0
  55. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-behavior.png +0 -0
  56. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-broadcaster.png +0 -0
  57. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-data-connector.png +0 -0
  58. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-data-processor.png +0 -0
  59. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-identifier.png +0 -0
  60. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-datepicker/datepicker.css +7 -0
  61. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-datepicker/datepicker.js +454 -0
  62. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-timepicker/timepicker.css +82 -0
  63. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-timepicker/timepicker.js +803 -0
  64. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/css/bootstrap.css +6103 -0
  65. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/css/bootstrap.min.css +868 -0
  66. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-white.png +0 -0
  67. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings.png +0 -0
  68. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/js/bootstrap.js +2170 -0
  69. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/js/bootstrap.min.js +7 -0
  70. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen-sprite.png +0 -0
  71. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen.jquery.min.js +10 -0
  72. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen.scss +399 -0
  73. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/css/font-awesome.css +540 -0
  74. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/css/font-awesome.min.css +33 -0
  75. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/font/FontAwesome.otf +0 -0
  76. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/font/fontawesome-webfont.eot +0 -0
  77. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/font/fontawesome-webfont.svg +284 -0
  78. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/font/fontawesome-webfont.ttf +0 -0
  79. data/lib/fanforce/plugin_factory/assets/lib/vendors/font-awesome/font/fontawesome-webfont.woff +0 -0
  80. data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery.inputHint.js +154 -0
  81. data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery.tmpl.debug.js +484 -0
  82. data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.custom-handlers.coffee +131 -0
  83. data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.debug.js +3223 -0
  84. data/lib/fanforce/plugin_factory/assets/lib/vendors/underscore/underscore.debug.js +999 -0
  85. data/lib/fanforce/plugin_factory/config/_error_handling.rb +26 -0
  86. data/lib/fanforce/plugin_factory/config/helpers/assets.rb +23 -0
  87. data/lib/fanforce/plugin_factory/config/helpers/fanforce.rb +21 -0
  88. data/lib/fanforce/plugin_factory/config/helpers/json.rb +10 -0
  89. data/lib/fanforce/plugin_factory/config/sinatra_config.rb +65 -0
  90. data/lib/fanforce/plugin_factory/initializers/ff_globals.rb +72 -0
  91. data/lib/fanforce/plugin_factory/layouts/add_edit_initiative.haml +14 -0
  92. data/lib/fanforce/plugin_factory/layouts/add_source.haml +14 -0
  93. data/lib/fanforce/plugin_factory/layouts/engage.haml +27 -0
  94. data/lib/fanforce/plugin_factory/layouts/new_message.haml +14 -0
  95. data/lib/fanforce/plugin_factory/layouts/promotional.haml +14 -0
  96. data/lib/fanforce/plugin_factory/layouts/source_details.haml +14 -0
  97. data/lib/fanforce/plugin_factory/public/favicon.ico +0 -0
  98. data/lib/fanforce/plugin_factory/routes.rb +35 -0
  99. data/lib/fanforce/plugin_factory/routes_behavior.rb +28 -0
  100. data/lib/fanforce/plugin_factory/routes_broadcaster.rb +9 -0
  101. data/lib/fanforce/plugin_factory/routes_data_connector.rb +21 -0
  102. data/lib/fanforce/plugin_factory/sprockets/compiler.rb +107 -0
  103. data/lib/fanforce/plugin_factory/sprockets/hacks.rb +43 -0
  104. data/lib/fanforce/plugin_factory/version.rb +5 -0
  105. data/lib/fanforce/plugin_factory/views/add_initiative.haml +1 -0
  106. data/lib/fanforce/plugin_factory/views/add_source.haml +1 -0
  107. data/lib/fanforce/plugin_factory/views/close_popup.haml +8 -0
  108. data/lib/fanforce/plugin_factory/views/edit_initiative.haml +1 -0
  109. data/lib/fanforce/plugin_factory/views/engage.haml +1 -0
  110. data/lib/fanforce/plugin_factory/views/index.haml +38 -0
  111. data/lib/fanforce/plugin_factory/views/new_message.haml +1 -0
  112. data/lib/fanforce/plugin_factory/views/source_details.haml +1 -0
  113. data/lib/fanforce/plugin_factory/views/widget_tmpls.haml +1 -0
  114. data/lib/fanforce/plugin_factory_workers.rb +1 -0
  115. metadata +436 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bootstrap.js by @fat & @mdo
3
+ * plugins: bootstrap-transition.js, bootstrap-modal.js, bootstrap-dropdown.js, bootstrap-scrollspy.js, bootstrap-tab.js, bootstrap-tooltip.js, bootstrap-popover.js, bootstrap-affix.js, bootstrap-alert.js, bootstrap-button.js, bootstrap-collapse.js, bootstrap-carousel.js, bootstrap-typeahead.js
4
+ * Copyright 2012 Twitter, Inc.
5
+ * http://www.apache.org/licenses/LICENSE-2.0.txt
6
+ */
7
+ !function(a){a(function(){a.support.transition=function(){var a=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c;for(c in b)if(a.style[c]!==undefined)return b[c]}();return a&&{end:a}}()})}(window.jQuery),!function(a){var b=function(b,c){this.options=c,this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this,c=a.Event("show");this.$element.trigger(c);if(this.isShown||c.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.backdrop(function(){var c=a.support.transition&&b.$element.hasClass("fade");b.$element.parent().length||b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in").attr("aria-hidden",!1),b.enforceFocus(),c?b.$element.one(a.support.transition.end,function(){b.$element.focus().trigger("shown")}):b.$element.focus().trigger("shown")})},hide:function(b){b&&b.preventDefault();var c=this;b=a.Event("hide"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,this.escape(),a(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),a.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},enforceFocus:function(){var b=this;a(document).on("focusin.modal",function(a){b.$element[0]!==a.target&&!b.$element.has(a.target).length&&b.$element.focus()})},escape:function(){var a=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(b){b.which==27&&a.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),b.hideModal()},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),b.hideModal()})},hideModal:function(a){this.$element.hide().trigger("hidden"),this.backdrop()},removeBackdrop:function(){this.$backdrop.remove(),this.$backdrop=null},backdrop:function(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.$backdrop.click(this.options.backdrop=="static"?a.proxy(this.$element[0].focus,this.$element[0]):a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(this.removeBackdrop,this)):this.removeBackdrop()):b&&b()}};var c=a.fn.modal;a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),typeof c=="object"&&c);e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f).one("hide",function(){c.focus()})})}(window.jQuery),!function(a){function d(){a(b).each(function(){e(a(this)).removeClass("open")})}function e(b){var c=b.attr("data-target"),d;return c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,"")),d=a(c),d.length||(d=b.parent()),d}var b="[data-toggle=dropdown]",c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),f,g;if(c.is(".disabled, :disabled"))return;return f=e(c),g=f.hasClass("open"),d(),g||f.toggleClass("open"),c.focus(),!1},keydown:function(b){var c,d,f,g,h,i;if(!/(38|40|27)/.test(b.keyCode))return;c=a(this),b.preventDefault(),b.stopPropagation();if(c.is(".disabled, :disabled"))return;g=e(c),h=g.hasClass("open");if(!h||h&&b.keyCode==27)return c.click();d=a("[role=menu] li:not(.divider):visible a",g);if(!d.length)return;i=d.index(d.filter(":focus")),b.keyCode==38&&i>0&&i--,b.keyCode==40&&i<d.length-1&&i++,~i||(i=0),d.eq(i).focus()}};var f=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=f,this},a(document).on("click.dropdown.data-api touchstart.dropdown.data-api",d).on("click.dropdown touchstart.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("touchstart.dropdown.data-api",".dropdown-menu",function(a){a.stopPropagation()}).on("click.dropdown.data-api touchstart.dropdown.data-api",b,c.prototype.toggle).on("keydown.dropdown.data-api touchstart.dropdown.data-api",b+", [role=menu]",c.prototype.keydown)}(window.jQuery),!function(a){function b(b,c){var d=a.proxy(this.process,this),e=a(b).is("body")?a(window):a(b),f;this.options=a.extend({},a.fn.scrollspy.defaults,c),this.$scrollElement=e.on("scroll.scroll-spy.data-api",d),this.selector=(this.options.target||(f=a(b).attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.$body=a("body"),this.refresh(),this.process()}b.prototype={constructor:b,refresh:function(){var b=this,c;this.offsets=a([]),this.targets=a([]),c=this.$body.find(this.selector).map(function(){var c=a(this),d=c.data("target")||c.attr("href"),e=/^#\w/.test(d)&&a(d);return e&&e.length&&[[e.position().top+b.$scrollElement.scrollTop(),d]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},process:function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,c=b-this.$scrollElement.height(),d=this.offsets,e=this.targets,f=this.activeTarget,g;if(a>=c)return f!=(g=e.last()[0])&&this.activate(g);for(g=d.length;g--;)f!=e[g]&&a>=d[g]&&(!d[g+1]||a<=d[g+1])&&this.activate(e[g])},activate:function(b){var c,d;this.activeTarget=b,a(this.selector).parent(".active").removeClass("active"),d=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',c=a(d).parent("li").addClass("active"),c.parent(".dropdown-menu").length&&(c=c.closest("li.dropdown").addClass("active")),c.trigger("activate")}};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("scrollspy"),f=typeof c=="object"&&c;e||d.data("scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.defaults={offset:10},a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),!function(a){var b=function(b){this.element=a(b)};b.prototype={constructor:b,show:function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.attr("data-target"),e,f,g;d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;e=c.find(".active:last a")[0],g=a.Event("show",{relatedTarget:e}),b.trigger(g);if(g.isDefaultPrevented())return;f=a(d),this.activate(b.parent("li"),c),this.activate(f,f.parent(),function(){b.trigger({type:"shown",relatedTarget:e})})},activate:function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g):g(),e.removeClass("in")}};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("tab");e||d.data("tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),!function(a){var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger=="click"?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)return c.show();clearTimeout(this.timeout),c.hoverState="in",this.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!c.options.delay||!c.options.delay.hide)return c.hide();c.hoverState="out",this.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.offset(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).detach()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.detach()})}var b=this,c=this.tip();return c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.detach(),this},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);c[c.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0,html:!1},a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),!function(a){var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}});var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>'}),a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),!function(a){var b=function(b,c){this.options=a.extend({},a.fn.affix.defaults,c),this.$window=a(window).on("scroll.affix.data-api",a.proxy(this.checkPosition,this)).on("click.affix.data-api",a.proxy(function(){setTimeout(a.proxy(this.checkPosition,this),1)},this)),this.$element=a(b),this.checkPosition()};b.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var b=a(document).height(),c=this.$window.scrollTop(),d=this.$element.offset(),e=this.options.offset,f=e.bottom,g=e.top,h="affix affix-top affix-bottom",i;typeof e!="object"&&(f=g=e),typeof g=="function"&&(g=e.top()),typeof f=="function"&&(f=e.bottom()),i=this.unpin!=null&&c+this.unpin<=d.top?!1:f!=null&&d.top+this.$element.height()>=b-f?"bottom":g!=null&&c<=g?"top":!1;if(this.affixed===i)return;this.affixed=i,this.unpin=i=="bottom"?d.top-c:null,this.$element.removeClass(h).addClass("affix"+(i?"-"+i:""))};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("affix"),f=typeof c=="object"&&c;e||d.data("affix",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.defaults={offset:0},a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery),!function(a){var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed").remove()}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.alert.data-api",b,c.prototype.close)}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b,c,d,e;if(this.transitioning)return;b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find("> .accordion-group > .in");if(d&&d.length){e=d.data("collapse");if(e&&e.transitioning)return;d.collapse("hide"),e||d.data("collapse",null)}this.$element[b](0),this.transition("addClass",a.Event("show"),"shown"),a.support.transition&&this.$element[b](this.$element[0][c])},hide:function(){var b;if(this.transitioning)return;b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a!==null?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){c.type=="show"&&e.reset(),e.transitioning=0,e.$element.trigger(d)};this.$element.trigger(c);if(c.isDefaultPrevented())return;this.transitioning=1,this.$element[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();c[a(e).hasClass("in")?"addClass":"removeClass"]("collapsed"),a(e).collapse(f)})}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=c,this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.prototype={cycle:function(b){return b||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},to:function(b){var c=this.$element.find(".item.active"),d=c.parent().children(),e=d.index(c),f=this;if(b>d.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){f.to(b)}):e==b?this.pause().cycle():this.slide(b>e?"next":"prev",a(d[b]))},pause:function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this,j;this.sliding=!0,f&&this.pause(),e=e.length?e:this.$element.find(".item")[h](),j=a.Event("slide",{relatedTarget:e[0]});if(e.hasClass("active"))return;if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(j);if(j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),this.$element.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)})}else{this.$element.trigger(j);if(j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("carousel"),f=a.extend({},a.fn.carousel.defaults,typeof c=="object"&&c),g=typeof c=="string"?c:f.slide;e||d.data("carousel",e=new b(this,f)),typeof c=="number"?e.to(c):g?e[g]():f.interval&&e.cycle()})},a.fn.carousel.defaults={interval:5e3,pause:"hover"},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.carousel.data-api","[data-slide]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),c.data());e.carousel(f),b.preventDefault()})}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.source=this.options.source,this.$menu=a(this.options.menu),this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(a)).change(),this.hide()},updater:function(a){return a},show:function(){var b=a.extend({},this.$element.position(),{height:this.$element[0].offsetHeight});return this.$menu.insertAfter(this.$element).css({top:b.top+b.height,left:b.left}).show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c;return this.query=this.$element.val(),!this.query||this.query.length<this.options.minLength?this.shown?this.hide():this:(c=a.isFunction(this.source)?this.source(this.query,a.proxy(this.process,this)):this.source,c?this.process(c):this)},process:function(b){var c=this;return b=a.grep(b,function(a){return c.matcher(a)}),b=this.sorter(b),b.length?this.render(b.slice(0,this.options.items)).show():this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){var b=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return a.replace(new RegExp("("+b+")","ig"),function(a,b){return"<strong>"+b+"</strong>"})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),this.eventSupported("keydown")&&this.$element.on("keydown",a.proxy(this.keydown,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},eventSupported:function(a){var b=a in this.$element;return b||(this.$element.setAttribute(a,"return;"),b=typeof this.$element[a]=="function"),b},move:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:a.preventDefault(),this.prev();break;case 40:a.preventDefault(),this.next()}a.stopPropagation()},keydown:function(b){this.suppressKeyPressRepeat=~a.inArray(b.keyCode,[40,38,9,13,27]),this.move(b)},keypress:function(a){if(this.suppressKeyPressRepeat)return;this.move(a)},keyup:function(a){switch(a.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}};var c=a.fn.typeahead;a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>',minLength:1},a.fn.typeahead.Constructor=b,a.fn.typeahead.noConflict=function(){return a.fn.typeahead=c,this},a(document).on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})}(window.jQuery)
@@ -0,0 +1,10 @@
1
+ // Chosen, a Select Box Enhancer for jQuery and Protoype
2
+ // by Patrick Filler for Harvest, http://getharvest.com
3
+ //
4
+ // Version 0.9.8
5
+ // Full source at https://github.com/harvesthq/chosen
6
+ // Copyright (c) 2011 Harvest http://getharvest.com
7
+
8
+ // MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
9
+ // This file is generated by `cake build`, do not edit it by hand.
10
+ (function(){var SelectParser;SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(child){return child.nodeName.toUpperCase()==="OPTGROUP"?this.add_group(child):this.add_option(child)},SelectParser.prototype.add_group=function(group){var group_position,option,_i,_len,_ref,_results;group_position=this.parsed.length,this.parsed.push({array_index:group_position,group:!0,label:group.label,children:0,disabled:group.disabled}),_ref=group.childNodes,_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++)option=_ref[_i],_results.push(this.add_option(option,group_position,group.disabled));return _results},SelectParser.prototype.add_option=function(option,group_position,group_disabled){if(option.nodeName.toUpperCase()==="OPTION")return option.text!==""?(group_position!=null&&(this.parsed[group_position].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:option.value,text:option.text,html:option.innerHTML,selected:option.selected,disabled:group_disabled===!0?group_disabled:option.disabled,group_array_index:group_position,classes:option.className,style:option.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},SelectParser}(),SelectParser.select_to_array=function(select){var child,parser,_i,_len,_ref;parser=new SelectParser,_ref=select.childNodes;for(_i=0,_len=_ref.length;_i<_len;_i++)child=_ref[_i],parser.add_node(child);return parser.parsed},this.SelectParser=SelectParser}).call(this),function(){var AbstractChosen,root;root=this,AbstractChosen=function(){function AbstractChosen(form_field,options){this.form_field=form_field,this.options=options!=null?options:{},this.set_default_values(),this.is_multiple=this.form_field.multiple,this.set_default_text(),this.setup(),this.set_up_html(),this.register_observers(),this.finish_setup()}return AbstractChosen.prototype.set_default_values=function(){var _this=this;return this.click_test_action=function(evt){return _this.test_active_click(evt)},this.activate_action=function(evt){return _this.activate_field(evt)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.result_single_selected=null,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.search_contains=this.options.search_contains||!1,this.choices=0,this.single_backstroke_delete=this.options.single_backstroke_delete||!1,this.max_selected_options=this.options.max_selected_options||Infinity},AbstractChosen.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||"Select Some Options":this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||"Select an Option",this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||"No results match"},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(evt){var _this=this;if(!this.active_field)return setTimeout(function(){return _this.container_mousedown()},50)},AbstractChosen.prototype.input_blur=function(evt){var _this=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return _this.blur_test()},100)},AbstractChosen.prototype.result_add_option=function(option){var classes,style;return option.disabled?"":(option.dom_id=this.container_id+"_o_"+option.array_index,classes=option.selected&&this.is_multiple?[]:["active-result"],option.selected&&classes.push("result-selected"),option.group_array_index!=null&&classes.push("group-option"),option.classes!==""&&classes.push(option.classes),style=option.style.cssText!==""?' style="'+option.style+'"':"",'<li id="'+option.dom_id+'" class="'+classes.join(" ")+'"'+style+">"+option.html+"</li>")},AbstractChosen.prototype.results_update_field=function(){return this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.result_single_selected=null,this.results_build()},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(evt){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.keyup_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keyCode,this.search_field_scale();switch(stroke){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:evt.preventDefault();if(this.results_showing)return this.result_select(evt);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.generate_field_id=function(){var new_id;return new_id=this.generate_random_id(),this.form_field.id=new_id,new_id},AbstractChosen.prototype.generate_random_char=function(){var chars,newchar,rand;return chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",rand=Math.floor(Math.random()*chars.length),newchar=chars.substring(rand,rand+1)},AbstractChosen}(),root.AbstractChosen=AbstractChosen}.call(this),function(){var $,Chosen,get_side_border_padding,root,__hasProp=Object.prototype.hasOwnProperty,__extends=function(child,parent){function ctor(){this.constructor=child}for(var key in parent)__hasProp.call(parent,key)&&(child[key]=parent[key]);return ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype,child};root=this,$=jQuery,$.fn.extend({chosen:function(options){return $.browser.msie&&($.browser.version==="6.0"||$.browser.version==="7.0"&&document.documentMode===7)?this:this.each(function(input_field){var $this;$this=$(this);if(!$this.hasClass("chzn-done"))return $this.data("chosen",new Chosen(this,options))})}}),Chosen=function(_super){function Chosen(){Chosen.__super__.constructor.apply(this,arguments)}return __extends(Chosen,_super),Chosen.prototype.setup=function(){return this.form_field_jq=$(this.form_field),this.current_value=this.form_field_jq.val(),this.is_rtl=this.form_field_jq.hasClass("chzn-rtl")},Chosen.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done")},Chosen.prototype.set_up_html=function(){var container_div,dd_top,dd_width,sf_width;return this.container_id=this.form_field.id.length?this.form_field.id.replace(/[^\w]/g,"_"):this.generate_field_id(),this.container_id+="_chzn",this.f_width=this.form_field_jq.outerWidth(),container_div=$("<div />",{id:this.container_id,"class":"chzn-container"+(this.is_rtl?" chzn-rtl":""),style:"width: "+this.f_width+"px;"}),this.is_multiple?container_div.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop" style="left:-9000px;"><ul class="chzn-results"></ul></div>'):container_div.html('<a href="javascript:void(0)" class="chzn-single chzn-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop" style="left:-9000px;"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(container_div),this.container=$("#"+this.container_id),this.container.addClass("chzn-container-"+(this.is_multiple?"multi":"single")),this.dropdown=this.container.find("div.chzn-drop").first(),dd_top=this.container.height(),dd_width=this.f_width-get_side_border_padding(this.dropdown),this.dropdown.css({width:dd_width+"px",top:dd_top+"px"}),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first(),sf_width=dd_width-get_side_border_padding(this.search_container)-get_side_border_padding(this.search_field),this.search_field.css({width:sf_width+"px"})),this.results_build(),this.set_tab_index(),this.form_field_jq.trigger("liszt:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var _this=this;return this.container.mousedown(function(evt){return _this.container_mousedown(evt)}),this.container.mouseup(function(evt){return _this.container_mouseup(evt)}),this.container.mouseenter(function(evt){return _this.mouse_enter(evt)}),this.container.mouseleave(function(evt){return _this.mouse_leave(evt)}),this.search_results.mouseup(function(evt){return _this.search_results_mouseup(evt)}),this.search_results.mouseover(function(evt){return _this.search_results_mouseover(evt)}),this.search_results.mouseout(function(evt){return _this.search_results_mouseout(evt)}),this.form_field_jq.bind("liszt:updated",function(evt){return _this.results_update_field(evt)}),this.form_field_jq.bind("liszt:activate",function(evt){return _this.activate_field(evt)}),this.form_field_jq.bind("liszt:open",function(evt){return _this.container_mousedown(evt)}),this.search_field.blur(function(evt){return _this.input_blur(evt)}),this.search_field.keyup(function(evt){return _this.keyup_checker(evt)}),this.search_field.keydown(function(evt){return _this.keydown_checker(evt)}),this.is_multiple?(this.search_choices.click(function(evt){return _this.choices_click(evt)}),this.search_field.focus(function(evt){return _this.input_focus(evt)})):this.container.click(function(evt){return evt.preventDefault()})},Chosen.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled)return this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus",this.activate_action),this.close_field();this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1;if(!this.is_multiple)return this.selected_item.bind("focus",this.activate_action)},Chosen.prototype.container_mousedown=function(evt){var target_closelink;if(!this.is_disabled)return target_closelink=evt!=null?$(evt.target).hasClass("search-choice-close"):!1,evt&&evt.type==="mousedown"&&!this.results_showing&&evt.stopPropagation(),!this.pending_destroy_click&&!target_closelink?(this.active_field?!this.is_multiple&&evt&&($(evt.target)[0]===this.selected_item[0]||$(evt.target).parents("a.chzn-single").length)&&(evt.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),$(document).click(this.click_test_action),this.results_show()),this.activate_field()):this.pending_destroy_click=!1},Chosen.prototype.container_mouseup=function(evt){if(evt.target.nodeName==="ABBR"&&!this.is_disabled)return this.results_reset(evt)},Chosen.prototype.blur_test=function(evt){if(!this.active_field&&this.container.hasClass("chzn-container-active"))return this.close_field()},Chosen.prototype.close_field=function(){return $(document).unbind("click",this.click_test_action),this.is_multiple||(this.selected_item.attr("tabindex",this.search_field.attr("tabindex")),this.search_field.attr("tabindex",-1)),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.winnow_results_clear(),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return!this.is_multiple&&!this.active_field&&(this.search_field.attr("tabindex",this.selected_item.attr("tabindex")),this.selected_item.attr("tabindex",-1)),this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(evt){return $(evt.target).parents("#"+this.container_id).length?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){var content,data,_i,_len,_ref;this.parsing=!0,this.results_data=root.SelectParser.select_to_array(this.form_field),this.is_multiple&&this.choices>0?(this.search_choices.find("li.search-choice").remove(),this.choices=0):this.is_multiple||(this.selected_item.addClass("chzn-default").find("span").text(this.default_text),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?this.container.addClass("chzn-container-single-nosearch"):this.container.removeClass("chzn-container-single-nosearch")),content="",_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++)data=_ref[_i],data.group?content+=this.result_add_group(data):data.empty||(content+=this.result_add_option(data),data.selected&&this.is_multiple?this.choice_build(data):data.selected&&!this.is_multiple&&(this.selected_item.removeClass("chzn-default").find("span").text(data.text),this.allow_single_deselect&&this.single_deselect_control_build()));return this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.search_results.html(content),this.parsing=!1},Chosen.prototype.result_add_group=function(group){return group.disabled?"":(group.dom_id=this.container_id+"_g_"+group.array_index,'<li id="'+group.dom_id+'" class="group-result">'+$("<div />").text(group.label).html()+"</li>")},Chosen.prototype.result_do_highlight=function(el){var high_bottom,high_top,maxHeight,visible_bottom,visible_top;if(el.length){this.result_clear_highlight(),this.result_highlight=el,this.result_highlight.addClass("highlighted"),maxHeight=parseInt(this.search_results.css("maxHeight"),10),visible_top=this.search_results.scrollTop(),visible_bottom=maxHeight+visible_top,high_top=this.result_highlight.position().top+this.search_results.scrollTop(),high_bottom=high_top+this.result_highlight.outerHeight();if(high_bottom>=visible_bottom)return this.search_results.scrollTop(high_bottom-maxHeight>0?high_bottom-maxHeight:0);if(high_top<visible_top)return this.search_results.scrollTop(high_top)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){var dd_top;if(!this.is_multiple)this.selected_item.addClass("chzn-single-with-drop"),this.result_single_selected&&this.result_do_highlight(this.result_single_selected);else if(this.max_selected_options<=this.choices)return this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1;return dd_top=this.is_multiple?this.container.height():this.container.height()-1,this.form_field_jq.trigger("liszt:showing_dropdown",{chosen:this}),this.dropdown.css({top:dd_top+"px",left:0}),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results()},Chosen.prototype.results_hide=function(){return this.is_multiple||this.selected_item.removeClass("chzn-single-with-drop"),this.result_clear_highlight(),this.form_field_jq.trigger("liszt:hiding_dropdown",{chosen:this}),this.dropdown.css({left:"-9000px"}),this.results_showing=!1},Chosen.prototype.set_tab_index=function(el){var ti;if(this.form_field_jq.attr("tabindex"))return ti=this.form_field_jq.attr("tabindex"),this.form_field_jq.attr("tabindex",-1),this.is_multiple?this.search_field.attr("tabindex",ti):(this.selected_item.attr("tabindex",ti),this.search_field.attr("tabindex",-1))},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target.length)return this.result_highlight=target,this.result_select(evt)},Chosen.prototype.search_results_mouseover=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target)return this.result_do_highlight(target)},Chosen.prototype.search_results_mouseout=function(evt){if($(evt.target).hasClass("active-result"))return this.result_clear_highlight()},Chosen.prototype.choices_click=function(evt){evt.preventDefault();if(this.active_field&&!$(evt.target).hasClass("search-choice")&&!this.results_showing)return this.results_show()},Chosen.prototype.choice_build=function(item){var choice_id,html,link,_this=this;return this.is_multiple&&this.max_selected_options<=this.choices?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(choice_id=this.container_id+"_c_"+item.array_index,this.choices+=1,item.disabled?html='<li class="search-choice search-choice-disabled" id="'+choice_id+'"><span>'+item.html+"</span></li>":html='<li class="search-choice" id="'+choice_id+'"><span>'+item.html+'</span><a href="javascript:void(0)" class="search-choice-close" rel="'+item.array_index+'"></a></li>',this.search_container.before(html),link=$("#"+choice_id).find("a").first(),link.click(function(evt){return _this.choice_destroy_link_click(evt)}))},Chosen.prototype.choice_destroy_link_click=function(evt){return evt.preventDefault(),this.is_disabled?evt.stopPropagation:(this.pending_destroy_click=!0,this.choice_destroy($(evt.target)))},Chosen.prototype.choice_destroy=function(link){if(this.result_deselect(link.attr("rel")))return this.choices-=1,this.show_search_field_default(),this.is_multiple&&this.choices>0&&this.search_field.val().length<1&&this.results_hide(),link.parents("li").first().remove()},Chosen.prototype.results_reset=function(){this.form_field.options[0].selected=!0,this.selected_item.find("span").text(this.default_text),this.is_multiple||this.selected_item.addClass("chzn-default"),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change");if(this.active_field)return this.results_hide()},Chosen.prototype.results_reset_cleanup=function(){return this.current_value=this.form_field_jq.val(),this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(evt){var high,high_id,item,position;if(this.result_highlight)return high=this.result_highlight,high_id=high.attr("id"),this.result_clear_highlight(),this.is_multiple?this.result_deactivate(high):(this.search_results.find(".result-selected").removeClass("result-selected"),this.result_single_selected=high,this.selected_item.removeClass("chzn-default")),high.addClass("result-selected"),position=high_id.substr(high_id.lastIndexOf("_")+1),item=this.results_data[position],item.selected=!0,this.form_field.options[item.options_index].selected=!0,this.is_multiple?this.choice_build(item):(this.selected_item.find("span").first().text(item.text),this.allow_single_deselect&&this.single_deselect_control_build()),(!evt.metaKey||!this.is_multiple)&&this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field_jq.val()!==this.current_value)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[item.options_index].value}),this.current_value=this.form_field_jq.val(),this.search_field_scale()},Chosen.prototype.result_activate=function(el){return el.addClass("active-result")},Chosen.prototype.result_deactivate=function(el){return el.removeClass("active-result")},Chosen.prototype.result_deselect=function(pos){var result,result_data;return result_data=this.results_data[pos],this.form_field.options[result_data.options_index].disabled?!1:(result_data.selected=!1,this.form_field.options[result_data.options_index].selected=!1,result=$("#"+this.container_id+"_o_"+pos),result.removeClass("result-selected").addClass("active-result").show(),this.result_clear_highlight(),this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[result_data.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1)return this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>')},Chosen.prototype.winnow_results=function(){var found,option,part,parts,regex,regexAnchor,result,result_id,results,searchText,startpos,text,zregex,_i,_j,_len,_len2,_ref;this.no_results_clear(),results=0,searchText=this.search_field.val()===this.default_text?"":$("<div/>").text($.trim(this.search_field.val())).html(),regexAnchor=this.search_contains?"":"^",regex=new RegExp(regexAnchor+searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),zregex=new RegExp(searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i"),_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];if(!option.disabled&&!option.empty)if(option.group)$("#"+option.dom_id).css("display","none");else if(!this.is_multiple||!option.selected){found=!1,result_id=option.dom_id,result=$("#"+result_id);if(regex.test(option.html))found=!0,results+=1;else if(option.html.indexOf(" ")>=0||option.html.indexOf("[")===0){parts=option.html.replace(/\[|\]/g,"").split(" ");if(parts.length)for(_j=0,_len2=parts.length;_j<_len2;_j++)part=parts[_j],regex.test(part)&&(found=!0,results+=1)}found?(searchText.length?(startpos=option.html.search(zregex),text=option.html.substr(0,startpos+searchText.length)+"</em>"+option.html.substr(startpos+searchText.length),text=text.substr(0,startpos)+"<em>"+text.substr(startpos)):text=option.html,result.html(text),this.result_activate(result),option.group_array_index!=null&&$("#"+this.results_data[option.group_array_index].dom_id).css("display","list-item")):(this.result_highlight&&result_id===this.result_highlight.attr("id")&&this.result_clear_highlight(),this.result_deactivate(result))}}return results<1&&searchText.length?this.no_results(searchText):this.winnow_results_set_highlight()},Chosen.prototype.winnow_results_clear=function(){var li,lis,_i,_len,_results;this.search_field.val(""),lis=this.search_results.find("li"),_results=[];for(_i=0,_len=lis.length;_i<_len;_i++)li=lis[_i],li=$(li),li.hasClass("group-result")?_results.push(li.css("display","auto")):!this.is_multiple||!li.hasClass("result-selected")?_results.push(this.result_activate(li)):_results.push(void 0);return _results},Chosen.prototype.winnow_results_set_highlight=function(){var do_high,selected_results;if(!this.result_highlight){selected_results=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),do_high=selected_results.length?selected_results.first():this.search_results.find(".active-result").first();if(do_high!=null)return this.result_do_highlight(do_high)}},Chosen.prototype.no_results=function(terms){var no_results_html;return no_results_html=$('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),no_results_html.find("span").first().html(terms),this.search_results.append(no_results_html)},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var first_active,next_sib;this.result_highlight?this.results_showing&&(next_sib=this.result_highlight.nextAll("li.active-result").first(),next_sib&&this.result_do_highlight(next_sib)):(first_active=this.search_results.find("li.active-result").first(),first_active&&this.result_do_highlight($(first_active)));if(!this.results_showing)return this.results_show()},Chosen.prototype.keyup_arrow=function(){var prev_sibs;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return prev_sibs=this.result_highlight.prevAll("li.active-result"),prev_sibs.length?this.result_do_highlight(prev_sibs.first()):(this.choices>0&&this.results_hide(),this.result_clear_highlight())},Chosen.prototype.keydown_backstroke=function(){var next_available_destroy;if(this.pending_backstroke)return this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke();next_available_destroy=this.search_container.siblings("li.search-choice").last();if(next_available_destroy.length&&!next_available_destroy.hasClass("search-choice-disabled"))return this.pending_backstroke=next_available_destroy,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keyCode,this.search_field_scale(),stroke!==8&&this.pending_backstroke&&this.clear_backstroke();switch(stroke){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(evt),this.mouse_on_container=!1;break;case 13:evt.preventDefault();break;case 38:evt.preventDefault(),this.keyup_arrow();break;case 40:this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var dd_top,div,h,style,style_block,styles,w,_i,_len;if(this.is_multiple){h=0,w=0,style_block="position:absolute; left: -1000px; top: -1000px; display:none;",styles=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(_i=0,_len=styles.length;_i<_len;_i++)style=styles[_i],style_block+=style+":"+this.search_field.css(style)+";";return div=$("<div />",{style:style_block}),div.text(this.search_field.val()),$("body").append(div),w=div.width()+25,div.remove(),w>this.f_width-10&&(w=this.f_width-10),this.search_field.css({width:w+"px"}),dd_top=this.container.height(),this.dropdown.css({top:dd_top+"px"})}},Chosen.prototype.generate_random_id=function(){var string;string="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while($("#"+string).length>0)string+=this.generate_random_char();return string},Chosen}(AbstractChosen),get_side_border_padding=function(elmt){var side_border_padding;return side_border_padding=elmt.outerWidth()-elmt.width()},root.get_side_border_padding=get_side_border_padding}.call(this);
@@ -0,0 +1,399 @@
1
+ $chosen-img-path: '/assets/chosen';
2
+
3
+ /* @group Base */
4
+ .chzn-container {
5
+ font-size: 11px;
6
+ position: relative;
7
+ display: inline-block;
8
+ zoom: 1;
9
+ *display: inline;
10
+ }
11
+ .chzn-container .chzn-drop {
12
+ background: #fff;
13
+ border: 1px solid #aaa;
14
+ border-top: 0;
15
+ position: absolute;
16
+ top: 29px;
17
+ left: 0;
18
+ -webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
19
+ -moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
20
+ -o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
21
+ box-shadow : 0 4px 5px rgba(0,0,0,.15);
22
+ z-index: 1010;
23
+ }
24
+ /* @end */
25
+
26
+ /* @group Single Chosen */
27
+ .chzn-container-single .chzn-single {
28
+ background-color: #ffffff;
29
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0 );
30
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
31
+ background-image: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
32
+ background-image: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
33
+ background-image: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
34
+ background-image: -ms-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
35
+ background-image: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
36
+ -webkit-border-radius: 5px;
37
+ -moz-border-radius : 5px;
38
+ border-radius : 5px;
39
+ -moz-background-clip : padding;
40
+ -webkit-background-clip: padding-box;
41
+ background-clip : padding-box;
42
+ border: 1px solid #aaaaaa;
43
+ -webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
44
+ -moz-box-shadow : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
45
+ box-shadow : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
46
+ display: block;
47
+ overflow: hidden;
48
+ white-space: nowrap;
49
+ position: relative;
50
+ height: 23px;
51
+ line-height: 24px;
52
+ padding: 0 0 0 8px;
53
+ color: #444444;
54
+ text-decoration: none;
55
+ }
56
+ .chzn-container-single .chzn-default {
57
+ color: #999;
58
+ }
59
+ .chzn-container-single .chzn-single span {
60
+ margin-right: 26px;
61
+ display: block;
62
+ overflow: hidden;
63
+ white-space: nowrap;
64
+ -o-text-overflow: ellipsis;
65
+ -ms-text-overflow: ellipsis;
66
+ text-overflow: ellipsis;
67
+ }
68
+ .chzn-container-single .chzn-single abbr {
69
+ display: block;
70
+ position: absolute;
71
+ right: 26px;
72
+ top: 6px;
73
+ width: 12px;
74
+ height: 13px;
75
+ font-size: 1px;
76
+ background: url("#{$chosen-img-path}/chosen-sprite.png") right top no-repeat;
77
+ opacity: .5;
78
+ }
79
+ .chzn-container-single .chzn-single abbr:hover {
80
+ background-position: right -11px;
81
+ }
82
+ .chzn-container-single.chzn-disabled .chzn-single abbr:hover {
83
+ background-position: right top;
84
+ }
85
+ .chzn-container-single .chzn-single div {
86
+ position: absolute;
87
+ right: 0;
88
+ top: 0;
89
+ display: block;
90
+ height: 100%;
91
+ width: 18px;
92
+ }
93
+ .chzn-container-single .chzn-single div b {
94
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 0 0;
95
+ display: block;
96
+ width: 100%;
97
+ height: 100%;
98
+ }
99
+ .chzn-container-single .chzn-search {
100
+ padding: 3px 4px;
101
+ position: relative;
102
+ margin: 0;
103
+ white-space: nowrap;
104
+ z-index: 1010;
105
+ }
106
+ .chzn-container-single .chzn-search input {
107
+ background: #fff url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px;
108
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
109
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
110
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
111
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
112
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
113
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat 100% -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
114
+ margin: 1px 0;
115
+ padding: 4px 20px 4px 5px;
116
+ outline: 0;
117
+ border: 1px solid #aaa;
118
+ font-family: sans-serif;
119
+ font-size: 1em;
120
+ }
121
+ .chzn-container-single .chzn-drop {
122
+ -webkit-border-radius: 0 0 4px 4px;
123
+ -moz-border-radius : 0 0 4px 4px;
124
+ border-radius : 0 0 4px 4px;
125
+ -moz-background-clip : padding;
126
+ -webkit-background-clip: padding-box;
127
+ background-clip : padding-box;
128
+ }
129
+ /* @end */
130
+
131
+ .chzn-container-single-nosearch .chzn-search input {
132
+ position: absolute;
133
+ left: -9000px;
134
+ }
135
+
136
+ /* @group Multi Chosen */
137
+ .chzn-container-multi .chzn-choices {
138
+ background-color: #fff;
139
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
140
+ background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
141
+ background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
142
+ background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
143
+ background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
144
+ background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
145
+ border: 1px solid #aaa;
146
+ margin: 0;
147
+ padding: 0;
148
+ cursor: text;
149
+ overflow: hidden;
150
+ height: auto !important;
151
+ height: 1%;
152
+ position: relative;
153
+ }
154
+ .chzn-container-multi .chzn-choices li {
155
+ float: left;
156
+ list-style: none;
157
+ }
158
+ .chzn-container-multi .chzn-choices .search-field {
159
+ white-space: nowrap;
160
+ margin: 0;
161
+ padding: 0;
162
+ }
163
+ .chzn-container-multi .chzn-choices .search-field input {
164
+ color: #666;
165
+ background: transparent !important;
166
+ border: 0 !important;
167
+ font-family: sans-serif;
168
+ font-size: 100%;
169
+ height: 15px;
170
+ padding: 5px;
171
+ margin: 1px 0;
172
+ outline: 0;
173
+ -webkit-box-shadow: none;
174
+ -moz-box-shadow : none;
175
+ -o-box-shadow : none;
176
+ box-shadow : none;
177
+ }
178
+ .chzn-container-multi .chzn-choices .search-field .default {
179
+ color: #999;
180
+ }
181
+ .chzn-container-multi .chzn-choices .search-choice {
182
+ -webkit-border-radius: 3px;
183
+ -moz-border-radius : 3px;
184
+ border-radius : 3px;
185
+ -moz-background-clip : padding;
186
+ -webkit-background-clip: padding-box;
187
+ background-clip : padding-box;
188
+ background-color: #e4e4e4;
189
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
190
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
191
+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
192
+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
193
+ background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
194
+ background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
195
+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
196
+ -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
197
+ -moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
198
+ box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
199
+ color: #333;
200
+ border: 1px solid #aaaaaa;
201
+ line-height: 13px;
202
+ padding: 3px 20px 3px 5px;
203
+ margin: 3px 0 3px 5px;
204
+ position: relative;
205
+ cursor: default;
206
+ }
207
+ .chzn-container-multi .chzn-choices .search-choice-focus {
208
+ background: #d4d4d4;
209
+ }
210
+ .chzn-container-multi .chzn-choices .search-choice .search-choice-close {
211
+ display: block;
212
+ position: absolute;
213
+ right: 3px;
214
+ top: 4px;
215
+ width: 12px;
216
+ height: 13px;
217
+ font-size: 1px;
218
+ background: url("#{$chosen-img-path}/chosen-sprite.png") right top no-repeat;
219
+ }
220
+ .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
221
+ background-position: right -11px;
222
+ }
223
+ .chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
224
+ background-position: right -11px;
225
+ }
226
+ /* @end */
227
+
228
+ /* @group Results */
229
+ .chzn-container .chzn-results {
230
+ margin: 0 4px 4px 0;
231
+ max-height: 240px;
232
+ padding: 0 0 0 4px;
233
+ position: relative;
234
+ overflow-x: hidden;
235
+ overflow-y: auto;
236
+ -webkit-overflow-scrolling: touch;
237
+ }
238
+ .chzn-container-multi .chzn-results {
239
+ margin: -1px 0 0;
240
+ padding: 0;
241
+ }
242
+ .chzn-container .chzn-results li {
243
+ display: none;
244
+ line-height: 15px;
245
+ padding: 5px 6px;
246
+ margin: 0;
247
+ list-style: none;
248
+ }
249
+ .chzn-container .chzn-results .active-result {
250
+ cursor: pointer;
251
+ display: list-item;
252
+ }
253
+ .chzn-container .chzn-results .highlighted {
254
+ background-color: #3875d7;
255
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );
256
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
257
+ background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
258
+ background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
259
+ background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
260
+ background-image: -ms-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
261
+ background-image: linear-gradient(top, #3875d7 20%, #2a62bc 90%);
262
+ color: #fff;
263
+ }
264
+ .chzn-container .chzn-results li em {
265
+ background: #feffde;
266
+ font-style: normal;
267
+ }
268
+ .chzn-container .chzn-results .highlighted em {
269
+ background: transparent;
270
+ }
271
+ .chzn-container .chzn-results .no-results {
272
+ background: #f4f4f4;
273
+ display: list-item;
274
+ }
275
+ .chzn-container .chzn-results .group-result {
276
+ cursor: default;
277
+ color: #999;
278
+ font-weight: bold;
279
+ }
280
+ .chzn-container .chzn-results .group-option {
281
+ padding-left: 15px;
282
+ }
283
+ .chzn-container-multi .chzn-drop .result-selected {
284
+ display: none;
285
+ }
286
+ .chzn-container .chzn-results-scroll {
287
+ background: white;
288
+ margin: 0 4px;
289
+ position: absolute;
290
+ text-align: center;
291
+ width: 321px; /* This should by dynamic with js */
292
+ z-index: 1;
293
+ }
294
+ .chzn-container .chzn-results-scroll span {
295
+ display: inline-block;
296
+ height: 17px;
297
+ text-indent: -5000px;
298
+ width: 9px;
299
+ }
300
+ .chzn-container .chzn-results-scroll-down {
301
+ bottom: 0;
302
+ }
303
+ .chzn-container .chzn-results-scroll-down span {
304
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -4px -3px;
305
+ }
306
+ .chzn-container .chzn-results-scroll-up span {
307
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -22px -3px;
308
+ }
309
+ /* @end */
310
+
311
+ /* @group Active */
312
+ .chzn-container-active .chzn-single {
313
+ -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
314
+ -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
315
+ -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
316
+ box-shadow : 0 0 5px rgba(0,0,0,.3);
317
+ border: 1px solid #5897fb;
318
+ }
319
+ .chzn-container-active .chzn-single-with-drop {
320
+ border: 1px solid #aaa;
321
+ -webkit-box-shadow: 0 1px 0 #fff inset;
322
+ -moz-box-shadow : 0 1px 0 #fff inset;
323
+ -o-box-shadow : 0 1px 0 #fff inset;
324
+ box-shadow : 0 1px 0 #fff inset;
325
+ background-color: #eee;
326
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
327
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
328
+ background-image: -webkit-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
329
+ background-image: -moz-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
330
+ background-image: -o-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
331
+ background-image: -ms-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
332
+ background-image: linear-gradient(top, #eeeeee 20%, #ffffff 80%);
333
+ -webkit-border-bottom-left-radius : 0;
334
+ -webkit-border-bottom-right-radius: 0;
335
+ -moz-border-radius-bottomleft : 0;
336
+ -moz-border-radius-bottomright: 0;
337
+ border-bottom-left-radius : 0;
338
+ border-bottom-right-radius: 0;
339
+ }
340
+ .chzn-container-active .chzn-single-with-drop div {
341
+ background: transparent;
342
+ border-left: none;
343
+ }
344
+ .chzn-container-active .chzn-single-with-drop div b {
345
+ background-position: -18px 1px;
346
+ }
347
+ .chzn-container-active .chzn-choices {
348
+ -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
349
+ -moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
350
+ -o-box-shadow : 0 0 5px rgba(0,0,0,.3);
351
+ box-shadow : 0 0 5px rgba(0,0,0,.3);
352
+ border: 1px solid #5897fb;
353
+ }
354
+ .chzn-container-active .chzn-choices .search-field input {
355
+ color: #111 !important;
356
+ }
357
+ /* @end */
358
+
359
+ /* @group Disabled Support */
360
+ .chzn-disabled {
361
+ cursor: default;
362
+ opacity:0.5 !important;
363
+ }
364
+ .chzn-disabled .chzn-single {
365
+ cursor: default;
366
+ }
367
+ .chzn-disabled .chzn-choices .search-choice .search-choice-close {
368
+ cursor: default;
369
+ }
370
+
371
+ /* @group Right to Left */
372
+ .chzn-rtl { text-align: right; }
373
+ .chzn-rtl .chzn-single { padding: 0 8px 0 0; overflow: visible; }
374
+ .chzn-rtl .chzn-single span { margin-left: 26px; margin-right: 0; direction: rtl; }
375
+
376
+ .chzn-rtl .chzn-single div { left: 3px; right: auto; }
377
+ .chzn-rtl .chzn-single abbr {
378
+ left: 26px;
379
+ right: auto;
380
+ }
381
+ .chzn-rtl .chzn-choices .search-field input { direction: rtl; }
382
+ .chzn-rtl .chzn-choices li { float: right; }
383
+ .chzn-rtl .chzn-choices .search-choice { padding: 3px 5px 3px 19px; margin: 3px 5px 3px 0; }
384
+ .chzn-rtl .chzn-choices .search-choice .search-choice-close { left: 4px; right: auto; background-position: right top;}
385
+ .chzn-rtl.chzn-container-single .chzn-results { margin: 0 0 4px 4px; padding: 0 4px 0 0; }
386
+ .chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
387
+ .chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
388
+ .chzn-rtl .chzn-search input {
389
+ background: #fff url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px;
390
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
391
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
392
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
393
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
394
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
395
+ background: url("#{$chosen-img-path}/chosen-sprite.png") no-repeat -38px -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
396
+ padding: 4px 5px 4px 20px;
397
+ direction: rtl;
398
+ }
399
+ /* @end */
@@ -0,0 +1,540 @@
1
+ /*!
2
+ * Font Awesome 3.0.2
3
+ * the iconic font designed for use with Twitter Bootstrap
4
+ * -------------------------------------------------------
5
+ * The full suite of pictographic icons, examples, and documentation
6
+ * can be found at: http://fortawesome.github.com/Font-Awesome/
7
+ *
8
+ * License
9
+ * -------------------------------------------------------
10
+ * - The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL
11
+ * - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License -
12
+ * http://opensource.org/licenses/mit-license.html
13
+ * - The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/
14
+ * - Attribution is no longer required in Font Awesome 3.0, but much appreciated:
15
+ * "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome"
16
+
17
+ * Contact
18
+ * -------------------------------------------------------
19
+ * Email: dave@davegandy.com
20
+ * Twitter: http://twitter.com/fortaweso_me
21
+ * Work: Lead Product Designer @ http://kyruus.com
22
+ */
23
+ @font-face {
24
+ font-family: 'FontAwesome';
25
+ src: url('../font/fontawesome-webfont.eot?v=3.0.1');
26
+ src: url('../font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),
27
+ url('../font/fontawesome-webfont.woff?v=3.0.1') format('woff'),
28
+ url('../font/fontawesome-webfont.ttf?v=3.0.1') format('truetype');
29
+ font-weight: normal;
30
+ font-style: normal;
31
+ }
32
+ /* Font Awesome styles
33
+ ------------------------------------------------------- */
34
+ [class^="icon-"],
35
+ [class*=" icon-"] {
36
+ font-family: FontAwesome;
37
+ font-weight: normal;
38
+ font-style: normal;
39
+ text-decoration: inherit;
40
+ -webkit-font-smoothing: antialiased;
41
+
42
+ /* sprites.less reset */
43
+ display: inline;
44
+ width: auto;
45
+ height: auto;
46
+ line-height: normal;
47
+ vertical-align: baseline;
48
+ background-image: none;
49
+ background-position: 0% 0%;
50
+ background-repeat: repeat;
51
+ margin-top: 0;
52
+ }
53
+ /* more sprites.less reset */
54
+ .icon-white,
55
+ .nav-pills > .active > a > [class^="icon-"],
56
+ .nav-pills > .active > a > [class*=" icon-"],
57
+ .nav-list > .active > a > [class^="icon-"],
58
+ .nav-list > .active > a > [class*=" icon-"],
59
+ .navbar-inverse .nav > .active > a > [class^="icon-"],
60
+ .navbar-inverse .nav > .active > a > [class*=" icon-"],
61
+ .dropdown-menu > li > a:hover > [class^="icon-"],
62
+ .dropdown-menu > li > a:hover > [class*=" icon-"],
63
+ .dropdown-menu > .active > a > [class^="icon-"],
64
+ .dropdown-menu > .active > a > [class*=" icon-"],
65
+ .dropdown-submenu:hover > a > [class^="icon-"],
66
+ .dropdown-submenu:hover > a > [class*=" icon-"] {
67
+ background-image: none;
68
+ }
69
+ [class^="icon-"]:before,
70
+ [class*=" icon-"]:before {
71
+ text-decoration: inherit;
72
+ display: inline-block;
73
+ speak: none;
74
+ }
75
+ /* makes sure icons active on rollover in links */
76
+ a [class^="icon-"],
77
+ a [class*=" icon-"] {
78
+ display: inline-block;
79
+ }
80
+ /* makes the font 33% larger relative to the icon container */
81
+ .icon-large:before {
82
+ vertical-align: -10%;
83
+ font-size: 1.3333333333333333em;
84
+ }
85
+ .btn [class^="icon-"],
86
+ .nav [class^="icon-"],
87
+ .btn [class*=" icon-"],
88
+ .nav [class*=" icon-"] {
89
+ display: inline;
90
+ /* keeps button heights with and without icons the same */
91
+
92
+ }
93
+ .btn [class^="icon-"].icon-large,
94
+ .nav [class^="icon-"].icon-large,
95
+ .btn [class*=" icon-"].icon-large,
96
+ .nav [class*=" icon-"].icon-large {
97
+ line-height: .9em;
98
+ }
99
+ .btn [class^="icon-"].icon-spin,
100
+ .nav [class^="icon-"].icon-spin,
101
+ .btn [class*=" icon-"].icon-spin,
102
+ .nav [class*=" icon-"].icon-spin {
103
+ display: inline-block;
104
+ }
105
+ .nav-tabs [class^="icon-"],
106
+ .nav-pills [class^="icon-"],
107
+ .nav-tabs [class*=" icon-"],
108
+ .nav-pills [class*=" icon-"] {
109
+ /* keeps button heights with and without icons the same */
110
+
111
+ }
112
+ .nav-tabs [class^="icon-"],
113
+ .nav-pills [class^="icon-"],
114
+ .nav-tabs [class*=" icon-"],
115
+ .nav-pills [class*=" icon-"],
116
+ .nav-tabs [class^="icon-"].icon-large,
117
+ .nav-pills [class^="icon-"].icon-large,
118
+ .nav-tabs [class*=" icon-"].icon-large,
119
+ .nav-pills [class*=" icon-"].icon-large {
120
+ line-height: .9em;
121
+ }
122
+ li [class^="icon-"],
123
+ .nav li [class^="icon-"],
124
+ li [class*=" icon-"],
125
+ .nav li [class*=" icon-"] {
126
+ display: inline-block;
127
+ width: 1.25em;
128
+ text-align: center;
129
+ }
130
+ li [class^="icon-"].icon-large,
131
+ .nav li [class^="icon-"].icon-large,
132
+ li [class*=" icon-"].icon-large,
133
+ .nav li [class*=" icon-"].icon-large {
134
+ /* increased font size for icon-large */
135
+
136
+ width: 1.5625em;
137
+ }
138
+ ul.icons {
139
+ list-style-type: none;
140
+ text-indent: -0.75em;
141
+ }
142
+ ul.icons li [class^="icon-"],
143
+ ul.icons li [class*=" icon-"] {
144
+ width: .75em;
145
+ }
146
+ .icon-muted {
147
+ color: #eeeeee;
148
+ }
149
+ .icon-border {
150
+ border: solid 1px #eeeeee;
151
+ padding: .2em .25em .15em;
152
+ -webkit-border-radius: 3px;
153
+ -moz-border-radius: 3px;
154
+ border-radius: 3px;
155
+ }
156
+ .icon-2x {
157
+ font-size: 2em;
158
+ }
159
+ .icon-2x.icon-border {
160
+ border-width: 2px;
161
+ -webkit-border-radius: 4px;
162
+ -moz-border-radius: 4px;
163
+ border-radius: 4px;
164
+ }
165
+ .icon-3x {
166
+ font-size: 3em;
167
+ }
168
+ .icon-3x.icon-border {
169
+ border-width: 3px;
170
+ -webkit-border-radius: 5px;
171
+ -moz-border-radius: 5px;
172
+ border-radius: 5px;
173
+ }
174
+ .icon-4x {
175
+ font-size: 4em;
176
+ }
177
+ .icon-4x.icon-border {
178
+ border-width: 4px;
179
+ -webkit-border-radius: 6px;
180
+ -moz-border-radius: 6px;
181
+ border-radius: 6px;
182
+ }
183
+ .pull-right {
184
+ float: right;
185
+ }
186
+ .pull-left {
187
+ float: left;
188
+ }
189
+ [class^="icon-"].pull-left,
190
+ [class*=" icon-"].pull-left {
191
+ margin-right: .3em;
192
+ }
193
+ [class^="icon-"].pull-right,
194
+ [class*=" icon-"].pull-right {
195
+ margin-left: .3em;
196
+ }
197
+ .btn [class^="icon-"].pull-left.icon-2x,
198
+ .btn [class*=" icon-"].pull-left.icon-2x,
199
+ .btn [class^="icon-"].pull-right.icon-2x,
200
+ .btn [class*=" icon-"].pull-right.icon-2x {
201
+ margin-top: .18em;
202
+ }
203
+ .btn [class^="icon-"].icon-spin.icon-large,
204
+ .btn [class*=" icon-"].icon-spin.icon-large {
205
+ line-height: .8em;
206
+ }
207
+ .btn.btn-small [class^="icon-"].pull-left.icon-2x,
208
+ .btn.btn-small [class*=" icon-"].pull-left.icon-2x,
209
+ .btn.btn-small [class^="icon-"].pull-right.icon-2x,
210
+ .btn.btn-small [class*=" icon-"].pull-right.icon-2x {
211
+ margin-top: .25em;
212
+ }
213
+ .btn.btn-large [class^="icon-"],
214
+ .btn.btn-large [class*=" icon-"] {
215
+ margin-top: 0;
216
+ }
217
+ .btn.btn-large [class^="icon-"].pull-left.icon-2x,
218
+ .btn.btn-large [class*=" icon-"].pull-left.icon-2x,
219
+ .btn.btn-large [class^="icon-"].pull-right.icon-2x,
220
+ .btn.btn-large [class*=" icon-"].pull-right.icon-2x {
221
+ margin-top: .05em;
222
+ }
223
+ .btn.btn-large [class^="icon-"].pull-left.icon-2x,
224
+ .btn.btn-large [class*=" icon-"].pull-left.icon-2x {
225
+ margin-right: .2em;
226
+ }
227
+ .btn.btn-large [class^="icon-"].pull-right.icon-2x,
228
+ .btn.btn-large [class*=" icon-"].pull-right.icon-2x {
229
+ margin-left: .2em;
230
+ }
231
+ .icon-spin {
232
+ display: inline-block;
233
+ -moz-animation: spin 2s infinite linear;
234
+ -o-animation: spin 2s infinite linear;
235
+ -webkit-animation: spin 2s infinite linear;
236
+ animation: spin 2s infinite linear;
237
+ }
238
+ @-moz-keyframes spin {
239
+ 0% { -moz-transform: rotate(0deg); }
240
+ 100% { -moz-transform: rotate(359deg); }
241
+ }
242
+ @-webkit-keyframes spin {
243
+ 0% { -webkit-transform: rotate(0deg); }
244
+ 100% { -webkit-transform: rotate(359deg); }
245
+ }
246
+ @-o-keyframes spin {
247
+ 0% { -o-transform: rotate(0deg); }
248
+ 100% { -o-transform: rotate(359deg); }
249
+ }
250
+ @-ms-keyframes spin {
251
+ 0% { -ms-transform: rotate(0deg); }
252
+ 100% { -ms-transform: rotate(359deg); }
253
+ }
254
+ @keyframes spin {
255
+ 0% { transform: rotate(0deg); }
256
+ 100% { transform: rotate(359deg); }
257
+ }
258
+ @-moz-document url-prefix() {
259
+ .icon-spin {
260
+ height: .9em;
261
+ }
262
+ .btn .icon-spin {
263
+ height: auto;
264
+ }
265
+ .icon-spin.icon-large {
266
+ height: 1.25em;
267
+ }
268
+ .btn .icon-spin.icon-large {
269
+ height: .75em;
270
+ }
271
+ }
272
+ /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
273
+ readers do not read off random characters that represent icons */
274
+ .icon-glass:before { content: "\f000"; }
275
+ .icon-music:before { content: "\f001"; }
276
+ .icon-search:before { content: "\f002"; }
277
+ .icon-envelope:before { content: "\f003"; }
278
+ .icon-heart:before { content: "\f004"; }
279
+ .icon-star:before { content: "\f005"; }
280
+ .icon-star-empty:before { content: "\f006"; }
281
+ .icon-user:before { content: "\f007"; }
282
+ .icon-film:before { content: "\f008"; }
283
+ .icon-th-large:before { content: "\f009"; }
284
+ .icon-th:before { content: "\f00a"; }
285
+ .icon-th-list:before { content: "\f00b"; }
286
+ .icon-ok:before { content: "\f00c"; }
287
+ .icon-remove:before { content: "\f00d"; }
288
+ .icon-zoom-in:before { content: "\f00e"; }
289
+
290
+ .icon-zoom-out:before { content: "\f010"; }
291
+ .icon-off:before { content: "\f011"; }
292
+ .icon-signal:before { content: "\f012"; }
293
+ .icon-cog:before { content: "\f013"; }
294
+ .icon-trash:before { content: "\f014"; }
295
+ .icon-home:before { content: "\f015"; }
296
+ .icon-file:before { content: "\f016"; }
297
+ .icon-time:before { content: "\f017"; }
298
+ .icon-road:before { content: "\f018"; }
299
+ .icon-download-alt:before { content: "\f019"; }
300
+ .icon-download:before { content: "\f01a"; }
301
+ .icon-upload:before { content: "\f01b"; }
302
+ .icon-inbox:before { content: "\f01c"; }
303
+ .icon-play-circle:before { content: "\f01d"; }
304
+ .icon-repeat:before { content: "\f01e"; }
305
+
306
+ /* \f020 doesn't work in Safari. all shifted one down */
307
+ .icon-refresh:before { content: "\f021"; }
308
+ .icon-list-alt:before { content: "\f022"; }
309
+ .icon-lock:before { content: "\f023"; }
310
+ .icon-flag:before { content: "\f024"; }
311
+ .icon-headphones:before { content: "\f025"; }
312
+ .icon-volume-off:before { content: "\f026"; }
313
+ .icon-volume-down:before { content: "\f027"; }
314
+ .icon-volume-up:before { content: "\f028"; }
315
+ .icon-qrcode:before { content: "\f029"; }
316
+ .icon-barcode:before { content: "\f02a"; }
317
+ .icon-tag:before { content: "\f02b"; }
318
+ .icon-tags:before { content: "\f02c"; }
319
+ .icon-book:before { content: "\f02d"; }
320
+ .icon-bookmark:before { content: "\f02e"; }
321
+ .icon-print:before { content: "\f02f"; }
322
+
323
+ .icon-camera:before { content: "\f030"; }
324
+ .icon-font:before { content: "\f031"; }
325
+ .icon-bold:before { content: "\f032"; }
326
+ .icon-italic:before { content: "\f033"; }
327
+ .icon-text-height:before { content: "\f034"; }
328
+ .icon-text-width:before { content: "\f035"; }
329
+ .icon-align-left:before { content: "\f036"; }
330
+ .icon-align-center:before { content: "\f037"; }
331
+ .icon-align-right:before { content: "\f038"; }
332
+ .icon-align-justify:before { content: "\f039"; }
333
+ .icon-list:before { content: "\f03a"; }
334
+ .icon-indent-left:before { content: "\f03b"; }
335
+ .icon-indent-right:before { content: "\f03c"; }
336
+ .icon-facetime-video:before { content: "\f03d"; }
337
+ .icon-picture:before { content: "\f03e"; }
338
+
339
+ .icon-pencil:before { content: "\f040"; }
340
+ .icon-map-marker:before { content: "\f041"; }
341
+ .icon-adjust:before { content: "\f042"; }
342
+ .icon-tint:before { content: "\f043"; }
343
+ .icon-edit:before { content: "\f044"; }
344
+ .icon-share:before { content: "\f045"; }
345
+ .icon-check:before { content: "\f046"; }
346
+ .icon-move:before { content: "\f047"; }
347
+ .icon-step-backward:before { content: "\f048"; }
348
+ .icon-fast-backward:before { content: "\f049"; }
349
+ .icon-backward:before { content: "\f04a"; }
350
+ .icon-play:before { content: "\f04b"; }
351
+ .icon-pause:before { content: "\f04c"; }
352
+ .icon-stop:before { content: "\f04d"; }
353
+ .icon-forward:before { content: "\f04e"; }
354
+
355
+ .icon-fast-forward:before { content: "\f050"; }
356
+ .icon-step-forward:before { content: "\f051"; }
357
+ .icon-eject:before { content: "\f052"; }
358
+ .icon-chevron-left:before { content: "\f053"; }
359
+ .icon-chevron-right:before { content: "\f054"; }
360
+ .icon-plus-sign:before { content: "\f055"; }
361
+ .icon-minus-sign:before { content: "\f056"; }
362
+ .icon-remove-sign:before { content: "\f057"; }
363
+ .icon-ok-sign:before { content: "\f058"; }
364
+ .icon-question-sign:before { content: "\f059"; }
365
+ .icon-info-sign:before { content: "\f05a"; }
366
+ .icon-screenshot:before { content: "\f05b"; }
367
+ .icon-remove-circle:before { content: "\f05c"; }
368
+ .icon-ok-circle:before { content: "\f05d"; }
369
+ .icon-ban-circle:before { content: "\f05e"; }
370
+
371
+ .icon-arrow-left:before { content: "\f060"; }
372
+ .icon-arrow-right:before { content: "\f061"; }
373
+ .icon-arrow-up:before { content: "\f062"; }
374
+ .icon-arrow-down:before { content: "\f063"; }
375
+ .icon-share-alt:before { content: "\f064"; }
376
+ .icon-resize-full:before { content: "\f065"; }
377
+ .icon-resize-small:before { content: "\f066"; }
378
+ .icon-plus:before { content: "\f067"; }
379
+ .icon-minus:before { content: "\f068"; }
380
+ .icon-asterisk:before { content: "\f069"; }
381
+ .icon-exclamation-sign:before { content: "\f06a"; }
382
+ .icon-gift:before { content: "\f06b"; }
383
+ .icon-leaf:before { content: "\f06c"; }
384
+ .icon-fire:before { content: "\f06d"; }
385
+ .icon-eye-open:before { content: "\f06e"; }
386
+
387
+ .icon-eye-close:before { content: "\f070"; }
388
+ .icon-warning-sign:before { content: "\f071"; }
389
+ .icon-plane:before { content: "\f072"; }
390
+ .icon-calendar:before { content: "\f073"; }
391
+ .icon-random:before { content: "\f074"; }
392
+ .icon-comment:before { content: "\f075"; }
393
+ .icon-magnet:before { content: "\f076"; }
394
+ .icon-chevron-up:before { content: "\f077"; }
395
+ .icon-chevron-down:before { content: "\f078"; }
396
+ .icon-retweet:before { content: "\f079"; }
397
+ .icon-shopping-cart:before { content: "\f07a"; }
398
+ .icon-folder-close:before { content: "\f07b"; }
399
+ .icon-folder-open:before { content: "\f07c"; }
400
+ .icon-resize-vertical:before { content: "\f07d"; }
401
+ .icon-resize-horizontal:before { content: "\f07e"; }
402
+
403
+ .icon-bar-chart:before { content: "\f080"; }
404
+ .icon-twitter-sign:before { content: "\f081"; }
405
+ .icon-facebook-sign:before { content: "\f082"; }
406
+ .icon-camera-retro:before { content: "\f083"; }
407
+ .icon-key:before { content: "\f084"; }
408
+ .icon-cogs:before { content: "\f085"; }
409
+ .icon-comments:before { content: "\f086"; }
410
+ .icon-thumbs-up:before { content: "\f087"; }
411
+ .icon-thumbs-down:before { content: "\f088"; }
412
+ .icon-star-half:before { content: "\f089"; }
413
+ .icon-heart-empty:before { content: "\f08a"; }
414
+ .icon-signout:before { content: "\f08b"; }
415
+ .icon-linkedin-sign:before { content: "\f08c"; }
416
+ .icon-pushpin:before { content: "\f08d"; }
417
+ .icon-external-link:before { content: "\f08e"; }
418
+
419
+ .icon-signin:before { content: "\f090"; }
420
+ .icon-trophy:before { content: "\f091"; }
421
+ .icon-github-sign:before { content: "\f092"; }
422
+ .icon-upload-alt:before { content: "\f093"; }
423
+ .icon-lemon:before { content: "\f094"; }
424
+ .icon-phone:before { content: "\f095"; }
425
+ .icon-check-empty:before { content: "\f096"; }
426
+ .icon-bookmark-empty:before { content: "\f097"; }
427
+ .icon-phone-sign:before { content: "\f098"; }
428
+ .icon-twitter:before { content: "\f099"; }
429
+ .icon-facebook:before { content: "\f09a"; }
430
+ .icon-github:before { content: "\f09b"; }
431
+ .icon-unlock:before { content: "\f09c"; }
432
+ .icon-credit-card:before { content: "\f09d"; }
433
+ .icon-rss:before { content: "\f09e"; }
434
+
435
+ .icon-hdd:before { content: "\f0a0"; }
436
+ .icon-bullhorn:before { content: "\f0a1"; }
437
+ .icon-bell:before { content: "\f0a2"; }
438
+ .icon-certificate:before { content: "\f0a3"; }
439
+ .icon-hand-right:before { content: "\f0a4"; }
440
+ .icon-hand-left:before { content: "\f0a5"; }
441
+ .icon-hand-up:before { content: "\f0a6"; }
442
+ .icon-hand-down:before { content: "\f0a7"; }
443
+ .icon-circle-arrow-left:before { content: "\f0a8"; }
444
+ .icon-circle-arrow-right:before { content: "\f0a9"; }
445
+ .icon-circle-arrow-up:before { content: "\f0aa"; }
446
+ .icon-circle-arrow-down:before { content: "\f0ab"; }
447
+ .icon-globe:before { content: "\f0ac"; }
448
+ .icon-wrench:before { content: "\f0ad"; }
449
+ .icon-tasks:before { content: "\f0ae"; }
450
+
451
+ .icon-filter:before { content: "\f0b0"; }
452
+ .icon-briefcase:before { content: "\f0b1"; }
453
+ .icon-fullscreen:before { content: "\f0b2"; }
454
+
455
+ .icon-group:before { content: "\f0c0"; }
456
+ .icon-link:before { content: "\f0c1"; }
457
+ .icon-cloud:before { content: "\f0c2"; }
458
+ .icon-beaker:before { content: "\f0c3"; }
459
+ .icon-cut:before { content: "\f0c4"; }
460
+ .icon-copy:before { content: "\f0c5"; }
461
+ .icon-paper-clip:before { content: "\f0c6"; }
462
+ .icon-save:before { content: "\f0c7"; }
463
+ .icon-sign-blank:before { content: "\f0c8"; }
464
+ .icon-reorder:before { content: "\f0c9"; }
465
+ .icon-list-ul:before { content: "\f0ca"; }
466
+ .icon-list-ol:before { content: "\f0cb"; }
467
+ .icon-strikethrough:before { content: "\f0cc"; }
468
+ .icon-underline:before { content: "\f0cd"; }
469
+ .icon-table:before { content: "\f0ce"; }
470
+
471
+ .icon-magic:before { content: "\f0d0"; }
472
+ .icon-truck:before { content: "\f0d1"; }
473
+ .icon-pinterest:before { content: "\f0d2"; }
474
+ .icon-pinterest-sign:before { content: "\f0d3"; }
475
+ .icon-google-plus-sign:before { content: "\f0d4"; }
476
+ .icon-google-plus:before { content: "\f0d5"; }
477
+ .icon-money:before { content: "\f0d6"; }
478
+ .icon-caret-down:before { content: "\f0d7"; }
479
+ .icon-caret-up:before { content: "\f0d8"; }
480
+ .icon-caret-left:before { content: "\f0d9"; }
481
+ .icon-caret-right:before { content: "\f0da"; }
482
+ .icon-columns:before { content: "\f0db"; }
483
+ .icon-sort:before { content: "\f0dc"; }
484
+ .icon-sort-down:before { content: "\f0dd"; }
485
+ .icon-sort-up:before { content: "\f0de"; }
486
+
487
+ .icon-envelope-alt:before { content: "\f0e0"; }
488
+ .icon-linkedin:before { content: "\f0e1"; }
489
+ .icon-undo:before { content: "\f0e2"; }
490
+ .icon-legal:before { content: "\f0e3"; }
491
+ .icon-dashboard:before { content: "\f0e4"; }
492
+ .icon-comment-alt:before { content: "\f0e5"; }
493
+ .icon-comments-alt:before { content: "\f0e6"; }
494
+ .icon-bolt:before { content: "\f0e7"; }
495
+ .icon-sitemap:before { content: "\f0e8"; }
496
+ .icon-umbrella:before { content: "\f0e9"; }
497
+ .icon-paste:before { content: "\f0ea"; }
498
+ .icon-lightbulb:before { content: "\f0eb"; }
499
+ .icon-exchange:before { content: "\f0ec"; }
500
+ .icon-cloud-download:before { content: "\f0ed"; }
501
+ .icon-cloud-upload:before { content: "\f0ee"; }
502
+
503
+ .icon-user-md:before { content: "\f0f0"; }
504
+ .icon-stethoscope:before { content: "\f0f1"; }
505
+ .icon-suitcase:before { content: "\f0f2"; }
506
+ .icon-bell-alt:before { content: "\f0f3"; }
507
+ .icon-coffee:before { content: "\f0f4"; }
508
+ .icon-food:before { content: "\f0f5"; }
509
+ .icon-file-alt:before { content: "\f0f6"; }
510
+ .icon-building:before { content: "\f0f7"; }
511
+ .icon-hospital:before { content: "\f0f8"; }
512
+ .icon-ambulance:before { content: "\f0f9"; }
513
+ .icon-medkit:before { content: "\f0fa"; }
514
+ .icon-fighter-jet:before { content: "\f0fb"; }
515
+ .icon-beer:before { content: "\f0fc"; }
516
+ .icon-h-sign:before { content: "\f0fd"; }
517
+ .icon-plus-sign-alt:before { content: "\f0fe"; }
518
+
519
+ .icon-double-angle-left:before { content: "\f100"; }
520
+ .icon-double-angle-right:before { content: "\f101"; }
521
+ .icon-double-angle-up:before { content: "\f102"; }
522
+ .icon-double-angle-down:before { content: "\f103"; }
523
+ .icon-angle-left:before { content: "\f104"; }
524
+ .icon-angle-right:before { content: "\f105"; }
525
+ .icon-angle-up:before { content: "\f106"; }
526
+ .icon-angle-down:before { content: "\f107"; }
527
+ .icon-desktop:before { content: "\f108"; }
528
+ .icon-laptop:before { content: "\f109"; }
529
+ .icon-tablet:before { content: "\f10a"; }
530
+ .icon-mobile-phone:before { content: "\f10b"; }
531
+ .icon-circle-blank:before { content: "\f10c"; }
532
+ .icon-quote-left:before { content: "\f10d"; }
533
+ .icon-quote-right:before { content: "\f10e"; }
534
+
535
+ .icon-spinner:before { content: "\f110"; }
536
+ .icon-circle:before { content: "\f111"; }
537
+ .icon-reply:before { content: "\f112"; }
538
+ .icon-github-alt:before { content: "\f113"; }
539
+ .icon-folder-close-alt:before { content: "\f114"; }
540
+ .icon-folder-open-alt:before { content: "\f115"; }