You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

608 lines
16 KiB

  1. /* -----------------------------------------
  2. Fancy select
  3. ----------------------------------------- */
  4. .select2-display-none,.select2-hidden-accessible{
  5. display: none;
  6. }
  7. div.fancy-select {
  8. position: relative;
  9. color: #333333;
  10. width: 100%;
  11. }
  12. div.fancy-select.disabled {
  13. opacity: 0.5;
  14. }
  15. div.fancy-select select:focus + div.trigger.open {
  16. box-shadow: none;
  17. }
  18. div.fancy-select div.trigger {
  19. border-radius: 3px;
  20. cursor: pointer;
  21. padding: 6px 12px;
  22. white-space: nowrap;
  23. text-overflow: ellipsis;
  24. position: relative;
  25. background: #ffffff;
  26. border: 1px solid #cacaca;
  27. color: #333333;
  28. transition: all;
  29. transition: all all ease-out;
  30. transition-duration: 0.4s;
  31. }
  32. div.fancy-select div.trigger:after {
  33. content: "";
  34. display: block;
  35. position: absolute;
  36. width: 0;
  37. height: 0;
  38. border: 5px solid transparent;
  39. border-top-color: #cacaca;
  40. top: 15px;
  41. right: 14px;
  42. }
  43. div.fancy-select div.trigger.open {
  44. background: #ffffff;
  45. border: 1px solid #cacaca;
  46. color: #333333;
  47. box-shadow: none;
  48. }
  49. div.fancy-select div.trigger.open:after {
  50. border-top-color: #cacaca;
  51. }
  52. div.fancy-select ul.options {
  53. list-style: none;
  54. margin: 0;
  55. padding: 0;
  56. position: absolute;
  57. top: 36px;
  58. left: 0;
  59. visibility: hidden;
  60. opacity: 0;
  61. z-index: 50;
  62. max-height: 200px;
  63. overflow: auto;
  64. background: #ffffff;
  65. border-radius: 3px;
  66. border: 1px solid #cacaca;
  67. min-width: 200px;
  68. width: 100%;
  69. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.175);
  70. transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
  71. -webkit-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
  72. -moz-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
  73. -ms-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
  74. -o-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
  75. }
  76. div.fancy-select ul.options.open {
  77. visibility: visible;
  78. top: 36px;
  79. opacity: 1;
  80. /* have to use a non-visibility transition to prevent this iOS issue (bug?): */
  81. /*http://stackoverflow.com/questions/10736478/css-animation-visibility-visible-works-on-chrome-and-safari-but-not-on-ios*/
  82. transition: opacity 300ms ease-out, top 300ms ease-out;
  83. -webkit-transition: opacity 300ms ease-out, top 300ms ease-out;
  84. -moz-transition: opacity 300ms ease-out, top 300ms ease-out;
  85. -ms-transition: opacity 300ms ease-out, top 300ms ease-out;
  86. -o-transition: opacity 300ms ease-out, top 300ms ease-out;
  87. }
  88. div.fancy-select ul.options.overflowing {
  89. top: auto;
  90. bottom: 36px;
  91. transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
  92. -webkit-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
  93. -moz-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
  94. -ms-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
  95. -o-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
  96. }
  97. div.fancy-select ul.options.overflowing.open {
  98. top: auto;
  99. bottom: 36px;
  100. transition: opacity 300ms ease-out, bottom 300ms ease-out;
  101. -webkit-transition: opacity 300ms ease-out, bottom 300ms ease-out;
  102. -moz-transition: opacity 300ms ease-out, bottom 300ms ease-out;
  103. -ms-transition: opacity 300ms ease-out, bottom 300ms ease-out;
  104. -o-transition: opacity 300ms ease-out, bottom 300ms ease-out;
  105. }
  106. div.fancy-select ul.options li {
  107. padding: 7px 12px;
  108. color: #333333;
  109. cursor: pointer;
  110. white-space: nowrap;
  111. transition: all 150ms ease-out;
  112. -webkit-transition: all 150ms ease-out;
  113. -moz-transition: all 150ms ease-out;
  114. -ms-transition: all 150ms ease-out;
  115. -o-transition: all 150ms ease-out;
  116. }
  117. div.fancy-select ul.options li i {
  118. margin-top: 2px;
  119. margin-right: 5px;
  120. }
  121. div.fancy-select ul.options li.selected {
  122. background: #f7f9fe;
  123. color: #333333;
  124. }
  125. div.fancy-select ul.options li.hover {
  126. color: #1a1a1a;
  127. background-color: #f7f9fe;
  128. }
  129. /* -----------------------------------------
  130. Select2
  131. ----------------------------------------- */
  132. .select2-container {
  133. margin: 0;
  134. position: relative;
  135. display: inline-block;
  136. /* inline-block for ie7 */
  137. zoom: 1;
  138. *display: inline;
  139. vertical-align: middle;
  140. }
  141. .select2-container.form-control {
  142. background: transparent;
  143. border: none;
  144. margin: 0;
  145. padding: 0;
  146. }
  147. .select2-container,
  148. .select2-drop,
  149. .select2-search,
  150. .select2-search input {
  151. /* webkit */
  152. /* firefox */
  153. box-sizing: border-box;
  154. /* css3 */
  155. }
  156. .select2-container .select2-choice {
  157. display: block;
  158. height: 34px;
  159. padding: 0 0 0 8px;
  160. overflow: hidden;
  161. position: relative;
  162. border: 1px solid #cacaca;
  163. white-space: nowrap;
  164. line-height: 34px;
  165. color: #333333;
  166. text-decoration: none;
  167. border-radius: 3px;
  168. background-clip: padding-box;
  169. -webkit-touch-callout: none;
  170. -webkit-user-select: none;
  171. -moz-user-select: none;
  172. -ms-user-select: none;
  173. user-select: none;
  174. background-color: #ffffff;
  175. }
  176. .select2-container.select2-drop-above .select2-choice {
  177. border-bottom-color: #cacaca;
  178. border-radius: 0 0 3px 3px;
  179. background-color: #ffffff;
  180. }
  181. .select2-container.select2-allowclear .select2-choice .select2-chosen {
  182. margin-right: 42px;
  183. }
  184. .select2-container .select2-choice > .select2-chosen {
  185. margin-right: 26px;
  186. display: block;
  187. overflow: hidden;
  188. white-space: nowrap;
  189. text-overflow: ellipsis;
  190. }
  191. .select2-container .select2-choice abbr {
  192. display: none;
  193. width: 12px;
  194. height: 12px;
  195. position: absolute;
  196. right: 24px;
  197. top: 10px;
  198. font-size: 1px;
  199. text-decoration: none;
  200. border: 0;
  201. background: url('../../plugins/forms/select2/select2.png') right top no-repeat;
  202. cursor: pointer;
  203. outline: 0;
  204. }
  205. .select2-container.select2-allowclear .select2-choice abbr {
  206. display: inline-block;
  207. }
  208. .select2-container .select2-choice abbr:hover {
  209. background-position: right -11px;
  210. cursor: pointer;
  211. }
  212. .select2-drop-mask {
  213. border: 0;
  214. margin: 0;
  215. padding: 0;
  216. position: fixed;
  217. left: 0;
  218. top: 0;
  219. min-height: 100%;
  220. min-width: 100%;
  221. height: auto;
  222. width: auto;
  223. opacity: 0;
  224. z-index: 9998;
  225. /* styles required for IE to work */
  226. background-color: #fff;
  227. filter: alpha(opacity=0);
  228. }
  229. .select2-drop {
  230. width: 100%;
  231. margin-top: -1px;
  232. position: absolute;
  233. z-index: 9999;
  234. top: 100%;
  235. background: #fff;
  236. color: #000;
  237. border: 1px solid #cacaca;
  238. border-top: 0;
  239. border-radius: 0 0 3px 3px;
  240. }
  241. .select2-drop-auto-width {
  242. border-top: 1px solid #cacaca;
  243. width: auto;
  244. }
  245. .select2-drop-auto-width .select2-search {
  246. padding-top: 4px;
  247. }
  248. .select2-drop.select2-drop-above {
  249. margin-top: -4px;
  250. border-top: 1px solid #cacaca;
  251. border-radius: 3px 3px 0 0;
  252. }
  253. .select2-drop-active {
  254. border: 1px solid #bdbdbd;
  255. border-top: none;
  256. }
  257. .select2-drop.select2-drop-above.select2-drop-active {
  258. border-top: 1px solid #bdbdbd;
  259. }
  260. .select2-container .select2-choice .select2-arrow {
  261. display: inline-block;
  262. width: 34px;
  263. height: 100%;
  264. position: absolute;
  265. right: 0;
  266. top: 0;
  267. border-left: 1px solid #cacaca;
  268. border-radius: 0 3px 3px 0;
  269. background-color: #ffffff;
  270. }
  271. .select2-container .select2-choice .select2-arrow b {
  272. display: block;
  273. width: 18px;
  274. height: 18px;
  275. margin-left: 7px;
  276. margin-top: 3px;
  277. background: url('../../plugins/forms/select2/select2.png') no-repeat 0 2px;
  278. }
  279. .select2-container .select2-choice:hover {
  280. border-color: #bdbdbd;
  281. }
  282. .select2-container .select2-choice:hover .select2-arrow {
  283. border-left-color: #bdbdbd;
  284. }
  285. .select2-search {
  286. display: inline-block;
  287. width: 100%;
  288. min-height: 26px;
  289. margin: 0;
  290. padding-left: 4px;
  291. padding-right: 4px;
  292. position: relative;
  293. z-index: 10000;
  294. white-space: nowrap;
  295. }
  296. .select2-search input {
  297. width: 100%;
  298. height: auto !important;
  299. min-height: 30px;
  300. padding: 4px 20px 4px 5px;
  301. margin: 0;
  302. outline: 0;
  303. font-family: sans-serif;
  304. font-size: 1em;
  305. border: 1px solid #cacaca;
  306. border-radius: 0;
  307. box-shadow: none;
  308. background: #ffffff url('../../plugins/forms/select2/select2.png') no-repeat 100% -22px;
  309. background: url('../../plugins/forms/select2/select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  310. }
  311. .select2-drop.select2-drop-above .select2-search input {
  312. margin-top: 4px;
  313. }
  314. .select2-search input.select2-active {
  315. background: #ffffff url('../../plugins/forms/select2/spinner.gif') no-repeat 100%;
  316. background: url('../../plugins/forms/select2/spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
  317. }
  318. .select2-container-active .select2-choice,
  319. .select2-container-active .select2-choices {
  320. border: 1px solid #cacaca;
  321. outline: none;
  322. }
  323. .select2-dropdown-open .select2-choice {
  324. border-bottom-color: transparent;
  325. border-bottom-left-radius: 0;
  326. border-bottom-right-radius: 0;
  327. background-color: #ffffff;
  328. }
  329. .select2-dropdown-open.select2-drop-above .select2-choice,
  330. .select2-dropdown-open.select2-drop-above .select2-choices {
  331. border: 1px solid #bdbdbd;
  332. border-top-color: transparent;
  333. background-color: #ffffff;
  334. }
  335. .select2-dropdown-open .select2-choice .select2-arrow {
  336. background: transparent;
  337. -webkit-filter: none;
  338. filter: none;
  339. border-left: 1px solid #bdbdbd;
  340. }
  341. .select2-dropdown-open .select2-choice .select2-arrow b {
  342. background-position: -18px 1px;
  343. }
  344. /* results */
  345. .select2-results {
  346. max-height: 200px;
  347. padding: 0 0 0 4px;
  348. margin: 4px 4px 4px 0;
  349. position: relative;
  350. overflow-x: hidden;
  351. overflow-y: auto;
  352. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  353. }
  354. .select2-results ul.select2-result-sub {
  355. margin: 0;
  356. padding-left: 0;
  357. }
  358. .select2-results ul.select2-result-sub > li .select2-result-label {
  359. padding-left: 20px;
  360. }
  361. .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
  362. padding-left: 40px;
  363. }
  364. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
  365. padding-left: 60px;
  366. }
  367. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
  368. padding-left: 80px;
  369. }
  370. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
  371. padding-left: 100px;
  372. }
  373. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
  374. padding-left: 110px;
  375. }
  376. .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label {
  377. padding-left: 120px;
  378. }
  379. .select2-results li {
  380. list-style: none;
  381. display: list-item;
  382. background-image: none;
  383. }
  384. .select2-results li.select2-result-with-children > .select2-result-label {
  385. font-weight: bold;
  386. }
  387. .select2-results .select2-result-label {
  388. padding: 3px 7px 4px;
  389. margin: 0;
  390. cursor: pointer;
  391. min-height: 1em;
  392. -webkit-touch-callout: none;
  393. -webkit-user-select: none;
  394. -moz-user-select: none;
  395. -ms-user-select: none;
  396. user-select: none;
  397. }
  398. .select2-results .select2-highlighted {
  399. background: #f7f9fe;
  400. color: #333333;
  401. }
  402. .select2-results li em {
  403. background: #feffde;
  404. font-style: normal;
  405. }
  406. .select2-results .select2-highlighted em {
  407. background: transparent;
  408. }
  409. .select2-results .select2-highlighted ul {
  410. background: #fff;
  411. color: #000;
  412. }
  413. .select2-results .select2-no-results,
  414. .select2-results .select2-searching,
  415. .select2-results .select2-selection-limit {
  416. background: #eeeeee;
  417. display: list-item;
  418. }
  419. /*
  420. disabled look for disabled choices in the results dropdown
  421. */
  422. .select2-results .select2-disabled.select2-highlighted {
  423. color: #666;
  424. background: #eeeeee;
  425. display: list-item;
  426. cursor: default;
  427. }
  428. .select2-results .select2-disabled {
  429. background: #eeeeee;
  430. display: list-item;
  431. cursor: default;
  432. }
  433. .select2-results .select2-selected {
  434. display: none;
  435. }
  436. .select2-more-results.select2-active {
  437. background: #eeeeee url('../../plugins/forms/select2/spinner.gif') no-repeat 100%;
  438. }
  439. .select2-more-results {
  440. background: #eeeeee;
  441. display: list-item;
  442. }
  443. /* disabled styles */
  444. .select2-container.select2-container-disabled .select2-choice {
  445. background-color: #eeeeee;
  446. background-image: none;
  447. border: 1px solid #cacaca;
  448. cursor: default;
  449. }
  450. .select2-container.select2-container-disabled .select2-choice .select2-arrow {
  451. background-color: #eeeeee;
  452. background-image: none;
  453. border-left: 0;
  454. }
  455. .select2-container.select2-container-disabled .select2-choice abbr {
  456. display: none;
  457. }
  458. /* multiselect */
  459. .select2-container-multi .select2-choices {
  460. height: auto !important;
  461. height: 1%;
  462. margin: 0;
  463. padding: 0;
  464. position: relative;
  465. border: 1px solid #cacaca;
  466. border-radius: 3px;
  467. cursor: text;
  468. overflow: hidden;
  469. background-color: #ffffff;
  470. }
  471. .select2-container-multi .select2-choices:hover,
  472. .select2-dropdown-open .select2-choices {
  473. border-color: #bdbdbd;
  474. }
  475. .select2-locked {
  476. padding: 3px 5px 3px 5px !important;
  477. }
  478. .select2-container-multi .select2-choices {
  479. min-height: 34px;
  480. }
  481. .select2-container-multi.select2-container-active .select2-choices {
  482. border: 1px solid #cacaca;
  483. outline: none;
  484. border-radius: 0 0 3px 3px;
  485. }
  486. .select2-container-multi .select2-choices li {
  487. float: left;
  488. list-style: none;
  489. }
  490. .select2-container-multi .select2-choices .select2-search-field {
  491. margin: 0;
  492. padding: 0;
  493. white-space: nowrap;
  494. }
  495. .select2-container-multi .select2-choices .select2-search-field input {
  496. padding: 5px;
  497. margin: 1px 0;
  498. font-family: sans-serif;
  499. font-size: 100%;
  500. color: #666;
  501. outline: 0;
  502. border: 0;
  503. box-shadow: none;
  504. background: transparent !important;
  505. }
  506. .select2-container-multi .select2-choices .select2-search-field input.select2-active {
  507. background: #ffffff url('../../plugins/forms/select2/spinner.gif') no-repeat 100% !important;
  508. }
  509. .select2-default {
  510. color: #999 !important;
  511. }
  512. .select2-container-multi .select2-choices .select2-search-choice {
  513. padding: 3px 5px 3px 18px;
  514. margin: 3px 0 3px 5px;
  515. position: relative;
  516. line-height: 1.42857143;
  517. color: #333;
  518. cursor: default;
  519. border: 1px solid #cacaca;
  520. border-radius: 3px;
  521. box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  522. background-clip: padding-box;
  523. -webkit-touch-callout: none;
  524. -webkit-user-select: none;
  525. -moz-user-select: none;
  526. -ms-user-select: none;
  527. user-select: none;
  528. background-color: #eeeeee;
  529. }
  530. .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
  531. cursor: default;
  532. }
  533. .select2-container-multi .select2-choices .select2-search-choice-focus {
  534. background: #d4d4d4;
  535. }
  536. .select2-search-choice-close {
  537. display: block;
  538. width: 16px;
  539. height: 16px;
  540. position: absolute;
  541. right: 3px;
  542. top: 6px;
  543. font-size: 1px;
  544. outline: none;
  545. background: url('../images/clear.png') right top no-repeat;
  546. }
  547. .select2-container-multi .select2-search-choice-close {
  548. left: 0px;
  549. }
  550. /*.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  551. background-position: right -11px;
  552. }
  553. .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
  554. background-position: right -11px;
  555. }*/
  556. /* disabled styles */
  557. .select2-container-multi.select2-container-disabled .select2-choices {
  558. background-color: #eeeeee;
  559. background-image: none;
  560. border: 1px solid #cacaca;
  561. cursor: default;
  562. }
  563. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
  564. padding: 3px 5px 3px 5px;
  565. border: 1px solid #cacaca;
  566. background-image: none;
  567. background-color: #f4f4f4;
  568. }
  569. .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close {
  570. display: none;
  571. background: none;
  572. }
  573. .select2-drop-multi.select2-drop-above {
  574. margin-top: 0px;
  575. margin-bottom: -1px;
  576. }
  577. /* end multiselect */
  578. .select2-result-selectable .select2-match,
  579. .select2-result-unselectable .select2-match {
  580. text-decoration: underline;
  581. }
  582. .select2-offscreen,
  583. .select2-offscreen:focus {
  584. clip: rect(0 0 0 0) !important;
  585. width: 1px !important;
  586. height: 1px !important;
  587. border: 0 !important;
  588. margin: 0 !important;
  589. padding: 0 !important;
  590. overflow: hidden !important;
  591. position: absolute !important;
  592. outline: 0 !important;
  593. left: 0px !important;
  594. top: 0px !important;
  595. }
  596. .select2-display-none {
  597. display: none;
  598. }
  599. .select2-measure-scrollbar {
  600. position: absolute;
  601. top: -10000px;
  602. left: -10000px;
  603. width: 100px;
  604. height: 100px;
  605. overflow: scroll;
  606. }