jquery.searchableSelect.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. }
  57. .searchable-select-input {
  58. margin-top: 5px;
  59. border: 1px solid #ccc;
  60. outline: none;
  61. padding: 4px;
  62. width: 100%;
  63. box-sizing: border-box;
  64. width: 100%;
  65. }
  66. .searchable-scroll {
  67. margin-top: 4px;
  68. position: relative;
  69. }
  70. .searchable-scroll.has-privious {
  71. padding-top: 16px;
  72. }
  73. .searchable-scroll.has-next {
  74. padding-bottom: 16px;
  75. }
  76. .searchable-has-privious {
  77. top: 0;
  78. }
  79. .searchable-has-next {
  80. bottom: 0;
  81. }
  82. .searchable-has-privious, .searchable-has-next {
  83. height: 16px;
  84. left: 0;
  85. right: 0;
  86. position: absolute;
  87. text-align: center;
  88. z-index: 10;
  89. background-color: white;
  90. line-height: 8px;
  91. cursor: pointer;
  92. }
  93. .searchable-select-items {
  94. max-height: 400px;
  95. overflow-y: scroll;
  96. position: relative;
  97. }
  98. .searchable-select-items::-webkit-scrollbar {
  99. display: none;
  100. }
  101. .searchable-select-item {
  102. padding: 5px 5px;
  103. cursor: pointer;
  104. min-height: 30px;
  105. box-sizing: border-box;
  106. transition: all 1s ease 0s;
  107. }
  108. .searchable-select-item.hover {
  109. background: #555;
  110. color: white;
  111. }
  112. .searchable-select-item.selected {
  113. background: #28a4c9;
  114. color: white;
  115. }