├── .gitignore ├── css └── bootstrap │ ├── fonts │ ├── font-awesome │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── fontawesome-webfont.woff2 │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ ├── glyphicons-halflings-regular.woff │ └── glyphicons-halflings-regular.woff2 │ └── less │ ├── core │ ├── mixins │ │ ├── center-block.less │ │ ├── text-emphasis.less │ │ ├── size.less │ │ ├── opacity.less │ │ ├── background-variant.less │ │ ├── text-overflow.less │ │ ├── tab-focus.less │ │ ├── resize.less │ │ ├── labels.less │ │ ├── progress-bar.less │ │ ├── reset-filter.less │ │ ├── nav-divider.less │ │ ├── alerts.less │ │ ├── nav-vertical-align.less │ │ ├── responsive-visibility.less │ │ ├── pagination.less │ │ ├── border-radius.less │ │ ├── panels.less │ │ ├── list-group.less │ │ ├── hide-text.less │ │ ├── clearfix.less │ │ ├── table-row.less │ │ ├── image.less │ │ ├── buttons.less │ │ ├── forms.less │ │ ├── grid-framework.less │ │ ├── grid.less │ │ ├── gradients.less │ │ └── vendor-prefixes.less │ ├── .csslintrc │ ├── wells.less │ ├── breadcrumbs.less │ ├── responsive-embed.less │ ├── component-animations.less │ ├── close.less │ ├── thumbnails.less │ ├── utilities.less │ ├── media.less │ ├── pager.less │ ├── jumbotron.less │ ├── mixins.less │ ├── labels.less │ ├── badges.less │ ├── code.less │ ├── grid.less │ ├── alerts.less │ ├── progress-bars.less │ ├── pagination.less │ ├── print.less │ ├── tooltip.less │ ├── list-group.less │ ├── scaffolding.less │ ├── popovers.less │ ├── modals.less │ ├── buttons.less │ ├── input-groups.less │ ├── responsive-utilities.less │ ├── tables.less │ ├── dropdowns.less │ ├── navs.less │ ├── carousel.less │ ├── button-groups.less │ ├── panels.less │ ├── type.less │ ├── theme.less │ ├── .csscomb.json │ └── normalize.less │ ├── plugins │ ├── font-awesome │ │ ├── fixed-width.less │ │ ├── larger.less │ │ ├── list.less │ │ ├── core.less │ │ ├── font-awesome.less │ │ ├── stacked.less │ │ ├── bordered-pulled.less │ │ ├── rotated-flipped.less │ │ ├── path.less │ │ ├── animated.less │ │ └── mixins.less │ └── bootstrap-select │ │ └── bootstrap-select.less │ ├── custom │ ├── mixins │ │ └── livefilter.less │ └── theme │ │ └── main.less │ └── bootstrap.less ├── js ├── plugins.js └── vendor │ ├── tabcomplete.min.js │ ├── filterlist.min.js │ ├── livefilter.min.js │ ├── bootstrap-select.min.js │ └── src │ └── bootstrap-select.js └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | /img/* 3 | /js/vendor/tabcomplete.min.js 4 | /js/vendor/livefilter.min.js 5 | /js/vendor/filterlist.min.js 6 | js/vendor/filterlist.min.js -------------------------------------------------------------------------------- /css/bootstrap/fonts/font-awesome/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/font-awesome/FontAwesome.otf -------------------------------------------------------------------------------- /css/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /css/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /css/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /css/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /css/bootstrap/fonts/font-awesome/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/font-awesome/fontawesome-webfont.eot -------------------------------------------------------------------------------- /css/bootstrap/fonts/font-awesome/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/font-awesome/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /css/bootstrap/fonts/font-awesome/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/font-awesome/fontawesome-webfont.woff -------------------------------------------------------------------------------- /css/bootstrap/fonts/font-awesome/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xarksass/BootstrapSelect/HEAD/css/bootstrap/fonts/font-awesome/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/center-block.less: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | .center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/text-emphasis.less: -------------------------------------------------------------------------------- 1 | // Typography 2 | 3 | .text-emphasis-variant(@color) { 4 | color: @color; 5 | a&:hover { 6 | color: darken(@color, 10%); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/opacity.less: -------------------------------------------------------------------------------- 1 | // Opacity 2 | 3 | .opacity(@opacity) { 4 | opacity: @opacity; 5 | // IE8 filter 6 | @opacity-ie: (@opacity * 100); 7 | filter: ~"alpha(opacity=@{opacity-ie})"; 8 | } 9 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/background-variant.less: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | .bg-variant(@color) { 4 | background-color: @color; 5 | a&:hover { 6 | background-color: darken(@color, 10%); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/text-overflow.less: -------------------------------------------------------------------------------- 1 | // Text overflow 2 | // Requires inline-block or block for proper styling 3 | 4 | .text-overflow() { 5 | overflow: hidden; 6 | text-overflow: ellipsis; 7 | white-space: nowrap; 8 | } 9 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/tab-focus.less: -------------------------------------------------------------------------------- 1 | // WebKit-style focus 2 | 3 | .tab-focus() { 4 | // Default 5 | outline: thin dotted; 6 | // WebKit 7 | outline: 5px auto -webkit-focus-ring-color; 8 | outline-offset: -2px; 9 | } 10 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/resize.less: -------------------------------------------------------------------------------- 1 | // Resize anything 2 | 3 | .resizable(@direction) { 4 | resize: @direction; // Options: horizontal, vertical, both 5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible` 6 | } 7 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/labels.less: -------------------------------------------------------------------------------- 1 | // Labels 2 | 3 | .label-variant(@color) { 4 | background-color: @color; 5 | 6 | &[href] { 7 | &:hover, 8 | &:focus { 9 | background-color: darken(@color, 10%); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/progress-bar.less: -------------------------------------------------------------------------------- 1 | // Progress bars 2 | 3 | .progress-bar-variant(@color) { 4 | background-color: @color; 5 | 6 | // Deprecated parent class requirement as of v3.2.0 7 | .progress-striped & { 8 | #gradient > .striped(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/reset-filter.less: -------------------------------------------------------------------------------- 1 | // Reset filters for IE 2 | // 3 | // When you need to remove a gradient background, do not forget to use this to reset 4 | // the IE filter for IE9 and below. 5 | 6 | .reset-filter() { 7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)")); 8 | } 9 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/nav-divider.less: -------------------------------------------------------------------------------- 1 | // Horizontal dividers 2 | // 3 | // Dividers (basically an hr) within dropdowns and nav lists 4 | 5 | .nav-divider(@color: #e5e5e5) { 6 | height: 1px; 7 | margin: ((@line-height-computed / 2) - 1) 0; 8 | overflow: hidden; 9 | background-color: @color; 10 | } 11 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/alerts.less: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | .alert-variant(@background; @border; @text-color) { 4 | background-color: @background; 5 | border-color: @border; 6 | color: @text-color; 7 | 8 | hr { 9 | border-top-color: darken(@border, 5%); 10 | } 11 | .alert-link { 12 | color: darken(@text-color, 10%); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/nav-vertical-align.less: -------------------------------------------------------------------------------- 1 | // Navbar vertical align 2 | // 3 | // Vertically center elements in the navbar. 4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin. 5 | 6 | .navbar-vertical-align(@element-height) { 7 | margin-top: ((@navbar-height - @element-height) / 2); 8 | margin-bottom: ((@navbar-height - @element-height) / 2); 9 | } 10 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/responsive-visibility.less: -------------------------------------------------------------------------------- 1 | // Responsive utilities 2 | 3 | // 4 | // More easily include all the states for responsive-utilities.less. 5 | .responsive-visibility() { 6 | display: block !important; 7 | table& { display: table; } 8 | tr& { display: table-row !important; } 9 | th&, 10 | td& { display: table-cell !important; } 11 | } 12 | 13 | .responsive-invisibility() { 14 | display: none !important; 15 | } 16 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/larger.less: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .@{fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .@{fa-css-prefix}-2x { font-size: 2em; } 11 | .@{fa-css-prefix}-3x { font-size: 3em; } 12 | .@{fa-css-prefix}-4x { font-size: 4em; } 13 | .@{fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/list.less: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: @fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .@{fa-css-prefix}-li { 11 | position: absolute; 12 | left: -@fa-li-width; 13 | width: @fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.@{fa-css-prefix}-lg { 17 | left: (-@fa-li-width + (4em / 14)); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /css/bootstrap/less/custom/mixins/livefilter.less: -------------------------------------------------------------------------------- 1 | .livefilter { 2 | position: relative; 3 | 4 | .filter-clear { 5 | opacity: 1; 6 | color: #555; 7 | 8 | &:hover { 9 | text-decoration: none; 10 | } 11 | } 12 | 13 | .hint { 14 | color: #959559; 15 | } 16 | 17 | .matches { 18 | opacity: 0; 19 | position: absolute; 20 | right: 10px; 21 | top: 10px; 22 | color: #959595; 23 | font-size: 10px; 24 | } 25 | 26 | .no-search-results i { 27 | margin-right: 10px; 28 | position: relative; 29 | top: -1px; 30 | } 31 | } -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/core.less: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/font-awesome.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.4.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "mixins.less"; 7 | @import "path.less"; 8 | @import "core.less"; 9 | @import "larger.less"; 10 | @import "fixed-width.less"; 11 | @import "list.less"; 12 | @import "bordered-pulled.less"; 13 | @import "animated.less"; 14 | @import "rotated-flipped.less"; 15 | @import "stacked.less"; 16 | @import "icons.less"; 17 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/.csslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "adjoining-classes": false, 3 | "box-sizing": false, 4 | "box-model": false, 5 | "compatible-vendor-prefixes": false, 6 | "floats": false, 7 | "font-sizes": false, 8 | "gradients": false, 9 | "important": false, 10 | "known-properties": false, 11 | "outline-none": false, 12 | "qualified-headings": false, 13 | "regex-selectors": false, 14 | "shorthand": false, 15 | "text-indent": false, 16 | "unique-headings": false, 17 | "universal-selector": false, 18 | "unqualified-attributes": false 19 | } 20 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/pagination.less: -------------------------------------------------------------------------------- 1 | // Pagination 2 | 3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @border-radius) { 4 | > li { 5 | > a, 6 | > span { 7 | padding: @padding-vertical @padding-horizontal; 8 | font-size: @font-size; 9 | } 10 | &:first-child { 11 | > a, 12 | > span { 13 | .border-left-radius(@border-radius); 14 | } 15 | } 16 | &:last-child { 17 | > a, 18 | > span { 19 | .border-right-radius(@border-radius); 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/border-radius.less: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | .border-top-radius(@radius) { 4 | border-top-right-radius: @radius; 5 | border-top-left-radius: @radius; 6 | } 7 | .border-right-radius(@radius) { 8 | border-bottom-right-radius: @radius; 9 | border-top-right-radius: @radius; 10 | } 11 | .border-bottom-radius(@radius) { 12 | border-bottom-right-radius: @radius; 13 | border-bottom-left-radius: @radius; 14 | } 15 | .border-left-radius(@radius) { 16 | border-bottom-left-radius: @radius; 17 | border-top-left-radius: @radius; 18 | } 19 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/stacked.less: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .@{fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .@{fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .@{fa-css-prefix}-inverse { color: @fa-inverse; } 21 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/panels.less: -------------------------------------------------------------------------------- 1 | // Panels 2 | 3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) { 4 | border-color: @border; 5 | 6 | & > .panel-heading { 7 | color: @heading-text-color; 8 | background-color: @heading-bg-color; 9 | border-color: @heading-border; 10 | 11 | + .panel-collapse > .panel-body { 12 | border-top-color: @border; 13 | } 14 | .badge { 15 | color: @heading-bg-color; 16 | background-color: @heading-text-color; 17 | } 18 | } 19 | & > .panel-footer { 20 | + .panel-collapse > .panel-body { 21 | border-bottom-color: @border; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/wells.less: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: @well-bg; 12 | border: 1px solid @well-border; 13 | border-radius: @border-radius-base; 14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: @border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: @border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/list-group.less: -------------------------------------------------------------------------------- 1 | // List Groups 2 | 3 | .list-group-item-variant(@state; @background; @color) { 4 | .list-group-item-@{state} { 5 | color: @color; 6 | background-color: @background; 7 | 8 | a& { 9 | color: @color; 10 | 11 | .list-group-item-heading { 12 | color: inherit; 13 | } 14 | 15 | &:hover, 16 | &:focus { 17 | color: @color; 18 | background-color: darken(@background, 5%); 19 | } 20 | &.active, 21 | &.active:hover, 22 | &.active:focus { 23 | color: #fff; 24 | background-color: @color; 25 | border-color: @color; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/hide-text.less: -------------------------------------------------------------------------------- 1 | // CSS image replacement 2 | // 3 | // Heads up! v3 launched with with only `.hide-text()`, but per our pattern for 4 | // mixins being reused as classes with the same name, this doesn't hold up. As 5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. 6 | // 7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757 8 | 9 | // Deprecated as of v3.0.1 (will be removed in v4) 10 | .hide-text() { 11 | font: ~"0/0" a; 12 | color: transparent; 13 | text-shadow: none; 14 | background-color: transparent; 15 | border: 0; 16 | } 17 | 18 | // New mixin to use as of v3.0.1 19 | .text-hide() { 20 | .hide-text(); 21 | } 22 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | .clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/breadcrumbs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/responsive-embed.less: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | } 26 | 27 | // Modifier class for 16:9 aspect ratio 28 | .embed-responsive-16by9 { 29 | padding-bottom: 56.25%; 30 | } 31 | 32 | // Modifier class for 4:3 aspect ratio 33 | .embed-responsive-4by3 { 34 | padding-bottom: 75%; 35 | } 36 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/bordered-pulled.less: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em @fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .@{fa-css-prefix}-pull-left { float: left; } 11 | .@{fa-css-prefix}-pull-right { float: right; } 12 | 13 | .@{fa-css-prefix} { 14 | &.@{fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.@{fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .@{fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/rotated-flipped.less: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); } 5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); } 6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); } 7 | 8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); } 9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .@{fa-css-prefix}-rotate-90, 15 | :root .@{fa-css-prefix}-rotate-180, 16 | :root .@{fa-css-prefix}-rotate-270, 17 | :root .@{fa-css-prefix}-flip-horizontal, 18 | :root .@{fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /css/bootstrap/less/custom/theme/main.less: -------------------------------------------------------------------------------- 1 | h1{ 2 | margin: 30px 0 10px; 3 | text-align: center; 4 | } 5 | 6 | .live-filtering { 7 | .livefilter; 8 | } 9 | 10 | p.lead{ 11 | margin: 0 0 40px; 12 | text-align: center; 13 | color: #999; 14 | } 15 | 16 | @media (max-width: @screen-xs-max) { 17 | span.visible-xs { 18 | display: inline !important; 19 | } 20 | } 21 | @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { 22 | span.visible-sm { 23 | display: inline !important; 24 | } 25 | } 26 | @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { 27 | span.visible-md { 28 | display: inline !important; 29 | } 30 | } 31 | @media (min-width: @screen-lg-min) { 32 | span.visible-lg { 33 | display: inline !important; 34 | } 35 | } -------------------------------------------------------------------------------- /css/bootstrap/less/core/component-animations.less: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | .transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | tr&.in { display: table-row; } 23 | tbody&.in { display: table-row-group; } 24 | } 25 | 26 | .collapsing { 27 | position: relative; 28 | height: 0; 29 | overflow: hidden; 30 | .transition-property(~"height, visibility"); 31 | .transition-duration(.35s); 32 | .transition-timing-function(ease); 33 | } 34 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/table-row.less: -------------------------------------------------------------------------------- 1 | // Tables 2 | 3 | .table-row-variant(@state; @background) { 4 | // Exact selectors below required to override `.table-striped` and prevent 5 | // inheritance to nested tables. 6 | .table > thead > tr, 7 | .table > tbody > tr, 8 | .table > tfoot > tr { 9 | > td.@{state}, 10 | > th.@{state}, 11 | &.@{state} > td, 12 | &.@{state} > th { 13 | background-color: @background; 14 | } 15 | } 16 | 17 | // Hover states for `.table-hover` 18 | // Note: this is not available for cells or rows within `thead` or `tfoot`. 19 | .table-hover > tbody > tr { 20 | > td.@{state}:hover, 21 | > th.@{state}:hover, 22 | &.@{state}:hover > td, 23 | &:hover > .@{state}, 24 | &.@{state}:hover > th { 25 | background-color: darken(@background, 5%); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/path.less: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}'); 7 | src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'), 8 | url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), 9 | url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'), 10 | url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'), 11 | url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /js/plugins.js: -------------------------------------------------------------------------------- 1 | // Avoid `console` errors in browsers that lack a console. 2 | (function() { 3 | var method; 4 | var noop = function () {}; 5 | var methods = [ 6 | 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 7 | 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 8 | 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', 9 | 'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn' 10 | ]; 11 | var length = methods.length; 12 | var console = (window.console = window.console || {}); 13 | 14 | while (length--) { 15 | method = methods[length]; 16 | 17 | // Only stub undefined methods. 18 | if (!console[method]) { 19 | console[method] = noop; 20 | } 21 | } 22 | }()); 23 | 24 | // Place any jQuery/helper plugins in here. 25 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/animated.less: -------------------------------------------------------------------------------- 1 | // Animated Icons 2 | // -------------------------- 3 | 4 | .@{fa-css-prefix}-spin { 5 | -webkit-animation: fa-spin 2s infinite linear; 6 | animation: fa-spin 2s infinite linear; 7 | } 8 | 9 | .@{fa-css-prefix}-pulse { 10 | -webkit-animation: fa-spin 1s infinite steps(8); 11 | animation: fa-spin 1s infinite steps(8); 12 | } 13 | 14 | @-webkit-keyframes fa-spin { 15 | 0% { 16 | -webkit-transform: rotate(0deg); 17 | transform: rotate(0deg); 18 | } 19 | 100% { 20 | -webkit-transform: rotate(359deg); 21 | transform: rotate(359deg); 22 | } 23 | } 24 | 25 | @keyframes fa-spin { 26 | 0% { 27 | -webkit-transform: rotate(0deg); 28 | transform: rotate(0deg); 29 | } 30 | 100% { 31 | -webkit-transform: rotate(359deg); 32 | transform: rotate(359deg); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/close.less: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: (@font-size-base * 1.5); 9 | font-weight: @close-font-weight; 10 | line-height: 1; 11 | color: @close-color; 12 | text-shadow: @close-text-shadow; 13 | .opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: @close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | .opacity(.5); 21 | } 22 | 23 | // Additional properties for button version 24 | // iOS requires the button element instead of an anchor tag. 25 | // If you want the anchor version, it requires `href="#"`. 26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 27 | button& { 28 | padding: 0; 29 | cursor: pointer; 30 | background: transparent; 31 | border: 0; 32 | -webkit-appearance: none; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/thumbnails.less: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: @thumbnail-padding; 10 | margin-bottom: @line-height-computed; 11 | line-height: @line-height-base; 12 | background-color: @thumbnail-bg; 13 | border: 1px solid @thumbnail-border; 14 | border-radius: @thumbnail-border-radius; 15 | .transition(border .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | &:extend(.img-responsive); 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // Add a hover state for linked versions only 25 | a&:hover, 26 | a&:focus, 27 | a&.active { 28 | border-color: @link-color; 29 | } 30 | 31 | // Image captions 32 | .caption { 33 | padding: @thumbnail-caption-padding; 34 | color: @thumbnail-caption-color; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/utilities.less: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | .clearfix(); 11 | } 12 | .center-block { 13 | .center-block(); 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | .text-hide(); 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | } 48 | 49 | 50 | // For Affix plugin 51 | // ------------------------- 52 | 53 | .affix { 54 | position: fixed; 55 | } 56 | -------------------------------------------------------------------------------- /css/bootstrap/less/plugins/font-awesome/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------- 3 | 4 | .fa-icon() { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | 14 | .fa-icon-rotate(@degrees, @rotation) { 15 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation); 16 | -webkit-transform: rotate(@degrees); 17 | -ms-transform: rotate(@degrees); 18 | transform: rotate(@degrees); 19 | } 20 | 21 | .fa-icon-flip(@horiz, @vert, @rotation) { 22 | filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1); 23 | -webkit-transform: scale(@horiz, @vert); 24 | -ms-transform: scale(@horiz, @vert); 25 | transform: scale(@horiz, @vert); 26 | } 27 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/media.less: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | } 23 | 24 | .media-right, 25 | .media > .pull-right { 26 | padding-left: 10px; 27 | } 28 | 29 | .media-left, 30 | .media > .pull-left { 31 | padding-right: 10px; 32 | } 33 | 34 | .media-left, 35 | .media-right, 36 | .media-body { 37 | display: table-cell; 38 | vertical-align: top; 39 | } 40 | 41 | .media-middle { 42 | vertical-align: middle; 43 | } 44 | 45 | .media-bottom { 46 | vertical-align: bottom; 47 | } 48 | 49 | // Reset margins on headings for tighter default spacing 50 | .media-heading { 51 | margin-top: 0; 52 | margin-bottom: 5px; 53 | } 54 | 55 | // Media list variation 56 | // 57 | // Undo default ul/ol styles 58 | .media-list { 59 | padding-left: 0; 60 | list-style: none; 61 | } 62 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/pager.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: @line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | &:extend(.clearfix all); 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: @pager-bg; 19 | border: 1px solid @pager-border; 20 | border-radius: @pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: @pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: @pager-disabled-color; 50 | background-color: @pager-bg; 51 | cursor: @cursor-disabled; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/jumbotron.less: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding: @jumbotron-padding (@jumbotron-padding / 2); 8 | margin-bottom: @jumbotron-padding; 9 | color: @jumbotron-color; 10 | background-color: @jumbotron-bg; 11 | 12 | h1, 13 | .h1 { 14 | color: @jumbotron-heading-color; 15 | } 16 | 17 | p { 18 | margin-bottom: (@jumbotron-padding / 2); 19 | font-size: @jumbotron-font-size; 20 | font-weight: 200; 21 | } 22 | 23 | > hr { 24 | border-top-color: darken(@jumbotron-bg, 10%); 25 | } 26 | 27 | .container &, 28 | .container-fluid & { 29 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container 30 | } 31 | 32 | .container { 33 | max-width: 100%; 34 | } 35 | 36 | @media screen and (min-width: @screen-sm-min) { 37 | padding: (@jumbotron-padding * 1.6) 0; 38 | 39 | .container &, 40 | .container-fluid & { 41 | padding-left: (@jumbotron-padding * 2); 42 | padding-right: (@jumbotron-padding * 2); 43 | } 44 | 45 | h1, 46 | .h1 { 47 | font-size: (@font-size-base * 4.5); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/image.less: -------------------------------------------------------------------------------- 1 | // Image Mixins 2 | // - Responsive image 3 | // - Retina image 4 | 5 | 6 | // Responsive image 7 | // 8 | // Keep images from scaling beyond the width of their parents. 9 | .img-responsive(@display: block) { 10 | display: @display; 11 | max-width: 100%; // Part 1: Set a maximum relative to the parent 12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching 13 | } 14 | 15 | 16 | // Retina image 17 | // 18 | // Short retina mixin for setting background-image and -size. Note that the 19 | // spelling of `min--moz-device-pixel-ratio` is intentional. 20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) { 21 | background-image: url("@{file-1x}"); 22 | 23 | @media 24 | only screen and (-webkit-min-device-pixel-ratio: 2), 25 | only screen and ( min--moz-device-pixel-ratio: 2), 26 | only screen and ( -o-min-device-pixel-ratio: 2/1), 27 | only screen and ( min-device-pixel-ratio: 2), 28 | only screen and ( min-resolution: 192dpi), 29 | only screen and ( min-resolution: 2dppx) { 30 | background-image: url("@{file-2x}"); 31 | background-size: @width-1x @height-1x; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | 4 | // Utilities 5 | @import "mixins/hide-text.less"; 6 | @import "mixins/opacity.less"; 7 | @import "mixins/image.less"; 8 | @import "mixins/labels.less"; 9 | @import "mixins/reset-filter.less"; 10 | @import "mixins/resize.less"; 11 | @import "mixins/responsive-visibility.less"; 12 | @import "mixins/size.less"; 13 | @import "mixins/tab-focus.less"; 14 | @import "mixins/text-emphasis.less"; 15 | @import "mixins/text-overflow.less"; 16 | @import "mixins/vendor-prefixes.less"; 17 | 18 | // Components 19 | @import "mixins/alerts.less"; 20 | @import "mixins/buttons.less"; 21 | @import "mixins/panels.less"; 22 | @import "mixins/pagination.less"; 23 | @import "mixins/list-group.less"; 24 | @import "mixins/nav-divider.less"; 25 | @import "mixins/forms.less"; 26 | @import "mixins/progress-bar.less"; 27 | @import "mixins/table-row.less"; 28 | 29 | // Skins 30 | @import "mixins/background-variant.less"; 31 | @import "mixins/border-radius.less"; 32 | @import "mixins/gradients.less"; 33 | 34 | // Layout 35 | @import "mixins/clearfix.less"; 36 | @import "mixins/center-block.less"; 37 | @import "mixins/nav-vertical-align.less"; 38 | @import "mixins/grid-framework.less"; 39 | @import "mixins/grid.less"; 40 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/buttons.less: -------------------------------------------------------------------------------- 1 | // Button variants 2 | // 3 | // Easily pump out default styles, as well as :hover, :focus, :active, 4 | // and disabled options for all buttons 5 | 6 | .button-variant(@color; @background; @border) { 7 | color: @color; 8 | background-color: @background; 9 | border-color: @border; 10 | 11 | &:hover, 12 | &:focus, 13 | &.focus, 14 | &:active, 15 | &.active, 16 | .open > .dropdown-toggle& { 17 | color: @color; 18 | background-color: darken(@background, 10%); 19 | border-color: darken(@border, 12%); 20 | } 21 | &:active, 22 | &.active, 23 | .open > .dropdown-toggle& { 24 | background-image: none; 25 | } 26 | &.disabled, 27 | &[disabled], 28 | fieldset[disabled] & { 29 | &, 30 | &:hover, 31 | &:focus, 32 | &.focus, 33 | &:active, 34 | &.active { 35 | background-color: @background; 36 | border-color: @border; 37 | } 38 | } 39 | 40 | .badge { 41 | color: @background; 42 | background-color: @color; 43 | } 44 | } 45 | 46 | // Button sizes 47 | .button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) { 48 | padding: @padding-vertical @padding-horizontal; 49 | font-size: @font-size; 50 | line-height: @line-height; 51 | border-radius: @border-radius; 52 | } 53 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/labels.less: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label { 6 | display: inline; 7 | padding: .2em .6em .3em; 8 | font-size: 75%; 9 | font-weight: bold; 10 | line-height: 1; 11 | color: @label-color; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | border-radius: .25em; 16 | 17 | // Add hover effects, but only for links 18 | a& { 19 | &:hover, 20 | &:focus { 21 | color: @label-link-hover-color; 22 | text-decoration: none; 23 | cursor: pointer; 24 | } 25 | } 26 | 27 | // Empty labels collapse automatically (not available in IE8) 28 | &:empty { 29 | display: none; 30 | } 31 | 32 | // Quick fix for labels in buttons 33 | .btn & { 34 | position: relative; 35 | top: -1px; 36 | } 37 | } 38 | 39 | // Colors 40 | // Contextual variations (linked labels get darker on :hover) 41 | 42 | .label-default { 43 | .label-variant(@label-default-bg); 44 | } 45 | 46 | .label-primary { 47 | .label-variant(@label-primary-bg); 48 | } 49 | 50 | .label-success { 51 | .label-variant(@label-success-bg); 52 | } 53 | 54 | .label-info { 55 | .label-variant(@label-info-bg); 56 | } 57 | 58 | .label-warning { 59 | .label-variant(@label-warning-bg); 60 | } 61 | 62 | .label-danger { 63 | .label-variant(@label-danger-bg); 64 | } 65 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/badges.less: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: @font-size-small; 12 | font-weight: @badge-font-weight; 13 | color: @badge-color; 14 | line-height: @badge-line-height; 15 | vertical-align: baseline; 16 | white-space: nowrap; 17 | text-align: center; 18 | background-color: @badge-bg; 19 | border-radius: @badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | 32 | .btn-xs &, 33 | .btn-group-xs > .btn & { 34 | top: 0; 35 | padding: 1px 5px; 36 | } 37 | 38 | // Hover state, but only for links 39 | a& { 40 | &:hover, 41 | &:focus { 42 | color: @badge-link-hover-color; 43 | text-decoration: none; 44 | cursor: pointer; 45 | } 46 | } 47 | 48 | // Account for badges in navs 49 | .list-group-item.active > &, 50 | .nav-pills > .active > a > & { 51 | color: @badge-active-color; 52 | background-color: @badge-active-bg; 53 | } 54 | 55 | .list-group-item > & { 56 | float: right; 57 | } 58 | 59 | .list-group-item > & + & { 60 | margin-right: 5px; 61 | } 62 | 63 | .nav-pills > li > a > & { 64 | margin-left: 3px; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/code.less: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | 6 | // Inline and block code styles 7 | code, 8 | kbd, 9 | pre, 10 | samp { 11 | font-family: @font-family-monospace; 12 | } 13 | 14 | // Inline code 15 | code { 16 | padding: 2px 4px; 17 | font-size: 90%; 18 | color: @code-color; 19 | background-color: @code-bg; 20 | border-radius: @border-radius-base; 21 | } 22 | 23 | // User input typically entered via keyboard 24 | kbd { 25 | padding: 2px 4px; 26 | font-size: 90%; 27 | color: @kbd-color; 28 | background-color: @kbd-bg; 29 | border-radius: @border-radius-small; 30 | box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); 31 | 32 | kbd { 33 | padding: 0; 34 | font-size: 100%; 35 | font-weight: bold; 36 | box-shadow: none; 37 | } 38 | } 39 | 40 | // Blocks of code 41 | pre { 42 | display: block; 43 | padding: ((@line-height-computed - 1) / 2); 44 | margin: 0 0 (@line-height-computed / 2); 45 | font-size: (@font-size-base - 1); // 14px to 13px 46 | line-height: @line-height-base; 47 | word-break: break-all; 48 | word-wrap: break-word; 49 | color: @pre-color; 50 | background-color: @pre-bg; 51 | border: 1px solid @pre-border-color; 52 | border-radius: @border-radius-base; 53 | 54 | // Account for some code outputs that place code tags in pre tags 55 | code { 56 | padding: 0; 57 | font-size: inherit; 58 | color: inherit; 59 | white-space: pre-wrap; 60 | background-color: transparent; 61 | border-radius: 0; 62 | } 63 | } 64 | 65 | // Enable scrollable blocks of code 66 | .pre-scrollable { 67 | max-height: @pre-scrollable-max-height; 68 | overflow-y: scroll; 69 | } 70 | -------------------------------------------------------------------------------- /css/bootstrap/less/bootstrap.less: -------------------------------------------------------------------------------- 1 | // Core variables and mixins 2 | @import "core/variables"; 3 | @import "core/mixins"; 4 | 5 | // Plugins variables 6 | @import (optional) "plugins/bootstrap-select/variables"; 7 | @import "plugins/font-awesome/variables"; 8 | 9 | // Custom variables 10 | 11 | // Reset and dependencies 12 | @import "core/normalize"; 13 | @import "core/print"; 14 | @import "core/glyphicons"; 15 | 16 | // Core CSS 17 | @import "core/scaffolding"; 18 | @import "core/type"; 19 | @import "core/code"; 20 | @import "core/grid"; 21 | @import "core/tables"; 22 | @import "core/forms"; 23 | @import "core/buttons"; 24 | 25 | // Components 26 | @import "core/component-animations"; 27 | @import "core/dropdowns"; 28 | @import "core/button-groups"; 29 | @import "core/input-groups"; 30 | @import "core/navs"; 31 | @import "core/navbar"; 32 | @import "core/breadcrumbs"; 33 | @import "core/pagination"; 34 | @import "core/pager"; 35 | @import "core/labels"; 36 | @import "core/badges"; 37 | @import "core/jumbotron"; 38 | @import "core/thumbnails"; 39 | @import "core/alerts"; 40 | @import "core/progress-bars"; 41 | @import "core/media"; 42 | @import "core/list-group"; 43 | @import "core/panels"; 44 | @import "core/responsive-embed"; 45 | @import "core/wells"; 46 | @import "core/close"; 47 | 48 | // Components w/ JavaScript 49 | @import "core/modals"; 50 | @import "core/tooltip"; 51 | @import "core/popovers"; 52 | @import "core/carousel"; 53 | 54 | // Utility classes 55 | @import "core/utilities"; 56 | @import "core/responsive-utilities"; 57 | 58 | // Custom Mixins 59 | 60 | // Plugins 61 | @import "plugins/bootstrap-select/bootstrap-select"; 62 | @import "plugins/font-awesome/font-awesome"; 63 | 64 | // Custom 65 | @import "custom/mixins/livefilter"; 66 | @import "custom/theme/main"; -------------------------------------------------------------------------------- /css/bootstrap/less/core/grid.less: -------------------------------------------------------------------------------- 1 | // 2 | // Grid system 3 | // -------------------------------------------------- 4 | 5 | 6 | // Container widths 7 | // 8 | // Set the container width, and override it for fixed navbars in media queries. 9 | 10 | .container { 11 | .container-fixed(); 12 | 13 | @media (min-width: @screen-sm-min) { 14 | width: @container-sm; 15 | } 16 | @media (min-width: @screen-md-min) { 17 | width: @container-md; 18 | } 19 | @media (min-width: @screen-lg-min) { 20 | width: @container-lg; 21 | } 22 | } 23 | 24 | 25 | // Fluid container 26 | // 27 | // Utilizes the mixin meant for fixed width containers, but without any defined 28 | // width for fluid, full width layouts. 29 | 30 | .container-fluid { 31 | .container-fixed(); 32 | } 33 | 34 | 35 | // Row 36 | // 37 | // Rows contain and clear the floats of your columns. 38 | 39 | .row { 40 | .make-row(); 41 | } 42 | 43 | 44 | // Columns 45 | // 46 | // Common styles for small and large grid columns 47 | 48 | .make-grid-columns(); 49 | 50 | 51 | // Extra small grid 52 | // 53 | // Columns, offsets, pushes, and pulls for extra small devices like 54 | // smartphones. 55 | 56 | .make-grid(xs); 57 | 58 | 59 | // Small grid 60 | // 61 | // Columns, offsets, pushes, and pulls for the small device range, from phones 62 | // to tablets. 63 | 64 | @media (min-width: @screen-sm-min) { 65 | .make-grid(sm); 66 | } 67 | 68 | 69 | // Medium grid 70 | // 71 | // Columns, offsets, pushes, and pulls for the desktop device range. 72 | 73 | @media (min-width: @screen-md-min) { 74 | .make-grid(md); 75 | } 76 | 77 | 78 | // Large grid 79 | // 80 | // Columns, offsets, pushes, and pulls for the large desktop device range. 81 | 82 | @media (min-width: @screen-lg-min) { 83 | .make-grid(lg); 84 | } 85 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/alerts.less: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | padding: @alert-padding; 11 | margin-bottom: @line-height-computed; 12 | border: 1px solid transparent; 13 | border-radius: @alert-border-radius; 14 | 15 | // Headings for larger alerts 16 | h4 { 17 | margin-top: 0; 18 | // Specified for the h4 to prevent conflicts of changing @headings-color 19 | color: inherit; 20 | } 21 | 22 | // Provide class for links that match alerts 23 | .alert-link { 24 | font-weight: @alert-link-font-weight; 25 | } 26 | 27 | // Improve alignment and spacing of inner content 28 | > p, 29 | > ul { 30 | margin-bottom: 0; 31 | } 32 | 33 | > p + p { 34 | margin-top: 5px; 35 | } 36 | } 37 | 38 | // Dismissible alerts 39 | // 40 | // Expand the right padding and account for the close button's positioning. 41 | 42 | .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. 43 | .alert-dismissible { 44 | padding-right: (@alert-padding + 20); 45 | 46 | // Adjust close link position 47 | .close { 48 | position: relative; 49 | top: -2px; 50 | right: -21px; 51 | color: inherit; 52 | } 53 | } 54 | 55 | // Alternate styles 56 | // 57 | // Generate contextual modifier classes for colorizing the alert. 58 | 59 | .alert-success { 60 | .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text); 61 | } 62 | 63 | .alert-info { 64 | .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text); 65 | } 66 | 67 | .alert-warning { 68 | .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text); 69 | } 70 | 71 | .alert-danger { 72 | .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text); 73 | } 74 | -------------------------------------------------------------------------------- /js/vendor/tabcomplete.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * tabcomplete 3 | * http://github.com/erming/tabcomplete 4 | * v1.5.0 5 | */ 6 | !function(a){function b(b,c,d){return a.grep(c,function(a){return d?!a.indexOf(b):!a.toLowerCase().indexOf(b.toLowerCase())})}function c(b){var c=this,d=c.prev(".hint");c.css({backgroundColor:"transparent",position:"relative"}),d.length||(c.options.wrapInput&&c.wrap(a("
").css({position:"relative",height:c.css("height"),display:c.css("display")})),d=c.clone().attr("tabindex",-1).removeAttr("id name placeholder").addClass("hint").insertBefore(c),d.css({position:"absolute"}));var e="";if("undefined"!=typeof b){var f=c.val();e=f+b.substr(f.split(/ |\n/).pop().length)}d.val(e)}function d(a){var b=this,c=b.val();a&&(b.val(c+a.substr(c.split(/ |\n/).pop().length)),b[0].selectionStart=c.length)}var e={backspace:8,tab:9,up:38,down:40};a.tabcomplete={},a.tabcomplete.defaultOptions={after:"",arrowKeys:!1,hint:"placeholder",match:b,caseSensitive:!1,minLength:1,wrapInput:!0},a.fn.tab=a.fn.tabcomplete=function(b,f){if(this.length>1)return this.each(function(){a(this).tabcomplete(b,f)});var g=this.prop("tagName");if("INPUT"==g||"TEXTAREA"==g){this.options=f=a.extend(a.tabcomplete.defaultOptions,f),this.unbind(".tabcomplete"),this.prev(".hint").remove();var h=this,i=!1,j=-1,k=[],l="",m=a.noop;switch(f.hint){case"placeholder":m=c;break;case"select":m=d}return this.on("input.tabcomplete",function(){var c=h.val(),d=c.split(/ |\n/).pop();j=-1,l="",k=[],h[0].selectionStart==c.length&&d.length&&(k=f.match(d,b,f.caseSensitive),f.after&&(k=a.map(k,function(a){return a+f.after}))),h.trigger("match",k.length),f.hint&&(("select"!=f.hint||!i)&&d.length>=f.minLength?m.call(h,k[0]):m.call(h,"")),i&&(i=!1)}),this.on("keydown.tabcomplete",function(a){var b=a.which;if(b==e.tab||f.arrowKeys&&(b==e.up||b==e.down)){if(a.preventDefault(),b!=e.up)j++;else{if(-1==j)return;0==j?j=k.length-1:j--}var c=k[j%k.length];if(!c)return;var d=h.val();if(l=l||d.split(/ |\n/).pop(),l.length .striped(); 57 | background-size: 40px 40px; 58 | } 59 | 60 | // Call animation for the active one 61 | // 62 | // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the 63 | // `.progress-bar.active` approach. 64 | .progress.active .progress-bar, 65 | .progress-bar.active { 66 | .animation(progress-bar-stripes 2s linear infinite); 67 | } 68 | 69 | 70 | // Variations 71 | // ------------------------- 72 | 73 | .progress-bar-success { 74 | .progress-bar-variant(@progress-bar-success-bg); 75 | } 76 | 77 | .progress-bar-info { 78 | .progress-bar-variant(@progress-bar-info-bg); 79 | } 80 | 81 | .progress-bar-warning { 82 | .progress-bar-variant(@progress-bar-warning-bg); 83 | } 84 | 85 | .progress-bar-danger { 86 | .progress-bar-variant(@progress-bar-danger-bg); 87 | } 88 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/pagination.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pagination (multiple pages) 3 | // -------------------------------------------------- 4 | .pagination { 5 | display: inline-block; 6 | padding-left: 0; 7 | margin: @line-height-computed 0; 8 | border-radius: @border-radius-base; 9 | 10 | > li { 11 | display: inline; // Remove list-style and block-level defaults 12 | > a, 13 | > span { 14 | position: relative; 15 | float: left; // Collapse white-space 16 | padding: @padding-base-vertical @padding-base-horizontal; 17 | line-height: @line-height-base; 18 | text-decoration: none; 19 | color: @pagination-color; 20 | background-color: @pagination-bg; 21 | border: 1px solid @pagination-border; 22 | margin-left: -1px; 23 | } 24 | &:first-child { 25 | > a, 26 | > span { 27 | margin-left: 0; 28 | .border-left-radius(@border-radius-base); 29 | } 30 | } 31 | &:last-child { 32 | > a, 33 | > span { 34 | .border-right-radius(@border-radius-base); 35 | } 36 | } 37 | } 38 | 39 | > li > a, 40 | > li > span { 41 | &:hover, 42 | &:focus { 43 | color: @pagination-hover-color; 44 | background-color: @pagination-hover-bg; 45 | border-color: @pagination-hover-border; 46 | } 47 | } 48 | 49 | > .active > a, 50 | > .active > span { 51 | &, 52 | &:hover, 53 | &:focus { 54 | z-index: 2; 55 | color: @pagination-active-color; 56 | background-color: @pagination-active-bg; 57 | border-color: @pagination-active-border; 58 | cursor: default; 59 | } 60 | } 61 | 62 | > .disabled { 63 | > span, 64 | > span:hover, 65 | > span:focus, 66 | > a, 67 | > a:hover, 68 | > a:focus { 69 | color: @pagination-disabled-color; 70 | background-color: @pagination-disabled-bg; 71 | border-color: @pagination-disabled-border; 72 | cursor: @cursor-disabled; 73 | } 74 | } 75 | } 76 | 77 | // Sizing 78 | // -------------------------------------------------- 79 | 80 | // Large 81 | .pagination-lg { 82 | .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large); 83 | } 84 | 85 | // Small 86 | .pagination-sm { 87 | .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small); 88 | } 89 | -------------------------------------------------------------------------------- /js/vendor/filterlist.min.js: -------------------------------------------------------------------------------- 1 | /*! ======================================================================== 2 | * FilterList: filterlist.js v1.1.0 3 | * ======================================================================== 4 | * Copyright 2015, Salvatore Di Salvo (disalvo-infographiste[dot]be) 5 | * ======================================================================== */ 6 | (function(d){var b=function(f,e){this.$element=d(f);this.options=d.extend({},this.defaults(),e);this.structure=d.extend({},this.parts())};b.VERSION="1.2.0";b.DEFAULTS={method:"recursive",items:".items"};b.prototype.defaults=function(){return{select:b.DEFAULTS.select,method:this.$element.attr("data-method")||b.DEFAULTS.method,items:this.$element.attr("data-items")||b.DEFAULTS.items}};b.prototype.parts=function(){return{$items:d(this.options.items,this.$element)}};b.prototype.filter=function(g,h){var f=this.$element;if(h&&f.data("bs.dropdownselect")){var e=d(".items.selected",f);if(e.length){e.each(function(){if(d(this).data(g)!=h){f.bootstrapSelect("clear")}})}}this.filterItem(g,h,this.options.method);if(d(".live-filtering",f).data("liveFilter")){d(".live-filtering",f).liveFilter("initAC")}};b.prototype.filterItem=function(e,f,g){this.structure.$items.each(function(){var j=d(this).data("ref"),i=d(this).data("valid");if(j!=undefined&&i!=undefined){j=j.split(",");i=i.split(",");if(j.length==i.length){if(f!=null&&f!=""){if(j.indexOf(e)>-1){i[j.indexOf(e)]=f}else{j=j.concat([e]);i=i.concat([f])}}else{i.splice(j.indexOf(e),1);j.splice(j.indexOf(e),1)}}}else{if(f!=null&&f!=""){j=[e];i=[f]}}if(g=="recursive"){var h=true;for(var k=0;k0){d(this).data("ref",j.toString()).data("valid",i.toString())}else{d(this).removeData("ref").removeData("valid")}if(!h){d(this).addClass("disabled").hide()}else{d(this).removeClass("disabled").show()}})};function c(){var e=arguments;return this.each(function(){var h=d(this);var g=h.data("FilterList");var i=e[0];if(typeof(i)=="object"||!i){var f=typeof i=="object"&&i;h.data("FilterList",(g=new b(this,f)))}else{if(g[i]){i=g[i];e=Array.prototype.slice.call(e,1);if(e!=null||e!=undefined||e!=[]){i.apply(g,e)}}else{d.error("Method "+i+" does not exist on jQuery.FilterList");return this}}})}var a=d.fn.listFilter;d.fn.listFilter=c;d.fn.listFilter.Constructor=b;d.fn.toggle.noConflict=function(){d.fn.listFilter=a;return this}}(jQuery)); -------------------------------------------------------------------------------- /css/bootstrap/less/core/print.less: -------------------------------------------------------------------------------- 1 | /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ 2 | 3 | // ========================================================================== 4 | // Print styles. 5 | // Inlined to avoid the additional HTTP request: h5bp.com/r 6 | // ========================================================================== 7 | 8 | @media print { 9 | *, 10 | *:before, 11 | *:after { 12 | background: transparent !important; 13 | color: #000 !important; // Black prints faster: h5bp.com/s 14 | box-shadow: none !important; 15 | text-shadow: none !important; 16 | } 17 | 18 | a, 19 | a:visited { 20 | text-decoration: underline; 21 | } 22 | 23 | a[href]:after { 24 | content: " (" attr(href) ")"; 25 | } 26 | 27 | abbr[title]:after { 28 | content: " (" attr(title) ")"; 29 | } 30 | 31 | // Don't show links that are fragment identifiers, 32 | // or use the `javascript:` pseudo protocol 33 | a[href^="#"]:after, 34 | a[href^="javascript:"]:after { 35 | content: ""; 36 | } 37 | 38 | pre, 39 | blockquote { 40 | border: 1px solid #999; 41 | page-break-inside: avoid; 42 | } 43 | 44 | thead { 45 | display: table-header-group; // h5bp.com/t 46 | } 47 | 48 | tr, 49 | img { 50 | page-break-inside: avoid; 51 | } 52 | 53 | img { 54 | max-width: 100% !important; 55 | } 56 | 57 | p, 58 | h2, 59 | h3 { 60 | orphans: 3; 61 | widows: 3; 62 | } 63 | 64 | h2, 65 | h3 { 66 | page-break-after: avoid; 67 | } 68 | 69 | // Bootstrap specific changes start 70 | // 71 | // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245 72 | // Once fixed, we can just straight up remove this. 73 | select { 74 | background: #fff !important; 75 | } 76 | 77 | // Bootstrap components 78 | .navbar { 79 | display: none; 80 | } 81 | .btn, 82 | .dropup > .btn { 83 | > .caret { 84 | border-top-color: #000 !important; 85 | } 86 | } 87 | .label { 88 | border: 1px solid #000; 89 | } 90 | 91 | .table { 92 | border-collapse: collapse !important; 93 | 94 | td, 95 | th { 96 | background-color: #fff !important; 97 | } 98 | } 99 | .table-bordered { 100 | th, 101 | td { 102 | border: 1px solid #ddd !important; 103 | } 104 | } 105 | 106 | // Bootstrap specific changes end 107 | } 108 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/forms.less: -------------------------------------------------------------------------------- 1 | // Form validation states 2 | // 3 | // Used in forms.less to generate the form validation CSS for warnings, errors, 4 | // and successes. 5 | 6 | .form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) { 7 | // Color the label and help text 8 | .help-block, 9 | .control-label, 10 | .radio, 11 | .checkbox, 12 | .radio-inline, 13 | .checkbox-inline, 14 | &.radio label, 15 | &.checkbox label, 16 | &.radio-inline label, 17 | &.checkbox-inline label { 18 | color: @text-color; 19 | } 20 | // Set the border and box shadow on specific inputs to match 21 | .form-control { 22 | border-color: @border-color; 23 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work 24 | &:focus { 25 | border-color: darken(@border-color, 10%); 26 | @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%); 27 | .box-shadow(@shadow); 28 | } 29 | } 30 | // Set validation states also for addons 31 | .input-group-addon { 32 | color: @text-color; 33 | border-color: @border-color; 34 | background-color: @background-color; 35 | } 36 | // Optional feedback icon 37 | .form-control-feedback { 38 | color: @text-color; 39 | } 40 | } 41 | 42 | 43 | // Form control focus state 44 | // 45 | // Generate a customized focus state and for any input with the specified color, 46 | // which defaults to the `@input-border-focus` variable. 47 | // 48 | // We highly encourage you to not customize the default value, but instead use 49 | // this to tweak colors on an as-needed basis. This aesthetic change is based on 50 | // WebKit's default styles, but applicable to a wider range of browsers. Its 51 | // usability and accessibility should be taken into account with any change. 52 | // 53 | // Example usage: change the default blue border and shadow to white for better 54 | // contrast against a dark gray background. 55 | .form-control-focus(@color: @input-border-focus) { 56 | @color-rgba: rgba(red(@color), green(@color), blue(@color), .6); 57 | &:focus { 58 | border-color: @color; 59 | outline: 0; 60 | .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}"); 61 | } 62 | } 63 | 64 | // Form control sizing 65 | // 66 | // Relative text size, padding, and border-radii changes for form controls. For 67 | // horizontal sizing, wrap controls in the predefined grid classes. ` 31 |
32 | ``` 33 | 34 | ## Features 35 | ### Option group 36 | You can create some group in your select just like in a traditionnal select 37 | 38 | ```html 39 |
40 | 44 | 64 | 65 |
66 | ``` 67 | 68 | ### Clear Button 69 | You can add a clear button to allow the user to clear his selection 70 | 71 | ```html 72 |
73 | Cancel the selection 74 | 78 | 85 | 86 |
87 | ``` 88 | 89 | ### Live Filtering 90 | Need more html to be used but with this you can provide a live search inside your select, really useful into a select with a lot of options 91 | 92 | ```html 93 |
94 | 98 | 120 | 121 |
122 | ``` -------------------------------------------------------------------------------- /css/bootstrap/less/core/tables.less: -------------------------------------------------------------------------------- 1 | // 2 | // Tables 3 | // -------------------------------------------------- 4 | 5 | 6 | table { 7 | background-color: @table-bg; 8 | } 9 | caption { 10 | padding-top: @table-cell-padding; 11 | padding-bottom: @table-cell-padding; 12 | color: @text-muted; 13 | text-align: left; 14 | } 15 | th { 16 | text-align: left; 17 | } 18 | 19 | 20 | // Baseline styles 21 | 22 | .table { 23 | width: 100%; 24 | max-width: 100%; 25 | margin-bottom: @line-height-computed; 26 | // Cells 27 | > thead, 28 | > tbody, 29 | > tfoot { 30 | > tr { 31 | > th, 32 | > td { 33 | padding: @table-cell-padding; 34 | line-height: @line-height-base; 35 | vertical-align: top; 36 | border-top: 1px solid @table-border-color; 37 | } 38 | } 39 | } 40 | // Bottom align for column headings 41 | > thead > tr > th { 42 | vertical-align: bottom; 43 | border-bottom: 2px solid @table-border-color; 44 | } 45 | // Remove top border from thead by default 46 | > caption + thead, 47 | > colgroup + thead, 48 | > thead:first-child { 49 | > tr:first-child { 50 | > th, 51 | > td { 52 | border-top: 0; 53 | } 54 | } 55 | } 56 | // Account for multiple tbody instances 57 | > tbody + tbody { 58 | border-top: 2px solid @table-border-color; 59 | } 60 | 61 | // Nesting 62 | .table { 63 | background-color: @body-bg; 64 | } 65 | } 66 | 67 | 68 | // Condensed table w/ half padding 69 | 70 | .table-condensed { 71 | > thead, 72 | > tbody, 73 | > tfoot { 74 | > tr { 75 | > th, 76 | > td { 77 | padding: @table-condensed-cell-padding; 78 | } 79 | } 80 | } 81 | } 82 | 83 | 84 | // Bordered version 85 | // 86 | // Add borders all around the table and between all the columns. 87 | 88 | .table-bordered { 89 | border: 1px solid @table-border-color; 90 | > thead, 91 | > tbody, 92 | > tfoot { 93 | > tr { 94 | > th, 95 | > td { 96 | border: 1px solid @table-border-color; 97 | } 98 | } 99 | } 100 | > thead > tr { 101 | > th, 102 | > td { 103 | border-bottom-width: 2px; 104 | } 105 | } 106 | } 107 | 108 | 109 | // Zebra-striping 110 | // 111 | // Default zebra-stripe styles (alternating gray and transparent backgrounds) 112 | 113 | .table-striped { 114 | > tbody > tr:nth-of-type(odd) { 115 | background-color: @table-bg-accent; 116 | } 117 | } 118 | 119 | 120 | // Hover effect 121 | // 122 | // Placed here since it has to come after the potential zebra striping 123 | 124 | .table-hover { 125 | > tbody > tr:hover { 126 | background-color: @table-bg-hover; 127 | } 128 | } 129 | 130 | 131 | // Table cell sizing 132 | // 133 | // Reset default table behavior 134 | 135 | table col[class*="col-"] { 136 | position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623) 137 | float: none; 138 | display: table-column; 139 | } 140 | table { 141 | td, 142 | th { 143 | &[class*="col-"] { 144 | position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623) 145 | float: none; 146 | display: table-cell; 147 | } 148 | } 149 | } 150 | 151 | 152 | // Table backgrounds 153 | // 154 | // Exact selectors below required to override `.table-striped` and prevent 155 | // inheritance to nested tables. 156 | 157 | // Generate the contextual variants 158 | .table-row-variant(active; @table-bg-active); 159 | .table-row-variant(success; @state-success-bg); 160 | .table-row-variant(info; @state-info-bg); 161 | .table-row-variant(warning; @state-warning-bg); 162 | .table-row-variant(danger; @state-danger-bg); 163 | 164 | 165 | // Responsive tables 166 | // 167 | // Wrap your tables in `.table-responsive` and we'll make them mobile friendly 168 | // by enabling horizontal scrolling. Only applies <768px. Everything above that 169 | // will display normally. 170 | 171 | .table-responsive { 172 | overflow-x: auto; 173 | min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837) 174 | 175 | @media screen and (max-width: @screen-xs-max) { 176 | width: 100%; 177 | margin-bottom: (@line-height-computed * 0.75); 178 | overflow-y: hidden; 179 | -ms-overflow-style: -ms-autohiding-scrollbar; 180 | border: 1px solid @table-border-color; 181 | 182 | // Tighten up spacing 183 | > .table { 184 | margin-bottom: 0; 185 | 186 | // Ensure the content doesn't wrap 187 | > thead, 188 | > tbody, 189 | > tfoot { 190 | > tr { 191 | > th, 192 | > td { 193 | white-space: nowrap; 194 | } 195 | } 196 | } 197 | } 198 | 199 | // Special overrides for the bordered tables 200 | > .table-bordered { 201 | border: 0; 202 | 203 | // Nuke the appropriate borders so that the parent can handle them 204 | > thead, 205 | > tbody, 206 | > tfoot { 207 | > tr { 208 | > th:first-child, 209 | > td:first-child { 210 | border-left: 0; 211 | } 212 | > th:last-child, 213 | > td:last-child { 214 | border-right: 0; 215 | } 216 | } 217 | } 218 | 219 | // Only nuke the last row's bottom-border in `tbody` and `tfoot` since 220 | // chances are there will be only one `tr` in a `thead` and that would 221 | // remove the border altogether. 222 | > tbody, 223 | > tfoot { 224 | > tr:last-child { 225 | > th, 226 | > td { 227 | border-bottom: 0; 228 | } 229 | } 230 | } 231 | 232 | } 233 | } 234 | } 235 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/dropdowns.less: -------------------------------------------------------------------------------- 1 | // 2 | // Dropdown menus 3 | // -------------------------------------------------- 4 | 5 | 6 | // Dropdown arrow/caret 7 | .caret { 8 | display: inline-block; 9 | width: 0; 10 | height: 0; 11 | margin-left: 2px; 12 | vertical-align: middle; 13 | border-top: @caret-width-base dashed; 14 | border-right: @caret-width-base solid transparent; 15 | border-left: @caret-width-base solid transparent; 16 | } 17 | 18 | // The dropdown wrapper (div) 19 | .dropup, 20 | .dropdown { 21 | position: relative; 22 | } 23 | 24 | // Prevent the focus on the dropdown toggle when closing dropdowns 25 | .dropdown-toggle:focus { 26 | outline: 0; 27 | } 28 | 29 | // The dropdown menu (ul) 30 | .dropdown-menu { 31 | position: absolute; 32 | top: 100%; 33 | left: 0; 34 | z-index: @zindex-dropdown; 35 | display: none; // none by default, but block on "open" of the menu 36 | float: left; 37 | min-width: 160px; 38 | padding: 5px 0; 39 | margin: 2px 0 0; // override default ul 40 | list-style: none; 41 | font-size: @font-size-base; 42 | text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) 43 | background-color: @dropdown-bg; 44 | border: 1px solid @dropdown-fallback-border; // IE8 fallback 45 | border: 1px solid @dropdown-border; 46 | border-radius: @border-radius-base; 47 | .box-shadow(0 6px 12px rgba(0,0,0,.175)); 48 | background-clip: padding-box; 49 | 50 | // Aligns the dropdown menu to right 51 | // 52 | // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]` 53 | &.pull-right { 54 | right: 0; 55 | left: auto; 56 | } 57 | 58 | // Dividers (basically an hr) within the dropdown 59 | .divider { 60 | .nav-divider(@dropdown-divider-bg); 61 | } 62 | 63 | // Links within the dropdown menu 64 | > li > a { 65 | display: block; 66 | padding: 3px 20px; 67 | clear: both; 68 | font-weight: normal; 69 | line-height: @line-height-base; 70 | color: @dropdown-link-color; 71 | white-space: nowrap; // prevent links from randomly breaking onto new lines 72 | } 73 | } 74 | 75 | // Hover/Focus state 76 | .dropdown-menu > li > a { 77 | &:hover, 78 | &:focus { 79 | text-decoration: none; 80 | color: @dropdown-link-hover-color; 81 | background-color: @dropdown-link-hover-bg; 82 | } 83 | } 84 | 85 | // Active state 86 | .dropdown-menu > .active > a { 87 | &, 88 | &:hover, 89 | &:focus { 90 | color: @dropdown-link-active-color; 91 | text-decoration: none; 92 | outline: 0; 93 | background-color: @dropdown-link-active-bg; 94 | } 95 | } 96 | 97 | // Disabled state 98 | // 99 | // Gray out text and ensure the hover/focus state remains gray 100 | 101 | .dropdown-menu > .disabled > a { 102 | &, 103 | &:hover, 104 | &:focus { 105 | color: @dropdown-link-disabled-color; 106 | } 107 | 108 | // Nuke hover/focus effects 109 | &:hover, 110 | &:focus { 111 | text-decoration: none; 112 | background-color: transparent; 113 | background-image: none; // Remove CSS gradient 114 | .reset-filter(); 115 | cursor: @cursor-disabled; 116 | } 117 | } 118 | 119 | // Open state for the dropdown 120 | .open { 121 | // Show the menu 122 | > .dropdown-menu { 123 | display: block; 124 | } 125 | 126 | // Remove the outline when :focus is triggered 127 | > a { 128 | outline: 0; 129 | } 130 | } 131 | 132 | // Menu positioning 133 | // 134 | // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown 135 | // menu with the parent. 136 | .dropdown-menu-right { 137 | left: auto; // Reset the default from `.dropdown-menu` 138 | right: 0; 139 | } 140 | // With v3, we enabled auto-flipping if you have a dropdown within a right 141 | // aligned nav component. To enable the undoing of that, we provide an override 142 | // to restore the default dropdown menu alignment. 143 | // 144 | // This is only for left-aligning a dropdown menu within a `.navbar-right` or 145 | // `.pull-right` nav component. 146 | .dropdown-menu-left { 147 | left: 0; 148 | right: auto; 149 | } 150 | 151 | // Dropdown section headers 152 | .dropdown-header { 153 | display: block; 154 | padding: 3px 20px; 155 | font-size: @font-size-small; 156 | line-height: @line-height-base; 157 | color: @dropdown-header-color; 158 | white-space: nowrap; // as with > li > a 159 | } 160 | 161 | // Backdrop to catch body clicks on mobile, etc. 162 | .dropdown-backdrop { 163 | position: fixed; 164 | left: 0; 165 | right: 0; 166 | bottom: 0; 167 | top: 0; 168 | z-index: (@zindex-dropdown - 10); 169 | } 170 | 171 | // Right aligned dropdowns 172 | .pull-right > .dropdown-menu { 173 | right: 0; 174 | left: auto; 175 | } 176 | 177 | // Allow for dropdowns to go bottom up (aka, dropup-menu) 178 | // 179 | // Just add .dropup after the standard .dropdown class and you're set, bro. 180 | // TODO: abstract this so that the navbar fixed styles are not placed here? 181 | 182 | .dropup, 183 | .navbar-fixed-bottom .dropdown { 184 | // Reverse the caret 185 | .caret { 186 | border-top: 0; 187 | border-bottom: @caret-width-base solid; 188 | content: ""; 189 | } 190 | // Different positioning for bottom up menu 191 | .dropdown-menu { 192 | top: auto; 193 | bottom: 100%; 194 | margin-bottom: 2px; 195 | } 196 | } 197 | 198 | 199 | // Component alignment 200 | // 201 | // Reiterate per navbar.less and the modified component alignment there. 202 | 203 | @media (min-width: @grid-float-breakpoint) { 204 | .navbar-right { 205 | .dropdown-menu { 206 | .dropdown-menu-right(); 207 | } 208 | // Necessary for overrides of the default right aligned menu. 209 | // Will remove come v4 in all likelihood. 210 | .dropdown-menu-left { 211 | .dropdown-menu-left(); 212 | } 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/navs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Navs 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | // -------------------------------------------------- 8 | 9 | .nav { 10 | margin-bottom: 0; 11 | padding-left: 0; // Override default ul/ol 12 | list-style: none; 13 | &:extend(.clearfix all); 14 | 15 | > li { 16 | position: relative; 17 | display: block; 18 | 19 | > a { 20 | position: relative; 21 | display: block; 22 | padding: @nav-link-padding; 23 | &:hover, 24 | &:focus { 25 | text-decoration: none; 26 | background-color: @nav-link-hover-bg; 27 | } 28 | } 29 | 30 | // Disabled state sets text to gray and nukes hover/tab effects 31 | &.disabled > a { 32 | color: @nav-disabled-link-color; 33 | 34 | &:hover, 35 | &:focus { 36 | color: @nav-disabled-link-hover-color; 37 | text-decoration: none; 38 | background-color: transparent; 39 | cursor: @cursor-disabled; 40 | } 41 | } 42 | } 43 | 44 | // Open dropdowns 45 | .open > a { 46 | &, 47 | &:hover, 48 | &:focus { 49 | background-color: @nav-link-hover-bg; 50 | border-color: @link-color; 51 | } 52 | } 53 | 54 | // Nav dividers (deprecated with v3.0.1) 55 | // 56 | // This should have been removed in v3 with the dropping of `.nav-list`, but 57 | // we missed it. We don't currently support this anywhere, but in the interest 58 | // of maintaining backward compatibility in case you use it, it's deprecated. 59 | .nav-divider { 60 | .nav-divider(); 61 | } 62 | 63 | // Prevent IE8 from misplacing imgs 64 | // 65 | // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989 66 | > li > a > img { 67 | max-width: none; 68 | } 69 | } 70 | 71 | 72 | // Tabs 73 | // ------------------------- 74 | 75 | // Give the tabs something to sit on 76 | .nav-tabs { 77 | border-bottom: 1px solid @nav-tabs-border-color; 78 | > li { 79 | float: left; 80 | // Make the list-items overlay the bottom border 81 | margin-bottom: -1px; 82 | 83 | // Actual tabs (as links) 84 | > a { 85 | margin-right: 2px; 86 | line-height: @line-height-base; 87 | border: 1px solid transparent; 88 | border-radius: @border-radius-base @border-radius-base 0 0; 89 | &:hover { 90 | border-color: @nav-tabs-link-hover-border-color @nav-tabs-link-hover-border-color @nav-tabs-border-color; 91 | } 92 | } 93 | 94 | // Active state, and its :hover to override normal :hover 95 | &.active > a { 96 | &, 97 | &:hover, 98 | &:focus { 99 | color: @nav-tabs-active-link-hover-color; 100 | background-color: @nav-tabs-active-link-hover-bg; 101 | border: 1px solid @nav-tabs-active-link-hover-border-color; 102 | border-bottom-color: transparent; 103 | cursor: default; 104 | } 105 | } 106 | } 107 | // pulling this in mainly for less shorthand 108 | &.nav-justified { 109 | .nav-justified(); 110 | .nav-tabs-justified(); 111 | } 112 | } 113 | 114 | 115 | // Pills 116 | // ------------------------- 117 | .nav-pills { 118 | > li { 119 | float: left; 120 | 121 | // Links rendered as pills 122 | > a { 123 | border-radius: @nav-pills-border-radius; 124 | } 125 | + li { 126 | margin-left: 2px; 127 | } 128 | 129 | // Active state 130 | &.active > a { 131 | &, 132 | &:hover, 133 | &:focus { 134 | color: @nav-pills-active-link-hover-color; 135 | background-color: @nav-pills-active-link-hover-bg; 136 | } 137 | } 138 | } 139 | } 140 | 141 | 142 | // Stacked pills 143 | .nav-stacked { 144 | > li { 145 | float: none; 146 | + li { 147 | margin-top: 2px; 148 | margin-left: 0; // no need for this gap between nav items 149 | } 150 | } 151 | } 152 | 153 | 154 | // Nav variations 155 | // -------------------------------------------------- 156 | 157 | // Justified nav links 158 | // ------------------------- 159 | 160 | .nav-justified { 161 | width: 100%; 162 | 163 | > li { 164 | float: none; 165 | > a { 166 | text-align: center; 167 | margin-bottom: 5px; 168 | } 169 | } 170 | 171 | > .dropdown .dropdown-menu { 172 | top: auto; 173 | left: auto; 174 | } 175 | 176 | @media (min-width: @screen-sm-min) { 177 | > li { 178 | display: table-cell; 179 | width: 1%; 180 | > a { 181 | margin-bottom: 0; 182 | } 183 | } 184 | } 185 | } 186 | 187 | // Move borders to anchors instead of bottom of list 188 | // 189 | // Mixin for adding on top the shared `.nav-justified` styles for our tabs 190 | .nav-tabs-justified { 191 | border-bottom: 0; 192 | 193 | > li > a { 194 | // Override margin from .nav-tabs 195 | margin-right: 0; 196 | border-radius: @border-radius-base; 197 | } 198 | 199 | > .active > a, 200 | > .active > a:hover, 201 | > .active > a:focus { 202 | border: 1px solid @nav-tabs-justified-link-border-color; 203 | } 204 | 205 | @media (min-width: @screen-sm-min) { 206 | > li > a { 207 | border-bottom: 1px solid @nav-tabs-justified-link-border-color; 208 | border-radius: @border-radius-base @border-radius-base 0 0; 209 | } 210 | > .active > a, 211 | > .active > a:hover, 212 | > .active > a:focus { 213 | border-bottom-color: @nav-tabs-justified-active-link-border-color; 214 | } 215 | } 216 | } 217 | 218 | 219 | // Tabbable tabs 220 | // ------------------------- 221 | 222 | // Hide tabbable panes to start, show them when `.active` 223 | .tab-content { 224 | > .tab-pane { 225 | display: none; 226 | } 227 | > .active { 228 | display: block; 229 | } 230 | } 231 | 232 | 233 | // Dropdowns 234 | // ------------------------- 235 | 236 | // Specific dropdowns 237 | .nav-tabs .dropdown-menu { 238 | // make dropdown border overlap tab border 239 | margin-top: -1px; 240 | // Remove the top rounded corners here since there is a hard edge above the menu 241 | .border-top-radius(0); 242 | } 243 | -------------------------------------------------------------------------------- /js/vendor/bootstrap-select.min.js: -------------------------------------------------------------------------------- 1 | /*! ======================================================================== 2 | * Bootstrap Select: bootstrap-select.js v2.4.6 3 | * ======================================================================== 4 | * Copyright 2015, Salvatore Di Salvo (disalvo-infographiste[dot]be) 5 | * ======================================================================== */ 6 | +function(c){var d=function(f,e){this.$element=c(f);this.options=c.extend({},this.defaults(),e);this.structure=c.extend({},this.parts());this.init()};d.VERSION="2.4.6";d.DEFAULTS={select:this,autoclose:true,cancelbtn:false,clearbtn:false,livefilter:false,filter:null,fmethod:"recursive",open:"open",filled:"filled",display:".dropdown-toggle",list:".dropdown-menu",placeholder:".placeholder",items:".items",current:".current",clear:".clear",selected:".selected",cancel:".cancel"};d.prototype.parts=function(){return{$select:this.$element,$section:this.$element.attr("data-section")?this.$element.attr("data-section"):this.$element.attr("id"),$input:null,$input_id:null,$display:c(this.options.display,this.$element),$list:c(this.options.list,this.$element),$placeholder:c(this.options.placeholder,this.$element),$items:c(this.options.items,this.$element),$current:c(this.options.current,this.$element),$clear:c(this.options.clear,this.$element),$selected:this.get(),$cancel:c(this.options.cancel,this.$element)}};d.prototype.defaults=function(){return{select:d.DEFAULTS.select,autoclose:this.$element.attr("data-autoclose")||d.DEFAULTS.autoclose,cancelbtn:this.$element.attr("data-cancel")||d.DEFAULTS.cancelbtn,clearbtn:this.$element.attr("data-clear")||d.DEFAULTS.clearbtn,livefilter:this.$element.attr("data-live")||d.DEFAULTS.livefilter,filter:this.$element.attr("data-filter")||d.DEFAULTS.filter,fmethod:this.$element.attr("data-fmethod")||d.DEFAULTS.fmethod,open:this.$element.attr("data-open")||d.DEFAULTS.open,filled:this.$element.attr("data-filled")||d.DEFAULTS.filled,display:d.DEFAULTS.display,list:d.DEFAULTS.list,placeholder:d.DEFAULTS.placeholder,items:d.DEFAULTS.items,current:d.DEFAULTS.current,clear:d.DEFAULTS.clear,selected:d.DEFAULTS.selected,cancel:d.DEFAULTS.cancel}};d.prototype.init=function(){var e=this;this.structure.$input=c('[name="'+this.structure.$section+'"]');this.structure.$input_id=c('[name="'+this.structure.$section+'_id"]');if(this.structure.$select.hasClass("hide")){e.structure.$select.removeClass("hide")}if(this.structure.$input.is("select")){e.structure.$input.addClass("hide")}if(this.structure.$input_id.is("select")){e.structure.$input_id.addClass("hide")}if(this.structure.$selected.length){e.select(c(this.structure.$selected))}this.structure.$display.off().on("click",function(i){i.preventDefault();e.toggle()});this.structure.$items.off().on("click",function(){e.select(c(this))});if(this.options.cancelbtn){this.structure.$cancel.off().on("click",function(i){i.preventDefault();e.toggle("close")})}if(this.options.clearbtn){this.structure.$clear.off().on("click",function(i){e.clear(i)})}if(this.options.filter!=null){var g=this.options.filter.split(" ");if(c.isArray(g)&&g.length>0){for(var f=0;f0){for(var e=0;e0){for(var f=0;f'+f.html()+'').addClass(this.options.filled)}if(h=="clear"){this.structure.$clear.hide();this.structure.$input.val("").trigger("change");this.structure.$input_id.val("").trigger("change");this.structure.$display.html(''+this.structure.$placeholder.html()+'').removeClass(this.options.filled)}c('input[name="'+this.structure.$section+'_id"]').trigger(g)};function b(){var e=arguments;return this.each(function(){var h=c(this),g=h.data("bs.dropdownselect"),i=e[0];if(typeof(i)=="object"||!i){var f=typeof i=="object"&&i;if(!g){h.data("bs.dropdownselect",(g=new d(this,f)))}}else{if(g[i]){i=g[i];e=Array.prototype.slice.call(e,1);if(e!=null||e!=undefined||e!=[]){i.apply(g,e)}}else{c.error("Method "+i+" does not exist on jQuery.DropdownSelect");return this}}})}var a=c.fn.bootstrapSelect;c.fn.bootstrapSelect=b;c.fn.bootstrapSelect.Constructor=d;c.fn.toggle.noConflict=function(){c.fn.bootstrapSelect=a;return this};c(function(){c(".selectpicker").bootstrapSelect()})}(jQuery); -------------------------------------------------------------------------------- /css/bootstrap/less/core/carousel.less: -------------------------------------------------------------------------------- 1 | // 2 | // Carousel 3 | // -------------------------------------------------- 4 | 5 | 6 | // Wrapper for the slide container and indicators 7 | .carousel { 8 | position: relative; 9 | } 10 | 11 | .carousel-inner { 12 | position: relative; 13 | overflow: hidden; 14 | width: 100%; 15 | 16 | > .item { 17 | display: none; 18 | position: relative; 19 | .transition(.6s ease-in-out left); 20 | 21 | // Account for jankitude on images 22 | > img, 23 | > a > img { 24 | &:extend(.img-responsive); 25 | line-height: 1; 26 | } 27 | 28 | // WebKit CSS3 transforms for supported devices 29 | @media all and (transform-3d), (-webkit-transform-3d) { 30 | .transition-transform(~'0.6s ease-in-out'); 31 | .backface-visibility(~'hidden'); 32 | .perspective(1000); 33 | 34 | &.next, 35 | &.active.right { 36 | .translate3d(100%, 0, 0); 37 | left: 0; 38 | } 39 | &.prev, 40 | &.active.left { 41 | .translate3d(-100%, 0, 0); 42 | left: 0; 43 | } 44 | &.next.left, 45 | &.prev.right, 46 | &.active { 47 | .translate3d(0, 0, 0); 48 | left: 0; 49 | } 50 | } 51 | } 52 | 53 | > .active, 54 | > .next, 55 | > .prev { 56 | display: block; 57 | } 58 | 59 | > .active { 60 | left: 0; 61 | } 62 | 63 | > .next, 64 | > .prev { 65 | position: absolute; 66 | top: 0; 67 | width: 100%; 68 | } 69 | 70 | > .next { 71 | left: 100%; 72 | } 73 | > .prev { 74 | left: -100%; 75 | } 76 | > .next.left, 77 | > .prev.right { 78 | left: 0; 79 | } 80 | 81 | > .active.left { 82 | left: -100%; 83 | } 84 | > .active.right { 85 | left: 100%; 86 | } 87 | 88 | } 89 | 90 | // Left/right controls for nav 91 | // --------------------------- 92 | 93 | .carousel-control { 94 | position: absolute; 95 | top: 0; 96 | left: 0; 97 | bottom: 0; 98 | width: @carousel-control-width; 99 | .opacity(@carousel-control-opacity); 100 | font-size: @carousel-control-font-size; 101 | color: @carousel-control-color; 102 | text-align: center; 103 | text-shadow: @carousel-text-shadow; 104 | // We can't have this transition here because WebKit cancels the carousel 105 | // animation if you trip this while in the middle of another animation. 106 | 107 | // Set gradients for backgrounds 108 | &.left { 109 | #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001)); 110 | } 111 | &.right { 112 | left: auto; 113 | right: 0; 114 | #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5)); 115 | } 116 | 117 | // Hover/focus state 118 | &:hover, 119 | &:focus { 120 | outline: 0; 121 | color: @carousel-control-color; 122 | text-decoration: none; 123 | .opacity(.9); 124 | } 125 | 126 | // Toggles 127 | .icon-prev, 128 | .icon-next, 129 | .glyphicon-chevron-left, 130 | .glyphicon-chevron-right { 131 | position: absolute; 132 | top: 50%; 133 | z-index: 5; 134 | display: inline-block; 135 | } 136 | .icon-prev, 137 | .glyphicon-chevron-left { 138 | left: 50%; 139 | margin-left: -10px; 140 | } 141 | .icon-next, 142 | .glyphicon-chevron-right { 143 | right: 50%; 144 | margin-right: -10px; 145 | } 146 | .icon-prev, 147 | .icon-next { 148 | width: 20px; 149 | height: 20px; 150 | margin-top: -10px; 151 | line-height: 1; 152 | font-family: serif; 153 | } 154 | 155 | 156 | .icon-prev { 157 | &:before { 158 | content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039) 159 | } 160 | } 161 | .icon-next { 162 | &:before { 163 | content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A) 164 | } 165 | } 166 | } 167 | 168 | // Optional indicator pips 169 | // 170 | // Add an unordered list with the following class and add a list item for each 171 | // slide your carousel holds. 172 | 173 | .carousel-indicators { 174 | position: absolute; 175 | bottom: 10px; 176 | left: 50%; 177 | z-index: 15; 178 | width: 60%; 179 | margin-left: -30%; 180 | padding-left: 0; 181 | list-style: none; 182 | text-align: center; 183 | 184 | li { 185 | display: inline-block; 186 | width: 10px; 187 | height: 10px; 188 | margin: 1px; 189 | text-indent: -999px; 190 | border: 1px solid @carousel-indicator-border-color; 191 | border-radius: 10px; 192 | cursor: pointer; 193 | 194 | // IE8-9 hack for event handling 195 | // 196 | // Internet Explorer 8-9 does not support clicks on elements without a set 197 | // `background-color`. We cannot use `filter` since that's not viewed as a 198 | // background color by the browser. Thus, a hack is needed. 199 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer 200 | // 201 | // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we 202 | // set alpha transparency for the best results possible. 203 | background-color: #000 \9; // IE8 204 | background-color: rgba(0,0,0,0); // IE9 205 | } 206 | .active { 207 | margin: 0; 208 | width: 12px; 209 | height: 12px; 210 | background-color: @carousel-indicator-active-bg; 211 | } 212 | } 213 | 214 | // Optional captions 215 | // ----------------------------- 216 | // Hidden by default for smaller viewports 217 | .carousel-caption { 218 | position: absolute; 219 | left: 15%; 220 | right: 15%; 221 | bottom: 20px; 222 | z-index: 10; 223 | padding-top: 20px; 224 | padding-bottom: 20px; 225 | color: @carousel-caption-color; 226 | text-align: center; 227 | text-shadow: @carousel-text-shadow; 228 | & .btn { 229 | text-shadow: none; // No shadow for button elements in carousel-caption 230 | } 231 | } 232 | 233 | 234 | // Scale up controls for tablets and up 235 | @media screen and (min-width: @screen-sm-min) { 236 | 237 | // Scale up the controls a smidge 238 | .carousel-control { 239 | .glyphicon-chevron-left, 240 | .glyphicon-chevron-right, 241 | .icon-prev, 242 | .icon-next { 243 | width: 30px; 244 | height: 30px; 245 | margin-top: -15px; 246 | font-size: 30px; 247 | } 248 | .glyphicon-chevron-left, 249 | .icon-prev { 250 | margin-left: -15px; 251 | } 252 | .glyphicon-chevron-right, 253 | .icon-next { 254 | margin-right: -15px; 255 | } 256 | } 257 | 258 | // Show and left align the captions 259 | .carousel-caption { 260 | left: 20%; 261 | right: 20%; 262 | padding-bottom: 30px; 263 | } 264 | 265 | // Move up the indicators 266 | .carousel-indicators { 267 | bottom: 20px; 268 | } 269 | } 270 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/button-groups.less: -------------------------------------------------------------------------------- 1 | // 2 | // Button groups 3 | // -------------------------------------------------- 4 | 5 | // Make the div behave like a button 6 | .btn-group, 7 | .btn-group-vertical { 8 | position: relative; 9 | display: inline-block; 10 | vertical-align: middle; // match .btn alignment given font-size hack above 11 | > .btn { 12 | position: relative; 13 | float: left; 14 | // Bring the "active" button to the front 15 | &:hover, 16 | &:focus, 17 | &:active, 18 | &.active { 19 | z-index: 2; 20 | } 21 | } 22 | } 23 | 24 | // Prevent double borders when buttons are next to each other 25 | .btn-group { 26 | .btn + .btn, 27 | .btn + .btn-group, 28 | .btn-group + .btn, 29 | .btn-group + .btn-group { 30 | margin-left: -1px; 31 | } 32 | } 33 | 34 | // Optional: Group multiple button groups together for a toolbar 35 | .btn-toolbar { 36 | margin-left: -5px; // Offset the first child's margin 37 | &:extend(.clearfix all); 38 | 39 | .btn-group, 40 | .input-group { 41 | float: left; 42 | } 43 | > .btn, 44 | > .btn-group, 45 | > .input-group { 46 | margin-left: 5px; 47 | } 48 | } 49 | 50 | .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { 51 | border-radius: 0; 52 | } 53 | 54 | // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match 55 | .btn-group > .btn:first-child { 56 | margin-left: 0; 57 | &:not(:last-child):not(.dropdown-toggle) { 58 | .border-right-radius(0); 59 | } 60 | } 61 | // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it 62 | .btn-group > .btn:last-child:not(:first-child), 63 | .btn-group > .dropdown-toggle:not(:first-child) { 64 | .border-left-radius(0); 65 | } 66 | 67 | // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group) 68 | .btn-group > .btn-group { 69 | float: left; 70 | } 71 | .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { 72 | border-radius: 0; 73 | } 74 | .btn-group > .btn-group:first-child:not(:last-child) { 75 | > .btn:last-child, 76 | > .dropdown-toggle { 77 | .border-right-radius(0); 78 | } 79 | } 80 | .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { 81 | .border-left-radius(0); 82 | } 83 | 84 | // On active and open, don't show outline 85 | .btn-group .dropdown-toggle:active, 86 | .btn-group.open .dropdown-toggle { 87 | outline: 0; 88 | } 89 | 90 | 91 | // Sizing 92 | // 93 | // Remix the default button sizing classes into new ones for easier manipulation. 94 | 95 | .btn-group-xs > .btn { &:extend(.btn-xs); } 96 | .btn-group-sm > .btn { &:extend(.btn-sm); } 97 | .btn-group-lg > .btn { &:extend(.btn-lg); } 98 | 99 | 100 | // Split button dropdowns 101 | // ---------------------- 102 | 103 | // Give the line between buttons some depth 104 | .btn-group > .btn + .dropdown-toggle { 105 | padding-left: 8px; 106 | padding-right: 8px; 107 | } 108 | .btn-group > .btn-lg + .dropdown-toggle { 109 | padding-left: 12px; 110 | padding-right: 12px; 111 | } 112 | 113 | // The clickable button for toggling the menu 114 | // Remove the gradient and set the same inset shadow as the :active state 115 | .btn-group.open .dropdown-toggle { 116 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); 117 | 118 | // Show no shadow for `.btn-link` since it has no other button styles. 119 | &.btn-link { 120 | .box-shadow(none); 121 | } 122 | } 123 | 124 | 125 | // Reposition the caret 126 | .btn .caret { 127 | margin-left: 0; 128 | } 129 | // Carets in other button sizes 130 | .btn-lg .caret { 131 | border-width: @caret-width-large @caret-width-large 0; 132 | border-bottom-width: 0; 133 | } 134 | // Upside down carets for .dropup 135 | .dropup .btn-lg .caret { 136 | border-width: 0 @caret-width-large @caret-width-large; 137 | } 138 | 139 | 140 | // Vertical button groups 141 | // ---------------------- 142 | 143 | .btn-group-vertical { 144 | > .btn, 145 | > .btn-group, 146 | > .btn-group > .btn { 147 | display: block; 148 | float: none; 149 | width: 100%; 150 | max-width: 100%; 151 | } 152 | 153 | // Clear floats so dropdown menus can be properly placed 154 | > .btn-group { 155 | &:extend(.clearfix all); 156 | > .btn { 157 | float: none; 158 | } 159 | } 160 | 161 | > .btn + .btn, 162 | > .btn + .btn-group, 163 | > .btn-group + .btn, 164 | > .btn-group + .btn-group { 165 | margin-top: -1px; 166 | margin-left: 0; 167 | } 168 | } 169 | 170 | .btn-group-vertical > .btn { 171 | &:not(:first-child):not(:last-child) { 172 | border-radius: 0; 173 | } 174 | &:first-child:not(:last-child) { 175 | border-top-right-radius: @border-radius-base; 176 | .border-bottom-radius(0); 177 | } 178 | &:last-child:not(:first-child) { 179 | border-bottom-left-radius: @border-radius-base; 180 | .border-top-radius(0); 181 | } 182 | } 183 | .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { 184 | border-radius: 0; 185 | } 186 | .btn-group-vertical > .btn-group:first-child:not(:last-child) { 187 | > .btn:last-child, 188 | > .dropdown-toggle { 189 | .border-bottom-radius(0); 190 | } 191 | } 192 | .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { 193 | .border-top-radius(0); 194 | } 195 | 196 | 197 | // Justified button groups 198 | // ---------------------- 199 | 200 | .btn-group-justified { 201 | display: table; 202 | width: 100%; 203 | table-layout: fixed; 204 | border-collapse: separate; 205 | > .btn, 206 | > .btn-group { 207 | float: none; 208 | display: table-cell; 209 | width: 1%; 210 | } 211 | > .btn-group .btn { 212 | width: 100%; 213 | } 214 | 215 | > .btn-group .dropdown-menu { 216 | left: auto; 217 | } 218 | } 219 | 220 | 221 | // Checkbox and radio options 222 | // 223 | // In order to support the browser's form validation feedback, powered by the 224 | // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use 225 | // `display: none;` or `visibility: hidden;` as that also hides the popover. 226 | // Simply visually hiding the inputs via `opacity` would leave them clickable in 227 | // certain cases which is prevented by using `clip` and `pointer-events`. 228 | // This way, we ensure a DOM element is visible to position the popover from. 229 | // 230 | // See https://github.com/twbs/bootstrap/pull/12794 and 231 | // https://github.com/twbs/bootstrap/pull/14559 for more information. 232 | 233 | [data-toggle="buttons"] { 234 | > .btn, 235 | > .btn-group > .btn { 236 | input[type="radio"], 237 | input[type="checkbox"] { 238 | position: absolute; 239 | clip: rect(0,0,0,0); 240 | pointer-events: none; 241 | } 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/panels.less: -------------------------------------------------------------------------------- 1 | // 2 | // Panels 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .panel { 8 | margin-bottom: @line-height-computed; 9 | background-color: @panel-bg; 10 | border: 1px solid transparent; 11 | border-radius: @panel-border-radius; 12 | .box-shadow(0 1px 1px rgba(0,0,0,.05)); 13 | } 14 | 15 | // Panel contents 16 | .panel-body { 17 | padding: @panel-body-padding; 18 | &:extend(.clearfix all); 19 | } 20 | 21 | // Optional heading 22 | .panel-heading { 23 | padding: @panel-heading-padding; 24 | border-bottom: 1px solid transparent; 25 | .border-top-radius((@panel-border-radius - 1)); 26 | 27 | > .dropdown .dropdown-toggle { 28 | color: inherit; 29 | } 30 | } 31 | 32 | // Within heading, strip any `h*` tag of its default margins for spacing. 33 | .panel-title { 34 | margin-top: 0; 35 | margin-bottom: 0; 36 | font-size: ceil((@font-size-base * 1.125)); 37 | color: inherit; 38 | 39 | > a, 40 | > small, 41 | > .small, 42 | > small > a, 43 | > .small > a { 44 | color: inherit; 45 | } 46 | } 47 | 48 | // Optional footer (stays gray in every modifier class) 49 | .panel-footer { 50 | padding: @panel-footer-padding; 51 | background-color: @panel-footer-bg; 52 | border-top: 1px solid @panel-inner-border; 53 | .border-bottom-radius((@panel-border-radius - 1)); 54 | } 55 | 56 | 57 | // List groups in panels 58 | // 59 | // By default, space out list group content from panel headings to account for 60 | // any kind of custom content between the two. 61 | 62 | .panel { 63 | > .list-group, 64 | > .panel-collapse > .list-group { 65 | margin-bottom: 0; 66 | 67 | .list-group-item { 68 | border-width: 1px 0; 69 | border-radius: 0; 70 | } 71 | 72 | // Add border top radius for first one 73 | &:first-child { 74 | .list-group-item:first-child { 75 | border-top: 0; 76 | .border-top-radius((@panel-border-radius - 1)); 77 | } 78 | } 79 | // Add border bottom radius for last one 80 | &:last-child { 81 | .list-group-item:last-child { 82 | border-bottom: 0; 83 | .border-bottom-radius((@panel-border-radius - 1)); 84 | } 85 | } 86 | } 87 | } 88 | // Collapse space between when there's no additional content. 89 | .panel-heading + .list-group { 90 | .list-group-item:first-child { 91 | border-top-width: 0; 92 | } 93 | } 94 | .list-group + .panel-footer { 95 | border-top-width: 0; 96 | } 97 | 98 | // Tables in panels 99 | // 100 | // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and 101 | // watch it go full width. 102 | 103 | .panel { 104 | > .table, 105 | > .table-responsive > .table, 106 | > .panel-collapse > .table { 107 | margin-bottom: 0; 108 | 109 | caption { 110 | padding-left: @panel-body-padding; 111 | padding-right: @panel-body-padding; 112 | } 113 | } 114 | // Add border top radius for first one 115 | > .table:first-child, 116 | > .table-responsive:first-child > .table:first-child { 117 | .border-top-radius((@panel-border-radius - 1)); 118 | 119 | > thead:first-child, 120 | > tbody:first-child { 121 | > tr:first-child { 122 | border-top-left-radius: (@panel-border-radius - 1); 123 | border-top-right-radius: (@panel-border-radius - 1); 124 | 125 | td:first-child, 126 | th:first-child { 127 | border-top-left-radius: (@panel-border-radius - 1); 128 | } 129 | td:last-child, 130 | th:last-child { 131 | border-top-right-radius: (@panel-border-radius - 1); 132 | } 133 | } 134 | } 135 | } 136 | // Add border bottom radius for last one 137 | > .table:last-child, 138 | > .table-responsive:last-child > .table:last-child { 139 | .border-bottom-radius((@panel-border-radius - 1)); 140 | 141 | > tbody:last-child, 142 | > tfoot:last-child { 143 | > tr:last-child { 144 | border-bottom-left-radius: (@panel-border-radius - 1); 145 | border-bottom-right-radius: (@panel-border-radius - 1); 146 | 147 | td:first-child, 148 | th:first-child { 149 | border-bottom-left-radius: (@panel-border-radius - 1); 150 | } 151 | td:last-child, 152 | th:last-child { 153 | border-bottom-right-radius: (@panel-border-radius - 1); 154 | } 155 | } 156 | } 157 | } 158 | > .panel-body + .table, 159 | > .panel-body + .table-responsive, 160 | > .table + .panel-body, 161 | > .table-responsive + .panel-body { 162 | border-top: 1px solid @table-border-color; 163 | } 164 | > .table > tbody:first-child > tr:first-child th, 165 | > .table > tbody:first-child > tr:first-child td { 166 | border-top: 0; 167 | } 168 | > .table-bordered, 169 | > .table-responsive > .table-bordered { 170 | border: 0; 171 | > thead, 172 | > tbody, 173 | > tfoot { 174 | > tr { 175 | > th:first-child, 176 | > td:first-child { 177 | border-left: 0; 178 | } 179 | > th:last-child, 180 | > td:last-child { 181 | border-right: 0; 182 | } 183 | } 184 | } 185 | > thead, 186 | > tbody { 187 | > tr:first-child { 188 | > td, 189 | > th { 190 | border-bottom: 0; 191 | } 192 | } 193 | } 194 | > tbody, 195 | > tfoot { 196 | > tr:last-child { 197 | > td, 198 | > th { 199 | border-bottom: 0; 200 | } 201 | } 202 | } 203 | } 204 | > .table-responsive { 205 | border: 0; 206 | margin-bottom: 0; 207 | } 208 | } 209 | 210 | 211 | // Collapsable panels (aka, accordion) 212 | // 213 | // Wrap a series of panels in `.panel-group` to turn them into an accordion with 214 | // the help of our collapse JavaScript plugin. 215 | 216 | .panel-group { 217 | margin-bottom: @line-height-computed; 218 | 219 | // Tighten up margin so it's only between panels 220 | .panel { 221 | margin-bottom: 0; 222 | border-radius: @panel-border-radius; 223 | 224 | + .panel { 225 | margin-top: 5px; 226 | } 227 | } 228 | 229 | .panel-heading { 230 | border-bottom: 0; 231 | 232 | + .panel-collapse > .panel-body, 233 | + .panel-collapse > .list-group { 234 | border-top: 1px solid @panel-inner-border; 235 | } 236 | } 237 | 238 | .panel-footer { 239 | border-top: 0; 240 | + .panel-collapse .panel-body { 241 | border-bottom: 1px solid @panel-inner-border; 242 | } 243 | } 244 | } 245 | 246 | 247 | // Contextual variations 248 | .panel-default { 249 | .panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border); 250 | } 251 | .panel-primary { 252 | .panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border); 253 | } 254 | .panel-success { 255 | .panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border); 256 | } 257 | .panel-info { 258 | .panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border); 259 | } 260 | .panel-warning { 261 | .panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border); 262 | } 263 | .panel-danger { 264 | .panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border); 265 | } 266 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/type.less: -------------------------------------------------------------------------------- 1 | // 2 | // Typography 3 | // -------------------------------------------------- 4 | 5 | 6 | // Headings 7 | // ------------------------- 8 | 9 | h1, h2, h3, h4, h5, h6, 10 | .h1, .h2, .h3, .h4, .h5, .h6 { 11 | font-family: @headings-font-family; 12 | font-weight: @headings-font-weight; 13 | line-height: @headings-line-height; 14 | color: @headings-color; 15 | 16 | small, 17 | .small { 18 | font-weight: normal; 19 | line-height: 1; 20 | color: @headings-small-color; 21 | } 22 | } 23 | 24 | h1, .h1, 25 | h2, .h2, 26 | h3, .h3 { 27 | margin-top: @line-height-computed; 28 | margin-bottom: (@line-height-computed / 2); 29 | 30 | small, 31 | .small { 32 | font-size: 65%; 33 | } 34 | } 35 | h4, .h4, 36 | h5, .h5, 37 | h6, .h6 { 38 | margin-top: (@line-height-computed / 2); 39 | margin-bottom: (@line-height-computed / 2); 40 | 41 | small, 42 | .small { 43 | font-size: 75%; 44 | } 45 | } 46 | 47 | h1, .h1 { font-size: @font-size-h1; } 48 | h2, .h2 { font-size: @font-size-h2; } 49 | h3, .h3 { font-size: @font-size-h3; } 50 | h4, .h4 { font-size: @font-size-h4; } 51 | h5, .h5 { font-size: @font-size-h5; } 52 | h6, .h6 { font-size: @font-size-h6; } 53 | 54 | 55 | // Body text 56 | // ------------------------- 57 | 58 | p { 59 | margin: 0 0 (@line-height-computed / 2); 60 | } 61 | 62 | .lead { 63 | margin-bottom: @line-height-computed; 64 | font-size: floor((@font-size-base * 1.15)); 65 | font-weight: 300; 66 | line-height: 1.4; 67 | 68 | @media (min-width: @screen-sm-min) { 69 | font-size: (@font-size-base * 1.5); 70 | } 71 | } 72 | 73 | 74 | // Emphasis & misc 75 | // ------------------------- 76 | 77 | // Ex: (12px small font / 14px base font) * 100% = about 85% 78 | small, 79 | .small { 80 | font-size: floor((100% * @font-size-small / @font-size-base)); 81 | } 82 | 83 | mark, 84 | .mark { 85 | background-color: @state-warning-bg; 86 | padding: .2em; 87 | } 88 | 89 | // Alignment 90 | .text-left { text-align: left; } 91 | .text-right { text-align: right; } 92 | .text-center { text-align: center; } 93 | .text-justify { text-align: justify; } 94 | .text-nowrap { white-space: nowrap; } 95 | 96 | // Transformation 97 | .text-lowercase { text-transform: lowercase; } 98 | .text-uppercase { text-transform: uppercase; } 99 | .text-capitalize { text-transform: capitalize; } 100 | 101 | // Contextual colors 102 | .text-muted { 103 | color: @text-muted; 104 | } 105 | .text-primary { 106 | .text-emphasis-variant(@brand-primary); 107 | } 108 | .text-success { 109 | .text-emphasis-variant(@state-success-text); 110 | } 111 | .text-info { 112 | .text-emphasis-variant(@state-info-text); 113 | } 114 | .text-warning { 115 | .text-emphasis-variant(@state-warning-text); 116 | } 117 | .text-danger { 118 | .text-emphasis-variant(@state-danger-text); 119 | } 120 | 121 | // Contextual backgrounds 122 | // For now we'll leave these alongside the text classes until v4 when we can 123 | // safely shift things around (per SemVer rules). 124 | .bg-primary { 125 | // Given the contrast here, this is the only class to have its color inverted 126 | // automatically. 127 | color: #fff; 128 | .bg-variant(@brand-primary); 129 | } 130 | .bg-success { 131 | .bg-variant(@state-success-bg); 132 | } 133 | .bg-info { 134 | .bg-variant(@state-info-bg); 135 | } 136 | .bg-warning { 137 | .bg-variant(@state-warning-bg); 138 | } 139 | .bg-danger { 140 | .bg-variant(@state-danger-bg); 141 | } 142 | 143 | 144 | // Page header 145 | // ------------------------- 146 | 147 | .page-header { 148 | padding-bottom: ((@line-height-computed / 2) - 1); 149 | margin: (@line-height-computed * 2) 0 @line-height-computed; 150 | border-bottom: 1px solid @page-header-border-color; 151 | } 152 | 153 | 154 | // Lists 155 | // ------------------------- 156 | 157 | // Unordered and Ordered lists 158 | ul, 159 | ol { 160 | margin-top: 0; 161 | margin-bottom: (@line-height-computed / 2); 162 | ul, 163 | ol { 164 | margin-bottom: 0; 165 | } 166 | } 167 | 168 | // List options 169 | 170 | // Unstyled keeps list items block level, just removes default browser padding and list-style 171 | .list-unstyled { 172 | padding-left: 0; 173 | list-style: none; 174 | } 175 | 176 | // Inline turns list items into inline-block 177 | .list-inline { 178 | .list-unstyled(); 179 | margin-left: -5px; 180 | 181 | > li { 182 | display: inline-block; 183 | padding-left: 5px; 184 | padding-right: 5px; 185 | } 186 | } 187 | 188 | // Description Lists 189 | dl { 190 | margin-top: 0; // Remove browser default 191 | margin-bottom: @line-height-computed; 192 | } 193 | dt, 194 | dd { 195 | line-height: @line-height-base; 196 | } 197 | dt { 198 | font-weight: bold; 199 | } 200 | dd { 201 | margin-left: 0; // Undo browser default 202 | } 203 | 204 | // Horizontal description lists 205 | // 206 | // Defaults to being stacked without any of the below styles applied, until the 207 | // grid breakpoint is reached (default of ~768px). 208 | 209 | .dl-horizontal { 210 | dd { 211 | &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present 212 | } 213 | 214 | @media (min-width: @grid-float-breakpoint) { 215 | dt { 216 | float: left; 217 | width: (@dl-horizontal-offset - 20); 218 | clear: left; 219 | text-align: right; 220 | .text-overflow(); 221 | } 222 | dd { 223 | margin-left: @dl-horizontal-offset; 224 | } 225 | } 226 | } 227 | 228 | 229 | // Misc 230 | // ------------------------- 231 | 232 | // Abbreviations and acronyms 233 | abbr[title], 234 | // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257 235 | abbr[data-original-title] { 236 | cursor: help; 237 | border-bottom: 1px dotted @abbr-border-color; 238 | } 239 | .initialism { 240 | font-size: 90%; 241 | .text-uppercase(); 242 | } 243 | 244 | // Blockquotes 245 | blockquote { 246 | padding: (@line-height-computed / 2) @line-height-computed; 247 | margin: 0 0 @line-height-computed; 248 | font-size: @blockquote-font-size; 249 | border-left: 5px solid @blockquote-border-color; 250 | 251 | p, 252 | ul, 253 | ol { 254 | &:last-child { 255 | margin-bottom: 0; 256 | } 257 | } 258 | 259 | // Note: Deprecated small and .small as of v3.1.0 260 | // Context: https://github.com/twbs/bootstrap/issues/11660 261 | footer, 262 | small, 263 | .small { 264 | display: block; 265 | font-size: 80%; // back to default font-size 266 | line-height: @line-height-base; 267 | color: @blockquote-small-color; 268 | 269 | &:before { 270 | content: '\2014 \00A0'; // em dash, nbsp 271 | } 272 | } 273 | } 274 | 275 | // Opposite alignment of blockquote 276 | // 277 | // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0. 278 | .blockquote-reverse, 279 | blockquote.pull-right { 280 | padding-right: 15px; 281 | padding-left: 0; 282 | border-right: 5px solid @blockquote-border-color; 283 | border-left: 0; 284 | text-align: right; 285 | 286 | // Account for citation 287 | footer, 288 | small, 289 | .small { 290 | &:before { content: ''; } 291 | &:after { 292 | content: '\00A0 \2014'; // nbsp, em dash 293 | } 294 | } 295 | } 296 | 297 | // Addresses 298 | address { 299 | margin-bottom: @line-height-computed; 300 | font-style: normal; 301 | line-height: @line-height-base; 302 | } 303 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/mixins/vendor-prefixes.less: -------------------------------------------------------------------------------- 1 | // Vendor Prefixes 2 | // 3 | // All vendor mixins are deprecated as of v3.2.0 due to the introduction of 4 | // Autoprefixer in our Gruntfile. They will be removed in v4. 5 | 6 | // - Animations 7 | // - Backface visibility 8 | // - Box shadow 9 | // - Box sizing 10 | // - Content columns 11 | // - Hyphens 12 | // - Placeholder text 13 | // - Transformations 14 | // - Transitions 15 | // - User Select 16 | 17 | 18 | // Animations 19 | .animation(@animation) { 20 | -webkit-animation: @animation; 21 | -o-animation: @animation; 22 | animation: @animation; 23 | } 24 | .animation-name(@name) { 25 | -webkit-animation-name: @name; 26 | animation-name: @name; 27 | } 28 | .animation-duration(@duration) { 29 | -webkit-animation-duration: @duration; 30 | animation-duration: @duration; 31 | } 32 | .animation-timing-function(@timing-function) { 33 | -webkit-animation-timing-function: @timing-function; 34 | animation-timing-function: @timing-function; 35 | } 36 | .animation-delay(@delay) { 37 | -webkit-animation-delay: @delay; 38 | animation-delay: @delay; 39 | } 40 | .animation-iteration-count(@iteration-count) { 41 | -webkit-animation-iteration-count: @iteration-count; 42 | animation-iteration-count: @iteration-count; 43 | } 44 | .animation-direction(@direction) { 45 | -webkit-animation-direction: @direction; 46 | animation-direction: @direction; 47 | } 48 | .animation-fill-mode(@fill-mode) { 49 | -webkit-animation-fill-mode: @fill-mode; 50 | animation-fill-mode: @fill-mode; 51 | } 52 | 53 | // Backface visibility 54 | // Prevent browsers from flickering when using CSS 3D transforms. 55 | // Default value is `visible`, but can be changed to `hidden` 56 | 57 | .backface-visibility(@visibility){ 58 | -webkit-backface-visibility: @visibility; 59 | -moz-backface-visibility: @visibility; 60 | backface-visibility: @visibility; 61 | } 62 | 63 | // Drop shadows 64 | // 65 | // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's 66 | // supported browsers that have box shadow capabilities now support it. 67 | 68 | .box-shadow(@shadow) { 69 | -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1 70 | box-shadow: @shadow; 71 | } 72 | 73 | // Box sizing 74 | .box-sizing(@boxmodel) { 75 | -webkit-box-sizing: @boxmodel; 76 | -moz-box-sizing: @boxmodel; 77 | box-sizing: @boxmodel; 78 | } 79 | 80 | // CSS3 Content Columns 81 | .content-columns(@column-count; @column-gap: @grid-gutter-width) { 82 | -webkit-column-count: @column-count; 83 | -moz-column-count: @column-count; 84 | column-count: @column-count; 85 | -webkit-column-gap: @column-gap; 86 | -moz-column-gap: @column-gap; 87 | column-gap: @column-gap; 88 | } 89 | 90 | // Optional hyphenation 91 | .hyphens(@mode: auto) { 92 | word-wrap: break-word; 93 | -webkit-hyphens: @mode; 94 | -moz-hyphens: @mode; 95 | -ms-hyphens: @mode; // IE10+ 96 | -o-hyphens: @mode; 97 | hyphens: @mode; 98 | } 99 | 100 | // Placeholder text 101 | .placeholder(@color: @input-color-placeholder) { 102 | // Firefox 103 | &::-moz-placeholder { 104 | color: @color; 105 | opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526 106 | } 107 | &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+ 108 | &::-webkit-input-placeholder { color: @color; } // Safari and Chrome 109 | } 110 | 111 | // Transformations 112 | .scale(@ratio) { 113 | -webkit-transform: scale(@ratio); 114 | -ms-transform: scale(@ratio); // IE9 only 115 | -o-transform: scale(@ratio); 116 | transform: scale(@ratio); 117 | } 118 | .scale(@ratioX; @ratioY) { 119 | -webkit-transform: scale(@ratioX, @ratioY); 120 | -ms-transform: scale(@ratioX, @ratioY); // IE9 only 121 | -o-transform: scale(@ratioX, @ratioY); 122 | transform: scale(@ratioX, @ratioY); 123 | } 124 | .scaleX(@ratio) { 125 | -webkit-transform: scaleX(@ratio); 126 | -ms-transform: scaleX(@ratio); // IE9 only 127 | -o-transform: scaleX(@ratio); 128 | transform: scaleX(@ratio); 129 | } 130 | .scaleY(@ratio) { 131 | -webkit-transform: scaleY(@ratio); 132 | -ms-transform: scaleY(@ratio); // IE9 only 133 | -o-transform: scaleY(@ratio); 134 | transform: scaleY(@ratio); 135 | } 136 | .skew(@x; @y) { 137 | -webkit-transform: skewX(@x) skewY(@y); 138 | -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+ 139 | -o-transform: skewX(@x) skewY(@y); 140 | transform: skewX(@x) skewY(@y); 141 | } 142 | .translate(@x; @y) { 143 | -webkit-transform: translate(@x, @y); 144 | -ms-transform: translate(@x, @y); // IE9 only 145 | -o-transform: translate(@x, @y); 146 | transform: translate(@x, @y); 147 | } 148 | .translate3d(@x; @y; @z) { 149 | -webkit-transform: translate3d(@x, @y, @z); 150 | transform: translate3d(@x, @y, @z); 151 | } 152 | .rotate(@degrees) { 153 | -webkit-transform: rotate(@degrees); 154 | -ms-transform: rotate(@degrees); // IE9 only 155 | -o-transform: rotate(@degrees); 156 | transform: rotate(@degrees); 157 | } 158 | .rotateX(@degrees) { 159 | -webkit-transform: rotateX(@degrees); 160 | -ms-transform: rotateX(@degrees); // IE9 only 161 | -o-transform: rotateX(@degrees); 162 | transform: rotateX(@degrees); 163 | } 164 | .rotateY(@degrees) { 165 | -webkit-transform: rotateY(@degrees); 166 | -ms-transform: rotateY(@degrees); // IE9 only 167 | -o-transform: rotateY(@degrees); 168 | transform: rotateY(@degrees); 169 | } 170 | .perspective(@perspective) { 171 | -webkit-perspective: @perspective; 172 | -moz-perspective: @perspective; 173 | perspective: @perspective; 174 | } 175 | .perspective-origin(@perspective) { 176 | -webkit-perspective-origin: @perspective; 177 | -moz-perspective-origin: @perspective; 178 | perspective-origin: @perspective; 179 | } 180 | .transform-origin(@origin) { 181 | -webkit-transform-origin: @origin; 182 | -moz-transform-origin: @origin; 183 | -ms-transform-origin: @origin; // IE9 only 184 | transform-origin: @origin; 185 | } 186 | 187 | 188 | // Transitions 189 | 190 | .transition(@transition) { 191 | -webkit-transition: @transition; 192 | -o-transition: @transition; 193 | transition: @transition; 194 | } 195 | .transition-property(@transition-property) { 196 | -webkit-transition-property: @transition-property; 197 | transition-property: @transition-property; 198 | } 199 | .transition-delay(@transition-delay) { 200 | -webkit-transition-delay: @transition-delay; 201 | transition-delay: @transition-delay; 202 | } 203 | .transition-duration(@transition-duration) { 204 | -webkit-transition-duration: @transition-duration; 205 | transition-duration: @transition-duration; 206 | } 207 | .transition-timing-function(@timing-function) { 208 | -webkit-transition-timing-function: @timing-function; 209 | transition-timing-function: @timing-function; 210 | } 211 | .transition-transform(@transition) { 212 | -webkit-transition: -webkit-transform @transition; 213 | -moz-transition: -moz-transform @transition; 214 | -o-transition: -o-transform @transition; 215 | transition: transform @transition; 216 | } 217 | 218 | 219 | // User select 220 | // For selecting text on the page 221 | 222 | .user-select(@select) { 223 | -webkit-user-select: @select; 224 | -moz-user-select: @select; 225 | -ms-user-select: @select; // IE10+ 226 | user-select: @select; 227 | } 228 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/theme.less: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // Load core variables and mixins 4 | // -------------------------------------------------- 5 | 6 | @import "variables.less"; 7 | @import "mixins.less"; 8 | 9 | 10 | // 11 | // Buttons 12 | // -------------------------------------------------- 13 | 14 | // Common styles 15 | .btn-default, 16 | .btn-primary, 17 | .btn-success, 18 | .btn-info, 19 | .btn-warning, 20 | .btn-danger { 21 | text-shadow: 0 -1px 0 rgba(0,0,0,.2); 22 | @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075); 23 | .box-shadow(@shadow); 24 | 25 | // Reset the shadow 26 | &:active, 27 | &.active { 28 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); 29 | } 30 | 31 | .badge { 32 | text-shadow: none; 33 | } 34 | } 35 | 36 | // Mixin for generating new styles 37 | .btn-styles(@btn-color: #555) { 38 | #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%)); 39 | .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620 40 | background-repeat: repeat-x; 41 | border-color: darken(@btn-color, 14%); 42 | 43 | &:hover, 44 | &:focus { 45 | background-color: darken(@btn-color, 12%); 46 | background-position: 0 -15px; 47 | } 48 | 49 | &:active, 50 | &.active { 51 | background-color: darken(@btn-color, 12%); 52 | border-color: darken(@btn-color, 14%); 53 | } 54 | 55 | &.disabled, 56 | &:disabled, 57 | &[disabled] { 58 | background-color: darken(@btn-color, 12%); 59 | background-image: none; 60 | } 61 | } 62 | 63 | // Common styles 64 | .btn { 65 | // Remove the gradient for the pressed/active state 66 | &:active, 67 | &.active { 68 | background-image: none; 69 | } 70 | } 71 | 72 | // Apply the mixin to the buttons 73 | .btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; } 74 | .btn-primary { .btn-styles(@btn-primary-bg); } 75 | .btn-success { .btn-styles(@btn-success-bg); } 76 | .btn-info { .btn-styles(@btn-info-bg); } 77 | .btn-warning { .btn-styles(@btn-warning-bg); } 78 | .btn-danger { .btn-styles(@btn-danger-bg); } 79 | 80 | 81 | // 82 | // Images 83 | // -------------------------------------------------- 84 | 85 | .thumbnail, 86 | .img-thumbnail { 87 | .box-shadow(0 1px 2px rgba(0,0,0,.075)); 88 | } 89 | 90 | 91 | // 92 | // Dropdowns 93 | // -------------------------------------------------- 94 | 95 | .dropdown-menu > li > a:hover, 96 | .dropdown-menu > li > a:focus { 97 | #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%)); 98 | background-color: darken(@dropdown-link-hover-bg, 5%); 99 | } 100 | .dropdown-menu > .active > a, 101 | .dropdown-menu > .active > a:hover, 102 | .dropdown-menu > .active > a:focus { 103 | #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%)); 104 | background-color: darken(@dropdown-link-active-bg, 5%); 105 | } 106 | 107 | 108 | // 109 | // Navbar 110 | // -------------------------------------------------- 111 | 112 | // Default navbar 113 | .navbar-default { 114 | #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg); 115 | .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered 116 | border-radius: @navbar-border-radius; 117 | @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075); 118 | .box-shadow(@shadow); 119 | 120 | .navbar-nav > .open > a, 121 | .navbar-nav > .active > a { 122 | #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%)); 123 | .box-shadow(inset 0 3px 9px rgba(0,0,0,.075)); 124 | } 125 | } 126 | .navbar-brand, 127 | .navbar-nav > li > a { 128 | text-shadow: 0 1px 0 rgba(255,255,255,.25); 129 | } 130 | 131 | // Inverted navbar 132 | .navbar-inverse { 133 | #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg); 134 | .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257 135 | 136 | .navbar-nav > .open > a, 137 | .navbar-nav > .active > a { 138 | #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%)); 139 | .box-shadow(inset 0 3px 9px rgba(0,0,0,.25)); 140 | } 141 | 142 | .navbar-brand, 143 | .navbar-nav > li > a { 144 | text-shadow: 0 -1px 0 rgba(0,0,0,.25); 145 | } 146 | } 147 | 148 | // Undo rounded corners in static and fixed navbars 149 | .navbar-static-top, 150 | .navbar-fixed-top, 151 | .navbar-fixed-bottom { 152 | border-radius: 0; 153 | } 154 | 155 | // Fix active state of dropdown items in collapsed mode 156 | @media (max-width: @grid-float-breakpoint-max) { 157 | .navbar .navbar-nav .open .dropdown-menu > .active > a { 158 | &, 159 | &:hover, 160 | &:focus { 161 | color: #fff; 162 | #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%)); 163 | } 164 | } 165 | } 166 | 167 | 168 | // 169 | // Alerts 170 | // -------------------------------------------------- 171 | 172 | // Common styles 173 | .alert { 174 | text-shadow: 0 1px 0 rgba(255,255,255,.2); 175 | @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05); 176 | .box-shadow(@shadow); 177 | } 178 | 179 | // Mixin for generating new styles 180 | .alert-styles(@color) { 181 | #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%)); 182 | border-color: darken(@color, 15%); 183 | } 184 | 185 | // Apply the mixin to the alerts 186 | .alert-success { .alert-styles(@alert-success-bg); } 187 | .alert-info { .alert-styles(@alert-info-bg); } 188 | .alert-warning { .alert-styles(@alert-warning-bg); } 189 | .alert-danger { .alert-styles(@alert-danger-bg); } 190 | 191 | 192 | // 193 | // Progress bars 194 | // -------------------------------------------------- 195 | 196 | // Give the progress background some depth 197 | .progress { 198 | #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg) 199 | } 200 | 201 | // Mixin for generating new styles 202 | .progress-bar-styles(@color) { 203 | #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%)); 204 | } 205 | 206 | // Apply the mixin to the progress bars 207 | .progress-bar { .progress-bar-styles(@progress-bar-bg); } 208 | .progress-bar-success { .progress-bar-styles(@progress-bar-success-bg); } 209 | .progress-bar-info { .progress-bar-styles(@progress-bar-info-bg); } 210 | .progress-bar-warning { .progress-bar-styles(@progress-bar-warning-bg); } 211 | .progress-bar-danger { .progress-bar-styles(@progress-bar-danger-bg); } 212 | 213 | // Reset the striped class because our mixins don't do multiple gradients and 214 | // the above custom styles override the new `.progress-bar-striped` in v3.2.0. 215 | .progress-bar-striped { 216 | #gradient > .striped(); 217 | } 218 | 219 | 220 | // 221 | // List groups 222 | // -------------------------------------------------- 223 | 224 | .list-group { 225 | border-radius: @border-radius-base; 226 | .box-shadow(0 1px 2px rgba(0,0,0,.075)); 227 | } 228 | .list-group-item.active, 229 | .list-group-item.active:hover, 230 | .list-group-item.active:focus { 231 | text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%); 232 | #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%)); 233 | border-color: darken(@list-group-active-border, 7.5%); 234 | 235 | .badge { 236 | text-shadow: none; 237 | } 238 | } 239 | 240 | 241 | // 242 | // Panels 243 | // -------------------------------------------------- 244 | 245 | // Common styles 246 | .panel { 247 | .box-shadow(0 1px 2px rgba(0,0,0,.05)); 248 | } 249 | 250 | // Mixin for generating new styles 251 | .panel-heading-styles(@color) { 252 | #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%)); 253 | } 254 | 255 | // Apply the mixin to the panel headings only 256 | .panel-default > .panel-heading { .panel-heading-styles(@panel-default-heading-bg); } 257 | .panel-primary > .panel-heading { .panel-heading-styles(@panel-primary-heading-bg); } 258 | .panel-success > .panel-heading { .panel-heading-styles(@panel-success-heading-bg); } 259 | .panel-info > .panel-heading { .panel-heading-styles(@panel-info-heading-bg); } 260 | .panel-warning > .panel-heading { .panel-heading-styles(@panel-warning-heading-bg); } 261 | .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); } 262 | 263 | 264 | // 265 | // Wells 266 | // -------------------------------------------------- 267 | 268 | .well { 269 | #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg); 270 | border-color: darken(@well-bg, 10%); 271 | @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1); 272 | .box-shadow(@shadow); 273 | } 274 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/.csscomb.json: -------------------------------------------------------------------------------- 1 | { 2 | "always-semicolon": true, 3 | "block-indent": 2, 4 | "color-case": "lower", 5 | "color-shorthand": true, 6 | "element-case": "lower", 7 | "eof-newline": true, 8 | "leading-zero": false, 9 | "remove-empty-rulesets": true, 10 | "space-after-colon": 1, 11 | "space-after-combinator": 1, 12 | "space-before-selector-delimiter": 0, 13 | "space-between-declarations": "\n", 14 | "space-after-opening-brace": "\n", 15 | "space-before-closing-brace": "\n", 16 | "space-before-colon": 0, 17 | "space-before-combinator": 1, 18 | "space-before-opening-brace": 1, 19 | "strip-spaces": true, 20 | "unitless-zero": true, 21 | "vendor-prefix-align": true, 22 | "sort-order": [ 23 | [ 24 | "position", 25 | "top", 26 | "right", 27 | "bottom", 28 | "left", 29 | "z-index", 30 | "display", 31 | "float", 32 | "width", 33 | "min-width", 34 | "max-width", 35 | "height", 36 | "min-height", 37 | "max-height", 38 | "-webkit-box-sizing", 39 | "-moz-box-sizing", 40 | "box-sizing", 41 | "-webkit-appearance", 42 | "padding", 43 | "padding-top", 44 | "padding-right", 45 | "padding-bottom", 46 | "padding-left", 47 | "margin", 48 | "margin-top", 49 | "margin-right", 50 | "margin-bottom", 51 | "margin-left", 52 | "overflow", 53 | "overflow-x", 54 | "overflow-y", 55 | "-webkit-overflow-scrolling", 56 | "-ms-overflow-x", 57 | "-ms-overflow-y", 58 | "-ms-overflow-style", 59 | "clip", 60 | "clear", 61 | "font", 62 | "font-family", 63 | "font-size", 64 | "font-style", 65 | "font-weight", 66 | "font-variant", 67 | "font-size-adjust", 68 | "font-stretch", 69 | "font-effect", 70 | "font-emphasize", 71 | "font-emphasize-position", 72 | "font-emphasize-style", 73 | "font-smooth", 74 | "-webkit-hyphens", 75 | "-moz-hyphens", 76 | "hyphens", 77 | "line-height", 78 | "color", 79 | "text-align", 80 | "-webkit-text-align-last", 81 | "-moz-text-align-last", 82 | "-ms-text-align-last", 83 | "text-align-last", 84 | "text-emphasis", 85 | "text-emphasis-color", 86 | "text-emphasis-style", 87 | "text-emphasis-position", 88 | "text-decoration", 89 | "text-indent", 90 | "text-justify", 91 | "text-outline", 92 | "-ms-text-overflow", 93 | "text-overflow", 94 | "text-overflow-ellipsis", 95 | "text-overflow-mode", 96 | "text-shadow", 97 | "text-transform", 98 | "text-wrap", 99 | "-webkit-text-size-adjust", 100 | "-ms-text-size-adjust", 101 | "letter-spacing", 102 | "-ms-word-break", 103 | "word-break", 104 | "word-spacing", 105 | "-ms-word-wrap", 106 | "word-wrap", 107 | "-moz-tab-size", 108 | "-o-tab-size", 109 | "tab-size", 110 | "white-space", 111 | "vertical-align", 112 | "list-style", 113 | "list-style-position", 114 | "list-style-type", 115 | "list-style-image", 116 | "pointer-events", 117 | "-ms-touch-action", 118 | "touch-action", 119 | "cursor", 120 | "visibility", 121 | "zoom", 122 | "flex-direction", 123 | "flex-order", 124 | "flex-pack", 125 | "flex-align", 126 | "table-layout", 127 | "empty-cells", 128 | "caption-side", 129 | "border-spacing", 130 | "border-collapse", 131 | "content", 132 | "quotes", 133 | "counter-reset", 134 | "counter-increment", 135 | "resize", 136 | "-webkit-user-select", 137 | "-moz-user-select", 138 | "-ms-user-select", 139 | "-o-user-select", 140 | "user-select", 141 | "nav-index", 142 | "nav-up", 143 | "nav-right", 144 | "nav-down", 145 | "nav-left", 146 | "background", 147 | "background-color", 148 | "background-image", 149 | "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient", 150 | "filter:progid:DXImageTransform.Microsoft.gradient", 151 | "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader", 152 | "filter", 153 | "background-repeat", 154 | "background-attachment", 155 | "background-position", 156 | "background-position-x", 157 | "background-position-y", 158 | "-webkit-background-clip", 159 | "-moz-background-clip", 160 | "background-clip", 161 | "background-origin", 162 | "-webkit-background-size", 163 | "-moz-background-size", 164 | "-o-background-size", 165 | "background-size", 166 | "border", 167 | "border-color", 168 | "border-style", 169 | "border-width", 170 | "border-top", 171 | "border-top-color", 172 | "border-top-style", 173 | "border-top-width", 174 | "border-right", 175 | "border-right-color", 176 | "border-right-style", 177 | "border-right-width", 178 | "border-bottom", 179 | "border-bottom-color", 180 | "border-bottom-style", 181 | "border-bottom-width", 182 | "border-left", 183 | "border-left-color", 184 | "border-left-style", 185 | "border-left-width", 186 | "border-radius", 187 | "border-top-left-radius", 188 | "border-top-right-radius", 189 | "border-bottom-right-radius", 190 | "border-bottom-left-radius", 191 | "-webkit-border-image", 192 | "-moz-border-image", 193 | "-o-border-image", 194 | "border-image", 195 | "-webkit-border-image-source", 196 | "-moz-border-image-source", 197 | "-o-border-image-source", 198 | "border-image-source", 199 | "-webkit-border-image-slice", 200 | "-moz-border-image-slice", 201 | "-o-border-image-slice", 202 | "border-image-slice", 203 | "-webkit-border-image-width", 204 | "-moz-border-image-width", 205 | "-o-border-image-width", 206 | "border-image-width", 207 | "-webkit-border-image-outset", 208 | "-moz-border-image-outset", 209 | "-o-border-image-outset", 210 | "border-image-outset", 211 | "-webkit-border-image-repeat", 212 | "-moz-border-image-repeat", 213 | "-o-border-image-repeat", 214 | "border-image-repeat", 215 | "outline", 216 | "outline-width", 217 | "outline-style", 218 | "outline-color", 219 | "outline-offset", 220 | "-webkit-box-shadow", 221 | "-moz-box-shadow", 222 | "box-shadow", 223 | "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity", 224 | "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha", 225 | "opacity", 226 | "-ms-interpolation-mode", 227 | "-webkit-transition", 228 | "-moz-transition", 229 | "-ms-transition", 230 | "-o-transition", 231 | "transition", 232 | "-webkit-transition-delay", 233 | "-moz-transition-delay", 234 | "-ms-transition-delay", 235 | "-o-transition-delay", 236 | "transition-delay", 237 | "-webkit-transition-timing-function", 238 | "-moz-transition-timing-function", 239 | "-ms-transition-timing-function", 240 | "-o-transition-timing-function", 241 | "transition-timing-function", 242 | "-webkit-transition-duration", 243 | "-moz-transition-duration", 244 | "-ms-transition-duration", 245 | "-o-transition-duration", 246 | "transition-duration", 247 | "-webkit-transition-property", 248 | "-moz-transition-property", 249 | "-ms-transition-property", 250 | "-o-transition-property", 251 | "transition-property", 252 | "-webkit-transform", 253 | "-moz-transform", 254 | "-ms-transform", 255 | "-o-transform", 256 | "transform", 257 | "-webkit-transform-origin", 258 | "-moz-transform-origin", 259 | "-ms-transform-origin", 260 | "-o-transform-origin", 261 | "transform-origin", 262 | "-webkit-animation", 263 | "-moz-animation", 264 | "-ms-animation", 265 | "-o-animation", 266 | "animation", 267 | "-webkit-animation-name", 268 | "-moz-animation-name", 269 | "-ms-animation-name", 270 | "-o-animation-name", 271 | "animation-name", 272 | "-webkit-animation-duration", 273 | "-moz-animation-duration", 274 | "-ms-animation-duration", 275 | "-o-animation-duration", 276 | "animation-duration", 277 | "-webkit-animation-play-state", 278 | "-moz-animation-play-state", 279 | "-ms-animation-play-state", 280 | "-o-animation-play-state", 281 | "animation-play-state", 282 | "-webkit-animation-timing-function", 283 | "-moz-animation-timing-function", 284 | "-ms-animation-timing-function", 285 | "-o-animation-timing-function", 286 | "animation-timing-function", 287 | "-webkit-animation-delay", 288 | "-moz-animation-delay", 289 | "-ms-animation-delay", 290 | "-o-animation-delay", 291 | "animation-delay", 292 | "-webkit-animation-iteration-count", 293 | "-moz-animation-iteration-count", 294 | "-ms-animation-iteration-count", 295 | "-o-animation-iteration-count", 296 | "animation-iteration-count", 297 | "-webkit-animation-direction", 298 | "-moz-animation-direction", 299 | "-ms-animation-direction", 300 | "-o-animation-direction", 301 | "animation-direction" 302 | ] 303 | ] 304 | } 305 | -------------------------------------------------------------------------------- /css/bootstrap/less/core/normalize.less: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ 2 | 3 | // 4 | // 1. Set default font family to sans-serif. 5 | // 2. Prevent iOS text size adjust after orientation change, without disabling 6 | // user zoom. 7 | // 8 | 9 | html { 10 | font-family: sans-serif; // 1 11 | -ms-text-size-adjust: 100%; // 2 12 | -webkit-text-size-adjust: 100%; // 2 13 | } 14 | 15 | // 16 | // Remove default margin. 17 | // 18 | 19 | body { 20 | margin: 0; 21 | } 22 | 23 | // HTML5 display definitions 24 | // ========================================================================== 25 | 26 | // 27 | // Correct `block` display not defined for any HTML5 element in IE 8/9. 28 | // Correct `block` display not defined for `details` or `summary` in IE 10/11 29 | // and Firefox. 30 | // Correct `block` display not defined for `main` in IE 11. 31 | // 32 | 33 | article, 34 | aside, 35 | details, 36 | figcaption, 37 | figure, 38 | footer, 39 | header, 40 | hgroup, 41 | main, 42 | menu, 43 | nav, 44 | section, 45 | summary { 46 | display: block; 47 | } 48 | 49 | // 50 | // 1. Correct `inline-block` display not defined in IE 8/9. 51 | // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. 52 | // 53 | 54 | audio, 55 | canvas, 56 | progress, 57 | video { 58 | display: inline-block; // 1 59 | vertical-align: baseline; // 2 60 | } 61 | 62 | // 63 | // Prevent modern browsers from displaying `audio` without controls. 64 | // Remove excess height in iOS 5 devices. 65 | // 66 | 67 | audio:not([controls]) { 68 | display: none; 69 | height: 0; 70 | } 71 | 72 | // 73 | // Address `[hidden]` styling not present in IE 8/9/10. 74 | // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. 75 | // 76 | 77 | [hidden], 78 | template { 79 | display: none; 80 | } 81 | 82 | // Links 83 | // ========================================================================== 84 | 85 | // 86 | // Remove the gray background color from active links in IE 10. 87 | // 88 | 89 | a { 90 | background-color: transparent; 91 | } 92 | 93 | // 94 | // Improve readability when focused and also mouse hovered in all browsers. 95 | // 96 | 97 | a:active, 98 | a:hover { 99 | outline: 0; 100 | } 101 | 102 | // Text-level semantics 103 | // ========================================================================== 104 | 105 | // 106 | // Address styling not present in IE 8/9/10/11, Safari, and Chrome. 107 | // 108 | 109 | abbr[title] { 110 | border-bottom: 1px dotted; 111 | } 112 | 113 | // 114 | // Address style set to `bolder` in Firefox 4+, Safari, and Chrome. 115 | // 116 | 117 | b, 118 | strong { 119 | font-weight: bold; 120 | } 121 | 122 | // 123 | // Address styling not present in Safari and Chrome. 124 | // 125 | 126 | dfn { 127 | font-style: italic; 128 | } 129 | 130 | // 131 | // Address variable `h1` font-size and margin within `section` and `article` 132 | // contexts in Firefox 4+, Safari, and Chrome. 133 | // 134 | 135 | h1 { 136 | font-size: 2em; 137 | margin: 0.67em 0; 138 | } 139 | 140 | // 141 | // Address styling not present in IE 8/9. 142 | // 143 | 144 | mark { 145 | background: #ff0; 146 | color: #000; 147 | } 148 | 149 | // 150 | // Address inconsistent and variable font size in all browsers. 151 | // 152 | 153 | small { 154 | font-size: 80%; 155 | } 156 | 157 | // 158 | // Prevent `sub` and `sup` affecting `line-height` in all browsers. 159 | // 160 | 161 | sub, 162 | sup { 163 | font-size: 75%; 164 | line-height: 0; 165 | position: relative; 166 | vertical-align: baseline; 167 | } 168 | 169 | sup { 170 | top: -0.5em; 171 | } 172 | 173 | sub { 174 | bottom: -0.25em; 175 | } 176 | 177 | // Embedded content 178 | // ========================================================================== 179 | 180 | // 181 | // Remove border when inside `a` element in IE 8/9/10. 182 | // 183 | 184 | img { 185 | border: 0; 186 | } 187 | 188 | // 189 | // Correct overflow not hidden in IE 9/10/11. 190 | // 191 | 192 | svg:not(:root) { 193 | overflow: hidden; 194 | } 195 | 196 | // Grouping content 197 | // ========================================================================== 198 | 199 | // 200 | // Address margin not present in IE 8/9 and Safari. 201 | // 202 | 203 | figure { 204 | margin: 1em 40px; 205 | } 206 | 207 | // 208 | // Address differences between Firefox and other browsers. 209 | // 210 | 211 | hr { 212 | -moz-box-sizing: content-box; 213 | box-sizing: content-box; 214 | height: 0; 215 | } 216 | 217 | // 218 | // Contain overflow in all browsers. 219 | // 220 | 221 | pre { 222 | overflow: auto; 223 | } 224 | 225 | // 226 | // Address odd `em`-unit font size rendering in all browsers. 227 | // 228 | 229 | code, 230 | kbd, 231 | pre, 232 | samp { 233 | font-family: monospace, monospace; 234 | font-size: 1em; 235 | } 236 | 237 | // Forms 238 | // ========================================================================== 239 | 240 | // 241 | // Known limitation: by default, Chrome and Safari on OS X allow very limited 242 | // styling of `select`, unless a `border` property is set. 243 | // 244 | 245 | // 246 | // 1. Correct color not being inherited. 247 | // Known issue: affects color of disabled elements. 248 | // 2. Correct font properties not being inherited. 249 | // 3. Address margins set differently in Firefox 4+, Safari, and Chrome. 250 | // 251 | 252 | button, 253 | input, 254 | optgroup, 255 | select, 256 | textarea { 257 | color: inherit; // 1 258 | font: inherit; // 2 259 | margin: 0; // 3 260 | } 261 | 262 | // 263 | // Address `overflow` set to `hidden` in IE 8/9/10/11. 264 | // 265 | 266 | button { 267 | overflow: visible; 268 | } 269 | 270 | // 271 | // Address inconsistent `text-transform` inheritance for `button` and `select`. 272 | // All other form control elements do not inherit `text-transform` values. 273 | // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. 274 | // Correct `select` style inheritance in Firefox. 275 | // 276 | 277 | button, 278 | select { 279 | text-transform: none; 280 | } 281 | 282 | // 283 | // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 284 | // and `video` controls. 285 | // 2. Correct inability to style clickable `input` types in iOS. 286 | // 3. Improve usability and consistency of cursor style between image-type 287 | // `input` and others. 288 | // 289 | 290 | button, 291 | html input[type="button"], // 1 292 | input[type="reset"], 293 | input[type="submit"] { 294 | -webkit-appearance: button; // 2 295 | cursor: pointer; // 3 296 | } 297 | 298 | // 299 | // Re-set default cursor for disabled elements. 300 | // 301 | 302 | button[disabled], 303 | html input[disabled] { 304 | cursor: default; 305 | } 306 | 307 | // 308 | // Remove inner padding and border in Firefox 4+. 309 | // 310 | 311 | button::-moz-focus-inner, 312 | input::-moz-focus-inner { 313 | border: 0; 314 | padding: 0; 315 | } 316 | 317 | // 318 | // Address Firefox 4+ setting `line-height` on `input` using `!important` in 319 | // the UA stylesheet. 320 | // 321 | 322 | input { 323 | line-height: normal; 324 | } 325 | 326 | // 327 | // It's recommended that you don't attempt to style these elements. 328 | // Firefox's implementation doesn't respect box-sizing, padding, or width. 329 | // 330 | // 1. Address box sizing set to `content-box` in IE 8/9/10. 331 | // 2. Remove excess padding in IE 8/9/10. 332 | // 333 | 334 | input[type="checkbox"], 335 | input[type="radio"] { 336 | box-sizing: border-box; // 1 337 | padding: 0; // 2 338 | } 339 | 340 | // 341 | // Fix the cursor style for Chrome's increment/decrement buttons. For certain 342 | // `font-size` values of the `input`, it causes the cursor style of the 343 | // decrement button to change from `default` to `text`. 344 | // 345 | 346 | input[type="number"]::-webkit-inner-spin-button, 347 | input[type="number"]::-webkit-outer-spin-button { 348 | height: auto; 349 | } 350 | 351 | // 352 | // 1. Address `appearance` set to `searchfield` in Safari and Chrome. 353 | // 2. Address `box-sizing` set to `border-box` in Safari and Chrome 354 | // (include `-moz` to future-proof). 355 | // 356 | 357 | input[type="search"] { 358 | -webkit-appearance: textfield; // 1 359 | -moz-box-sizing: content-box; 360 | -webkit-box-sizing: content-box; // 2 361 | box-sizing: content-box; 362 | } 363 | 364 | // 365 | // Remove inner padding and search cancel button in Safari and Chrome on OS X. 366 | // Safari (but not Chrome) clips the cancel button when the search input has 367 | // padding (and `textfield` appearance). 368 | // 369 | 370 | input[type="search"]::-webkit-search-cancel-button, 371 | input[type="search"]::-webkit-search-decoration { 372 | -webkit-appearance: none; 373 | } 374 | 375 | // 376 | // Define consistent border, margin, and padding. 377 | // 378 | 379 | fieldset { 380 | border: 1px solid #c0c0c0; 381 | margin: 0 2px; 382 | padding: 0.35em 0.625em 0.75em; 383 | } 384 | 385 | // 386 | // 1. Correct `color` not being inherited in IE 8/9/10/11. 387 | // 2. Remove padding so people aren't caught out if they zero out fieldsets. 388 | // 389 | 390 | legend { 391 | border: 0; // 1 392 | padding: 0; // 2 393 | } 394 | 395 | // 396 | // Remove default vertical scrollbar in IE 8/9/10/11. 397 | // 398 | 399 | textarea { 400 | overflow: auto; 401 | } 402 | 403 | // 404 | // Don't inherit the `font-weight` (applied by a rule above). 405 | // NOTE: the default cannot safely be changed in Chrome and Safari on OS X. 406 | // 407 | 408 | optgroup { 409 | font-weight: bold; 410 | } 411 | 412 | // Tables 413 | // ========================================================================== 414 | 415 | // 416 | // Remove most spacing between table cells. 417 | // 418 | 419 | table { 420 | border-collapse: collapse; 421 | border-spacing: 0; 422 | } 423 | 424 | td, 425 | th { 426 | padding: 0; 427 | } 428 | -------------------------------------------------------------------------------- /js/vendor/src/bootstrap-select.js: -------------------------------------------------------------------------------- 1 | /*! ======================================================================== 2 | * Bootstrap Select: bootstrap-select.js v2.4.6 3 | * ======================================================================== 4 | * Copyright 2015, Salvatore Di Salvo (disalvo-infographiste[dot]be) 5 | * ======================================================================== */ 6 | 7 | +function ($) { 8 | 'use strict'; 9 | 10 | // DROPDOWN SELECT PUBLIC CLASS DEFINITION 11 | // ==================================== 12 | 13 | var DropdownSelect = function (element, options) { 14 | this.$element = $(element) 15 | this.options = $.extend({}, this.defaults(), options) 16 | this.structure = $.extend({}, this.parts()) 17 | this.init() 18 | } 19 | 20 | DropdownSelect.VERSION = '2.4.6' 21 | 22 | DropdownSelect.DEFAULTS = { 23 | select : this, 24 | autoclose : true, 25 | cancelbtn : false, 26 | clearbtn : false, 27 | livefilter : false, 28 | filter : null, 29 | fmethod : 'recursive', 30 | open : 'open', 31 | filled : 'filled', 32 | display : '.dropdown-toggle', 33 | list : '.dropdown-menu', 34 | placeholder : '.placeholder', 35 | items : '.items', 36 | current : '.current', 37 | clear : '.clear', 38 | selected : '.selected', 39 | cancel : '.cancel' 40 | } 41 | 42 | DropdownSelect.prototype.parts = function() { 43 | return { 44 | $select : this.$element, 45 | $section : this.$element.attr('data-section') ? this.$element.attr('data-section') : this.$element.attr('id'), 46 | $input : null, 47 | $input_id : null, 48 | $display : $(this.options.display, this.$element), 49 | $list : $(this.options.list, this.$element), 50 | $placeholder : $(this.options.placeholder, this.$element), 51 | $items : $(this.options.items, this.$element), 52 | $current : $(this.options.current, this.$element), 53 | $clear : $(this.options.clear, this.$element), 54 | $selected : this.get(), 55 | $cancel : $(this.options.cancel, this.$element) 56 | } 57 | } 58 | 59 | DropdownSelect.prototype.defaults = function() { 60 | return { 61 | select : DropdownSelect.DEFAULTS.select, 62 | autoclose : this.$element.attr('data-autoclose') || DropdownSelect.DEFAULTS.autoclose, 63 | cancelbtn : this.$element.attr('data-cancel') || DropdownSelect.DEFAULTS.cancelbtn, 64 | clearbtn : this.$element.attr('data-clear') || DropdownSelect.DEFAULTS.clearbtn, 65 | livefilter : this.$element.attr('data-live') || DropdownSelect.DEFAULTS.livefilter, 66 | filter : this.$element.attr('data-filter') || DropdownSelect.DEFAULTS.filter, 67 | fmethod : this.$element.attr('data-fmethod') || DropdownSelect.DEFAULTS.fmethod, 68 | open : this.$element.attr('data-open') || DropdownSelect.DEFAULTS.open, 69 | filled : this.$element.attr('data-filled') || DropdownSelect.DEFAULTS.filled, 70 | display : DropdownSelect.DEFAULTS.display, 71 | list : DropdownSelect.DEFAULTS.list, 72 | placeholder : DropdownSelect.DEFAULTS.placeholder, 73 | items : DropdownSelect.DEFAULTS.items, 74 | current : DropdownSelect.DEFAULTS.current, 75 | clear : DropdownSelect.DEFAULTS.clear, 76 | selected : DropdownSelect.DEFAULTS.selected, 77 | cancel : DropdownSelect.DEFAULTS.cancel 78 | } 79 | } 80 | 81 | DropdownSelect.prototype.init = function() { 82 | var $select = this; 83 | this.structure.$input = $('[name="' + this.structure.$section + '"]'); 84 | this.structure.$input_id = $('[name="' + this.structure.$section + '_id"]'); 85 | 86 | if ( this.structure.$select.hasClass('hide') ) $select.structure.$select.removeClass('hide'); 87 | 88 | if ( this.structure.$input.is('select') ) $select.structure.$input.addClass('hide'); 89 | if ( this.structure.$input_id.is('select') ) $select.structure.$input_id.addClass('hide'); 90 | 91 | if ( this.structure.$selected.length ) { 92 | $select.select($(this.structure.$selected)); 93 | } 94 | 95 | this.structure.$display.off().on('click', function(e) { 96 | e.preventDefault(); 97 | $select.toggle(); 98 | }); 99 | 100 | this.structure.$items.off().on('click', function(){ 101 | $select.select($(this)); 102 | }); 103 | 104 | if ( this.options.cancelbtn ) { 105 | this.structure.$cancel.off().on('click', function (e) { 106 | e.preventDefault(); 107 | $select.toggle('close'); 108 | }); 109 | } 110 | 111 | if ( this.options.clearbtn ) { 112 | this.structure.$clear.off().on('click', function (e) { 113 | $select.clear(e); 114 | }); 115 | } 116 | 117 | if ( this.options.filter != null) { 118 | var $toFilter = this.options.filter.split(' '); 119 | 120 | if ($.isArray($toFilter) && $toFilter.length > 0 ) { 121 | for(var i=0;i < $toFilter.length;i++) { 122 | var $this = $('#'+$toFilter[i]); 123 | $this.listFilter({ method: this.options.fmethod }); 124 | } 125 | } 126 | } 127 | 128 | if ( this.options.livefilter ) { 129 | $('.live-filtering').liveFilter(); 130 | } 131 | 132 | $(document).mouseup(function(e) { 133 | if ($select.$element.has(e.target).length === 0 && $select.$element.hasClass($select.options.open)){ 134 | $select.toggle('close'); 135 | e.preventDefault(); 136 | } 137 | }); 138 | } 139 | 140 | DropdownSelect.prototype.toggle = function( mode ) { 141 | if (mode) { 142 | if (mode == 'open') 143 | this.$element.addClass(this.options.open); 144 | else if (mode == 'close') { 145 | this.$element.removeClass(this.options.open); 146 | 147 | if ( this.options.livefilter ) { 148 | $('.live-filtering', this.structure.$select).liveFilter('clear'); 149 | } 150 | } 151 | } 152 | else 153 | { 154 | if(!this.$element.hasClass(this.options.open)) 155 | this.$element.addClass(this.options.open); 156 | else { 157 | this.$element.removeClass(this.options.open); 158 | 159 | if ( this.options.livefilter ) { 160 | $('.live-filtering', this.structure.$select).liveFilter('clear'); 161 | } 162 | } 163 | 164 | } 165 | } 166 | 167 | DropdownSelect.prototype.get = function() { 168 | return $(this.options.selected, this.$element); 169 | } 170 | 171 | DropdownSelect.prototype.select = function( item ) { 172 | if(this.structure.$current.length == 1) 173 | this.structure.$current.toggleClass('active'); 174 | 175 | this.structure.$selected = this.get(); 176 | this.structure.$selected.removeClass('selected'); 177 | item.addClass('selected'); 178 | 179 | this.updateDisplay('select',item); 180 | 181 | if ( this.options.filter != null) { 182 | var $toFilter = this.options.filter.split(' '); 183 | 184 | if ($.isArray($toFilter) && $toFilter.length > 0 ) { 185 | for(var i=0;i < $toFilter.length;i++) { 186 | var $this = $('#'+$toFilter[i]); 187 | $this.listFilter('filter',this.structure.$section,item.data('value')); 188 | } 189 | } 190 | } 191 | 192 | if (this.options.autoclose === true) { 193 | this.toggle('close'); 194 | } 195 | } 196 | 197 | DropdownSelect.prototype.clear = function(e) { 198 | if ( e != undefined ) 199 | e.preventDefault(); 200 | 201 | this.structure.$selected = this.get(); 202 | 203 | if ( this.structure.$selected.html() != undefined ) { 204 | this.structure.$selected.removeClass('selected'); 205 | 206 | this.updateDisplay('clear'); 207 | 208 | if ( this.options.filter != null) { 209 | var $toFilter = this.options.filter.split(' '); 210 | 211 | if ($.isArray($toFilter) && $toFilter.length > 0 ) { 212 | for(var i=0;i < $toFilter.length;i++) { 213 | var $this = $('#'+$toFilter[i]); 214 | $this.listFilter('filter',this.structure.$section); 215 | } 216 | } 217 | } 218 | } 219 | 220 | if (this.options.autoclose === true) { 221 | this.toggle('close'); 222 | } 223 | } 224 | 225 | DropdownSelect.prototype.refresh = function() { 226 | if (this.structure.$selected.data('value') != undefined) { 227 | this.updateDisplay('select'); 228 | } 229 | } 230 | 231 | DropdownSelect.prototype.reset = function() { 232 | this.structure = $.extend({}, this.parts()); 233 | this.init(); 234 | } 235 | 236 | DropdownSelect.prototype.empty = function() { 237 | this.structure.$items.first().parent().empty(); 238 | } 239 | 240 | DropdownSelect.prototype.updateDisplay = function( mode, selected ) { 241 | var e = $.Event('change.bs.dropdownselect'); 242 | 243 | if( mode == 'select') { 244 | this.structure.$clear.show(); 245 | this.structure.$input.val( selected.data('value') ).trigger('change'); 246 | this.structure.$input_id.val( selected.data('id') ).trigger('change'); 247 | this.structure.$display.html('' + selected.html() + '').addClass(this.options.filled); 248 | } 249 | 250 | if( mode == 'clear') { 251 | this.structure.$clear.hide(); 252 | this.structure.$input.val('').trigger('change'); 253 | this.structure.$input_id.val('').trigger('change'); 254 | this.structure.$display.html('' + this.structure.$placeholder.html() + '').removeClass(this.options.filled); 255 | } 256 | 257 | $('input[name="' + this.structure.$section + '_id"]').trigger(e); 258 | } 259 | 260 | 261 | // DROPDOWN SELECT PLUGIN DEFINITION 262 | // ================================= 263 | 264 | function Plugin() { 265 | var arg = arguments; 266 | return this.each(function () { 267 | var $this = $(this), 268 | data = $this.data('bs.dropdownselect'), 269 | method = arg[0]; 270 | 271 | if( typeof(method) == 'object' || !method ) { 272 | var options = typeof method == 'object' && method; 273 | if (!data) $this.data('bs.dropdownselect', (data = new DropdownSelect(this, options))); 274 | } else { 275 | if (data[method]) { 276 | method = data[method]; 277 | arg = Array.prototype.slice.call(arg, 1); 278 | if(arg != null || arg != undefined || arg != []) method.apply(data, arg); 279 | } else { 280 | $.error( 'Method ' + method + ' does not exist on jQuery.DropdownSelect' ); 281 | return this; 282 | } 283 | } }) 284 | } 285 | 286 | var old = $.fn.bootstrapSelect 287 | 288 | $.fn.bootstrapSelect = Plugin 289 | $.fn.bootstrapSelect.Constructor = DropdownSelect 290 | 291 | // DROPDOWN SELECT NO CONFLICT 292 | // ======================== 293 | 294 | $.fn.toggle.noConflict = function () { 295 | $.fn.bootstrapSelect = old 296 | return this 297 | } 298 | 299 | // DROPDOWN SELECT DATA-API 300 | // ===================== 301 | 302 | $(function() { 303 | $('.selectpicker').bootstrapSelect(); 304 | }); 305 | }(jQuery); --------------------------------------------------------------------------------