jqSelect.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*select*/
  2. .mp_select {
  3. height: 28px;
  4. line-height: 22px;
  5. padding: 0 5px;
  6. box-sizing: border-box;
  7. font-size: 12px;
  8. border: 1px solid #e6e6e6;
  9. background-color: #fff;
  10. border-radius: 3px;
  11. outline: 0;
  12. box-sizing: border-box;
  13. position: relative;
  14. }
  15. .mp_select:after {
  16. content: '';
  17. width: 0;
  18. height: 0;
  19. overflow: hidden;
  20. cursor: pointer;
  21. transition: all 0.2s;
  22. position: absolute;
  23. border-width: 6px;
  24. display: inline-block;
  25. top: 10px;
  26. right: 5px;
  27. border-style: solid dashed dashed;
  28. border-color: #c2c2c2 transparent transparent;
  29. }
  30. .mp_selected:after {
  31. top: 4px;
  32. border-style: dashed dashed solid;
  33. border-color: transparent transparent #c2c2c2;
  34. }
  35. .mp_select .mp_select_text {
  36. padding: 0 20px 0 0;
  37. height: 28px;
  38. line-height: 26px;
  39. overflow: hidden;
  40. }
  41. .mp_select_ul {
  42. background: #fff;
  43. border: #d6d6d6 1px solid;
  44. border-radius: 3px;
  45. padding: 5px 0;
  46. box-shadow: 1px 2px 1px rgba(0, 0, 0, 0.15);
  47. position: absolute;
  48. left: 0;
  49. z-index: 1000;
  50. color: #333;
  51. text-align: center;
  52. width: 100%;
  53. display: none;
  54. }
  55. .mp_select_ul li {
  56. margin: 0 5px;
  57. border-radius: 3px;
  58. text-align: left;
  59. height: 28px;
  60. line-height: 28px;
  61. text-indent: 5px;
  62. overflow: hidden;
  63. text-overflow: ellipsis;
  64. white-space: nowrap;
  65. }
  66. .mp_select_ul li:hover {
  67. background: #ecf1f8;
  68. }
  69. .mp_select_ul .selecton,
  70. .mp_select_ul .selecton:hover {
  71. background: #3374e0 !important;
  72. color: #fff !important;
  73. }
  74. /*dark*/
  75. .dark .mp_select {
  76. background-color: rgba(63, 72, 84, 0.6);
  77. }
  78. .dark .mp_select_ul {
  79. color: #ffffff;
  80. background-color: rgba(63, 72, 84, 0.8);
  81. }
  82. .dark .mp_select_ul li:hover {
  83. background-color: rgba(63, 72, 84, 1);
  84. }
  85. .dark .mp_select_ul .selecton,
  86. .mp_select_ul .selecton:hover {
  87. background: rgba(63, 72, 84, 1) !important;
  88. color: #fff !important;
  89. }