fselect.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .fs-wrap {
  2. position: relative;
  3. display: inline-block;
  4. width: 300px;
  5. font-size: 12px;
  6. line-height: 1;
  7. }
  8. .fs-label-wrap {
  9. position: relative;
  10. border: 1px solid #ccc;
  11. cursor: default;
  12. }
  13. .fs-label-wrap,
  14. .fs-dropdown {
  15. -webkit-user-select: none;
  16. -moz-user-select: none;
  17. -ms-user-select: none;
  18. user-select: none;
  19. }
  20. .fs-label-wrap .fs-label {
  21. padding: 4px 22px 4px 8px;
  22. text-overflow: ellipsis;
  23. white-space: nowrap;
  24. overflow: hidden;
  25. }
  26. .fs-arrow {
  27. width: 0;
  28. height: 0;
  29. border-left: 6px solid transparent;
  30. border-right: 6px solid transparent;
  31. border-top: 6px solid #000;
  32. position: absolute;
  33. top: 0;
  34. right: 5px;
  35. bottom: 0;
  36. margin: auto;
  37. }
  38. .fs-dropdown {
  39. position: absolute;
  40. background-color: #fff;
  41. border: 1px solid #ccc;
  42. margin-top: 5px;
  43. width: 100%;
  44. z-index: 1000;
  45. }
  46. .fs-dropdown .fs-options {
  47. max-height: 200px;
  48. overflow: auto;
  49. }
  50. .fs-search input {
  51. width: 100%;
  52. padding: 2px 4px;
  53. border: 0;
  54. }
  55. .fs-option,
  56. .fs-search,
  57. .fs-optgroup-label {
  58. padding: 6px 8px;
  59. border-bottom: 1px solid #eee;
  60. cursor: default;
  61. }
  62. .fs-option {
  63. cursor: pointer;
  64. }
  65. .fs-option.hl {
  66. background-color: #f5f5f5;
  67. }
  68. .fs-wrap.multiple .fs-option {
  69. position: relative;
  70. padding-left: 30px;
  71. }
  72. .fs-wrap.multiple .fs-checkbox {
  73. position: absolute;
  74. display: block;
  75. width: 30px;
  76. top: 0;
  77. left: 0;
  78. bottom: 0;
  79. }
  80. .fs-wrap.multiple .fs-option .fs-checkbox i {
  81. position: absolute;
  82. margin: auto;
  83. left: 0;
  84. right: 0;
  85. top: 0;
  86. bottom: 0;
  87. width: 6px;
  88. height: 14px;
  89. border: 1px solid #aeaeae;
  90. border-radius: 2px;
  91. background-color: #fff;
  92. }
  93. .fs-wrap.multiple .fs-option.selected .fs-checkbox i {
  94. background-color: rgb(17, 169, 17);
  95. border-color: transparent;
  96. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAABMSURBVAiZfc0xDkAAFIPhd2Kr1WRjcAExuIgzGUTIZ/AkImjSofnbNBAfHvzAHjOKNzhiQ42IDFXCDivaaxAJd0xYshT3QqBxqnxeHvhunpu23xnmAAAAAElFTkSuQmCC');
  97. background-repeat: no-repeat;
  98. background-position: center;
  99. }
  100. .fs-wrap .fs-option:hover {
  101. background-color: #f5f5f5;
  102. }
  103. .fs-optgroup-label {
  104. font-weight: bold;
  105. }
  106. .hidden {
  107. display: none;
  108. }