");
287 | imgClass = this.option.data("img-class");
288 | if (imgClass) {
289 | this.node.addClass(imgClass);
290 | image.addClass(imgClass);
291 | thumbnail.addClass(imgClass);
292 | }
293 | imgAlt = this.option.data("img-alt");
294 | if (imgAlt) {
295 | image.attr('alt', imgAlt);
296 | }
297 | thumbnail.on("click", this.clicked);
298 | thumbnail.append(image);
299 | if (this.opts.show_label) {
300 | thumbnail.append(jQuery("
").html(this.label()));
301 | }
302 | this.node.append(thumbnail);
303 | return this.node;
304 | };
305 |
306 | return ImagePickerOption;
307 |
308 | })();
309 |
310 | }).call(this);
311 |
--------------------------------------------------------------------------------
/docs/lib/smartwizard/dist/js/jquery.smartWizard.min.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * SmartWizard v4.3.1
3 | * The awesome jQuery step wizard plugin with Bootstrap support
4 | * http://www.techlaboratory.net/smartwizard
5 | *
6 | * Created by Dipu Raj
7 | * http://dipuraj.me
8 | *
9 | * Licensed under the terms of the MIT License
10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE
11 | */
12 | !function(t,s,e,n){"use strict";function i(s,e){this.options=t.extend(!0,{},o,e),this.main=t(s),this.nav=this.main.children("ul"),this.steps=t("li > a",this.nav),this.container=this.main.children("div"),this.pages=this.container.children("div"),this.current_index=null,this.options.toolbarSettings.toolbarButtonPosition="right"===this.options.toolbarSettings.toolbarButtonPosition?"end":this.options.toolbarSettings.toolbarButtonPosition,this.options.toolbarSettings.toolbarButtonPosition="left"===this.options.toolbarSettings.toolbarButtonPosition?"start":this.options.toolbarSettings.toolbarButtonPosition,this.options.theme=null===this.options.theme||""===this.options.theme?"default":this.options.theme,this.init()}var o={selected:0,keyNavigation:!0,autoAdjustHeight:!0,cycleSteps:!1,backButtonSupport:!0,useURLhash:!0,showStepURLhash:!0,lang:{next:"Next",previous:"Previous"},toolbarSettings:{toolbarPosition:"bottom",toolbarButtonPosition:"end",showNextButton:!0,showPreviousButton:!0,toolbarExtraButtons:[]},anchorSettings:{anchorClickable:!0,enableAllAnchors:!1,markDoneStep:!0,markAllPreviousStepsAsDone:!0,removeDoneStepOnNavigateBack:!1,enableAnchorOnDoneStep:!0},contentURL:null,contentCache:!0,ajaxSettings:{},disabledSteps:[],errorSteps:[],hiddenSteps:[],theme:"default",transitionEffect:"none",transitionSpeed:"400"};t.extend(i.prototype,{init:function(){this._setElements(),this._setToolbar(),this._setEvents();var e=this.options.selected;if(this.options.useURLhash){var n=s.location.hash;if(n&&n.length>0){var i=t("a[href*='"+n+"']",this.nav);if(i.length>0){var o=this.steps.index(i);e=o>=0?o:e}}}e>0&&this.options.anchorSettings.markDoneStep&&this.options.anchorSettings.markAllPreviousStepsAsDone&&this.steps.eq(e).parent("li").prevAll().addClass("done"),this._showStep(e)},_setElements:function(){this.main.addClass("sw-main sw-theme-"+this.options.theme),this.nav.addClass("nav nav-tabs step-anchor").children("li").addClass("nav-item").children("a").addClass("nav-link"),this.options.anchorSettings.enableAllAnchors!==!1&&this.options.anchorSettings.anchorClickable!==!1&&this.steps.parent("li").addClass("clickable"),this.container.addClass("sw-container tab-content"),this.pages.addClass("tab-pane step-content");var s=this;return this.options.disabledSteps&&this.options.disabledSteps.length>0&&t.each(this.options.disabledSteps,function(t,e){s.steps.eq(e).parent("li").addClass("disabled")}),this.options.errorSteps&&this.options.errorSteps.length>0&&t.each(this.options.errorSteps,function(t,e){s.steps.eq(e).parent("li").addClass("danger")}),this.options.hiddenSteps&&this.options.hiddenSteps.length>0&&t.each(this.options.hiddenSteps,function(t,e){s.steps.eq(e).parent("li").addClass("hidden")}),!0},_setToolbar:function(){if("none"===this.options.toolbarSettings.toolbarPosition)return!0;var s=this.options.toolbarSettings.showNextButton!==!1?t("
").text(this.options.lang.next).addClass("btn btn-secondary sw-btn-next").attr("type","button"):null,e=this.options.toolbarSettings.showPreviousButton!==!1?t("
").text(this.options.lang.previous).addClass("btn btn-secondary sw-btn-prev").attr("type","button"):null,n=t("
").addClass("btn-group mr-2 sw-btn-group").attr("role","group").append(e,s),i=null;this.options.toolbarSettings.toolbarExtraButtons&&this.options.toolbarSettings.toolbarExtraButtons.length>0&&(i=t("
").addClass("btn-group mr-2 sw-btn-group-extra").attr("role","group"),t.each(this.options.toolbarSettings.toolbarExtraButtons,function(t,s){i.append(s.clone(!0))}));var o,a;switch(this.options.toolbarSettings.toolbarPosition){case"top":o=t("
").addClass("btn-toolbar sw-toolbar sw-toolbar-top justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),o.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?o.prepend(i):o.append(i),this.container.before(o);break;case"bottom":a=t("
").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),a.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?a.prepend(i):a.append(i),this.container.after(a);break;case"both":o=t("
").addClass("btn-toolbar sw-toolbar sw-toolbar-top justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),o.append(n),"start"===this.options.toolbarSettings.toolbarButtonPosition?o.prepend(i):o.append(i),this.container.before(o),a=t("
").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),a.append(n.clone(!0)),null!==i&&("start"===this.options.toolbarSettings.toolbarButtonPosition?a.prepend(i.clone(!0)):a.append(i.clone(!0))),this.container.after(a);break;default:a=t("
").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition),a.append(n),this.options.toolbarSettings.toolbarButtonPosition,a.append(i),this.container.after(a)}return!0},_setEvents:function(){var n=this;return t(this.steps).on("click",function(t){if(t.preventDefault(),n.options.anchorSettings.anchorClickable===!1)return!0;var s=n.steps.index(this);if(n.options.anchorSettings.enableAnchorOnDoneStep===!1&&n.steps.eq(s).parent("li").hasClass("done"))return!0;s!==n.current_index&&(n.options.anchorSettings.enableAllAnchors!==!1&&n.options.anchorSettings.anchorClickable!==!1?n._showStep(s):n.steps.eq(s).parent("li").hasClass("done")&&n._showStep(s))}),t(".sw-btn-next",this.main).on("click",function(t){t.preventDefault(),n._showNext()}),t(".sw-btn-prev",this.main).on("click",function(t){t.preventDefault(),n._showPrevious()}),this.options.keyNavigation&&t(e).keyup(function(t){n._keyNav(t)}),this.options.backButtonSupport&&t(s).on("hashchange",function(e){if(!n.options.useURLhash)return!0;if(s.location.hash){var i=t("a[href*='"+s.location.hash+"']",n.nav);i&&i.length>0&&(e.preventDefault(),n._showStep(n.steps.index(i)))}}),!0},_showNext:function(){for(var t=this.current_index+1,s=t;s
=0;s--)if(!this.steps.eq(s).parent("li").hasClass("disabled")&&!this.steps.eq(s).parent("li").hasClass("hidden")){t=s;break}if(0>t){if(!this.options.cycleSteps)return!1;t=this.steps.length-1}return this._showStep(t),!0},_showStep:function(t){return!!this.steps.eq(t)&&(t!=this.current_index&&(!this.steps.eq(t).parent("li").hasClass("disabled")&&!this.steps.eq(t).parent("li").hasClass("hidden")&&(this._loadStepContent(t),!0)))},_loadStepContent:function(s){var e=this,n=this.steps.eq(this.current_index),i="",o=this.steps.eq(s),a=o.data("content-url")&&o.data("content-url").length>0?o.data("content-url"):this.options.contentURL;if(null!==this.current_index&&this.current_index!==s&&(i=this.current_index0)||o.data("has-content")&&this.options.contentCache)this._transitPage(s);else{var r=o.length>0?t(o.attr("href"),this.main):null,h=t.extend(!0,{},{url:a,type:"POST",data:{step_number:s},dataType:"text",beforeSend:function(){e._loader("show")},error:function(s,n,i){e._loader("hide"),t.error(i)},success:function(t){t&&t.length>0&&(o.data("has-content",!0),r.html(t)),e._loader("hide"),e._transitPage(s)}},this.options.ajaxSettings);t.ajax(h)}return!0},_transitPage:function(s){var e=this,n=this.steps.eq(this.current_index),i=n.length>0?t(n.attr("href"),this.main):null,o=this.steps.eq(s),a=o.length>0?t(o.attr("href"),this.main):null,r="";null!==this.current_index&&this.current_index!==s&&(r=this.current_index0?i.slideUp("fast",this.options.transitionEasing,function(){a.slideDown(e.options.transitionSpeed,e.options.transitionEasing)}):a.slideDown(this.options.transitionSpeed,this.options.transitionEasing):"fade"===this.options.transitionEffect?i&&i.length>0?i.fadeOut("fast",this.options.transitionEasing,function(){a.fadeIn("fast",e.options.transitionEasing,function(){t(this).show()})}):a.fadeIn(this.options.transitionSpeed,this.options.transitionEasing,function(){t(this).show()}):(i&&i.length>0&&i.hide(),a.show()),this._setURLHash(o.attr("href")),this._setAnchor(s),this._setButtons(s),this._fixHeight(s),this.current_index=s,this._triggerEvent("showStep",[o,this.current_index,r,h]),!0},_setAnchor:function(t){return this.steps.eq(this.current_index).parent("li").removeClass("active"),this.options.anchorSettings.markDoneStep!==!1&&null!==this.current_index&&(this.steps.eq(this.current_index).parent("li").addClass("done"),this.options.anchorSettings.removeDoneStepOnNavigateBack!==!1&&this.steps.eq(t).parent("li").nextAll().removeClass("done")),this.steps.eq(t).parent("li").removeClass("done").addClass("active"),!0},_setButtons:function(s){return this.options.cycleSteps||(0>=s?t(".sw-btn-prev",this.main).addClass("disabled"):t(".sw-btn-prev",this.main).removeClass("disabled"),this.steps.length-1<=s?t(".sw-btn-next",this.main).addClass("disabled"):t(".sw-btn-next",this.main).removeClass("disabled")),!0},_keyNav:function(t){var s=this;switch(t.which){case 37:s._showPrevious(),t.preventDefault();break;case 39:s._showNext(),t.preventDefault();break;default:return}},_fixHeight:function(s){if(this.options.autoAdjustHeight){var e=this.steps.eq(s).length>0?t(this.steps.eq(s).attr("href"),this.main):null;this.container.finish().animate({minHeight:e.outerHeight()},this.options.transitionSpeed,function(){})}return!0},_triggerEvent:function(s,e){var n=t.Event(s);return this.main.trigger(n,e),!n.isDefaultPrevented()&&n.result},_setURLHash:function(t){this.options.showStepURLhash&&s.location.hash!==t&&(s.location.hash=t)},_loader:function(t){switch(t){case"show":this.main.addClass("sw-loading");break;case"hide":this.main.removeClass("sw-loading");break;default:this.main.toggleClass("sw-loading")}},theme:function(t){if(this.options.theme===t)return!1;this.main.removeClass("sw-theme-"+this.options.theme),this.options.theme=t,this.main.addClass("sw-theme-"+this.options.theme),this._triggerEvent("themeChanged",[this.options.theme])},next:function(){this._showNext()},prev:function(){this._showPrevious()},reset:function(){if(this._triggerEvent("beginReset")===!1)return!1;this.container.stop(!0),this.pages.stop(!0),this.pages.hide(),this.current_index=null,this._setURLHash(this.steps.eq(this.options.selected).attr("href")),t(".sw-toolbar",this.main).remove(),this.steps.removeClass(),this.steps.parents("li").removeClass(),this.steps.data("has-content",!1),this.init(),this._triggerEvent("endReset")},stepState:function(s,e){s=t.isArray(s)?s:[s];var n=t.grep(this.steps,function(e,n){return t.inArray(n,s)!==-1});if(n&&n.length>0)switch(e){case"disable":t(n).parents("li").addClass("disabled");break;case"enable":t(n).parents("li").removeClass("disabled");break;case"hide":t(n).parents("li").addClass("hidden");break;case"show":t(n).parents("li").removeClass("hidden");break;case"error-on":t(n).parents("li").addClass("danger");break;case"error-off":t(n).parents("li").removeClass("danger")}}}),t.fn.smartWizard=function(s){var e,n=arguments;return void 0===s||"object"==typeof s?this.each(function(){t.data(this,"smartWizard")||t.data(this,"smartWizard",new i(this,s))}):"string"==typeof s&&"_"!==s[0]&&"init"!==s?(e=t.data(this[0],"smartWizard"),"destroy"===s&&t.data(this,"smartWizard",null),e instanceof i&&"function"==typeof e[s]?e[s].apply(e,Array.prototype.slice.call(n,1)):this):void 0}}(jQuery,window,document);
--------------------------------------------------------------------------------
/docs/lib/select2/4.0.6-rc.0/css/select2.min.css:
--------------------------------------------------------------------------------
1 | .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
2 |
--------------------------------------------------------------------------------
/docs/lib/select2-bootstrap-theme/dist/select2-bootstrap.min.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Select2 Bootstrap Theme v0.1.0-beta.10 (https://select2.github.io/select2-bootstrap-theme)
3 | * Copyright 2015-2017 Florian Kissling and contributors (https://github.com/select2/select2-bootstrap-theme/graphs/contributors)
4 | * Licensed under MIT (https://github.com/select2/select2-bootstrap-theme/blob/master/LICENSE)
5 | */
6 |
7 | .select2-container--bootstrap{display:block}.select2-container--bootstrap .select2-selection{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);background-color:#fff;border:1px solid #ccc;border-radius:4px;color:#555;font-size:14px;outline:0}.select2-container--bootstrap .select2-selection.form-control{border-radius:4px}.select2-container--bootstrap .select2-search--dropdown .select2-search__field{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);background-color:#fff;border:1px solid #ccc;border-radius:4px;color:#555;font-size:14px}.select2-container--bootstrap .select2-search__field{outline:0}.select2-container--bootstrap .select2-search__field::-webkit-input-placeholder{color:#999}.select2-container--bootstrap .select2-search__field:-moz-placeholder{color:#999}.select2-container--bootstrap .select2-search__field::-moz-placeholder{color:#999;opacity:1}.select2-container--bootstrap .select2-search__field:-ms-input-placeholder{color:#999}.select2-container--bootstrap .select2-results__option{padding:6px 12px}.select2-container--bootstrap .select2-results__option[role=group]{padding:0}.select2-container--bootstrap .select2-results__option[aria-disabled=true]{color:#777;cursor:not-allowed}.select2-container--bootstrap .select2-results__option[aria-selected=true]{background-color:#f5f5f5;color:#262626}.select2-container--bootstrap .select2-results__option--highlighted[aria-selected]{background-color:#337ab7;color:#fff}.select2-container--bootstrap .select2-results__option .select2-results__option{padding:6px 12px}.select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option{margin-left:-12px;padding-left:24px}.select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-24px;padding-left:36px}.select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-36px;padding-left:48px}.select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-48px;padding-left:60px}.select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-60px;padding-left:72px}.select2-container--bootstrap .select2-results__group{color:#777;display:block;padding:6px 12px;font-size:12px;line-height:1.42857143;white-space:nowrap}.select2-container--bootstrap.select2-container--focus .select2-selection,.select2-container--bootstrap.select2-container--open .select2-selection{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;border-color:#66afe9}.select2-container--bootstrap.select2-container--open .select2-selection .select2-selection__arrow b{border-color:transparent transparent #999;border-width:0 4px 4px}.select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection{border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-color:transparent}.select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection{border-top-right-radius:0;border-top-left-radius:0;border-top-color:transparent}.select2-container--bootstrap .select2-selection__clear{color:#999;cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--bootstrap .select2-selection__clear:hover{color:#333}.select2-container--bootstrap.select2-container--disabled .select2-selection{border-color:#ccc;-webkit-box-shadow:none;box-shadow:none}.select2-container--bootstrap.select2-container--disabled .select2-search__field,.select2-container--bootstrap.select2-container--disabled .select2-selection{cursor:not-allowed}.select2-container--bootstrap.select2-container--disabled .select2-selection,.select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice{background-color:#eee}.select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove,.select2-container--bootstrap.select2-container--disabled .select2-selection__clear{display:none}.select2-container--bootstrap .select2-dropdown{-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);border-color:#66afe9;overflow-x:hidden;margin-top:-1px}.select2-container--bootstrap .select2-dropdown--above{-webkit-box-shadow:0 -6px 12px rgba(0,0,0,.175);box-shadow:0 -6px 12px rgba(0,0,0,.175);margin-top:1px}.select2-container--bootstrap .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--bootstrap .select2-selection--single{height:34px;line-height:1.42857143;padding:6px 24px 6px 12px}.select2-container--bootstrap .select2-selection--single .select2-selection__arrow{position:absolute;bottom:0;right:12px;top:0;width:4px}.select2-container--bootstrap .select2-selection--single .select2-selection__arrow b{border-color:#999 transparent transparent;border-style:solid;border-width:4px 4px 0;height:0;left:0;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--bootstrap .select2-selection--single .select2-selection__rendered{color:#555;padding:0}.select2-container--bootstrap .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--bootstrap .select2-selection--multiple{min-height:34px;padding:0;height:auto}.select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;line-height:1.42857143;list-style:none;margin:0;overflow:hidden;padding:0;width:100%;text-overflow:ellipsis;white-space:nowrap}.select2-container--bootstrap .select2-selection--multiple .select2-selection__placeholder{color:#999;float:left;margin-top:5px}.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice{color:#555;background:#fff;border:1px solid #ccc;border-radius:4px;cursor:default;float:left;margin:5px 0 0 6px;padding:0 6px}.select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field{background:0 0;padding:0 12px;height:32px;line-height:1.42857143;margin-top:0;min-width:5em}.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:3px}.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--bootstrap .select2-selection--multiple .select2-selection__clear{margin-top:6px}.form-group-sm .select2-container--bootstrap .select2-selection--single,.input-group-sm .select2-container--bootstrap .select2-selection--single,.select2-container--bootstrap .select2-selection--single.input-sm{border-radius:3px;font-size:12px;height:30px;line-height:1.5;padding:5px 22px 5px 10px}.form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,.input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,.select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b{margin-left:-5px}.form-group-sm .select2-container--bootstrap .select2-selection--multiple,.input-group-sm .select2-container--bootstrap .select2-selection--multiple,.select2-container--bootstrap .select2-selection--multiple.input-sm{min-height:30px;border-radius:3px}.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,.input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,.select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice{font-size:12px;line-height:1.5;margin:4px 0 0 5px;padding:0 5px}.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,.input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,.select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field{padding:0 10px;font-size:12px;height:28px;line-height:1.5}.form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,.input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,.select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear{margin-top:5px}.form-group-lg .select2-container--bootstrap .select2-selection--single,.input-group-lg .select2-container--bootstrap .select2-selection--single,.select2-container--bootstrap .select2-selection--single.input-lg{border-radius:6px;font-size:18px;height:46px;line-height:1.3333333;padding:10px 31px 10px 16px}.form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow,.input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow,.select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow{width:5px}.form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,.input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,.select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b{border-width:5px 5px 0;margin-left:-10px;margin-top:-2.5px}.form-group-lg .select2-container--bootstrap .select2-selection--multiple,.input-group-lg .select2-container--bootstrap .select2-selection--multiple,.select2-container--bootstrap .select2-selection--multiple.input-lg{min-height:46px;border-radius:6px}.form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,.input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,.select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice{font-size:18px;line-height:1.3333333;border-radius:4px;margin:9px 0 0 8px;padding:0 10px}.form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,.input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,.select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field{padding:0 16px;font-size:18px;height:44px;line-height:1.3333333}.form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,.input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,.select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear{margin-top:10px}.input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b,.select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #999;border-width:0 5px 5px}.select2-container--bootstrap[dir=rtl] .select2-selection--single{padding-left:24px;padding-right:12px}.select2-container--bootstrap[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:0;padding-left:0;text-align:right}.select2-container--bootstrap[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--bootstrap[dir=rtl] .select2-selection--single .select2-selection__arrow{left:12px;right:auto}.select2-container--bootstrap[dir=rtl] .select2-selection--single .select2-selection__arrow b{margin-left:0}.select2-container--bootstrap[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--bootstrap[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--bootstrap[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--bootstrap[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:0;margin-right:6px}.select2-container--bootstrap[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.has-warning .select2-dropdown,.has-warning .select2-selection{border-color:#8a6d3b}.has-warning .select2-container--focus .select2-selection,.has-warning .select2-container--open .select2-selection{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;border-color:#66512c}.has-warning.select2-drop-active{border-color:#66512c}.has-warning.select2-drop-active.select2-drop.select2-drop-above{border-top-color:#66512c}.has-error .select2-dropdown,.has-error .select2-selection{border-color:#a94442}.has-error .select2-container--focus .select2-selection,.has-error .select2-container--open .select2-selection{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;border-color:#843534}.has-error.select2-drop-active{border-color:#843534}.has-error.select2-drop-active.select2-drop.select2-drop-above{border-top-color:#843534}.has-success .select2-dropdown,.has-success .select2-selection{border-color:#3c763d}.has-success .select2-container--focus .select2-selection,.has-success .select2-container--open .select2-selection{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;border-color:#2b542c}.has-success.select2-drop-active{border-color:#2b542c}.has-success.select2-drop-active.select2-drop.select2-drop-above{border-top-color:#2b542c}.input-group>.select2-hidden-accessible:first-child+.select2-container--bootstrap>.selection>.select2-selection,.input-group>.select2-hidden-accessible:first-child+.select2-container--bootstrap>.selection>.select2-selection.form-control{border-bottom-right-radius:0;border-top-right-radius:0}.input-group>.select2-hidden-accessible:not(:first-child)+.select2-container--bootstrap:not(:last-child)>.selection>.select2-selection,.input-group>.select2-hidden-accessible:not(:first-child)+.select2-container--bootstrap:not(:last-child)>.selection>.select2-selection.form-control{border-radius:0}.input-group>.select2-hidden-accessible:not(:first-child):not(:last-child)+.select2-container--bootstrap:last-child>.selection>.select2-selection,.input-group>.select2-hidden-accessible:not(:first-child):not(:last-child)+.select2-container--bootstrap:last-child>.selection>.select2-selection.form-control{border-bottom-left-radius:0;border-top-left-radius:0}.input-group>.select2-container--bootstrap{display:table;table-layout:fixed;position:relative;z-index:2;width:100%;margin-bottom:0}.input-group>.select2-container--bootstrap>.selection>.select2-selection.form-control{float:none}.input-group>.select2-container--bootstrap.select2-container--focus,.input-group>.select2-container--bootstrap.select2-container--open{z-index:3}.input-group>.select2-container--bootstrap,.input-group>.select2-container--bootstrap .input-group-btn,.input-group>.select2-container--bootstrap .input-group-btn .btn{vertical-align:top}.form-control.select2-hidden-accessible{position:absolute!important;width:1px!important}@media (min-width:768px){.form-inline .select2-container--bootstrap{display:inline-block}}
8 |
--------------------------------------------------------------------------------
/docs/lib/select2-bootstrap-theme/dist/select2-bootstrap.css:
--------------------------------------------------------------------------------
1 | /*!
2 | * Select2 Bootstrap Theme v0.1.0-beta.10 (https://select2.github.io/select2-bootstrap-theme)
3 | * Copyright 2015-2017 Florian Kissling and contributors (https://github.com/select2/select2-bootstrap-theme/graphs/contributors)
4 | * Licensed under MIT (https://github.com/select2/select2-bootstrap-theme/blob/master/LICENSE)
5 | */
6 |
7 | .select2-container--bootstrap {
8 | display: block;
9 | /*------------------------------------* #COMMON STYLES
10 | \*------------------------------------*/
11 | /**
12 | * Search field in the Select2 dropdown.
13 | */
14 | /**
15 | * No outline for all search fields - in the dropdown
16 | * and inline in multi Select2s.
17 | */
18 | /**
19 | * Adjust Select2's choices hover and selected styles to match
20 | * Bootstrap 3's default dropdown styles.
21 | *
22 | * @see http://getbootstrap.com/components/#dropdowns
23 | */
24 | /**
25 | * Clear the selection.
26 | */
27 | /**
28 | * Address disabled Select2 styles.
29 | *
30 | * @see https://select2.github.io/examples.html#disabled
31 | * @see http://getbootstrap.com/css/#forms-control-disabled
32 | */
33 | /*------------------------------------* #DROPDOWN
34 | \*------------------------------------*/
35 | /**
36 | * Dropdown border color and box-shadow.
37 | */
38 | /**
39 | * Limit the dropdown height.
40 | */
41 | /*------------------------------------* #SINGLE SELECT2
42 | \*------------------------------------*/
43 | /*------------------------------------* #MULTIPLE SELECT2
44 | \*------------------------------------*/
45 | /**
46 | * Address Bootstrap control sizing classes
47 | *
48 | * 1. Reset Bootstrap defaults.
49 | * 2. Adjust the dropdown arrow button icon position.
50 | *
51 | * @see http://getbootstrap.com/css/#forms-control-sizes
52 | */
53 | /* 1 */
54 | /*------------------------------------* #RTL SUPPORT
55 | \*------------------------------------*/
56 | }
57 |
58 | .select2-container--bootstrap .select2-selection {
59 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
60 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
61 | background-color: #fff;
62 | border: 1px solid #ccc;
63 | border-radius: 4px;
64 | color: #555555;
65 | font-size: 14px;
66 | outline: 0;
67 | }
68 |
69 | .select2-container--bootstrap .select2-selection.form-control {
70 | border-radius: 4px;
71 | }
72 |
73 | .select2-container--bootstrap .select2-search--dropdown .select2-search__field {
74 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
75 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
76 | background-color: #fff;
77 | border: 1px solid #ccc;
78 | border-radius: 4px;
79 | color: #555555;
80 | font-size: 14px;
81 | }
82 |
83 | .select2-container--bootstrap .select2-search__field {
84 | outline: 0;
85 | /* Firefox 18- */
86 | /**
87 | * Firefox 19+
88 | *
89 | * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
90 | */
91 | }
92 |
93 | .select2-container--bootstrap .select2-search__field::-webkit-input-placeholder {
94 | color: #999;
95 | }
96 |
97 | .select2-container--bootstrap .select2-search__field:-moz-placeholder {
98 | color: #999;
99 | }
100 |
101 | .select2-container--bootstrap .select2-search__field::-moz-placeholder {
102 | color: #999;
103 | opacity: 1;
104 | }
105 |
106 | .select2-container--bootstrap .select2-search__field:-ms-input-placeholder {
107 | color: #999;
108 | }
109 |
110 | .select2-container--bootstrap .select2-results__option {
111 | padding: 6px 12px;
112 | /**
113 | * Disabled results.
114 | *
115 | * @see https://select2.github.io/examples.html#disabled-results
116 | */
117 | /**
118 | * Hover state.
119 | */
120 | /**
121 | * Selected state.
122 | */
123 | }
124 |
125 | .select2-container--bootstrap .select2-results__option[role=group] {
126 | padding: 0;
127 | }
128 |
129 | .select2-container--bootstrap .select2-results__option[aria-disabled=true] {
130 | color: #777777;
131 | cursor: not-allowed;
132 | }
133 |
134 | .select2-container--bootstrap .select2-results__option[aria-selected=true] {
135 | background-color: #f5f5f5;
136 | color: #262626;
137 | }
138 |
139 | .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
140 | background-color: #337ab7;
141 | color: #fff;
142 | }
143 |
144 | .select2-container--bootstrap .select2-results__option .select2-results__option {
145 | padding: 6px 12px;
146 | }
147 |
148 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__group {
149 | padding-left: 0;
150 | }
151 |
152 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option {
153 | margin-left: -12px;
154 | padding-left: 24px;
155 | }
156 |
157 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
158 | margin-left: -24px;
159 | padding-left: 36px;
160 | }
161 |
162 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
163 | margin-left: -36px;
164 | padding-left: 48px;
165 | }
166 |
167 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
168 | margin-left: -48px;
169 | padding-left: 60px;
170 | }
171 |
172 | .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
173 | margin-left: -60px;
174 | padding-left: 72px;
175 | }
176 |
177 | .select2-container--bootstrap .select2-results__group {
178 | color: #777777;
179 | display: block;
180 | padding: 6px 12px;
181 | font-size: 12px;
182 | line-height: 1.42857143;
183 | white-space: nowrap;
184 | }
185 |
186 | .select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
187 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
188 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
189 | -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
190 | -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
191 | -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
192 | transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
193 | transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
194 | transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
195 | border-color: #66afe9;
196 | }
197 |
198 | .select2-container--bootstrap.select2-container--open {
199 | /**
200 | * Make the dropdown arrow point up while the dropdown is visible.
201 | */
202 | /**
203 | * Handle border radii of the container when the dropdown is showing.
204 | */
205 | }
206 |
207 | .select2-container--bootstrap.select2-container--open .select2-selection .select2-selection__arrow b {
208 | border-color: transparent transparent #999 transparent;
209 | border-width: 0 4px 4px 4px;
210 | }
211 |
212 | .select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection {
213 | border-bottom-right-radius: 0;
214 | border-bottom-left-radius: 0;
215 | border-bottom-color: transparent;
216 | }
217 |
218 | .select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection {
219 | border-top-right-radius: 0;
220 | border-top-left-radius: 0;
221 | border-top-color: transparent;
222 | }
223 |
224 | .select2-container--bootstrap .select2-selection__clear {
225 | color: #999;
226 | cursor: pointer;
227 | float: right;
228 | font-weight: bold;
229 | margin-right: 10px;
230 | }
231 |
232 | .select2-container--bootstrap .select2-selection__clear:hover {
233 | color: #333;
234 | }
235 |
236 | .select2-container--bootstrap.select2-container--disabled .select2-selection {
237 | border-color: #ccc;
238 | -webkit-box-shadow: none;
239 | box-shadow: none;
240 | }
241 |
242 | .select2-container--bootstrap.select2-container--disabled .select2-selection,
243 | .select2-container--bootstrap.select2-container--disabled .select2-search__field {
244 | cursor: not-allowed;
245 | }
246 |
247 | .select2-container--bootstrap.select2-container--disabled .select2-selection,
248 | .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
249 | background-color: #eeeeee;
250 | }
251 |
252 | .select2-container--bootstrap.select2-container--disabled .select2-selection__clear,
253 | .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
254 | display: none;
255 | }
256 |
257 | .select2-container--bootstrap .select2-dropdown {
258 | -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
259 | box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
260 | border-color: #66afe9;
261 | overflow-x: hidden;
262 | margin-top: -1px;
263 | }
264 |
265 | .select2-container--bootstrap .select2-dropdown--above {
266 | -webkit-box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
267 | box-shadow: 0px -6px 12px rgba(0, 0, 0, 0.175);
268 | margin-top: 1px;
269 | }
270 |
271 | .select2-container--bootstrap .select2-results > .select2-results__options {
272 | max-height: 200px;
273 | overflow-y: auto;
274 | }
275 |
276 | .select2-container--bootstrap .select2-selection--single {
277 | height: 34px;
278 | line-height: 1.42857143;
279 | padding: 6px 24px 6px 12px;
280 | /**
281 | * Adjust the single Select2's dropdown arrow button appearance.
282 | */
283 | }
284 |
285 | .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
286 | position: absolute;
287 | bottom: 0;
288 | right: 12px;
289 | top: 0;
290 | width: 4px;
291 | }
292 |
293 | .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
294 | border-color: #999 transparent transparent transparent;
295 | border-style: solid;
296 | border-width: 4px 4px 0 4px;
297 | height: 0;
298 | left: 0;
299 | margin-left: -4px;
300 | margin-top: -2px;
301 | position: absolute;
302 | top: 50%;
303 | width: 0;
304 | }
305 |
306 | .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
307 | color: #555555;
308 | padding: 0;
309 | }
310 |
311 | .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder {
312 | color: #999;
313 | }
314 |
315 | .select2-container--bootstrap .select2-selection--multiple {
316 | min-height: 34px;
317 | padding: 0;
318 | height: auto;
319 | /**
320 | * Make Multi Select2's choices match Bootstrap 3's default button styles.
321 | */
322 | /**
323 | * Minus 2px borders.
324 | */
325 | /**
326 | * Clear the selection.
327 | */
328 | }
329 |
330 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
331 | -webkit-box-sizing: border-box;
332 | -moz-box-sizing: border-box;
333 | box-sizing: border-box;
334 | display: block;
335 | line-height: 1.42857143;
336 | list-style: none;
337 | margin: 0;
338 | overflow: hidden;
339 | padding: 0;
340 | width: 100%;
341 | text-overflow: ellipsis;
342 | white-space: nowrap;
343 | }
344 |
345 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__placeholder {
346 | color: #999;
347 | float: left;
348 | margin-top: 5px;
349 | }
350 |
351 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
352 | color: #555555;
353 | background: #fff;
354 | border: 1px solid #ccc;
355 | border-radius: 4px;
356 | cursor: default;
357 | float: left;
358 | margin: 5px 0 0 6px;
359 | padding: 0 6px;
360 | }
361 |
362 | .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
363 | background: transparent;
364 | padding: 0 12px;
365 | height: 32px;
366 | line-height: 1.42857143;
367 | margin-top: 0;
368 | min-width: 5em;
369 | }
370 |
371 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
372 | color: #999;
373 | cursor: pointer;
374 | display: inline-block;
375 | font-weight: bold;
376 | margin-right: 3px;
377 | }
378 |
379 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove:hover {
380 | color: #333;
381 | }
382 |
383 | .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
384 | margin-top: 6px;
385 | }
386 |
387 | .select2-container--bootstrap .select2-selection--single.input-sm,
388 | .input-group-sm .select2-container--bootstrap .select2-selection--single,
389 | .form-group-sm .select2-container--bootstrap .select2-selection--single {
390 | border-radius: 3px;
391 | font-size: 12px;
392 | height: 30px;
393 | line-height: 1.5;
394 | padding: 5px 22px 5px 10px;
395 | /* 2 */
396 | }
397 |
398 | .select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b,
399 | .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,
400 | .form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
401 | margin-left: -5px;
402 | }
403 |
404 | .select2-container--bootstrap .select2-selection--multiple.input-sm,
405 | .input-group-sm .select2-container--bootstrap .select2-selection--multiple,
406 | .form-group-sm .select2-container--bootstrap .select2-selection--multiple {
407 | min-height: 30px;
408 | border-radius: 3px;
409 | }
410 |
411 | .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice,
412 | .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
413 | .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
414 | font-size: 12px;
415 | line-height: 1.5;
416 | margin: 4px 0 0 5px;
417 | padding: 0 5px;
418 | }
419 |
420 | .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field,
421 | .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,
422 | .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
423 | padding: 0 10px;
424 | font-size: 12px;
425 | height: 28px;
426 | line-height: 1.5;
427 | }
428 |
429 | .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear,
430 | .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,
431 | .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
432 | margin-top: 5px;
433 | }
434 |
435 | .select2-container--bootstrap .select2-selection--single.input-lg,
436 | .input-group-lg .select2-container--bootstrap .select2-selection--single,
437 | .form-group-lg .select2-container--bootstrap .select2-selection--single {
438 | border-radius: 6px;
439 | font-size: 18px;
440 | height: 46px;
441 | line-height: 1.3333333;
442 | padding: 10px 31px 10px 16px;
443 | /* 1 */
444 | }
445 |
446 | .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow,
447 | .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow,
448 | .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
449 | width: 5px;
450 | }
451 |
452 | .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b,
453 | .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b,
454 | .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
455 | border-width: 5px 5px 0 5px;
456 | margin-left: -5px;
457 | margin-left: -10px;
458 | margin-top: -2.5px;
459 | }
460 |
461 | .select2-container--bootstrap .select2-selection--multiple.input-lg,
462 | .input-group-lg .select2-container--bootstrap .select2-selection--multiple,
463 | .form-group-lg .select2-container--bootstrap .select2-selection--multiple {
464 | min-height: 46px;
465 | border-radius: 6px;
466 | }
467 |
468 | .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice,
469 | .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice,
470 | .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
471 | font-size: 18px;
472 | line-height: 1.3333333;
473 | border-radius: 4px;
474 | margin: 9px 0 0 8px;
475 | padding: 0 10px;
476 | }
477 |
478 | .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field,
479 | .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field,
480 | .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
481 | padding: 0 16px;
482 | font-size: 18px;
483 | height: 44px;
484 | line-height: 1.3333333;
485 | }
486 |
487 | .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear,
488 | .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear,
489 | .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
490 | margin-top: 10px;
491 | }
492 |
493 | .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single {
494 | /**
495 | * Make the dropdown arrow point up while the dropdown is visible.
496 | */
497 | }
498 |
499 | .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
500 | border-color: transparent transparent #999 transparent;
501 | border-width: 0 5px 5px 5px;
502 | }
503 |
504 | .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single {
505 | /**
506 | * Make the dropdown arrow point up while the dropdown is visible.
507 | */
508 | }
509 |
510 | .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
511 | border-color: transparent transparent #999 transparent;
512 | border-width: 0 5px 5px 5px;
513 | }
514 |
515 | .select2-container--bootstrap[dir="rtl"] {
516 | /**
517 | * Single Select2
518 | *
519 | * 1. Makes sure that .select2-selection__placeholder is positioned
520 | * correctly.
521 | */
522 | /**
523 | * Multiple Select2
524 | */
525 | }
526 |
527 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single {
528 | padding-left: 24px;
529 | padding-right: 12px;
530 | }
531 |
532 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__rendered {
533 | padding-right: 0;
534 | padding-left: 0;
535 | text-align: right;
536 | /* 1 */
537 | }
538 |
539 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__clear {
540 | float: left;
541 | }
542 |
543 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow {
544 | left: 12px;
545 | right: auto;
546 | }
547 |
548 | .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
549 | margin-left: 0;
550 | }
551 |
552 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
553 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,
554 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-search--inline {
555 | float: right;
556 | }
557 |
558 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
559 | margin-left: 0;
560 | margin-right: 6px;
561 | }
562 |
563 | .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
564 | margin-left: 2px;
565 | margin-right: auto;
566 | }
567 |
568 | /*------------------------------------* #ADDITIONAL GOODIES
569 | \*------------------------------------*/
570 | /**
571 | * Address Bootstrap's validation states
572 | *
573 | * If a Select2 widget parent has one of Bootstrap's validation state modifier
574 | * classes, adjust Select2's border colors and focus states accordingly.
575 | * You may apply said classes to the Select2 dropdown (body > .select2-container)
576 | * via JavaScript match Bootstraps' to make its styles match.
577 | *
578 | * @see http://getbootstrap.com/css/#forms-control-validation
579 | */
580 | .has-warning .select2-dropdown,
581 | .has-warning .select2-selection {
582 | border-color: #8a6d3b;
583 | }
584 |
585 | .has-warning .select2-container--focus .select2-selection,
586 | .has-warning .select2-container--open .select2-selection {
587 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
588 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
589 | border-color: #66512c;
590 | }
591 |
592 | .has-warning.select2-drop-active {
593 | border-color: #66512c;
594 | }
595 |
596 | .has-warning.select2-drop-active.select2-drop.select2-drop-above {
597 | border-top-color: #66512c;
598 | }
599 |
600 | .has-error .select2-dropdown,
601 | .has-error .select2-selection {
602 | border-color: #a94442;
603 | }
604 |
605 | .has-error .select2-container--focus .select2-selection,
606 | .has-error .select2-container--open .select2-selection {
607 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
608 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
609 | border-color: #843534;
610 | }
611 |
612 | .has-error.select2-drop-active {
613 | border-color: #843534;
614 | }
615 |
616 | .has-error.select2-drop-active.select2-drop.select2-drop-above {
617 | border-top-color: #843534;
618 | }
619 |
620 | .has-success .select2-dropdown,
621 | .has-success .select2-selection {
622 | border-color: #3c763d;
623 | }
624 |
625 | .has-success .select2-container--focus .select2-selection,
626 | .has-success .select2-container--open .select2-selection {
627 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
628 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
629 | border-color: #2b542c;
630 | }
631 |
632 | .has-success.select2-drop-active {
633 | border-color: #2b542c;
634 | }
635 |
636 | .has-success.select2-drop-active.select2-drop.select2-drop-above {
637 | border-top-color: #2b542c;
638 | }
639 |
640 | /**
641 | * Select2 widgets in Bootstrap Input Groups
642 | *
643 | * @see http://getbootstrap.com/components/#input-groups
644 | * @see https://github.com/twbs/bootstrap/blob/master/less/input-groups.less
645 | */
646 | /**
647 | * Reset rounded corners
648 | */
649 | .input-group > .select2-hidden-accessible:first-child + .select2-container--bootstrap > .selection > .select2-selection,
650 | .input-group > .select2-hidden-accessible:first-child + .select2-container--bootstrap > .selection > .select2-selection.form-control {
651 | border-bottom-right-radius: 0;
652 | border-top-right-radius: 0;
653 | }
654 |
655 | .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection,
656 | .input-group > .select2-hidden-accessible:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection.form-control {
657 | border-radius: 0;
658 | }
659 |
660 | .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection,
661 | .input-group > .select2-hidden-accessible:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection.form-control {
662 | border-bottom-left-radius: 0;
663 | border-top-left-radius: 0;
664 | }
665 |
666 | .input-group > .select2-container--bootstrap {
667 | display: table;
668 | table-layout: fixed;
669 | position: relative;
670 | z-index: 2;
671 | width: 100%;
672 | margin-bottom: 0;
673 | /**
674 | * Adjust z-index like Bootstrap does to show the focus-box-shadow
675 | * above appended buttons in .input-group and .form-group.
676 | */
677 | /**
678 | * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
679 | * Multi Select2's height which - depending on how many elements have been selected -
680 | * may grow taller than its initial size.
681 | *
682 | * @see http://getbootstrap.com/components/#input-groups
683 | */
684 | }
685 |
686 | .input-group > .select2-container--bootstrap > .selection > .select2-selection.form-control {
687 | float: none;
688 | }
689 |
690 | .input-group > .select2-container--bootstrap.select2-container--open, .input-group > .select2-container--bootstrap.select2-container--focus {
691 | z-index: 3;
692 | }
693 |
694 | .input-group > .select2-container--bootstrap,
695 | .input-group > .select2-container--bootstrap .input-group-btn,
696 | .input-group > .select2-container--bootstrap .input-group-btn .btn {
697 | vertical-align: top;
698 | }
699 |
700 | /**
701 | * Temporary fix for https://github.com/select2/select2-bootstrap-theme/issues/9
702 | *
703 | * Provides `!important` for certain properties of the class applied to the
704 | * original `