jquery.searchableSelect.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. Author: David Qin
  3. E-mail: david@hereapp.cn
  4. Date: 2014-11-05
  5. */
  6. .searchable-select-hide {
  7. display: none;
  8. }
  9. .searchable-select {
  10. display: inline-block;
  11. min-width: 200px;
  12. font-size: 14px;
  13. line-height: 1.428571429;
  14. color: #555;
  15. vertical-align: middle;
  16. position: relative;
  17. outline: none;
  18. }
  19. .searchable-select-holder{
  20. padding: 6px;
  21. background-color: #fff;
  22. background-image: none;
  23. border: 1px solid #ccc;
  24. border-radius: 4px;
  25. min-height: 30px;
  26. box-sizing: border-box;
  27. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  28. box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
  29. -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  30. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  31. }
  32. .searchable-select-caret {
  33. position: absolute;
  34. width: 0;
  35. height: 0;
  36. box-sizing: border-box;
  37. border-color: black transparent transparent transparent;
  38. top: 0;
  39. bottom: 0;
  40. border-style: solid;
  41. border-width: 5px;
  42. margin: auto;
  43. right: 10px;
  44. }
  45. .searchable-select-dropdown {
  46. position: absolute;
  47. background-color: #fff;
  48. border: 1px solid #ccc;
  49. border-bottom-left-radius: 4px;
  50. border-bottom-right-radius: 4px;
  51. padding: 4px;
  52. border-top: none;
  53. top: 28px;
  54. left: 0;
  55. right: 0;
  56. z-index:9999;
  57. }
  58. .searchable-select-input {
  59. margin-top: 5px;
  60. border: 1px solid #ccc;
  61. outline: none;
  62. padding: 4px;
  63. width: 100%;
  64. box-sizing: border-box;
  65. width: 100%;
  66. }
  67. .searchable-scroll {
  68. margin-top: 4px;
  69. position: relative;
  70. }
  71. .searchable-scroll.has-privious {
  72. padding-top: 16px;
  73. }
  74. .searchable-scroll.has-next {
  75. padding-bottom: 16px;
  76. }
  77. .searchable-has-privious {
  78. top: 0;
  79. }
  80. .searchable-has-next {
  81. bottom: 0;
  82. }
  83. .searchable-has-privious, .searchable-has-next {
  84. height: 16px;
  85. left: 0;
  86. right: 0;
  87. position: absolute;
  88. text-align: center;
  89. z-index: 10;
  90. background-color: white;
  91. line-height: 8px;
  92. cursor: pointer;
  93. }
  94. .searchable-select-items {
  95. max-height: 400px;
  96. overflow-y: scroll;
  97. position: relative;
  98. }
  99. .searchable-select-items::-webkit-scrollbar {
  100. display: none;
  101. }
  102. .searchable-select-item {
  103. padding: 5px 5px;
  104. cursor: pointer;
  105. min-height: 30px;
  106. box-sizing: border-box;
  107. transition: all 1s ease 0s;
  108. }
  109. .searchable-select-item.hover {
  110. background: #555;
  111. color: white;
  112. }
  113. .searchable-select-item.selected {
  114. background: #28a4c9;
  115. color: white;
  116. }