selectize.css
374 lines
| 1 | /** |
| 2 | * selectize.css (v0.12.4) |
| 3 | * Copyright (c) 2013–2015 Brian Reavis & contributors |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this |
| 6 | * file except in compliance with the License. You may obtain a copy of the License at: |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software distributed under |
| 10 | * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF |
| 11 | * ANY KIND, either express or implied. See the License for the specific language |
| 12 | * governing permissions and limitations under the License. |
| 13 | * |
| 14 | * @author Brian Reavis <brian@thirdroute.com> |
| 15 | */ |
| 16 | |
| 17 | .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder { |
| 18 | visibility: visible !important; |
| 19 | background: #f2f2f2 !important; |
| 20 | background: rgba(0, 0, 0, 0.06) !important; |
| 21 | border: 0 none !important; |
| 22 | -webkit-box-shadow: inset 0 0 12px 4px #ffffff; |
| 23 | box-shadow: inset 0 0 12px 4px #ffffff; |
| 24 | } |
| 25 | .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { |
| 26 | content: '!'; |
| 27 | visibility: hidden; |
| 28 | } |
| 29 | .selectize-control.plugin-drag_drop .ui-sortable-helper { |
| 30 | -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); |
| 31 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); |
| 32 | } |
| 33 | .selectize-dropdown-header { |
| 34 | position: relative; |
| 35 | padding: 5px 8px; |
| 36 | border-bottom: 1px solid #d0d0d0; |
| 37 | background: #f8f8f8; |
| 38 | -webkit-border-radius: 3px 3px 0 0; |
| 39 | -moz-border-radius: 3px 3px 0 0; |
| 40 | border-radius: 3px 3px 0 0; |
| 41 | } |
| 42 | .selectize-dropdown-header-close { |
| 43 | position: absolute; |
| 44 | right: 8px; |
| 45 | top: 50%; |
| 46 | color: #303030; |
| 47 | opacity: 0.4; |
| 48 | margin-top: -12px; |
| 49 | line-height: 20px; |
| 50 | font-size: 20px !important; |
| 51 | } |
| 52 | .selectize-dropdown-header-close:hover { |
| 53 | color: #000000; |
| 54 | } |
| 55 | .selectize-dropdown.plugin-optgroup_columns .optgroup { |
| 56 | border-right: 1px solid #f2f2f2; |
| 57 | border-top: 0 none; |
| 58 | float: left; |
| 59 | -webkit-box-sizing: border-box; |
| 60 | -moz-box-sizing: border-box; |
| 61 | box-sizing: border-box; |
| 62 | } |
| 63 | .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { |
| 64 | border-right: 0 none; |
| 65 | } |
| 66 | .selectize-dropdown.plugin-optgroup_columns .optgroup:before { |
| 67 | display: none; |
| 68 | } |
| 69 | .selectize-dropdown.plugin-optgroup_columns .optgroup-header { |
| 70 | border-top: 0 none; |
| 71 | } |
| 72 | .selectize-control.plugin-remove_button [data-value] { |
| 73 | position: relative; |
| 74 | padding-right: 24px !important; |
| 75 | } |
| 76 | .selectize-control.plugin-remove_button [data-value] .remove { |
| 77 | z-index: 1; |
| 78 | /* fixes ie bug (see #392) */ |
| 79 | position: absolute; |
| 80 | opacity: 0.6; |
| 81 | top: 0; |
| 82 | right: 0; |
| 83 | bottom: 0; |
| 84 | width: 17px; |
| 85 | text-align: center; |
| 86 | font-weight: bold; |
| 87 | font-size: 13px; |
| 88 | color: inherit; |
| 89 | text-decoration: none; |
| 90 | vertical-align: middle; |
| 91 | display: inline-block; |
| 92 | padding: 1px 0 0 0; |
| 93 | border-left: 1px solid #d0d0d0; |
| 94 | -webkit-border-radius: 0 2px 2px 0; |
| 95 | -moz-border-radius: 0 2px 2px 0; |
| 96 | border-radius: 0 2px 2px 0; |
| 97 | -webkit-box-sizing: border-box; |
| 98 | -moz-box-sizing: border-box; |
| 99 | box-sizing: border-box; |
| 100 | } |
| 101 | .selectize-control.plugin-remove_button [data-value] .remove:hover { |
| 102 | background: rgba(0, 0, 0, 0.05); |
| 103 | } |
| 104 | .selectize-control.plugin-remove_button [data-value].active .remove { |
| 105 | border-left-color: #cacaca; |
| 106 | } |
| 107 | .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover { |
| 108 | background: none; |
| 109 | } |
| 110 | .selectize-control.plugin-remove_button .disabled [data-value] .remove { |
| 111 | border-left-color: #ffffff; |
| 112 | } |
| 113 | .selectize-control.plugin-remove_button .remove-single { |
| 114 | position: absolute; |
| 115 | right: 28px; |
| 116 | top: 6px; |
| 117 | font-size: 23px; |
| 118 | } |
| 119 | .selectize-control { |
| 120 | position: relative; |
| 121 | } |
| 122 | .selectize-dropdown, |
| 123 | .selectize-input, |
| 124 | .selectize-input input { |
| 125 | color: #303030; |
| 126 | font-family: inherit; |
| 127 | font-size: 13px; |
| 128 | line-height: 18px; |
| 129 | -webkit-font-smoothing: inherit; |
| 130 | } |
| 131 | .selectize-input, |
| 132 | .selectize-control.single .selectize-input.input-active { |
| 133 | background: #ffffff; |
| 134 | cursor: text; |
| 135 | display: inline-block; |
| 136 | } |
| 137 | .selectize-input { |
| 138 | border: 1px solid #d0d0d0; |
| 139 | padding: 8px 8px; |
| 140 | display: inline-block; |
| 141 | width: 100%; |
| 142 | overflow: hidden; |
| 143 | position: relative; |
| 144 | z-index: 1; |
| 145 | -webkit-box-sizing: border-box; |
| 146 | -moz-box-sizing: border-box; |
| 147 | box-sizing: border-box; |
| 148 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); |
| 149 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); |
| 150 | -webkit-border-radius: 3px; |
| 151 | -moz-border-radius: 3px; |
| 152 | border-radius: 3px; |
| 153 | } |
| 154 | .selectize-control.multi .selectize-input.has-items { |
| 155 | padding: 6px 8px 3px; |
| 156 | } |
| 157 | .selectize-input.full { |
| 158 | background-color: #ffffff; |
| 159 | } |
| 160 | .selectize-input.disabled, |
| 161 | .selectize-input.disabled * { |
| 162 | cursor: default !important; |
| 163 | } |
| 164 | .selectize-input.focus { |
| 165 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); |
| 166 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); |
| 167 | } |
| 168 | .selectize-input.dropdown-active { |
| 169 | -webkit-border-radius: 3px 3px 0 0; |
| 170 | -moz-border-radius: 3px 3px 0 0; |
| 171 | border-radius: 3px 3px 0 0; |
| 172 | } |
| 173 | .selectize-input > * { |
| 174 | vertical-align: baseline; |
| 175 | display: -moz-inline-stack; |
| 176 | display: inline-block; |
| 177 | zoom: 1; |
| 178 | *display: inline; |
| 179 | } |
| 180 | .selectize-control.multi .selectize-input > div { |
| 181 | cursor: pointer; |
| 182 | margin: 0 3px 3px 0; |
| 183 | padding: 2px 6px; |
| 184 | background: #f2f2f2; |
| 185 | color: #303030; |
| 186 | border: 0 solid #d0d0d0; |
| 187 | } |
| 188 | .selectize-control.multi .selectize-input > div.active { |
| 189 | background: #e8e8e8; |
| 190 | color: #303030; |
| 191 | border: 0 solid #cacaca; |
| 192 | } |
| 193 | .selectize-control.multi .selectize-input.disabled > div, |
| 194 | .selectize-control.multi .selectize-input.disabled > div.active { |
| 195 | color: #7d7d7d; |
| 196 | background: #ffffff; |
| 197 | border: 0 solid #ffffff; |
| 198 | } |
| 199 | .selectize-input > input { |
| 200 | display: inline-block !important; |
| 201 | padding: 0 !important; |
| 202 | min-height: 0 !important; |
| 203 | max-height: none !important; |
| 204 | max-width: 100% !important; |
| 205 | margin: 0 2px 0 0 !important; |
| 206 | text-indent: 0 !important; |
| 207 | border: 0 none !important; |
| 208 | background: none !important; |
| 209 | line-height: inherit !important; |
| 210 | -webkit-user-select: auto !important; |
| 211 | -webkit-box-shadow: none !important; |
| 212 | box-shadow: none !important; |
| 213 | } |
| 214 | .selectize-input > input::-ms-clear { |
| 215 | display: none; |
| 216 | } |
| 217 | .selectize-input > input:focus { |
| 218 | outline: none !important; |
| 219 | } |
| 220 | .selectize-input::after { |
| 221 | content: ' '; |
| 222 | display: block; |
| 223 | clear: left; |
| 224 | } |
| 225 | .selectize-input.dropdown-active::before { |
| 226 | content: ' '; |
| 227 | display: block; |
| 228 | position: absolute; |
| 229 | background: #f0f0f0; |
| 230 | height: 1px; |
| 231 | bottom: 0; |
| 232 | left: 0; |
| 233 | right: 0; |
| 234 | } |
| 235 | .selectize-dropdown { |
| 236 | position: absolute; |
| 237 | z-index: 10; |
| 238 | border: 1px solid #d0d0d0; |
| 239 | background: #ffffff; |
| 240 | margin: -1px 0 0 0; |
| 241 | border-top: 0 none; |
| 242 | -webkit-box-sizing: border-box; |
| 243 | -moz-box-sizing: border-box; |
| 244 | box-sizing: border-box; |
| 245 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 246 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 247 | -webkit-border-radius: 0 0 3px 3px; |
| 248 | -moz-border-radius: 0 0 3px 3px; |
| 249 | border-radius: 0 0 3px 3px; |
| 250 | } |
| 251 | .selectize-dropdown [data-selectable] { |
| 252 | cursor: pointer; |
| 253 | overflow: hidden; |
| 254 | } |
| 255 | .selectize-dropdown [data-selectable] .highlight { |
| 256 | background: rgba(125, 168, 208, 0.2); |
| 257 | -webkit-border-radius: 1px; |
| 258 | -moz-border-radius: 1px; |
| 259 | border-radius: 1px; |
| 260 | } |
| 261 | .selectize-dropdown [data-selectable], |
| 262 | .selectize-dropdown .optgroup-header { |
| 263 | padding: 5px 8px; |
| 264 | } |
| 265 | .selectize-dropdown .optgroup:first-child .optgroup-header { |
| 266 | border-top: 0 none; |
| 267 | } |
| 268 | .selectize-dropdown .optgroup-header { |
| 269 | color: #303030; |
| 270 | background: #ffffff; |
| 271 | cursor: default; |
| 272 | } |
| 273 | .selectize-dropdown .active { |
| 274 | background-color: #f5fafd; |
| 275 | color: #495c68; |
| 276 | } |
| 277 | .selectize-dropdown .active.create { |
| 278 | color: #495c68; |
| 279 | } |
| 280 | .selectize-dropdown .create { |
| 281 | color: rgba(48, 48, 48, 0.5); |
| 282 | } |
| 283 | .selectize-dropdown-content { |
| 284 | overflow-y: auto; |
| 285 | overflow-x: hidden; |
| 286 | max-height: 200px; |
| 287 | -webkit-overflow-scrolling: touch; |
| 288 | } |
| 289 | .selectize-control.single .selectize-input, |
| 290 | .selectize-control.single .selectize-input input { |
| 291 | cursor: pointer; |
| 292 | } |
| 293 | .selectize-control.single .selectize-input.input-active, |
| 294 | .selectize-control.single .selectize-input.input-active input { |
| 295 | cursor: text; |
| 296 | } |
| 297 | .selectize-control.single .selectize-input:after { |
| 298 | content: ' '; |
| 299 | display: block; |
| 300 | position: absolute; |
| 301 | top: 50%; |
| 302 | right: 15px; |
| 303 | margin-top: -3px; |
| 304 | width: 0; |
| 305 | height: 0; |
| 306 | border-style: solid; |
| 307 | border-width: 5px 5px 0 5px; |
| 308 | border-color: #808080 transparent transparent transparent; |
| 309 | } |
| 310 | .selectize-control.single .selectize-input.dropdown-active:after { |
| 311 | margin-top: -4px; |
| 312 | border-width: 0 5px 5px 5px; |
| 313 | border-color: transparent transparent #808080 transparent; |
| 314 | } |
| 315 | .selectize-control.rtl.single .selectize-input:after { |
| 316 | left: 15px; |
| 317 | right: auto; |
| 318 | } |
| 319 | .selectize-control.rtl .selectize-input > input { |
| 320 | margin: 0 4px 0 -2px !important; |
| 321 | } |
| 322 | .selectize-control .selectize-input.disabled { |
| 323 | opacity: 0.5; |
| 324 | background-color: #fafafa; |
| 325 | } |
| 326 | |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
| 332 | .selectize-control.multi .selectize-input > div, |
| 333 | .selectize-control.multi .selectize-input > div.active { |
| 334 | border-width: 1px; |
| 335 | border-radius: 3px; |
| 336 | } |
| 337 | |
| 338 | .compat-item tr.compat-field-selectize { |
| 339 | display: table-row; |
| 340 | overflow: auto; |
| 341 | } |
| 342 | |
| 343 | .compat-item tr.compat-field-selectize .selectize-input { |
| 344 | min-height: 38px; |
| 345 | } |
| 346 | |
| 347 | .compat-item tr.compat-field-selectize > td.field { |
| 348 | margin-bottom: 5px; |
| 349 | } |
| 350 | |
| 351 | .selectize-input .parent-label, |
| 352 | .selectize-dropdown-content .parent-label { |
| 353 | color: #BBBBBB; |
| 354 | } |
| 355 | |
| 356 | .media-modal-content .selectize-control.loading:before { |
| 357 | content: ""; |
| 358 | position: absolute; |
| 359 | display: inline; |
| 360 | background: url(/wp-admin/images/spinner.gif) no-repeat; |
| 361 | background-size: 20px 20px; |
| 362 | background-position: right; |
| 363 | opacity: 0.5; |
| 364 | filter: alpha(opacity=50); |
| 365 | width: 100%; |
| 366 | height: 100%; |
| 367 | margin-left: -5px; |
| 368 | } |
| 369 | |
| 370 | .media-modal-content .selectize-control.loading .selectize-input { |
| 371 | background: transparent; |
| 372 | } |
| 373 | |
| 374 |