|
| 1 | +/*! |
| 2 | + * ui-select |
| 3 | + * http://github.com/angular-ui/ui-select |
| 4 | + * Version: 0.8.3 - 2014-11-25T22:50:54.099Z |
| 5 | + * License: MIT |
| 6 | + */ |
| 7 | + |
| 8 | + |
| 9 | +/* Style when highlighting a search. */ |
| 10 | +.ui-select-highlight { |
| 11 | + font-weight: bold; |
| 12 | +} |
| 13 | + |
| 14 | +.ui-select-offscreen { |
| 15 | + clip: rect(0 0 0 0) !important; |
| 16 | + width: 1px !important; |
| 17 | + height: 1px !important; |
| 18 | + border: 0 !important; |
| 19 | + margin: 0 !important; |
| 20 | + padding: 0 !important; |
| 21 | + overflow: hidden !important; |
| 22 | + position: absolute !important; |
| 23 | + outline: 0 !important; |
| 24 | + left: 0px !important; |
| 25 | + top: 0px !important; |
| 26 | +} |
| 27 | + |
| 28 | +/* Select2 theme */ |
| 29 | + |
| 30 | +/* Mark invalid Select2 */ |
| 31 | +.ng-dirty.ng-invalid > a.select2-choice { |
| 32 | + border-color: #D44950; |
| 33 | +} |
| 34 | + |
| 35 | +.select2-result-single { |
| 36 | + padding-left: 0; |
| 37 | +} |
| 38 | + |
| 39 | +.select2-locked > .select2-search-choice-close{ |
| 40 | + display:none; |
| 41 | +} |
| 42 | + |
| 43 | +/* Selectize theme */ |
| 44 | + |
| 45 | +/* Helper class to show styles when focus */ |
| 46 | +.selectize-input.selectize-focus{ |
| 47 | + border-color: #007FBB !important; |
| 48 | +} |
| 49 | + |
| 50 | +/* Fix input width for Selectize theme */ |
| 51 | +.selectize-control > .selectize-input > input { |
| 52 | + width: 100%; |
| 53 | +} |
| 54 | + |
| 55 | +/* Fix dropdown width for Selectize theme */ |
| 56 | +.selectize-control > .selectize-dropdown { |
| 57 | + width: 100%; |
| 58 | +} |
| 59 | + |
| 60 | +/* Mark invalid Selectize */ |
| 61 | +.ng-dirty.ng-invalid > div.selectize-input { |
| 62 | + border-color: #D44950; |
| 63 | +} |
| 64 | + |
| 65 | + |
| 66 | +/* Bootstrap theme */ |
| 67 | + |
| 68 | +/* Helper class to show styles when focus */ |
| 69 | +.btn-default-focus { |
| 70 | + color: #333; |
| 71 | + background-color: #EBEBEB; |
| 72 | + border-color: #ADADAD; |
| 73 | + text-decoration: none; |
| 74 | + outline: 5px auto -webkit-focus-ring-color; |
| 75 | + outline-offset: -2px; |
| 76 | + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); |
| 77 | +} |
| 78 | + |
| 79 | + |
| 80 | +/* Fix Bootstrap dropdown position when inside a input-group */ |
| 81 | +.input-group > .ui-select-bootstrap.dropdown { |
| 82 | + /* Instead of relative */ |
| 83 | + position: static; |
| 84 | +} |
| 85 | + |
| 86 | +.input-group > .ui-select-bootstrap > input.ui-select-search.form-control { |
| 87 | + border-radius: 4px; /* FIXME hardcoded value :-/ */ |
| 88 | + border-top-right-radius: 0; |
| 89 | + border-bottom-right-radius: 0; |
| 90 | +} |
| 91 | + |
| 92 | +.ui-select-bootstrap > .ui-select-match { |
| 93 | + /* Instead of center because of .btn */ |
| 94 | + text-align: left; |
| 95 | +} |
| 96 | + |
| 97 | +.ui-select-bootstrap > .ui-select-match > .caret { |
| 98 | + position: absolute; |
| 99 | + top: 45%; |
| 100 | + right: 15px; |
| 101 | +} |
| 102 | + |
| 103 | +/* See Scrollable Menu with Bootstrap 3 http://stackoverflow.com/questions/19227496 */ |
| 104 | +.ui-select-bootstrap > .ui-select-choices { |
| 105 | + width: 100%; |
| 106 | + height: auto; |
| 107 | + max-height: 200px; |
| 108 | + overflow-x: hidden; |
| 109 | +} |
| 110 | + |
| 111 | +.ui-select-multiple.ui-select-bootstrap { |
| 112 | + height: auto; |
| 113 | + padding: .3em; |
| 114 | +} |
| 115 | + |
| 116 | +.ui-select-multiple.ui-select-bootstrap input.ui-select-search { |
| 117 | + background-color: transparent !important; /* To prevent double background when disabled */ |
| 118 | + border: none; |
| 119 | + outline: none; |
| 120 | + height: 1.666666em; |
| 121 | +} |
| 122 | + |
| 123 | +.ui-select-multiple.ui-select-bootstrap .ui-select-match .close { |
| 124 | + font-size: 1.6em; |
| 125 | + line-height: 0.75; |
| 126 | +} |
| 127 | + |
| 128 | +.ui-select-multiple.ui-select-bootstrap .ui-select-match-item{ |
| 129 | + outline: 0; |
| 130 | +} |
| 131 | + |
| 132 | +.ui-select-bootstrap .ui-select-choices-row>a { |
| 133 | + display: block; |
| 134 | + padding: 3px 20px; |
| 135 | + clear: both; |
| 136 | + font-weight: 400; |
| 137 | + line-height: 1.42857143; |
| 138 | + color: #333; |
| 139 | + white-space: nowrap; |
| 140 | +} |
| 141 | + |
| 142 | +.ui-select-bootstrap .ui-select-choices-row>a:hover, .ui-select-bootstrap .ui-select-choices-row>a:focus { |
| 143 | + text-decoration: none; |
| 144 | + color: #262626; |
| 145 | + background-color: #f5f5f5; |
| 146 | +} |
| 147 | + |
| 148 | +.ui-select-bootstrap .ui-select-choices-row.active>a { |
| 149 | + color: #fff; |
| 150 | + text-decoration: none; |
| 151 | + outline: 0; |
| 152 | + background-color: #428bca; |
| 153 | +} |
| 154 | + |
| 155 | +.ui-select-bootstrap .ui-select-choices-row.disabled>a, |
| 156 | +.ui-select-bootstrap .ui-select-choices-row.active.disabled>a { |
| 157 | + color: #777; |
| 158 | + cursor: not-allowed; |
| 159 | + background-color: #fff; |
| 160 | +} |
| 161 | + |
| 162 | +/* fix hide/show angular animation */ |
| 163 | +.ui-select-match.ng-hide-add, |
| 164 | +.ui-select-search.ng-hide-add { |
| 165 | + display: none !important; |
| 166 | +} |
| 167 | + |
| 168 | +/* Mark invalid Bootstrap */ |
| 169 | +.ui-select-bootstrap.ng-dirty.ng-invalid > button.btn.ui-select-match { |
| 170 | + border-color: #D44950; |
| 171 | +} |
0 commit comments