├── misc └── layouts │ ├── 2.png │ ├── 5.png │ ├── 4a.png │ ├── 4b.png │ ├── 6a.png │ ├── 6b.png │ └── 6c.png ├── docs ├── img │ └── layouts │ │ ├── 2.png │ │ ├── 4A.png │ │ ├── 4B.png │ │ ├── 5.png │ │ ├── 6A.png │ │ ├── 6B.png │ │ └── 6C.png └── lib │ ├── font-awesome │ └── 4.7.0 │ │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ │ └── css │ │ └── font-awesome.min.css │ ├── image-picker │ ├── image-picker.css │ ├── image-picker.min.js │ └── image-picker.js │ ├── smartwizard │ └── dist │ │ ├── css │ │ ├── smart_wizard_theme_circles.min.css │ │ ├── smart_wizard_theme_dots.min.css │ │ ├── smart_wizard_theme_arrows.min.css │ │ ├── smart_wizard.min.css │ │ ├── smart_wizard_theme_circles.css │ │ ├── smart_wizard_theme_dots.css │ │ ├── smart_wizard_theme_arrows.css │ │ └── smart_wizard.css │ │ └── js │ │ ├── jquery.smartWizard.min.js │ │ └── jquery.smartWizard.js │ ├── jquery-palette-color-picker │ └── src │ │ ├── palette-color-picker.css │ │ ├── palette-color-picker.min.js │ │ ├── palette-color-picker.scss │ │ └── palette-color-picker.js │ ├── 1000hz-bootstrap-validator │ └── 0.11.5 │ │ └── validator.min.js │ ├── select2 │ └── 4.0.6-rc.0 │ │ └── css │ │ └── select2.min.css │ └── select2-bootstrap-theme │ └── dist │ ├── select2-bootstrap.min.css │ └── select2-bootstrap.css └── README.md /misc/layouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/2.png -------------------------------------------------------------------------------- /misc/layouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/5.png -------------------------------------------------------------------------------- /misc/layouts/4a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/4a.png -------------------------------------------------------------------------------- /misc/layouts/4b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/4b.png -------------------------------------------------------------------------------- /misc/layouts/6a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/6a.png -------------------------------------------------------------------------------- /misc/layouts/6b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/6b.png -------------------------------------------------------------------------------- /misc/layouts/6c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/misc/layouts/6c.png -------------------------------------------------------------------------------- /docs/img/layouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/2.png -------------------------------------------------------------------------------- /docs/img/layouts/4A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/4A.png -------------------------------------------------------------------------------- /docs/img/layouts/4B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/4B.png -------------------------------------------------------------------------------- /docs/img/layouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/5.png -------------------------------------------------------------------------------- /docs/img/layouts/6A.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/6A.png -------------------------------------------------------------------------------- /docs/img/layouts/6B.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/6B.png -------------------------------------------------------------------------------- /docs/img/layouts/6C.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/img/layouts/6C.png -------------------------------------------------------------------------------- /docs/lib/font-awesome/4.7.0/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/lib/font-awesome/4.7.0/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flowstatedev/ciq-runpower/HEAD/docs/lib/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Run Power for Garmin 2 | 3 | A data field app for Garmin Connect IQ watches that gives you Power in run mode. Works with your Stryd. 4 | 5 | Get the app. 6 | 7 | Read the [manual](https://github.com/flowstatedev/ciq-runpower/wiki). 8 | 9 | ![](https://services.garmin.com/appsLibraryBusinessServices_v0/rest/apps/a054f515-576a-4a28-b8e5-87987ba737e1/screenshots/4b26a923-4a60-402d-a97a-3392c36e2d1e "") 10 | 11 | *** 12 | 13 | ## Credits 14 | Power Icon by Kamaluddin: 15 | https://thenounproject.com/search/?q=power&i=1713921 16 | 17 | Running Watch by Charlotte Vogel: 18 | https://thenounproject.com/search/?q=running%20watch&i=343723 19 | -------------------------------------------------------------------------------- /docs/lib/image-picker/image-picker.css: -------------------------------------------------------------------------------- 1 | ul.thumbnails.image_picker_selector { 2 | overflow: auto; 3 | list-style-image: none; 4 | list-style-position: outside; 5 | list-style-type: none; 6 | padding: 0px; 7 | margin: 0px; } 8 | ul.thumbnails.image_picker_selector ul { 9 | overflow: auto; 10 | list-style-image: none; 11 | list-style-position: outside; 12 | list-style-type: none; 13 | padding: 0px; 14 | margin: 0px; } 15 | ul.thumbnails.image_picker_selector li.group {width:100%;} 16 | ul.thumbnails.image_picker_selector li.group_title { 17 | float: none; } 18 | ul.thumbnails.image_picker_selector li { 19 | margin: 0px 12px 12px 0px; 20 | float: left; } 21 | ul.thumbnails.image_picker_selector li .thumbnail { 22 | padding: 6px; 23 | border: 1px solid #dddddd; 24 | -webkit-user-select: none; 25 | -moz-user-select: none; 26 | -ms-user-select: none; } 27 | ul.thumbnails.image_picker_selector li .thumbnail img { 28 | -webkit-user-drag: none; } 29 | ul.thumbnails.image_picker_selector li .thumbnail.selected { 30 | background: #0088cc; } 31 | -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard_theme_circles.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */.sw-theme-circles .sw-container{min-height:300px}.sw-theme-circles .step-content{padding:10px 0;background-color:#fff;text-align:left}.sw-theme-circles .sw-toolbar{background:#fff;padding-left:10px;padding-right:10px;margin-bottom:0!important}.sw-theme-circles .sw-toolbar-bottom{border-top-color:#ddd!important;border-bottom-color:#ddd!important}.sw-theme-circles>ul.step-anchor{position:relative;background:#fff;border:none;list-style:none;margin-bottom:40px}.sw-theme-circles>ul.step-anchor:before{content:" ";position:absolute;top:50%;bottom:0;width:100%;height:5px;background-color:#f5f5f5;border-radius:3px;z-index:0}.sw-theme-circles>ul.step-anchor>li{border:none;margin-left:40px;z-index:98}.sw-theme-circles>ul.step-anchor>li>a{border:2px solid #f5f5f5;background:#f5f5f5;width:75px;height:75px;text-align:center;padding:25px 0;border-radius:50%;-webkit-box-shadow:inset 0 0 0 3px #fff!important;box-shadow:inset 0 0 0 3px #fff!important;text-decoration:none;outline-style:none;z-index:99;color:#bbb;background:#f5f5f5;line-height:1}.sw-theme-circles>ul.step-anchor>li>a:hover{color:#bbb;background:#f5f5f5;border-width:2px}.sw-theme-circles>ul.step-anchor>li>a>small{position:relative;bottom:-40px;color:#ccc}.sw-theme-circles>ul.step-anchor>li.clickable>a:hover{color:#4285f4!important}.sw-theme-circles>ul.step-anchor>li.active>a{border-color:#5bc0de;color:#fff;background:#5bc0de}.sw-theme-circles>ul.step-anchor>li.active>a>small{color:#5bc0de}.sw-theme-circles>ul.step-anchor>li.done>a{border-color:#5cb85c;color:#fff;background:#5cb85c}.sw-theme-circles>ul.step-anchor>li.done>a>small{color:#5cb85c}.sw-theme-circles>ul.step-anchor>li.danger>a{border-color:#d9534f;color:#d9534f;background:#fff}.sw-theme-circles>ul.step-anchor>li.danger>a>small{color:#d9534f}.sw-theme-circles>ul.step-anchor>li.disabled>a,.sw-theme-circles>ul.step-anchor>li.disabled>a:hover{color:#eee!important} -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard_theme_dots.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */.sw-theme-dots .sw-container{min-height:300px}.sw-theme-dots .step-content{padding:10px 0;border:none;background-color:#fff;text-align:left}.sw-theme-dots .sw-toolbar{background:#fff;border-radius:0!important;padding-left:10px;padding-right:10px;margin-bottom:0!important}.sw-theme-dots .sw-toolbar-top{border-bottom-color:#ddd!important}.sw-theme-dots .sw-toolbar-bottom{border-top-color:#ddd!important;border-bottom-color:#ddd!important}.sw-theme-dots>ul.step-anchor{position:relative;background:#fff;border:0 solid #ccc!important;list-style:none}.sw-theme-dots>ul.step-anchor:before{content:" ";position:absolute;top:70px;bottom:0;width:100%;height:5px;background-color:#f5f5f5;border-radius:3px;z-order:0;z-index:95}.sw-theme-dots>ul.step-anchor>li{border:none}.sw-theme-dots>ul.step-anchor>li>a{position:relative;text-align:center;font-weight:700;background:0 0;border:none;color:#ccc;text-decoration:none;outline-style:none;z-index:96;display:block}.sw-theme-dots>ul.step-anchor>li>a:before{content:' ';position:absolute;bottom:2px;left:40%;margin-top:10px;display:block;border-radius:50%;color:#428bca;background:#f5f5f5;border:none;width:30px;height:30px;text-decoration:none;z-index:98}.sw-theme-dots>ul.step-anchor>li>a:after{content:' ';position:relative;left:43%;bottom:2px;margin-top:10px;display:block;width:15px;height:15px;background:#f5f5f5;border-radius:50%;z-index:99}.sw-theme-dots>ul.step-anchor>li>a:hover{color:#ccc;background:0 0}.sw-theme-dots>ul.step-anchor>li>a:focus{color:#ccc;border:none}.sw-theme-dots>ul.step-anchor>li.clickable>a:hover{color:#999}.sw-theme-dots>ul.step-anchor>li.active>a{color:#5bc0de}.sw-theme-dots>ul.step-anchor>li.active>a:hover{border:none}.sw-theme-dots>ul.step-anchor>li.active>a:after{background:#5bc0de}.sw-theme-dots>ul.step-anchor>li.done>a{color:#5cb85c}.sw-theme-dots>ul.step-anchor>li.done>a:after{background:#5cb85c}.sw-theme-dots>ul.step-anchor>li.danger>a{color:#d9534f}.sw-theme-dots>ul.step-anchor>li.danger>a:after{background:#d9534f}.sw-theme-dots>ul.step-anchor>li.disabled>a,.sw-theme-dots>ul.step-anchor>li.disabled>a:hover{color:#eee!important}.sw-theme-dots>ul.step-anchor>li.disabled>a:after{background:#eee}@media screen and (max-width:768px){.sw-theme-dots>ul.step-anchor:before{top:0;bottom:0;left:10px;width:5px;height:100%;background-color:#f5f5f5;display:block;margin-right:10px}.sw-theme-dots>ul.step-anchor>li{margin-left:20px;display:block;clear:both}.sw-theme-dots>ul.step-anchor>li>a{text-align:left;margin-left:0;display:block}.sw-theme-dots>ul.step-anchor>li>a:before{top:5px;left:-23px;margin-right:10px;display:block}.sw-theme-dots>ul.step-anchor>li>a:after{top:-38px;left:-31px;margin-right:10px;display:block}} -------------------------------------------------------------------------------- /docs/lib/jquery-palette-color-picker/src/palette-color-picker.css: -------------------------------------------------------------------------------- 1 | .palette-color-picker-button{position:relative;display:inline-block;width:28px;height:28px;margin-right:8px;background:url('data:image/svg+xml;utf8,') center center no-repeat;background-size:cover;cursor:pointer;box-shadow:0 0 0 1px #bbb;border:2px solid #fff}.palette-color-picker-bubble{display:none;margin:12px 0;position:absolute;bottom:100%;width:220px;padding:10px 8px 8px 8px;border:1px solid #bbb;border-radius:3px;background-color:#fff}.palette-color-picker-bubble:after,.palette-color-picker-bubble:before{top:100%;left:14px;border:solid transparent;content:' ';height:0;width:0;position:absolute;pointer-events:none}.palette-color-picker-bubble:after{border-color:transparent;border-top-color:#fff;border-width:8px;margin-left:-8px}.palette-color-picker-bubble:before{border-color:transparent;border-top-color:#bbb;border-width:9px;margin-left:-9px}.palette-color-picker-bubble.downside{bottom:auto;top:100%}.palette-color-picker-bubble.downside:after,.palette-color-picker-bubble.downside:before{top:auto;bottom:100%}.palette-color-picker-bubble.downside:after{border-top-color:transparent;border-bottom-color:#fff}.palette-color-picker-bubble.downside:before{border-top-color:transparent;border-bottom-color:#bbb}.palette-color-picker-bubble .swatch{position:relative;display:inline-block;font:0/0 a;width:12.66%;padding-top:11.00%;margin:1% 2%;outline:1px solid #bbb;border:2px solid #fff;border-radius:3px;cursor:pointer;overflow:hidden}.palette-color-picker-bubble .swatch.active{outline-color:#000;-webkit-box-shadow:0px 0px 5px 0px rgba(0,0,0,0.75);-moz-box-shadow:0px 0px 5px 0px rgba(0,0,0,0.75);box-shadow:0px 0px 5px 0px rgba(0,0,0,0.75)}.palette-color-picker-bubble .swatch.clear{background-color:#fff}.palette-color-picker-bubble .swatch.clear:before{position:absolute;content:'';display:block;top:-1px;left:0;width:100px;height:2px;background-color:#e00;transform-origin:0 0;transform:rotate(45deg)}.palette-color-picker-bubble.double .swatch{width:29.30%;padding-top:11.00%;margin:1% 2%}.palette-color-picker-bubble.double .swatch.clear:before{transform:rotate(22.5deg)}.palette-color-picker-bubble.wide .swatch{width:96.2%;padding-top:11.00%;margin:1% 2%}.palette-color-picker-bubble.wide .swatch.clear{width:12.66%}.palette-color-picker-bubble.force-left{left:-178px}.palette-color-picker-bubble.force-left:after,.palette-color-picker-bubble.force-left:before{left:188px} 2 | -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard_theme_arrows.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */.sw-theme-arrows{border-radius:5px;border:1px solid #ddd}.sw-theme-arrows>.sw-container{min-height:200px}.sw-theme-arrows .step-content{padding:0 10px;border:0 solid #d4d4d4;background-color:#fff;text-align:left}.sw-theme-arrows .sw-toolbar{padding:10px;margin-bottom:0!important}.sw-theme-arrows>ul.step-anchor{border:0;border-bottom:1px solid #ddd;padding:0;background:#f5f5f5;border-radius:0;border-top-right-radius:5px;list-style:none;overflow:hidden}.sw-theme-arrows>ul.step-anchor li+li:before{padding:0}.sw-theme-arrows>ul.step-anchor>li>a,.sw-theme-arrows>ul.step-anchor>li>a:hover{color:#bbb;text-decoration:none;padding:10px 0 10px 45px;position:relative;display:block;border:0!important;border-radius:0;outline-style:none;background:#f5f5f5}.sw-theme-arrows>ul.step-anchor>li>a:after{content:" ";display:block;width:0;height:0;border-top:50px solid transparent;border-bottom:50px solid transparent;border-left:30px solid #f5f5f5;position:absolute;top:50%;margin-top:-50px;left:100%;z-index:2}.sw-theme-arrows>ul.step-anchor>li>a:before{content:" ";display:block;width:0;height:0;border-top:50px solid transparent;border-bottom:50px solid transparent;border-left:30px solid #ddd;position:absolute;top:50%;margin-top:-50px;margin-left:1px;left:100%;z-index:1}.sw-theme-arrows>ul.step-anchor>li:first-child>a{padding-left:15px}.sw-theme-arrows>ul.step-anchor>li>a:hover{color:#bbb;text-decoration:none;outline-style:none;background:#f5f5f5;border-color:#f5f5f5}.sw-theme-arrows>ul.step-anchor>li>a:hover:after{border-left-color:#f5f5f5}.sw-theme-arrows>ul.step-anchor>li.clickable>a:hover{color:#4285f4!important;background:#46b8da!important}.sw-theme-arrows>ul.step-anchor>li.active>a{border-color:#5cb85c!important;color:#fff!important;background:#5cb85c!important}.sw-theme-arrows>ul.step-anchor>li.active>a:after{border-left:30px solid #5cb85c!important}.sw-theme-arrows>ul.step-anchor>li.done>a{border-color:#b1dfbb!important;color:#fff!important;background:#b1dfbb!important}.sw-theme-arrows>ul.step-anchor>li.done>a:after{border-left:30px solid #b1dfbb}.sw-theme-arrows>ul.step-anchor>li.danger>a{border-color:#d9534f!important;color:#fff!important;background:#d9534f!important}.sw-theme-arrows>ul.step-anchor>li.danger>a:after{border-left:30px solid #d9534f!important}.sw-theme-arrows>ul.step-anchor>li.disabled>a,.sw-theme-arrows>ul.step-anchor>li.disabled>a:hover{color:#eee!important}@media screen and (max-width:768px){.sw-theme-arrows>ul.step-anchor{border:0;background:#ddd!important}.sw-theme-arrows>.nav-tabs>li{float:none!important;margin-bottom:0}.sw-theme-arrows>ul.step-anchor>li>a,.sw-theme-arrows>ul.step-anchor>li>a:hover{padding-left:15px;margin-right:0;margin-bottom:1px}.sw-theme-arrows>ul.step-anchor>li>a:after,.sw-theme-arrows>ul.step-anchor>li>a:before{display:none}}.sw-theme-arrows::before{border:10px solid #f3f3f3;border-top:10px solid #5cb85c} -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */.sw-main{position:relative;display:block;margin:0;padding:0;border-radius:.25rem!important}.sw-main .sw-container{display:block;margin:0;padding:0;position:relative}.sw-main .step-content{display:none;position:relative;margin:0}.sw-main .sw-toolbar{margin-left:0}.sw-theme-default{-webkit-box-shadow:0 1px 3px rgba(0,0,0,.3);box-shadow:0 1px 3px rgba(0,0,0,.3)}.sw-theme-default .sw-container{min-height:250px}.sw-theme-default .step-content{padding:10px;border:0 solid #d4d4d4;background-color:#fff;text-align:left}.sw-theme-default .sw-toolbar{background:#f9f9f9;border-radius:0!important;padding-left:10px;padding-right:10px;padding:10px;margin-bottom:0!important}.sw-theme-default .sw-toolbar-top{border-bottom-color:#ddd!important}.sw-theme-default .sw-toolbar-bottom{border-top-color:#ddd!important}.sw-theme-default>ul.step-anchor>li{position:relative;margin-right:2px}.sw-theme-default>ul.step-anchor>li>a,.sw-theme-default>ul.step-anchor>li>a:hover{border:none!important;color:#bbb;text-decoration:none;outline-style:none;background:0 0!important;border:none!important;cursor:not-allowed}.sw-theme-default>ul.step-anchor>li.clickable>a:hover{color:#4285f4!important;background:0 0!important;cursor:pointer}.sw-theme-default>ul.step-anchor>li>a::after{content:"";background:#4285f4;height:2px;position:absolute;width:100%;left:0;bottom:0;-webkit-transition:all 250ms ease 0s;transition:all 250ms ease 0s;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.sw-theme-default>ul.step-anchor>li.active>a{border:none!important;color:#4285f4!important;background:0 0!important;cursor:pointer}.sw-theme-default>ul.step-anchor>li.active>a::after{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.sw-theme-default>ul.step-anchor>li.done>a{border:none!important;color:#000!important;background:0 0!important;cursor:pointer}.sw-theme-default>ul.step-anchor>li.done>a::after{background:#5cb85c;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.sw-theme-default>ul.step-anchor>li.danger>a{border:none!important;color:#d9534f!important;cursor:pointer}.sw-theme-default>ul.step-anchor>li.danger>a::after{background:#d9534f;border-left-color:#f8d7da;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.sw-theme-default>ul.step-anchor>li.disabled>a,.sw-theme-default>ul.step-anchor>li.disabled>a:hover{color:#eee!important;cursor:not-allowed}@media screen and (max-width:768px){.sw-theme-default>.nav-tabs>li{float:none!important}}.sw-loading::after{position:absolute;display:block;opacity:1;content:"";top:0;left:0;height:100%;width:100%;background:rgba(255,255,255,.7);-webkit-transition:all .2s ease;transition:all .2s ease;z-index:2}.sw-loading::before{content:'';display:inline-block;position:absolute;top:50%;left:50%;z-index:10;border:10px solid #f3f3f3;border-radius:50%;border-top:10px solid #3498db;width:80px;height:80px;margin-top:-40px;margin-left:-40px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}} -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard_theme_circles.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */ 12 | 13 | /* SmartWizard Theme: Circles */ 14 | .sw-theme-circles { 15 | } 16 | 17 | .sw-theme-circles .sw-container { 18 | min-height: 300px; 19 | } 20 | 21 | .sw-theme-circles .step-content { 22 | padding: 10px 0; 23 | background-color: #FFF; 24 | text-align: left; 25 | } 26 | 27 | .sw-theme-circles .sw-toolbar { 28 | background: #fff; 29 | padding-left: 10px; 30 | padding-right: 10px; 31 | margin-bottom: 0 !important; 32 | } 33 | 34 | .sw-theme-circles .sw-toolbar-top { 35 | } 36 | 37 | .sw-theme-circles .sw-toolbar-bottom { 38 | border-top-color: #ddd !important; 39 | border-bottom-color: #ddd !important; 40 | } 41 | 42 | .sw-theme-circles > ul.step-anchor { 43 | position: relative; 44 | background: #fff; 45 | border: none; 46 | list-style: none; 47 | margin-bottom: 40px; 48 | } 49 | 50 | .sw-theme-circles > ul.step-anchor:before { 51 | content: " "; 52 | position: absolute; 53 | top: 50%; 54 | bottom: 0; 55 | width: 100%; 56 | height: 5px; 57 | background-color: #f5f5f5; 58 | border-radius: 3px; 59 | z-index: 0; 60 | } 61 | 62 | .sw-theme-circles > ul.step-anchor > li { 63 | border: none; 64 | margin-left: 40px; 65 | z-index: 98; 66 | } 67 | 68 | .sw-theme-circles > ul.step-anchor > li > a { 69 | border: 2px solid #f5f5f5; 70 | background: #f5f5f5; 71 | width: 75px; 72 | height: 75px; 73 | text-align: center; 74 | padding: 25px 0; 75 | border-radius: 50%; 76 | -webkit-box-shadow: inset 0px 0px 0px 3px #fff !important; 77 | box-shadow: inset 0px 0px 0px 3px #fff !important; 78 | text-decoration: none; 79 | outline-style: none; 80 | z-index: 99; 81 | color: #bbb; 82 | background: #f5f5f5; 83 | line-height: 1; 84 | } 85 | 86 | .sw-theme-circles > ul.step-anchor > li > a:hover { 87 | color: #bbb; 88 | background: #f5f5f5; 89 | border-width: 2px; 90 | } 91 | 92 | .sw-theme-circles > ul.step-anchor > li > a > small { 93 | position: relative; 94 | bottom: -40px; 95 | color: #ccc; 96 | } 97 | 98 | .sw-theme-circles > ul.step-anchor > li.clickable > a:hover { 99 | color: #4285F4 !important; 100 | } 101 | 102 | .sw-theme-circles > ul.step-anchor > li.active > a { 103 | border-color: #5bc0de; 104 | color: #fff; 105 | background: #5bc0de; 106 | } 107 | 108 | .sw-theme-circles > ul.step-anchor > li.active > a > small { 109 | color: #5bc0de; 110 | } 111 | 112 | .sw-theme-circles > ul.step-anchor > li.done > a { 113 | border-color: #5cb85c; 114 | color: #fff; 115 | background: #5cb85c; 116 | } 117 | 118 | .sw-theme-circles > ul.step-anchor > li.done > a > small { 119 | color: #5cb85c; 120 | } 121 | 122 | .sw-theme-circles > ul.step-anchor > li.danger > a { 123 | border-color: #d9534f; 124 | color: #d9534f; 125 | background: #fff; 126 | } 127 | 128 | .sw-theme-circles > ul.step-anchor > li.danger > a > small { 129 | color: #d9534f; 130 | } 131 | 132 | .sw-theme-circles > ul.step-anchor > li.disabled > a, .sw-theme-circles > ul.step-anchor > li.disabled > a:hover { 133 | color: #eee !important; 134 | } 135 | -------------------------------------------------------------------------------- /docs/lib/jquery-palette-color-picker/src/palette-color-picker.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * JQuery Palette Color Picker v1.13 by Carlos Cabo ( @putuko ) 3 | * https://github.com/carloscabo/jquery-palette-color-picker 4 | */ 5 | (function(t){"use strict";t.paletteColorPicker=function(e,a){var s="palette-color-picker",i=t(e),n=this,o=null,l=i.val(),r=i.attr("name"),c=t("
").addClass(s+"-button").attr("data-target",r),u=t("
").addClass(s+"-bubble"),f={},d={custom_class:null,colors:null,position:"upside",insert:"before",clear_btn:"first",timeout:2e3,set_background:false,close_all_but_this:false},g="ontouchstart"in document.documentElement?"touchstart click":"click";n.init=function(){n.settings=t.extend({},d,a);var e=i.attr("value");if(typeof e===typeof undefined||e===false){e="";i.attr("value",e)}i.attr("data-initialvalue",i.attr("value"));if(n.settings.colors===null){n.settings.colors=i.data("palette")}if(typeof n.settings.colors[0]==="string"){n.settings.colors=t.map(n.settings.colors,function(t,e){var a={};a[t]=t;return a})}n.settings.insert=n.settings.insert.charAt(0).toUpperCase()+n.settings.insert.slice(1);if(n.settings.custom_class){u.addClass(n.settings.custom_class)}t.each(n.settings.colors,function(e,a){var s=Object.keys(a)[0],i=a[s],n=t("").addClass("swatch").attr({title:s,"data-color":i,"data-name":s}).css("background-color",i);if(s===l){n.addClass("active");c.css("background",i)}n.appendTo(u)});if(n.settings.clear_btn!==null){var o=t("").addClass("swatch clear").attr("title","Clear selection");if(n.settings.clear_btn==="last"){o.addClass("last").appendTo(u)}else{o.prependTo(u)}}n.destroy=function(){c.remove();t.removeData(i[0])};n.clear=function(){u.find(".active").removeClass("active");c.removeAttr("style");i.val("")};n.reset=function(){if(i.attr("data-initialvalue")===""){n.clear()}else{var t=i.attr("data-initialvalue");u.find('[data-name="'+t+'"]').trigger("click")}};n.reload=function(){var t=i.val();if(t===""||typeof t===typeof undefined||t===false){n.reset()}else{if(u.find('[data-name="'+t+'"]').length){u.find('[data-name="'+t+'"]').trigger("click")}else{n.reset()}}};c.append(u).on(g,function(e){e.preventDefault();e.stopPropagation();var a=t(this);if(!t(e.target).hasClass(s+"-bubble")){if(typeof n.settings.onbeforeshow_callback==="function"){n.settings.onbeforeshow_callback(this)}a.toggleClass("active");var i=a.find("."+s+"-bubble");if(n.settings.close_all_but_this){t("."+s+"-bubble").not(i).fadeOut()}i.fadeToggle();if(a.hasClass("active")){clearTimeout(n.timer);n.timer=setTimeout(function(){a.trigger("pcp.fadeout")},n.settings.timeout)}}}).on("pcp.fadeout",function(){t(this).removeClass("active").find("."+s+"-bubble").fadeOut()}).on("mouseenter","."+s+"-bubble",function(){clearTimeout(n.timer)}).on("mouseleave","."+s+"-bubble",function(){n.timer=setTimeout(function(){c.trigger("pcp.fadeout")},n.settings.timeout)}).on(g,"."+s+"-bubble span.swatch",function(e){e.preventDefault();e.stopPropagation();var a=t(this).attr("data-color"),i=t(this).attr("data-name"),o=t("."+s+'-button[data-target="'+t(this).closest("."+s+"-button").attr("data-target")+'"]'),l=t(this).closest("."+s+"-bubble");l.find(".active").removeClass("active");if(t(e.target).is(".clear")){o.removeAttr("style");a=""}else{t(this).addClass("active");o.css("background",a)}if(typeof n.settings.onchange_callback==="function"){n.settings.onchange_callback(a)}if(n.settings.set_background===false){t('[name="'+o.attr("data-target")+'"]').val(i)}else{t('[name="'+o.attr("data-target")+'"]').css({"background-color":a})}})["insert"+n.settings.insert](i);if(n.settings.position==="downside"||i.offset().top+20') center center no-repeat; 14 | background-size: cover; 15 | /*background: url(palette-color-picker-icon.svg) center center no-repeat;*/ 16 | cursor: pointer; 17 | 18 | box-shadow: 0 0 0 1px $cpfp-border; 19 | /*outline: 1px solid $cpfp-border;*/ 20 | border: 2px solid #fff; 21 | } 22 | 23 | // Bubble 24 | .palette-color-picker-bubble { 25 | display: none; 26 | margin: 12px 0; 27 | position: absolute; 28 | bottom: 100%; 29 | width: $cpfp-width; 30 | padding: 10px 8px 8px 8px; 31 | border: 1px solid $cpfp-border; 32 | border-radius: 3px; 33 | background-color: #fff; 34 | 35 | // Arrow bottom 36 | &:after, 37 | &:before { 38 | top: 100%; 39 | left: 14px; 40 | border: solid transparent; 41 | content: ' '; 42 | height: 0; 43 | width: 0; 44 | position: absolute; 45 | pointer-events: none; 46 | } 47 | &:after { 48 | border-color: transparent; 49 | border-top-color: $cpfp-background; 50 | border-width: 8px; 51 | margin-left: -8px; 52 | } 53 | &:before { 54 | border-color: transparent; 55 | border-top-color: $cpfp-border; 56 | border-width: 9px; 57 | margin-left: -9px; 58 | } 59 | 60 | // Open below 61 | &.downside { 62 | bottom: auto; 63 | top: 100%; 64 | 65 | // Arow on top 66 | &:after, &:before { 67 | top: auto; 68 | bottom: 100%; 69 | } 70 | &:after { 71 | border-top-color: transparent; 72 | border-bottom-color: $cpfp-background; 73 | } 74 | &:before { 75 | border-top-color: transparent; 76 | border-bottom-color: $cpfp-border; 77 | } 78 | } 79 | 80 | .swatch { 81 | position: relative; 82 | display: inline-block; 83 | font: 0/0 a; 84 | width: 12.66%; 85 | padding-top: 11.00%; 86 | margin: 1% 2%; 87 | outline: 1px solid $cpfp-border; 88 | border: 2px solid #fff; 89 | border-radius: 3px; 90 | cursor: pointer; 91 | overflow: hidden; 92 | 93 | 94 | &.active { 95 | outline-color: #000; 96 | 97 | -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); 98 | -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); 99 | box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75); 100 | } 101 | 102 | &.clear { 103 | background-color: #fff; 104 | &:before { 105 | position: absolute; 106 | content: ''; 107 | display: block; 108 | top: -1px; 109 | left: 0; 110 | width: 100px; 111 | height: 2px; 112 | background-color: #e00; 113 | 114 | transform-origin: 0 0; 115 | transform: rotate(45deg); 116 | } 117 | } 118 | } 119 | 120 | // x2 width swatches 121 | &.double { 122 | .swatch { 123 | width: 29.30%; 124 | padding-top: 11.00%; 125 | margin: 1% 2%; 126 | &.clear { 127 | &:before { 128 | transform: rotate(22.5deg); 129 | } 130 | } 131 | } 132 | } 133 | 134 | // full width swatches 135 | &.wide { 136 | .swatch { 137 | width: 96.2%; 138 | padding-top: 11.00%; 139 | margin: 1% 2%; 140 | &.clear { 141 | width: 12.66%; 142 | } 143 | } 144 | } 145 | 146 | // Force open on left side 147 | &.force-left { 148 | left: -178px; 149 | &:after, 150 | &:before { 151 | left: 188px; 152 | } 153 | } 154 | 155 | } 156 | -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard_theme_dots.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */ 12 | 13 | /* SmartWizard Theme: Dots */ 14 | .sw-theme-dots { 15 | } 16 | 17 | .sw-theme-dots .sw-container { 18 | min-height: 300px; 19 | } 20 | 21 | .sw-theme-dots .step-content { 22 | padding: 10px 0; 23 | border: none; 24 | background-color: #FFF; 25 | text-align: left; 26 | } 27 | 28 | .sw-theme-dots .sw-toolbar { 29 | background: #fff; 30 | border-radius: 0 !important; 31 | padding-left: 10px; 32 | padding-right: 10px; 33 | margin-bottom: 0 !important; 34 | } 35 | 36 | .sw-theme-dots .sw-toolbar-top { 37 | border-bottom-color: #ddd !important; 38 | } 39 | 40 | .sw-theme-dots .sw-toolbar-bottom { 41 | border-top-color: #ddd !important; 42 | border-bottom-color: #ddd !important; 43 | } 44 | 45 | .sw-theme-dots > ul.step-anchor { 46 | position: relative; 47 | background: #fff; 48 | border: 0px solid #ccc !important; 49 | list-style: none; 50 | } 51 | 52 | .sw-theme-dots > ul.step-anchor:before { 53 | content: " "; 54 | position: absolute; 55 | top: 70px; 56 | bottom: 0; 57 | width: 100%; 58 | height: 5px; 59 | background-color: #f5f5f5; 60 | border-radius: 3px; 61 | z-order: 0; 62 | z-index: 95; 63 | } 64 | 65 | .sw-theme-dots > ul.step-anchor > li { 66 | border: none; 67 | } 68 | /* Anchors styles */ 69 | .sw-theme-dots > ul.step-anchor > li > a { 70 | position: relative; 71 | text-align: center; 72 | font-weight: bold; 73 | background: transparent; 74 | border: none; 75 | color: #ccc; 76 | text-decoration: none; 77 | outline-style: none; 78 | z-index: 96; 79 | display: block; 80 | } 81 | 82 | .sw-theme-dots > ul.step-anchor > li > a:before { 83 | content: ' '; 84 | position: absolute; 85 | bottom: 2px; 86 | left: 40%; 87 | margin-top: 10px; 88 | display: block; 89 | border-radius: 50%; 90 | color: #428bca; 91 | background: #f5f5f5; 92 | border: none; 93 | width: 30px; 94 | height: 30px; 95 | text-decoration: none; 96 | z-index: 98; 97 | } 98 | 99 | .sw-theme-dots > ul.step-anchor > li > a:after { 100 | content: ' '; 101 | position: relative; 102 | left: 43%; 103 | bottom: 2px; 104 | margin-top: 10px; 105 | display: block; 106 | width: 15px; 107 | height: 15px; 108 | background: #f5f5f5; 109 | border-radius: 50%; 110 | z-index: 99; 111 | } 112 | 113 | .sw-theme-dots > ul.step-anchor > li > a:hover { 114 | color: #ccc; 115 | background: transparent; 116 | } 117 | 118 | .sw-theme-dots > ul.step-anchor > li > a:focus { 119 | color: #ccc; 120 | border: none; 121 | } 122 | 123 | .sw-theme-dots > ul.step-anchor > li.clickable > a:hover { 124 | color: #999; 125 | } 126 | /* Active anchors */ 127 | .sw-theme-dots > ul.step-anchor > li.active > a { 128 | color: #5bc0de; 129 | } 130 | 131 | .sw-theme-dots > ul.step-anchor > li.active > a:hover { 132 | border: none; 133 | } 134 | 135 | .sw-theme-dots > ul.step-anchor > li.active > a:after { 136 | background: #5bc0de; 137 | } 138 | /* Done anchors */ 139 | .sw-theme-dots > ul.step-anchor > li.done > a { 140 | color: #5cb85c; 141 | } 142 | 143 | .sw-theme-dots > ul.step-anchor > li.done > a:after { 144 | background: #5cb85c; 145 | } 146 | /* Danger anchors */ 147 | .sw-theme-dots > ul.step-anchor > li.danger > a { 148 | color: #d9534f; 149 | } 150 | 151 | .sw-theme-dots > ul.step-anchor > li.danger > a:after { 152 | background: #d9534f; 153 | } 154 | 155 | .sw-theme-dots > ul.step-anchor > li.disabled > a, .sw-theme-dots > ul.step-anchor > li.disabled > a:hover { 156 | color: #eee !important; 157 | } 158 | 159 | .sw-theme-dots > ul.step-anchor > li.disabled > a:after { 160 | background: #eee; 161 | } 162 | 163 | /* Responsive CSS */ 164 | @media screen and (max-width: 768px) { 165 | .sw-theme-dots > ul.step-anchor:before { 166 | top: 0; 167 | bottom: 0; 168 | left: 10px; 169 | width: 5px; 170 | height: 100%; 171 | background-color: #f5f5f5; 172 | display: block; 173 | margin-right: 10px; 174 | } 175 | 176 | .sw-theme-dots > ul.step-anchor > li { 177 | margin-left: 20px; 178 | display: block; 179 | clear: both; 180 | } 181 | 182 | .sw-theme-dots > ul.step-anchor > li > a { 183 | text-align: left; 184 | margin-left: 0; 185 | display: block; 186 | } 187 | 188 | .sw-theme-dots > ul.step-anchor > li > a:before { 189 | top: 5px; 190 | left: -23px; 191 | margin-right: 10px; 192 | display: block; 193 | } 194 | 195 | .sw-theme-dots > ul.step-anchor > li > a:after { 196 | top: -38px; 197 | left: -31px; 198 | margin-right: 10px; 199 | display: block; 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard_theme_arrows.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */ 12 | 13 | /* SmartWizard Theme: Arrows */ 14 | .sw-theme-arrows { 15 | border-radius: 5px; 16 | border: 1px solid #ddd; 17 | } 18 | 19 | .sw-theme-arrows > .sw-container { 20 | min-height: 200px; 21 | } 22 | 23 | .sw-theme-arrows .step-content { 24 | padding: 0 10px; 25 | border: 0px solid #D4D4D4; 26 | background-color: #FFF; 27 | text-align: left; 28 | } 29 | 30 | .sw-theme-arrows .sw-toolbar { 31 | padding: 10px; 32 | margin-bottom: 0 !important; 33 | } 34 | 35 | .sw-theme-arrows > .sw-toolbar-top { 36 | } 37 | 38 | .sw-theme-arrows > .sw-toolbar-bottom { 39 | } 40 | 41 | .sw-theme-arrows > ul.step-anchor { 42 | border: 0; 43 | border-bottom: 1px solid #ddd; 44 | padding: 0px; 45 | background: #f5f5f5; 46 | border-radius: 0; 47 | border-top-right-radius: 5px; 48 | list-style: none; 49 | overflow: hidden; 50 | } 51 | 52 | .sw-theme-arrows > ul.step-anchor li+li:before { 53 | padding: 0; 54 | } 55 | 56 | .sw-theme-arrows > ul.step-anchor > li { 57 | } 58 | 59 | .sw-theme-arrows > ul.step-anchor > li > a, .sw-theme-arrows > ul.step-anchor > li > a:hover { 60 | color: #bbb; 61 | text-decoration: none; 62 | padding: 10px 0 10px 45px; 63 | position: relative; 64 | display: block; 65 | border: 0 !important; 66 | border-radius: 0; 67 | outline-style: none; 68 | background: #f5f5f5; 69 | } 70 | 71 | .sw-theme-arrows > ul.step-anchor > li > a:after { 72 | content: " "; 73 | display: block; 74 | width: 0; 75 | height: 0; 76 | border-top: 50px solid transparent; 77 | border-bottom: 50px solid transparent; 78 | border-left: 30px solid #f5f5f5; 79 | position: absolute; 80 | top: 50%; 81 | margin-top: -50px; 82 | left: 100%; 83 | z-index: 2; 84 | } 85 | 86 | .sw-theme-arrows > ul.step-anchor > li > a:before { 87 | content: " "; 88 | display: block; 89 | width: 0; 90 | height: 0; 91 | border-top: 50px solid transparent; 92 | /* Go big on the size, and let overflow hide */ 93 | border-bottom: 50px solid transparent; 94 | border-left: 30px solid #ddd; 95 | position: absolute; 96 | top: 50%; 97 | margin-top: -50px; 98 | margin-left: 1px; 99 | left: 100%; 100 | z-index: 1; 101 | } 102 | 103 | .sw-theme-arrows > ul.step-anchor > li:first-child > a { 104 | padding-left: 15px; 105 | } 106 | 107 | .sw-theme-arrows > ul.step-anchor > li > a:hover { 108 | color: #bbb; 109 | text-decoration: none; 110 | outline-style: none; 111 | background: #f5f5f5; 112 | border-color: #f5f5f5; 113 | } 114 | 115 | .sw-theme-arrows > ul.step-anchor > li > a:hover:after { 116 | border-left-color: #f5f5f5; 117 | } 118 | 119 | .sw-theme-arrows > ul.step-anchor > li > a small { 120 | } 121 | 122 | .sw-theme-arrows > ul.step-anchor > li.clickable > a:hover { 123 | color: #4285F4 !important; 124 | background: #46b8da !important; 125 | } 126 | 127 | .sw-theme-arrows > ul.step-anchor > li.active > a { 128 | border-color: #5cb85c !important; 129 | color: #fff !important; 130 | background: #5cb85c !important; 131 | } 132 | 133 | .sw-theme-arrows > ul.step-anchor > li.active > a:after { 134 | border-left: 30px solid #5cb85c !important; 135 | } 136 | 137 | .sw-theme-arrows > ul.step-anchor > li.done > a { 138 | border-color: #b1dfbb !important; 139 | /* #5cb85c */ 140 | color: #fff !important; 141 | background: #b1dfbb !important; 142 | } 143 | 144 | .sw-theme-arrows > ul.step-anchor > li.done > a:after { 145 | border-left: 30px solid #b1dfbb; 146 | /* c3e6cb */; 147 | } 148 | 149 | .sw-theme-arrows > ul.step-anchor > li.danger > a { 150 | border-color: #d9534f !important; 151 | color: #fff !important; 152 | background: #d9534f !important; 153 | } 154 | 155 | .sw-theme-arrows > ul.step-anchor > li.danger > a:after { 156 | border-left: 30px solid #d9534f !important; 157 | } 158 | 159 | .sw-theme-arrows > ul.step-anchor > li.disabled > a, .sw-theme-arrows > ul.step-anchor > li.disabled > a:hover { 160 | color: #eee !important; 161 | } 162 | 163 | /* Responsive CSS */ 164 | @media screen and (max-width: 768px) { 165 | .sw-theme-arrows > ul.step-anchor { 166 | border: 0; 167 | background: #ddd !important; 168 | } 169 | 170 | .sw-theme-arrows > .nav-tabs > li { 171 | float: none !important; 172 | margin-bottom: 0; 173 | } 174 | 175 | .sw-theme-arrows > ul.step-anchor > li > a, .sw-theme-arrows > ul.step-anchor > li > a:hover { 176 | padding-left: 15px; 177 | margin-right: 0; 178 | margin-bottom: 1px; 179 | } 180 | 181 | .sw-theme-arrows > ul.step-anchor > li > a:after, .sw-theme-arrows > ul.step-anchor > li > a:before { 182 | display: none; 183 | } 184 | } 185 | 186 | /* Loader Custom Style */ 187 | .sw-theme-arrows::before { 188 | border: 10px solid #f3f3f3; 189 | border-top: 10px solid #5cb85c; 190 | } 191 | -------------------------------------------------------------------------------- /docs/lib/smartwizard/dist/css/smart_wizard.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartWizard v4.3.x 3 | * jQuery Wizard Plugin 4 | * http://www.techlaboratory.net/smartwizard 5 | * 6 | * Created by Dipu Raj 7 | * http://dipuraj.me 8 | * 9 | * Licensed under the terms of MIT License 10 | * https://github.com/techlab/SmartWizard/blob/master/LICENSE 11 | */ 12 | 13 | /* SmartWizard Basic CSS */ 14 | .sw-main { 15 | position: relative; 16 | display: block; 17 | margin: 0; 18 | padding: 0; 19 | border-radius: .25rem!important; 20 | } 21 | 22 | .sw-main .sw-container { 23 | display: block; 24 | margin: 0; 25 | padding: 0; 26 | position: relative; 27 | } 28 | 29 | .sw-main .step-content { 30 | display: none; 31 | position: relative; 32 | margin: 0; 33 | } 34 | 35 | .sw-main .sw-toolbar { 36 | margin-left: 0; 37 | } 38 | 39 | /* SmartWizard Theme: White */ 40 | .sw-theme-default { 41 | -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3); 42 | box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3); 43 | } 44 | 45 | .sw-theme-default .sw-container { 46 | min-height: 250px; 47 | } 48 | 49 | .sw-theme-default .step-content { 50 | padding: 10px; 51 | border: 0px solid #D4D4D4; 52 | background-color: #FFF; 53 | text-align: left; 54 | } 55 | 56 | .sw-theme-default .sw-toolbar { 57 | background: #f9f9f9; 58 | border-radius: 0 !important; 59 | padding-left: 10px; 60 | padding-right: 10px; 61 | padding: 10px; 62 | margin-bottom: 0 !important; 63 | } 64 | 65 | .sw-theme-default .sw-toolbar-top { 66 | border-bottom-color: #ddd !important; 67 | } 68 | 69 | .sw-theme-default .sw-toolbar-bottom { 70 | border-top-color: #ddd !important; 71 | } 72 | 73 | .sw-theme-default > ul.step-anchor > li { 74 | position: relative; 75 | margin-right: 2px; 76 | } 77 | 78 | .sw-theme-default > ul.step-anchor > li > a, .sw-theme-default > ul.step-anchor > li > a:hover { 79 | border: none !important; 80 | color: #bbb; 81 | text-decoration: none; 82 | outline-style: none; 83 | background: transparent !important; 84 | border: none !important; 85 | cursor: not-allowed; 86 | } 87 | 88 | .sw-theme-default > ul.step-anchor > li.clickable > a:hover { 89 | color: #4285F4 !important; 90 | background: transparent !important; 91 | cursor: pointer; 92 | } 93 | 94 | .sw-theme-default > ul.step-anchor > li > a::after { 95 | content: ""; 96 | background: #4285F4; 97 | height: 2px; 98 | position: absolute; 99 | width: 100%; 100 | left: 0px; 101 | bottom: 0px; 102 | -webkit-transition: all 250ms ease 0s; 103 | transition: all 250ms ease 0s; 104 | -webkit-transform: scale(0); 105 | -ms-transform: scale(0); 106 | transform: scale(0); 107 | } 108 | 109 | .sw-theme-default > ul.step-anchor > li.active > a { 110 | border: none !important; 111 | color: #4285F4 !important; 112 | background: transparent !important; 113 | cursor: pointer; 114 | } 115 | 116 | .sw-theme-default > ul.step-anchor > li.active > a::after { 117 | -webkit-transform: scale(1); 118 | -ms-transform: scale(1); 119 | transform: scale(1); 120 | } 121 | 122 | .sw-theme-default > ul.step-anchor > li.done > a { 123 | border: none !important; 124 | color: #000 !important; 125 | background: transparent !important; 126 | cursor: pointer; 127 | } 128 | 129 | .sw-theme-default > ul.step-anchor > li.done > a::after { 130 | background: #5cb85c; 131 | -webkit-transform: scale(1); 132 | -ms-transform: scale(1); 133 | transform: scale(1); 134 | } 135 | 136 | .sw-theme-default > ul.step-anchor > li.danger > a { 137 | border: none !important; 138 | color: #d9534f !important; 139 | /* background: #d9534f !important; */ 140 | cursor: pointer; 141 | } 142 | 143 | .sw-theme-default > ul.step-anchor > li.danger > a::after { 144 | background: #d9534f; 145 | border-left-color: #f8d7da; 146 | -webkit-transform: scale(1); 147 | -ms-transform: scale(1); 148 | transform: scale(1); 149 | } 150 | 151 | .sw-theme-default > ul.step-anchor > li.disabled > a, .sw-theme-default > ul.step-anchor > li.disabled > a:hover { 152 | color: #eee !important; 153 | cursor: not-allowed; 154 | } 155 | 156 | /* Responsive CSS */ 157 | @media screen and (max-width: 768px) { 158 | .sw-theme-default > .nav-tabs > li { 159 | float: none !important; 160 | } 161 | } 162 | 163 | /* Common Loader */ 164 | .sw-loading::after { 165 | position: absolute; 166 | display: block; 167 | opacity: 1; 168 | content: ""; 169 | top: 0; 170 | left: 0; 171 | height: 100%; 172 | width: 100%; 173 | background: rgba(255,255,255,.7); 174 | -webkit-transition: all .2s ease; 175 | transition: all .2s ease; 176 | z-index: 2; 177 | } 178 | 179 | .sw-loading::before { 180 | content: ''; 181 | display: inline-block; 182 | position: absolute; 183 | top: 50%; 184 | left: 50%; 185 | z-index: 10; 186 | border: 10px solid #f3f3f3; 187 | border-radius: 50%; 188 | border-top: 10px solid #3498db; 189 | width: 80px; 190 | height: 80px; 191 | margin-top: -40px; 192 | margin-left: -40px; 193 | -webkit-animation: spin 1s linear infinite; 194 | /* Safari */ 195 | animation: spin 1s linear infinite; 196 | } 197 | 198 | /* Safari */ 199 | @-webkit-keyframes spin { 200 | 0% { 201 | -webkit-transform: rotate(0deg); 202 | } 203 | 204 | 100% { 205 | -webkit-transform: rotate(360deg); 206 | } 207 | } 208 | 209 | @keyframes spin { 210 | 0% { 211 | -webkit-transform: rotate(0deg); 212 | transform: rotate(0deg); 213 | } 214 | 215 | 100% { 216 | -webkit-transform: rotate(360deg); 217 | transform: rotate(360deg); 218 | } 219 | } 220 | -------------------------------------------------------------------------------- /docs/lib/1000hz-bootstrap-validator/0.11.5/validator.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Validator v0.11.5 for Bootstrap 3, by @1000hz 3 | * Copyright 2016 Cina Saffary 4 | * Licensed under http://opensource.org/licenses/MIT 5 | * 6 | * https://github.com/1000hz/bootstrap-validator 7 | */ 8 | 9 | +function(a){"use strict";function b(b){return b.is('[type="checkbox"]')?b.prop("checked"):b.is('[type="radio"]')?!!a('[name="'+b.attr("name")+'"]:checked').length:b.val()}function c(b){return this.each(function(){var c=a(this),e=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b),f=c.data("bs.validator");(f||"destroy"!=b)&&(f||c.data("bs.validator",f=new d(this,e)),"string"==typeof b&&f[b]())})}var d=function(c,e){this.options=e,this.validators=a.extend({},d.VALIDATORS,e.custom),this.$element=a(c),this.$btn=a('button[type="submit"], input[type="submit"]').filter('[form="'+this.$element.attr("id")+'"]').add(this.$element.find('input[type="submit"], button[type="submit"]')),this.update(),this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator",a.proxy(this.onInput,this)),this.$element.on("submit.bs.validator",a.proxy(this.onSubmit,this)),this.$element.on("reset.bs.validator",a.proxy(this.reset,this)),this.$element.find("[data-match]").each(function(){var c=a(this),d=c.data("match");a(d).on("input.bs.validator",function(){b(c)&&c.trigger("input.bs.validator")})}),this.$inputs.filter(function(){return b(a(this))}).trigger("focusout"),this.$element.attr("novalidate",!0),this.toggleSubmit()};d.VERSION="0.11.5",d.INPUT_SELECTOR=':input:not([type="hidden"], [type="submit"], [type="reset"], button)',d.FOCUS_OFFSET=20,d.DEFAULTS={delay:500,html:!1,disable:!0,focus:!0,custom:{},errors:{match:"Does not match",minlength:"Not long enough"},feedback:{success:"glyphicon-ok",error:"glyphicon-remove"}},d.VALIDATORS={"native":function(a){var b=a[0];return b.checkValidity?!b.checkValidity()&&!b.validity.valid&&(b.validationMessage||"error!"):void 0},match:function(b){var c=b.data("match");return b.val()!==a(c).val()&&d.DEFAULTS.errors.match},minlength:function(a){var b=a.data("minlength");return a.val().length").addClass("list-unstyled").append(a.map(d,function(b){return a("
  • ")[c](b)})),void 0===f.data("bs.validator.originalContent")&&f.data("bs.validator.originalContent",f.html()),f.empty().append(d),e.addClass("has-error has-danger"),e.hasClass("has-feedback")&&g.removeClass(this.options.feedback.success)&&g.addClass(this.options.feedback.error)&&e.removeClass("has-success"))},d.prototype.clearErrors=function(a){var c=a.closest(".form-group"),d=c.find(".help-block.with-errors"),e=c.find(".form-control-feedback");d.html(d.data("bs.validator.originalContent")),c.removeClass("has-error has-danger has-success"),c.hasClass("has-feedback")&&e.removeClass(this.options.feedback.error)&&e.removeClass(this.options.feedback.success)&&b(a)&&e.addClass(this.options.feedback.success)&&c.addClass("has-success")},d.prototype.hasErrors=function(){function b(){return!!(a(this).data("bs.validator.errors")||[]).length}return!!this.$inputs.filter(b).length},d.prototype.isIncomplete=function(){function c(){var c=b(a(this));return!("string"==typeof c?a.trim(c):c)}return!!this.$inputs.filter("[required]").filter(c).length},d.prototype.onSubmit=function(a){this.validate(),(this.isIncomplete()||this.hasErrors())&&a.preventDefault()},d.prototype.toggleSubmit=function(){this.options.disable&&this.$btn.toggleClass("disabled",this.isIncomplete()||this.hasErrors())},d.prototype.defer=function(b,c){return c=a.proxy(c,this,b),this.options.delay?(window.clearTimeout(b.data("bs.validator.timeout")),void b.data("bs.validator.timeout",window.setTimeout(c,this.options.delay))):c()},d.prototype.reset=function(){return this.$element.find(".form-control-feedback").removeClass(this.options.feedback.error).removeClass(this.options.feedback.success),this.$inputs.removeData(["bs.validator.errors","bs.validator.deferred"]).each(function(){var b=a(this),c=b.data("bs.validator.timeout");window.clearTimeout(c)&&b.removeData("bs.validator.timeout")}),this.$element.find(".help-block.with-errors").each(function(){var b=a(this),c=b.data("bs.validator.originalContent");b.removeData("bs.validator.originalContent").html(c)}),this.$btn.removeClass("disabled"),this.$element.find(".has-error, .has-danger, .has-success").removeClass("has-error has-danger has-success"),this},d.prototype.destroy=function(){return this.reset(),this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator"),this.$inputs.off(".bs.validator"),this.options=null,this.validators=null,this.$element=null,this.$btn=null,this};var e=a.fn.validator;a.fn.validator=c,a.fn.validator.Constructor=d,a.fn.validator.noConflict=function(){return a.fn.validator=e,this},a(window).on("load",function(){a('form[data-toggle="validator"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery); -------------------------------------------------------------------------------- /docs/lib/image-picker/image-picker.min.js: -------------------------------------------------------------------------------- 1 | // Image Picker 2 | // by Rodrigo Vera 3 | // 4 | // Version 0.3.1 5 | // Full source at https://github.com/rvera/image-picker 6 | // MIT License, https://github.com/rvera/image-picker/blob/master/LICENSE 7 | // Image Picker 8 | // by Rodrigo Vera 9 | // 10 | // Version 0.3.0 11 | // Full source at https://github.com/rvera/image-picker 12 | // MIT License, https://github.com/rvera/image-picker/blob/master/LICENSE 13 | (function(){var ImagePicker,ImagePickerOption,both_array_are_equal,sanitized_options,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i");this.picker_options=[];this.recursively_parse_option_groups(this.select,this.picker);return this.picker};ImagePicker.prototype.recursively_parse_option_groups=function(scoped_dom,target_container){var container,j,k,len,len1,option,option_group,ref,ref1,results;ref=scoped_dom.children("optgroup");for(j=0,len=ref.length;j");container.append(jQuery("
  • "+option_group.attr("label")+"
  • "));target_container.append(jQuery("
  • ").append(container));this.recursively_parse_option_groups(option_group,container)}ref1=function(){var l,len1,ref1,results1;ref1=scoped_dom.children("option");results1=[];for(l=0,len1=ref1.length;l0};ImagePicker.prototype.selected_values=function(){if(this.multiple){return this.select.val()||[]}else{return[this.select.val()]}};ImagePicker.prototype.toggle=function(imagepicker_option,original_event){var new_values,old_values,selected_value;old_values=this.selected_values();selected_value=imagepicker_option.value().toString();if(this.multiple){if(indexOf.call(this.selected_values(),selected_value)>=0){new_values=this.selected_values();new_values.splice(jQuery.inArray(selected_value,old_values),1);this.select.val([]);this.select.val(new_values)}else{if(this.opts.limit!=null&&this.selected_values().length>=this.opts.limit){if(this.opts.limit_reached!=null){this.opts.limit_reached.call(this.select)}}else{this.select.val(this.selected_values().concat(selected_value))}}}else{if(this.has_implicit_blanks()&&imagepicker_option.is_selected()){this.select.val("")}else{this.select.val(selected_value)}}if(!both_array_are_equal(old_values,this.selected_values())){this.select.change();if(this.opts.changed!=null){return this.opts.changed.call(this.select,old_values,this.selected_values(),original_event)}}};return ImagePicker}();ImagePickerOption=function(){function ImagePickerOption(option_element,picker,opts1){this.picker=picker;this.opts=opts1!=null?opts1:{};this.clicked=bind(this.clicked,this);this.option=jQuery(option_element);this.create_node()}ImagePickerOption.prototype.destroy=function(){return this.node.find(".thumbnail").off("click",this.clicked)};ImagePickerOption.prototype.has_image=function(){return this.option.data("img-src")!=null};ImagePickerOption.prototype.is_blank=function(){return!(this.value()!=null&&this.value()!=="")};ImagePickerOption.prototype.is_selected=function(){var select_value;select_value=this.picker.select.val();if(this.picker.multiple){return jQuery.inArray(this.value(),select_value)>=0}else{return this.value()===select_value}};ImagePickerOption.prototype.mark_as_selected=function(){return this.node.find(".thumbnail").addClass("selected")};ImagePickerOption.prototype.unmark_as_selected=function(){return this.node.find(".thumbnail").removeClass("selected")};ImagePickerOption.prototype.value=function(){return this.option.val()};ImagePickerOption.prototype.label=function(){if(this.option.data("img-label")){return this.option.data("img-label")}else{return this.option.text()}};ImagePickerOption.prototype.clicked=function(event){this.picker.toggle(this,event);if(this.opts.clicked!=null){this.opts.clicked.call(this.picker.select,this,event)}if(this.opts.selected!=null&&this.is_selected()){return this.opts.selected.call(this.picker.select,this,event)}};ImagePickerOption.prototype.create_node=function(){var image,imgAlt,imgClass,thumbnail;this.node=jQuery("
  • ");if(this.option.data("font_awesome")){image=jQuery("");image.attr("class","fa-fw "+this.option.data("img-src"))}else{image=jQuery("");image.attr("src",this.option.data("img-src"))}thumbnail=jQuery("
    ");imgClass=this.option.data("img-class");if(imgClass){this.node.addClass(imgClass);image.addClass(imgClass);thumbnail.addClass(imgClass)}imgAlt=this.option.data("img-alt");if(imgAlt){image.attr("alt",imgAlt)}thumbnail.on("click",this.clicked);thumbnail.append(image);if(this.opts.show_label){thumbnail.append(jQuery("

    ").html(this.label()))}this.node.append(thumbnail);return this.node};return ImagePickerOption}()}).call(this); -------------------------------------------------------------------------------- /docs/lib/jquery-palette-color-picker/src/palette-color-picker.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * JQuery Palette Color Picker v1.13 by Carlos Cabo ( @putuko ) 3 | * https://github.com/carloscabo/jquery-palette-color-picker 4 | */ 5 | (function($) { 6 | // La magia aquí 7 | 'use strict'; 8 | 9 | // Public core 10 | $.paletteColorPicker = function( el, options ) { 11 | var 12 | ns = 'palette-color-picker', // Base attr / class 13 | $el = $(el), 14 | plugin = this, 15 | timer = null, 16 | current_value = $el.val(), 17 | target = $el.attr('name'), 18 | $button = $('

    ') 19 | .addClass(ns+'-button') 20 | .attr('data-target', target), 21 | $bubble = $('
    ') 22 | .addClass(ns+'-bubble'), 23 | 24 | // Final settings will be stored here 25 | settings = {}, 26 | 27 | // Default settings 28 | defaults = { 29 | custom_class: null, 30 | colors: null, 31 | position: 'upside', // upside | downside 32 | insert: 'before', // default 33 | clear_btn: 'first', // default 34 | timeout: 2000, // default 35 | set_background: false, // default 36 | close_all_but_this: false // default 37 | }, 38 | 39 | click_handler = ('ontouchstart' in document.documentElement ? 'touchstart click' : 'click'); 40 | 41 | // Init 42 | plugin.init = function() { 43 | // Extand settings with user options 44 | plugin.settings = $.extend({}, defaults, options); 45 | 46 | // If input has not value add it 47 | var 48 | val = $el.attr('value'); 49 | if (typeof val === typeof undefined || val === false) { 50 | val = ''; 51 | $el.attr('value', val); 52 | } 53 | 54 | // Backup initial value 55 | $el.attr('data-initialvalue', $el.attr('value') ); 56 | 57 | // If color were not passed as options get them from data-palette attribute 58 | if (plugin.settings.colors === null) { 59 | plugin.settings.colors = $el.data('palette'); 60 | } 61 | 62 | // If color is array of string, convert to obj 63 | if (typeof plugin.settings.colors[0] === 'string') { 64 | plugin.settings.colors = $.map(plugin.settings.colors, function(el, idx) { 65 | var b = {}; b[el] = el; return b; 66 | }); 67 | } 68 | 69 | // Capitalize position 70 | plugin.settings.insert = plugin.settings.insert.charAt(0).toUpperCase() + plugin.settings.insert.slice(1); 71 | 72 | // Add custom_class 73 | if (plugin.settings.custom_class) { 74 | $bubble.addClass(plugin.settings.custom_class); 75 | } 76 | 77 | // Create color swatches 78 | $.each( plugin.settings.colors, function( idx, obj ) { 79 | var 80 | key = Object.keys( obj )[0], 81 | col = obj[key], 82 | $sw = $('').addClass('swatch') 83 | .attr({ 84 | 'title': key, 85 | 'data-color': col, 86 | 'data-name': key 87 | }).css('background-color', col); 88 | 89 | if ( key === current_value ) { 90 | $sw.addClass('active'); 91 | $button.css('background', col); 92 | } 93 | 94 | $sw.appendTo( $bubble ); 95 | }); 96 | 97 | // Create clear button if not null 98 | if (plugin.settings.clear_btn !== null) { 99 | var 100 | $clear_btn = $('').addClass('swatch clear').attr('title', 'Clear selection'); 101 | if (plugin.settings.clear_btn === 'last') { 102 | $clear_btn.addClass('last').appendTo( $bubble ); 103 | } else { 104 | $clear_btn.prependTo( $bubble ); 105 | } 106 | } 107 | 108 | // Public 109 | plugin.destroy = function() { 110 | $button.remove(); 111 | $.removeData( $el[0] ); 112 | }; 113 | 114 | // Clears all 115 | plugin.clear = function() { 116 | $bubble.find('.active').removeClass('active'); 117 | $button.removeAttr('style'); 118 | $el.val(''); 119 | }; 120 | 121 | // Reset to initial value 122 | plugin.reset = function() { 123 | // Dont had initial value 124 | if ( $el.attr('data-initialvalue') === '' ) { 125 | plugin.clear(); 126 | } else { 127 | // Had initial value 128 | var iv = $el.attr('data-initialvalue'); 129 | $bubble.find('[data-name="'+iv+'"]').trigger('click'); 130 | } 131 | }; 132 | 133 | // reload value after it has been changed programatically 134 | plugin.reload = function() { 135 | 136 | var newVal = $el.val(); 137 | if ( newVal === '' || typeof newVal === typeof undefined || newVal === false ) { 138 | // Doesn't have the value to load so loading initial value 139 | plugin.reset(); 140 | } else { 141 | // setting the value to new value 142 | if($bubble.find('[data-name="'+newVal+'"]').length) { 143 | // value will only be set if the color exists in options 144 | $bubble.find('[data-name="'+newVal+'"]').trigger('click'); 145 | } else { 146 | // setting to the initial value if color does not exists 147 | plugin.reset(); 148 | } 149 | } 150 | }; 151 | 152 | // Events 153 | // Simple click 154 | $button.append( $bubble ).on( click_handler, function(e){ 155 | e.preventDefault(); 156 | e.stopPropagation(); 157 | var $b = $( this ); 158 | 159 | // don't close on clicking the bubble 160 | if (!$(e.target).hasClass(ns+'-bubble')) { 161 | 162 | // Call the callback, if set 163 | if (typeof plugin.settings.onbeforeshow_callback === 'function') { 164 | plugin.settings.onbeforeshow_callback(this); 165 | } 166 | 167 | $b.toggleClass('active'); 168 | var $current_bubble = $b.find('.'+ns+'-bubble'); 169 | // Forces hiding other bubbles 170 | if (plugin.settings.close_all_but_this) { 171 | $('.'+ns+'-bubble').not($current_bubble).fadeOut(); 172 | } 173 | $current_bubble.fadeToggle(); 174 | 175 | if ($b.hasClass('active')) { 176 | clearTimeout(plugin.timer); 177 | plugin.timer = setTimeout(function(){ 178 | $b.trigger('pcp.fadeout'); 179 | }, plugin.settings.timeout); 180 | } 181 | } 182 | }) 183 | // Fade timer 184 | .on('pcp.fadeout', function() { 185 | $( this ).removeClass('active').find('.'+ns+'-bubble').fadeOut(); 186 | }) 187 | // Enter bubble 188 | .on('mouseenter', '.'+ns+'-bubble', function() { 189 | clearTimeout(plugin.timer); 190 | }) 191 | // Leave bubble 192 | .on('mouseleave', '.'+ns+'-bubble', function() { 193 | plugin.timer = setTimeout(function(){ 194 | $button.trigger('pcp.fadeout'); 195 | }, plugin.settings.timeout); 196 | }) 197 | // Click on swatches 198 | .on(click_handler, '.'+ns+'-bubble span.swatch', function(e){ 199 | e.preventDefault(); 200 | e.stopPropagation(); 201 | var 202 | col = $( this ).attr('data-color'), 203 | name = $( this ).attr('data-name'), 204 | // Select all button in document with same data target to keep them synconized 205 | $button = $('.'+ns+'-button[data-target="' + $( this ).closest( '.'+ns+'-button' ).attr('data-target') + '"]'), 206 | $bubble = $( this ).closest( '.'+ns+'-bubble' ); 207 | 208 | // console.log('.'+ns+'-button [data-target="' + $( this ).closest( '.'+ns+'-button' ).attr('data-target') + '"]'); 209 | $bubble.find('.active').removeClass('active'); 210 | 211 | // Set background on color 212 | // User clicked in the clear swatch 213 | if ( $(e.target).is('.clear') ) { 214 | $button.removeAttr('style'); 215 | col = ''; 216 | } else { 217 | $(this).addClass('active'); 218 | $button.css('background', col); 219 | } 220 | 221 | // Call the callback, if set 222 | if (typeof plugin.settings.onchange_callback === "function") { 223 | plugin.settings.onchange_callback(col); 224 | } 225 | 226 | if( plugin.settings.set_background === false ) { 227 | $('[name="' + $button.attr('data-target') + '"]').val(name); 228 | } else { 229 | $('[name="' + $button.attr('data-target') + '"]').css({'background-color' : col}); 230 | } 231 | })['insert'+plugin.settings.insert]( $el ); 232 | 233 | // Upside / downside, default is upside 234 | if ( plugin.settings.position === 'downside' || ($el.offset().top) + 20 < $bubble.outerHeight() ) { 235 | $bubble.addClass('downside'); 236 | } 237 | 238 | }; 239 | 240 | // Close on clicking outside the palette 241 | $('body').on(click_handler,function(event) { 242 | if (!$(event.target).hasClass(ns+'-button')) { 243 | $( $button ).removeClass('active').find('.'+ns+'-bubble').fadeOut(); 244 | } 245 | }); 246 | 247 | // Start 248 | plugin.init(); 249 | }; 250 | 251 | // add the plugin to the jQuery.fn object 252 | $.fn.paletteColorPicker = function(options) { 253 | return this.each(function() { 254 | if (typeof $(this).data('paletteColorPickerPlugin') === 'undefined') { 255 | $(this).data('paletteColorPickerPlugin', new $.paletteColorPicker(this, options)); 256 | } 257 | }); 258 | }; 259 | 260 | })(jQuery); 261 | 262 | // Sample usage 263 | // $(function() { 264 | // $('[data-palette-color-picker]').paletteColorPicker(); 265 | // }); 266 | -------------------------------------------------------------------------------- /docs/lib/image-picker/image-picker.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.12.6 2 | (function() { 3 | var ImagePicker, ImagePickerOption, both_array_are_equal, sanitized_options, 4 | bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, 5 | indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; 6 | 7 | jQuery.fn.extend({ 8 | imagepicker: function(opts) { 9 | if (opts == null) { 10 | opts = {}; 11 | } 12 | return this.each(function() { 13 | var select; 14 | select = jQuery(this); 15 | if (select.data("picker")) { 16 | select.data("picker").destroy(); 17 | } 18 | select.data("picker", new ImagePicker(this, sanitized_options(opts))); 19 | if (opts.initialized != null) { 20 | return opts.initialized.call(select.data("picker")); 21 | } 22 | }); 23 | } 24 | }); 25 | 26 | sanitized_options = function(opts) { 27 | var default_options; 28 | default_options = { 29 | hide_select: true, 30 | show_label: false, 31 | initialized: void 0, 32 | changed: void 0, 33 | clicked: void 0, 34 | selected: void 0, 35 | limit: void 0, 36 | limit_reached: void 0, 37 | font_awesome: false 38 | }; 39 | return jQuery.extend(default_options, opts); 40 | }; 41 | 42 | both_array_are_equal = function(a, b) { 43 | var i, j, len, x; 44 | if ((!a || !b) || (a.length !== b.length)) { 45 | return false; 46 | } 47 | a = a.slice(0); 48 | b = b.slice(0); 49 | a.sort(); 50 | b.sort(); 51 | for (i = j = 0, len = a.length; j < len; i = ++j) { 52 | x = a[i]; 53 | if (b[i] !== x) { 54 | return false; 55 | } 56 | } 57 | return true; 58 | }; 59 | 60 | ImagePicker = (function() { 61 | function ImagePicker(select_element, opts1) { 62 | this.opts = opts1 != null ? opts1 : {}; 63 | this.sync_picker_with_select = bind(this.sync_picker_with_select, this); 64 | this.select = jQuery(select_element); 65 | this.multiple = this.select.attr("multiple") === "multiple"; 66 | if (this.select.data("limit") != null) { 67 | this.opts.limit = parseInt(this.select.data("limit")); 68 | } 69 | this.build_and_append_picker(); 70 | } 71 | 72 | ImagePicker.prototype.destroy = function() { 73 | var j, len, option, ref; 74 | ref = this.picker_options; 75 | for (j = 0, len = ref.length; j < len; j++) { 76 | option = ref[j]; 77 | option.destroy(); 78 | } 79 | this.picker.remove(); 80 | this.select.off("change", this.sync_picker_with_select); 81 | this.select.removeData("picker"); 82 | return this.select.show(); 83 | }; 84 | 85 | ImagePicker.prototype.build_and_append_picker = function() { 86 | if (this.opts.hide_select) { 87 | this.select.hide(); 88 | } 89 | this.select.on("change", this.sync_picker_with_select); 90 | if (this.picker != null) { 91 | this.picker.remove(); 92 | } 93 | this.create_picker(); 94 | this.select.after(this.picker); 95 | return this.sync_picker_with_select(); 96 | }; 97 | 98 | ImagePicker.prototype.sync_picker_with_select = function() { 99 | var j, len, option, ref, results; 100 | ref = this.picker_options; 101 | results = []; 102 | for (j = 0, len = ref.length; j < len; j++) { 103 | option = ref[j]; 104 | if (option.is_selected()) { 105 | results.push(option.mark_as_selected()); 106 | } else { 107 | results.push(option.unmark_as_selected()); 108 | } 109 | } 110 | return results; 111 | }; 112 | 113 | ImagePicker.prototype.create_picker = function() { 114 | this.picker = jQuery("
      "); 115 | this.picker_options = []; 116 | this.recursively_parse_option_groups(this.select, this.picker); 117 | return this.picker; 118 | }; 119 | 120 | ImagePicker.prototype.recursively_parse_option_groups = function(scoped_dom, target_container) { 121 | var container, j, k, len, len1, option, option_group, ref, ref1, results; 122 | ref = scoped_dom.children("optgroup"); 123 | for (j = 0, len = ref.length; j < len; j++) { 124 | option_group = ref[j]; 125 | option_group = jQuery(option_group); 126 | container = jQuery("
        "); 127 | container.append(jQuery("
      • " + (option_group.attr("label")) + "
      • ")); 128 | target_container.append(jQuery("
      • ").append(container)); 129 | this.recursively_parse_option_groups(option_group, container); 130 | } 131 | ref1 = (function() { 132 | var l, len1, ref1, results1; 133 | ref1 = scoped_dom.children("option"); 134 | results1 = []; 135 | for (l = 0, len1 = ref1.length; l < len1; l++) { 136 | option = ref1[l]; 137 | results1.push(new ImagePickerOption(option, this, this.opts)); 138 | } 139 | return results1; 140 | }).call(this); 141 | results = []; 142 | for (k = 0, len1 = ref1.length; k < len1; k++) { 143 | option = ref1[k]; 144 | this.picker_options.push(option); 145 | if (!option.has_image()) { 146 | continue; 147 | } 148 | results.push(target_container.append(option.node)); 149 | } 150 | return results; 151 | }; 152 | 153 | ImagePicker.prototype.has_implicit_blanks = function() { 154 | var option; 155 | return ((function() { 156 | var j, len, ref, results; 157 | ref = this.picker_options; 158 | results = []; 159 | for (j = 0, len = ref.length; j < len; j++) { 160 | option = ref[j]; 161 | if (option.is_blank() && !option.has_image()) { 162 | results.push(option); 163 | } 164 | } 165 | return results; 166 | }).call(this)).length > 0; 167 | }; 168 | 169 | ImagePicker.prototype.selected_values = function() { 170 | if (this.multiple) { 171 | return this.select.val() || []; 172 | } else { 173 | return [this.select.val()]; 174 | } 175 | }; 176 | 177 | ImagePicker.prototype.toggle = function(imagepicker_option, original_event) { 178 | var new_values, old_values, selected_value; 179 | old_values = this.selected_values(); 180 | selected_value = imagepicker_option.value().toString(); 181 | if (this.multiple) { 182 | if (indexOf.call(this.selected_values(), selected_value) >= 0) { 183 | new_values = this.selected_values(); 184 | new_values.splice(jQuery.inArray(selected_value, old_values), 1); 185 | this.select.val([]); 186 | this.select.val(new_values); 187 | } else { 188 | if ((this.opts.limit != null) && this.selected_values().length >= this.opts.limit) { 189 | if (this.opts.limit_reached != null) { 190 | this.opts.limit_reached.call(this.select); 191 | } 192 | } else { 193 | this.select.val(this.selected_values().concat(selected_value)); 194 | } 195 | } 196 | } else { 197 | if (this.has_implicit_blanks() && imagepicker_option.is_selected()) { 198 | this.select.val(""); 199 | } else { 200 | this.select.val(selected_value); 201 | } 202 | } 203 | if (!both_array_are_equal(old_values, this.selected_values())) { 204 | this.select.change(); 205 | if (this.opts.changed != null) { 206 | return this.opts.changed.call(this.select, old_values, this.selected_values(), original_event); 207 | } 208 | } 209 | }; 210 | 211 | return ImagePicker; 212 | 213 | })(); 214 | 215 | ImagePickerOption = (function() { 216 | function ImagePickerOption(option_element, picker, opts1) { 217 | this.picker = picker; 218 | this.opts = opts1 != null ? opts1 : {}; 219 | this.clicked = bind(this.clicked, this); 220 | this.option = jQuery(option_element); 221 | this.create_node(); 222 | } 223 | 224 | ImagePickerOption.prototype.destroy = function() { 225 | return this.node.find(".thumbnail").off("click", this.clicked); 226 | }; 227 | 228 | ImagePickerOption.prototype.has_image = function() { 229 | return this.option.data("img-src") != null; 230 | }; 231 | 232 | ImagePickerOption.prototype.is_blank = function() { 233 | return !((this.value() != null) && this.value() !== ""); 234 | }; 235 | 236 | ImagePickerOption.prototype.is_selected = function() { 237 | var select_value; 238 | select_value = this.picker.select.val(); 239 | if (this.picker.multiple) { 240 | return jQuery.inArray(this.value(), select_value) >= 0; 241 | } else { 242 | return this.value() === select_value; 243 | } 244 | }; 245 | 246 | ImagePickerOption.prototype.mark_as_selected = function() { 247 | return this.node.find(".thumbnail").addClass("selected"); 248 | }; 249 | 250 | ImagePickerOption.prototype.unmark_as_selected = function() { 251 | return this.node.find(".thumbnail").removeClass("selected"); 252 | }; 253 | 254 | ImagePickerOption.prototype.value = function() { 255 | return this.option.val(); 256 | }; 257 | 258 | ImagePickerOption.prototype.label = function() { 259 | if (this.option.data("img-label")) { 260 | return this.option.data("img-label"); 261 | } else { 262 | return this.option.text(); 263 | } 264 | }; 265 | 266 | ImagePickerOption.prototype.clicked = function(event) { 267 | this.picker.toggle(this, event); 268 | if (this.opts.clicked != null) { 269 | this.opts.clicked.call(this.picker.select, this, event); 270 | } 271 | if ((this.opts.selected != null) && this.is_selected()) { 272 | return this.opts.selected.call(this.picker.select, this, event); 273 | } 274 | }; 275 | 276 | ImagePickerOption.prototype.create_node = function() { 277 | var image, imgAlt, imgClass, thumbnail; 278 | this.node = jQuery("
      • "); 279 | if (this.option.data("font_awesome")) { 280 | image = jQuery(""); 281 | image.attr("class", "fa-fw " + this.option.data("img-src")); 282 | } else { 283 | image = jQuery(""); 284 | image.attr("src", this.option.data("img-src")); 285 | } 286 | thumbnail = jQuery("
        "); 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 `