Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

select2.css 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. .select2-container {
  2. box-sizing: border-box;
  3. display: inline-block;
  4. margin: 0;
  5. position: relative;
  6. vertical-align: middle;
  7. }
  8. .select2-container .select2-selection--single {
  9. box-sizing: border-box;
  10. cursor: pointer;
  11. display: block;
  12. height: 38px !important;
  13. user-select: none;
  14. -webkit-user-select: none;
  15. }
  16. .select2-container .select2-selection--single .select2-selection__rendered {
  17. display: block;
  18. padding-left: 8px;
  19. padding-right: 20px;
  20. overflow: hidden;
  21. text-overflow: ellipsis;
  22. white-space: nowrap;
  23. }
  24. .select2-container .select2-selection--single .select2-selection__clear {
  25. background-color: transparent;
  26. border: none;
  27. font-size: 1em;
  28. }
  29. .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  30. padding-right: 8px;
  31. padding-left: 20px;
  32. }
  33. .select2-container .select2-selection--multiple {
  34. box-sizing: border-box;
  35. cursor: pointer;
  36. display: block;
  37. min-height: 32px;
  38. user-select: none;
  39. -webkit-user-select: none;
  40. }
  41. .select2-container .select2-selection--multiple .select2-selection__rendered {
  42. display: inline;
  43. list-style: none;
  44. padding: 0;
  45. }
  46. .select2-container .select2-selection--multiple .select2-selection__clear {
  47. background-color: transparent;
  48. border: none;
  49. font-size: 1em;
  50. }
  51. .select2-container .select2-search--inline .select2-search__field {
  52. box-sizing: border-box;
  53. border: none;
  54. font-size: 100%;
  55. margin-top: 5px;
  56. margin-left: 5px;
  57. padding: 0;
  58. max-width: 100%;
  59. resize: none;
  60. height: 18px;
  61. vertical-align: bottom;
  62. font-family: sans-serif;
  63. overflow: hidden;
  64. word-break: keep-all;
  65. }
  66. .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
  67. -webkit-appearance: none;
  68. }
  69. .select2-dropdown {
  70. background-color: white;
  71. border: 1px solid #aaa;
  72. border-radius: 4px;
  73. box-sizing: border-box;
  74. display: block;
  75. position: absolute;
  76. left: -100000px;
  77. width: 100%;
  78. z-index: 1051;
  79. }
  80. .select2-results {
  81. display: block;
  82. }
  83. .select2-results__options {
  84. list-style: none;
  85. margin: 0;
  86. padding: 0;
  87. }
  88. .select2-results__option {
  89. padding: 6px;
  90. user-select: none;
  91. -webkit-user-select: none;
  92. }
  93. .select2-results__option--selectable {
  94. cursor: pointer;
  95. }
  96. .select2-container--open .select2-dropdown {
  97. left: 0;
  98. }
  99. .select2-container--open .select2-dropdown--above {
  100. border-bottom: none;
  101. border-bottom-left-radius: 0;
  102. border-bottom-right-radius: 0;
  103. }
  104. .select2-container--open .select2-dropdown--below {
  105. border-top: none;
  106. border-top-left-radius: 0;
  107. border-top-right-radius: 0;
  108. }
  109. .select2-search--dropdown {
  110. display: block;
  111. padding: 4px;
  112. }
  113. .select2-search--dropdown .select2-search__field {
  114. padding: 4px;
  115. width: 100%;
  116. box-sizing: border-box;
  117. }
  118. .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
  119. -webkit-appearance: none;
  120. }
  121. .select2-search--dropdown.select2-search--hide {
  122. display: none;
  123. }
  124. .select2-close-mask {
  125. border: 0;
  126. margin: 0;
  127. padding: 0;
  128. display: block;
  129. position: fixed;
  130. left: 0;
  131. top: 0;
  132. min-height: 100%;
  133. min-width: 100%;
  134. height: auto;
  135. width: auto;
  136. opacity: 0;
  137. z-index: 99;
  138. background-color: #fff;
  139. filter: alpha(opacity=0);
  140. }
  141. .select2-hidden-accessible {
  142. border: 0 !important;
  143. clip: rect(0 0 0 0) !important;
  144. -webkit-clip-path: inset(50%) !important;
  145. clip-path: inset(50%) !important;
  146. height: 1px !important;
  147. overflow: hidden !important;
  148. padding: 0 !important;
  149. position: absolute !important;
  150. width: 1px !important;
  151. white-space: nowrap !important;
  152. }
  153. .select2-container--default .select2-selection--single {
  154. background-color: #fff;
  155. border: 1px solid #aaa;
  156. border-radius: 4px;
  157. }
  158. .select2-container--default .select2-selection--single .select2-selection__rendered {
  159. color: #444;
  160. line-height: 31px !important;
  161. }
  162. .select2-container--default .select2-selection--single .select2-selection__clear {
  163. cursor: pointer;
  164. float: right;
  165. font-weight: bold;
  166. height: 26px;
  167. margin-right: 20px;
  168. padding-right: 0px;
  169. }
  170. .select2-container--default .select2-selection--single .select2-selection__placeholder {
  171. color: #999;
  172. }
  173. .select2-container--default .select2-selection--single .select2-selection__arrow {
  174. height: 34px !important;
  175. position: absolute;
  176. top: 1px;
  177. right: 1px;
  178. width: 20px;
  179. }
  180. .select2-container--default .select2-selection--single .select2-selection__arrow b {
  181. border-color: #888 transparent transparent transparent;
  182. border-style: solid;
  183. border-width: 5px 4px 0 4px;
  184. height: 0;
  185. left: 50%;
  186. margin-left: -4px;
  187. margin-top: -2px;
  188. position: absolute;
  189. top: 50%;
  190. width: 0;
  191. }
  192. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  193. float: left;
  194. }
  195. .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  196. left: 1px;
  197. right: auto;
  198. }
  199. .select2-container--default.select2-container--disabled .select2-selection--single {
  200. background-color: #eee;
  201. cursor: default;
  202. }
  203. .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
  204. display: none;
  205. }
  206. .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  207. border-color: transparent transparent #888 transparent;
  208. border-width: 0 4px 5px 4px;
  209. }
  210. .select2-container--default .select2-selection--multiple {
  211. background-color: white;
  212. border: 1px solid #aaa;
  213. border-radius: 4px;
  214. cursor: text;
  215. padding-bottom: 5px;
  216. padding-right: 5px;
  217. position: relative;
  218. }
  219. .select2-container--default .select2-selection--multiple.select2-selection--clearable {
  220. padding-right: 25px;
  221. }
  222. .select2-container--default .select2-selection--multiple .select2-selection__clear {
  223. cursor: pointer;
  224. font-weight: bold;
  225. height: 20px;
  226. margin-right: 10px;
  227. margin-top: 5px;
  228. position: absolute;
  229. right: 0;
  230. padding: 1px;
  231. }
  232. .select2-container--default .select2-selection--multiple .select2-selection__choice {
  233. background-color: #e4e4e4;
  234. border: 1px solid #aaa;
  235. border-radius: 4px;
  236. box-sizing: border-box;
  237. display: inline-block;
  238. margin-left: 5px;
  239. margin-top: 5px;
  240. padding: 0;
  241. padding-left: 20px;
  242. position: relative;
  243. max-width: 100%;
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. vertical-align: bottom;
  247. white-space: nowrap;
  248. }
  249. .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  250. cursor: default;
  251. padding-left: 2px;
  252. padding-right: 5px;
  253. }
  254. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  255. background-color: transparent;
  256. border: none;
  257. border-right: 1px solid #aaa;
  258. border-top-left-radius: 4px;
  259. border-bottom-left-radius: 4px;
  260. color: #999;
  261. cursor: pointer;
  262. font-size: 1em;
  263. font-weight: bold;
  264. padding: 0 4px;
  265. position: absolute;
  266. left: 0;
  267. top: 0;
  268. }
  269. .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
  270. background-color: #f1f1f1;
  271. color: #333;
  272. outline: none;
  273. }
  274. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  275. margin-left: 5px;
  276. margin-right: auto;
  277. }
  278. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  279. padding-left: 5px;
  280. padding-right: 2px;
  281. }
  282. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  283. border-left: 1px solid #aaa;
  284. border-right: none;
  285. border-top-left-radius: 0;
  286. border-bottom-left-radius: 0;
  287. border-top-right-radius: 4px;
  288. border-bottom-right-radius: 4px;
  289. }
  290. .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
  291. float: left;
  292. margin-left: 10px;
  293. margin-right: auto;
  294. }
  295. .select2-container--default.select2-container--focus .select2-selection--multiple {
  296. border: solid black 1px;
  297. outline: 0;
  298. }
  299. .select2-container--default.select2-container--disabled .select2-selection--multiple {
  300. background-color: #eee;
  301. cursor: default;
  302. }
  303. .select2-container--default.select2-container--disabled .select2-selection__choice__remove {
  304. display: none;
  305. }
  306. .select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
  307. border-top-left-radius: 0;
  308. border-top-right-radius: 0;
  309. }
  310. .select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  311. border-bottom-left-radius: 0;
  312. border-bottom-right-radius: 0;
  313. }
  314. .select2-container--default .select2-search--dropdown .select2-search__field {
  315. border: 1px solid #aaa;
  316. }
  317. .select2-container--default .select2-search--inline .select2-search__field {
  318. background: transparent;
  319. border: none;
  320. outline: 0;
  321. box-shadow: none;
  322. -webkit-appearance: textfield;
  323. }
  324. .select2-container--default .select2-results > .select2-results__options {
  325. max-height: 200px;
  326. overflow-y: auto;
  327. }
  328. .select2-container--default .select2-results__option .select2-results__option {
  329. padding-left: 1em;
  330. }
  331. .select2-container--default .select2-results__option .select2-results__option .select2-results__group {
  332. padding-left: 0;
  333. }
  334. .select2-container--default .select2-results__option .select2-results__option .select2-results__option {
  335. margin-left: -1em;
  336. padding-left: 2em;
  337. }
  338. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  339. margin-left: -2em;
  340. padding-left: 3em;
  341. }
  342. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  343. margin-left: -3em;
  344. padding-left: 4em;
  345. }
  346. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  347. margin-left: -4em;
  348. padding-left: 5em;
  349. }
  350. .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
  351. margin-left: -5em;
  352. padding-left: 6em;
  353. }
  354. .select2-container--default .select2-results__option--group {
  355. padding: 0;
  356. }
  357. .select2-container--default .select2-results__option--disabled {
  358. color: #999;
  359. }
  360. .select2-container--default .select2-results__option--selected {
  361. background-color: #ddd;
  362. }
  363. .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  364. background-color: #5897fb;
  365. color: white;
  366. }
  367. .select2-container--default .select2-results__group {
  368. cursor: default;
  369. display: block;
  370. padding: 6px;
  371. }
  372. .select2-container--classic .select2-selection--single {
  373. background-color: #f7f7f7;
  374. border: 1px solid #aaa;
  375. border-radius: 4px;
  376. outline: 0;
  377. background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
  378. background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
  379. background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
  380. background-repeat: repeat-x;
  381. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
  382. }
  383. .select2-container--classic .select2-selection--single:focus {
  384. border: 1px solid #5897fb;
  385. }
  386. .select2-container--classic .select2-selection--single .select2-selection__rendered {
  387. color: #444;
  388. line-height: 38px !important;
  389. }
  390. .select2-container--classic .select2-selection--single .select2-selection__clear {
  391. cursor: pointer;
  392. float: right;
  393. font-weight: bold;
  394. height: 26px;
  395. margin-right: 20px;
  396. }
  397. .select2-container--classic .select2-selection--single .select2-selection__placeholder {
  398. color: #999;
  399. }
  400. .select2-container--classic .select2-selection--single .select2-selection__arrow {
  401. background-color: #ddd;
  402. border: none;
  403. border-left: 1px solid #aaa;
  404. border-top-right-radius: 4px;
  405. border-bottom-right-radius: 4px;
  406. height: 26px;
  407. position: absolute;
  408. top: 1px;
  409. right: 1px;
  410. width: 20px;
  411. background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  412. background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
  413. background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
  414. background-repeat: repeat-x;
  415. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0);
  416. }
  417. .select2-container--classic .select2-selection--single .select2-selection__arrow b {
  418. border-color: #888 transparent transparent transparent;
  419. border-style: solid;
  420. border-width: 5px 4px 0 4px;
  421. height: 0;
  422. left: 50%;
  423. margin-left: -4px;
  424. margin-top: -2px;
  425. position: absolute;
  426. top: 50%;
  427. width: 0;
  428. }
  429. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
  430. float: left;
  431. }
  432. .select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  433. border: none;
  434. border-right: 1px solid #aaa;
  435. border-radius: 0;
  436. border-top-left-radius: 4px;
  437. border-bottom-left-radius: 4px;
  438. left: 1px;
  439. right: auto;
  440. }
  441. .select2-container--classic.select2-container--open .select2-selection--single {
  442. border: 1px solid #5897fb;
  443. }
  444. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
  445. background: transparent;
  446. border: none;
  447. }
  448. .select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
  449. border-color: transparent transparent #888 transparent;
  450. border-width: 0 4px 5px 4px;
  451. }
  452. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
  453. border-top: none;
  454. border-top-left-radius: 0;
  455. border-top-right-radius: 0;
  456. background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
  457. background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
  458. background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
  459. background-repeat: repeat-x;
  460. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0);
  461. }
  462. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
  463. border-bottom: none;
  464. border-bottom-left-radius: 0;
  465. border-bottom-right-radius: 0;
  466. background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
  467. background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
  468. background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
  469. background-repeat: repeat-x;
  470. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0);
  471. }
  472. .select2-container--classic .select2-selection--multiple {
  473. background-color: white;
  474. border: 1px solid #aaa;
  475. border-radius: 4px;
  476. cursor: text;
  477. outline: 0;
  478. padding-bottom: 5px;
  479. padding-right: 5px;
  480. }
  481. .select2-container--classic .select2-selection--multiple:focus {
  482. border: 1px solid #5897fb;
  483. }
  484. .select2-container--classic .select2-selection--multiple .select2-selection__clear {
  485. display: none;
  486. }
  487. .select2-container--classic .select2-selection--multiple .select2-selection__choice {
  488. background-color: #e4e4e4;
  489. border: 1px solid #aaa;
  490. border-radius: 4px;
  491. display: inline-block;
  492. margin-left: 5px;
  493. margin-top: 5px;
  494. padding: 0;
  495. }
  496. .select2-container--classic .select2-selection--multiple .select2-selection__choice__display {
  497. cursor: default;
  498. padding-left: 2px;
  499. padding-right: 5px;
  500. }
  501. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
  502. background-color: transparent;
  503. border: none;
  504. border-top-left-radius: 4px;
  505. border-bottom-left-radius: 4px;
  506. color: #888;
  507. cursor: pointer;
  508. font-size: 1em;
  509. font-weight: bold;
  510. padding: 0 4px;
  511. }
  512. .select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
  513. color: #555;
  514. outline: none;
  515. }
  516. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
  517. margin-left: 5px;
  518. margin-right: auto;
  519. }
  520. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
  521. padding-left: 5px;
  522. padding-right: 2px;
  523. }
  524. .select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
  525. border-top-left-radius: 0;
  526. border-bottom-left-radius: 0;
  527. border-top-right-radius: 4px;
  528. border-bottom-right-radius: 4px;
  529. }
  530. .select2-container--classic.select2-container--open .select2-selection--multiple {
  531. border: 1px solid #5897fb;
  532. }
  533. .select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
  534. border-top: none;
  535. border-top-left-radius: 0;
  536. border-top-right-radius: 0;
  537. }
  538. .select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
  539. border-bottom: none;
  540. border-bottom-left-radius: 0;
  541. border-bottom-right-radius: 0;
  542. }
  543. .select2-container--classic .select2-search--dropdown .select2-search__field {
  544. border: 1px solid #aaa;
  545. outline: 0;
  546. }
  547. .select2-container--classic .select2-search--inline .select2-search__field {
  548. outline: 0;
  549. box-shadow: none;
  550. }
  551. .select2-container--classic .select2-dropdown {
  552. background-color: white;
  553. border: 1px solid transparent;
  554. }
  555. .select2-container--classic .select2-dropdown--above {
  556. border-bottom: none;
  557. }
  558. .select2-container--classic .select2-dropdown--below {
  559. border-top: none;
  560. }
  561. .select2-container--classic .select2-results > .select2-results__options {
  562. max-height: 200px;
  563. overflow-y: auto;
  564. }
  565. .select2-container--classic .select2-results__option--group {
  566. padding: 0;
  567. }
  568. .select2-container--classic .select2-results__option--disabled {
  569. color: grey;
  570. }
  571. .select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
  572. background-color: #3875d7;
  573. color: white;
  574. }
  575. .select2-container--classic .select2-results__group {
  576. cursor: default;
  577. display: block;
  578. padding: 6px;
  579. }
  580. .select2-container--classic.select2-container--open .select2-dropdown {
  581. border-color: #5897fb;
  582. }