selectSrch.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. /*
  2. Version: 3.4.3 Timestamp: Tue Sep 17 06:47:14 PDT 2013
  3. Modifed by keenthemes for Metronic theme integration.
  4. */
  5. .sp-select-srch{
  6. background-color: #FFF;
  7. background-image: none;
  8. /*border: 1px solid #e5e6e7;*/
  9. border-radius: 1px;
  10. color: inherit;
  11. display: block;
  12. /*padding: 6px 12px;*/
  13. transition: border-color .15s ease-in-out 0s,box-shadow .15s ease-in-out 0s;
  14. width: 100%;
  15. font-size: 14px;
  16. text-align:left;
  17. }
  18. /*sp-selSrch��sp-select-search����д*/
  19. .sp-selSrch-container.form-control {
  20. height: auto !important;
  21. padding: 0 !important;
  22. border: 0 !important;
  23. }
  24. .sp-selSrch-container {
  25. margin: 0;
  26. position: relative;
  27. display: inline-block;
  28. /* inline-block for ie7 */
  29. zoom: 1;
  30. *display: inline;
  31. vertical-align: middle;
  32. }
  33. .sp-selSrch-container,
  34. .sp-selSrch-drop,
  35. .sp-selSrch-search,
  36. .sp-selSrch-search input {
  37. /*
  38. Force border-box so that % widths fit the parent
  39. container without overlap because of margin/padding.
  40. More Info : http://www.quirksmode.org/css/box.html
  41. */
  42. -webkit-box-sizing: border-box;
  43. /* webkit */
  44. -moz-box-sizing: border-box;
  45. /* firefox */
  46. box-sizing: border-box;
  47. /* css3 */
  48. }
  49. .sp-selSrch-container .sp-selSrch-choice {
  50. display: block;
  51. height: 34px;
  52. padding: 2px 0 0 8px;
  53. overflow: hidden;
  54. position: relative;
  55. border: 1px solid #e5e5e5;
  56. white-space: nowrap;
  57. line-height: 26px;
  58. color: #444;
  59. text-decoration: none;
  60. border-radius: 4px;
  61. background-clip: padding-box;
  62. -webkit-touch-callout: none;
  63. -webkit-user-select: none;
  64. -moz-user-select: none;
  65. -ms-user-select: none;
  66. user-select: none;
  67. background-color: #fff;
  68. }
  69. .sp-selSrch-container.sp-selSrch-drop-above .sp-selSrch-choice {
  70. border-bottom-color: #aaa;
  71. }
  72. .sp-selSrch-container.sp-selSrch-allowclear .sp-selSrch-choice .sp-selSrch-chosen {
  73. margin-right: 42px;
  74. }
  75. .sp-selSrch-container .sp-selSrch-choice > .sp-selSrch-chosen {
  76. margin-right: 26px;
  77. display: block;
  78. overflow: hidden;
  79. white-space: nowrap;
  80. text-overflow: ellipsis;
  81. }
  82. .sp-selSrch-container .sp-selSrch-choice abbr {
  83. display: none;
  84. width: 12px;
  85. height: 12px;
  86. position: absolute;
  87. right: 24px;
  88. top: 8px;
  89. font-size: 1px;
  90. text-decoration: none;
  91. border: 0;
  92. background: url('sp-selSrch.png') right top no-repeat;
  93. cursor: pointer;
  94. outline: 0;
  95. }
  96. .sp-selSrch-container.sp-selSrch-allowclear .sp-selSrch-choice abbr {
  97. display: inline-block;
  98. }
  99. .sp-selSrch-container .sp-selSrch-choice abbr:hover {
  100. background-position: right -11px;
  101. cursor: pointer;
  102. }
  103. .sp-selSrch-drop-mask {
  104. border: 0;
  105. margin: 0;
  106. padding: 0;
  107. position: fixed;
  108. left: 0;
  109. top: 0;
  110. min-height: 100%;
  111. min-width: 100%;
  112. height: auto;
  113. width: auto;
  114. opacity: 0;
  115. z-index: 9990;
  116. /* styles required for IE to work */
  117. background-color: #fff;
  118. filter: alpha(opacity=0);
  119. }
  120. .sp-selSrch-drop {
  121. width: 100%;
  122. margin-top: -1px;
  123. position: absolute;
  124. z-index: 9991;
  125. top: 100%;
  126. background: #fff;
  127. color: #000;
  128. border: 1px solid #e5e5e5;
  129. border-top: 0;
  130. }
  131. .sp-selSrch-drop-auto-width {
  132. border-top: 1px solid #e5e5e5;
  133. width: auto;
  134. }
  135. .sp-selSrch-drop-auto-width .sp-selSrch-search {
  136. padding-top: 4px;
  137. }
  138. .sp-selSrch-drop.sp-selSrch-drop-above {
  139. margin-top: 1px;
  140. border-top: 1px solid #e5e5e5;
  141. border-bottom: 0;
  142. }
  143. .sp-selSrch-drop-active {
  144. border: 1px solid #999999;
  145. border-top: none;
  146. }
  147. .sp-selSrch-drop.sp-selSrch-drop-above.sp-selSrch-drop-active {
  148. border-top: 1px solid #999999;
  149. }
  150. .sp-selSrch-container .sp-selSrch-choice .sp-selSrch-arrow {
  151. display: inline-block;
  152. width: 18px;
  153. height: 100%;
  154. position: absolute;
  155. right: 0;
  156. top: 0;
  157. border-left: 1px solid #e5e5e5;
  158. border-radius: 0 4px 4px 0;
  159. background-clip: padding-box;
  160. background: transparent;
  161. }
  162. .sp-selSrch-container .sp-selSrch-choice .sp-selSrch-arrow b {
  163. display: block;
  164. width: 100%;
  165. height: 100%;
  166. background: url('sp-selSrch.png') no-repeat 0 1px;
  167. }
  168. .sp-selSrch-search {
  169. display: inline-block;
  170. width: 100%;
  171. min-height: 26px;
  172. margin: 0;
  173. padding-left: 4px;
  174. padding-right: 4px;
  175. position: relative;
  176. z-index: 10000;
  177. white-space: nowrap;
  178. }
  179. .sp-selSrch-search input {
  180. width: 100%;
  181. margin: 0;
  182. outline: 0;
  183. border: 1px solid #e5e5e5;
  184. webkit-appearance: none !important;
  185. color: #333333;
  186. outline: 0;
  187. height: auto !important;
  188. min-height: 26px;
  189. padding: 6px 6px !important;
  190. line-height: 20px;
  191. font-size: 14px;
  192. font-weight: normal;
  193. vertical-align: top;
  194. background-color: #ffffff;
  195. filter: none !important;
  196. -webkit-box-shadow: none !important;
  197. -moz-box-shadow: none !important;
  198. box-shadow: none !important;
  199. }
  200. .sp-selSrch-drop.sp-selSrch-drop-above .sp-selSrch-search input {
  201. margin-top: 4px;
  202. }
  203. .sp-selSrch-search input.sp-selSrch-active {
  204. background: #fff;
  205. /*background: #fff url('sp-selSrch-spinner.gif') no-repeat 100%;*/
  206. }
  207. .sp-selSrch-container-active .sp-selSrch-choice,
  208. .sp-selSrch-container-active .sp-selSrch-choices {
  209. border: 1px solid #999999 !important;
  210. outline: none;
  211. }
  212. .sp-selSrch-dropdown-open .sp-selSrch-choice {
  213. border-bottom-color: transparent;
  214. background-color: #fff;
  215. }
  216. .sp-selSrch-dropdown-open.sp-selSrch-drop-above .sp-selSrch-choice,
  217. .sp-selSrch-dropdown-open.sp-selSrch-drop-above .sp-selSrch-choices {
  218. border: 1px solid #999999;
  219. border-top-color: transparent;
  220. }
  221. .sp-selSrch-dropdown-open .sp-selSrch-choice .sp-selSrch-arrow {
  222. background: transparent;
  223. border-left: none;
  224. filter: none;
  225. }
  226. .sp-selSrch-dropdown-open .sp-selSrch-choice .sp-selSrch-arrow b {
  227. background-position: -18px 1px;
  228. }
  229. /* results */
  230. .sp-selSrch-results {
  231. max-height: 200px;
  232. padding: 0 0 0 4px;
  233. margin: 4px 4px 4px 0;
  234. position: relative;
  235. overflow-x: hidden;
  236. overflow-y: auto;
  237. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  238. }
  239. .sp-selSrch-results ul.sp-selSrch-result-sub {
  240. margin: 0;
  241. padding-left: 0;
  242. }
  243. .sp-selSrch-results ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  244. padding-left: 20px
  245. }
  246. .sp-selSrch-results ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  247. padding-left: 40px
  248. }
  249. .sp-selSrch-results ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  250. padding-left: 60px
  251. }
  252. .sp-selSrch-results ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  253. padding-left: 80px
  254. }
  255. .sp-selSrch-results ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  256. padding-left: 100px
  257. }
  258. .sp-selSrch-results ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  259. padding-left: 110px
  260. }
  261. .sp-selSrch-results ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub ul.sp-selSrch-result-sub > li .sp-selSrch-result-label {
  262. padding-left: 120px
  263. }
  264. .sp-selSrch-results li {
  265. list-style: none;
  266. display: list-item;
  267. background-image: none;
  268. }
  269. .sp-selSrch-results li.sp-selSrch-result-with-children > .sp-selSrch-result-label {
  270. font-weight: bold;
  271. }
  272. .sp-selSrch-results .sp-selSrch-result-label {
  273. padding: 3px 7px 4px;
  274. margin: 0;
  275. cursor: pointer;
  276. min-height: 1em;
  277. -webkit-touch-callout: none;
  278. -webkit-user-select: none;
  279. -moz-user-select: none;
  280. -ms-user-select: none;
  281. user-select: none;
  282. }
  283. .sp-selSrch-results .sp-selSrch-highlighted {
  284. background: #eee;
  285. color: #333;
  286. }
  287. .sp-selSrch-results li em {
  288. background: #eee;
  289. font-style: normal;
  290. }
  291. .sp-selSrch-results .sp-selSrch-highlighted em {
  292. background: transparent;
  293. }
  294. .sp-selSrch-results .sp-selSrch-highlighted ul {
  295. background: #fff;
  296. color: #000;
  297. }
  298. .sp-selSrch-results .sp-selSrch-no-results,
  299. .sp-selSrch-results .sp-selSrch-searching,
  300. .sp-selSrch-results .sp-selSrch-selection-limit {
  301. background: #f4f4f4;
  302. display: list-item;
  303. }
  304. /*
  305. disabled look for disabled choices in the results dropdown
  306. */
  307. .sp-selSrch-results .sp-selSrch-disabled.sp-selSrch-highlighted {
  308. color: #666;
  309. background: #f4f4f4;
  310. display: list-item;
  311. cursor: default;
  312. }
  313. .sp-selSrch-results .sp-selSrch-disabled {
  314. background: #f4f4f4;
  315. display: list-item;
  316. cursor: default;
  317. }
  318. .sp-selSrch-results .sp-selSrch-selected {
  319. display: none;
  320. }
  321. .sp-selSrch-more-results.sp-selSrch-active {
  322. background: #f4f4f4 url('sp-selSrch-spinner.gif') no-repeat 100%;
  323. }
  324. .sp-selSrch-more-results {
  325. background: #f4f4f4;
  326. display: list-item;
  327. }
  328. /* disabled styles */
  329. .sp-selSrch-container.sp-selSrch-container-disabled .sp-selSrch-choice {
  330. background-color: #f4f4f4;
  331. background-image: none;
  332. border: 1px solid #ddd;
  333. cursor: default;
  334. }
  335. .sp-selSrch-container.sp-selSrch-container-disabled .sp-selSrch-choice .sp-selSrch-arrow {
  336. background-color: #f4f4f4;
  337. background-image: none;
  338. border-left: 0;
  339. }
  340. .sp-selSrch-container.sp-selSrch-container-disabled .sp-selSrch-choice abbr {
  341. display: none;
  342. }
  343. /* multiselect */
  344. .sp-selSrch-container-multi .sp-selSrch-choices {
  345. height: auto !important;
  346. height: 1%;
  347. margin: 0;
  348. padding: 0;
  349. position: relative;
  350. border: 1px solid #e5e5e5;
  351. cursor: text;
  352. overflow: hidden;
  353. background-color: #fff;
  354. }
  355. .sp-selSrch-locked {
  356. padding: 3px 5px 3px 5px !important;
  357. }
  358. .sp-selSrch-container-multi .sp-selSrch-choices {
  359. min-height: 26px;
  360. }
  361. .sp-selSrch-container-multi.sp-selSrch-dropdown-open .sp-selSrch-choices,
  362. .sp-selSrch-container-multi.sp-selSrch-container-active .sp-selSrch-choices {
  363. border: 1px solid #999999 !important;
  364. outline: none;
  365. }
  366. .sp-selSrch-container-multi .sp-selSrch-choices li {
  367. float: left;
  368. list-style: none;
  369. }
  370. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-field {
  371. margin: 0;
  372. padding: 0;
  373. white-space: nowrap;
  374. }
  375. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-field input {
  376. outline: 0;
  377. height: auto;
  378. /*min-height: 32px;*/
  379. padding: 6px 6px;
  380. line-height: 20px;
  381. font-size: 14px;
  382. font-weight: normal;
  383. vertical-align: top;
  384. font-size: 100%;
  385. color: #666;
  386. outline: 0;
  387. border: 0;
  388. -webkit-box-shadow: none;
  389. -moz-box-shadow: none;
  390. box-shadow: none;
  391. background: transparent !important;
  392. margin: 0;
  393. }
  394. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-field input.sp-selSrch-active {
  395. background: #fff url('sp-selSrch-spinner.gif') no-repeat 100% !important;
  396. }
  397. .sp-selSrch-default {
  398. color: #999 !important;
  399. }
  400. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-choice {
  401. padding: 3px 5px 3px 18px;
  402. margin: 6px 0 3px 5px;
  403. position: relative;
  404. line-height: 13px;
  405. color: #333;
  406. cursor: default;
  407. border: 1px solid #e5e5e5;
  408. -webkit-background-clip: padding-box;
  409. -moz-background-clip: padding;
  410. background-clip: padding-box;
  411. -webkit-touch-callout: none;
  412. -webkit-user-select: none;
  413. -moz-user-select: none;
  414. -ms-user-select: none;
  415. user-select: none;
  416. background-color: #ffffff;
  417. }
  418. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-choice .sp-selSrch-chosen {
  419. cursor: default;
  420. }
  421. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-choice-focus {
  422. background: #ffffff;
  423. }
  424. .sp-selSrch-search-choice-close {
  425. display: block;
  426. width: 12px;
  427. height: 13px;
  428. position: absolute;
  429. right: 3px;
  430. top: 4px;
  431. font-size: 1px;
  432. outline: none;
  433. background: url('sp-selSrch.png') right top no-repeat;
  434. }
  435. .sp-selSrch-container-multi .sp-selSrch-search-choice-close {
  436. left: 3px;
  437. }
  438. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-choice .sp-selSrch-search-choice-close:hover {
  439. background-position: right -11px;
  440. }
  441. .sp-selSrch-container-multi .sp-selSrch-choices .sp-selSrch-search-choice-focus .sp-selSrch-search-choice-close {
  442. background-position: right -11px;
  443. }
  444. /* disabled styles */
  445. .sp-selSrch-container-multi.sp-selSrch-container-disabled .sp-selSrch-choices {
  446. background-color: #f4f4f4;
  447. background-image: none;
  448. border: 1px solid #ddd;
  449. cursor: default;
  450. }
  451. .sp-selSrch-container-multi.sp-selSrch-container-disabled .sp-selSrch-choices .sp-selSrch-search-choice {
  452. padding: 3px 5px 3px 5px;
  453. border: 1px solid #ddd;
  454. background-image: none;
  455. background-color: #f4f4f4;
  456. }
  457. .sp-selSrch-container-multi.sp-selSrch-container-disabled .sp-selSrch-choices .sp-selSrch-search-choice .sp-selSrch-search-choice-close {
  458. display: none;
  459. background: none;
  460. }
  461. /* end multiselect */
  462. .sp-selSrch-result-selectable .sp-selSrch-match,
  463. .sp-selSrch-result-unselectable .sp-selSrch-match {
  464. text-decoration: underline;
  465. }
  466. .sp-selSrch-offscreen, .sp-selSrch-offscreen:focus {
  467. clip: rect(0 0 0 0) !important;
  468. width: 1px !important;
  469. height: 1px !important;
  470. border: 0 !important;
  471. margin: 0 !important;
  472. padding: 0 !important;
  473. overflow: hidden !important;
  474. position: absolute !important;
  475. outline: 0 !important;
  476. left: 0px !important;
  477. top: 0px !important;
  478. }
  479. .sp-selSrch-display-none {
  480. display: none;
  481. }
  482. .sp-selSrch-measure-scrollbar {
  483. position: absolute;
  484. top: -10000px;
  485. left: -10000px;
  486. width: 100px;
  487. height: 100px;
  488. overflow: scroll;
  489. }
  490. /* Retina-ize icons */
  491. @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
  492. .sp-selSrch-search input, .sp-selSrch-search-choice-close, .sp-selSrch-container .sp-selSrch-choice abbr, .sp-selSrch-container .sp-selSrch-choice .sp-selSrch-arrow b {
  493. background-image: url('select2x2.png') !important;
  494. background-repeat: no-repeat !important;
  495. background-size: 60px 40px !important;
  496. }
  497. .sp-selSrch-search input {
  498. background-position: 100% -21px !important;
  499. }
  500. }
  501. /* Fix z-index when sp-selSrch opened in modals*/
  502. .modal-open .sp-selSrch-drop-mask {
  503. z-index: 10101;
  504. }
  505. .modal-open .sp-selSrch-drop {
  506. z-index: 10102;
  507. }
  508. .modal-open .sp-selSrch-search {
  509. z-index: 10102;
  510. }