nice-select.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .nice-select {
  2. -webkit-tap-highlight-color: transparent;
  3. background-color: #fff;
  4. border-radius: 5px;
  5. border: solid 1px #e8e8e8;
  6. box-sizing: border-box;
  7. clear: both;
  8. cursor: pointer;
  9. display: block;
  10. float: left;
  11. font-family: inherit;
  12. font-size: 14px;
  13. font-weight: normal;
  14. height: 42px;
  15. line-height: 40px;
  16. outline: none;
  17. padding-left: 18px;
  18. padding-right: 30px;
  19. position: relative;
  20. text-align: left !important;
  21. -webkit-transition: all 0.2s ease-in-out;
  22. transition: all 0.2s ease-in-out;
  23. -webkit-user-select: none;
  24. -moz-user-select: none;
  25. -ms-user-select: none;
  26. user-select: none;
  27. white-space: nowrap;
  28. width: auto; }
  29. .nice-select:hover {
  30. border-color: #dbdbdb; }
  31. .nice-select:active, .nice-select.open, .nice-select:focus {
  32. border-color: #999; }
  33. .nice-select.disabled {
  34. border-color: #ededed;
  35. color: #999;
  36. pointer-events: none; }
  37. .nice-select.disabled:after {
  38. border-color: #cccccc; }
  39. .nice-select.wide {
  40. width: 100%; }
  41. .nice-select.wide .list {
  42. left: 0 !important;
  43. right: 0 !important; }
  44. .nice-select.right {
  45. float: right; }
  46. .nice-select.right .list {
  47. left: auto;
  48. right: 0; }
  49. .nice-select.small {
  50. font-size: 12px;
  51. height: 36px;
  52. line-height: 34px; }
  53. .nice-select.small:after {
  54. height: 4px;
  55. width: 4px; }
  56. .nice-select.small .option {
  57. line-height: 34px;
  58. min-height: 34px; }
  59. .nice-select .list {
  60. background-color: #fff;
  61. border-radius: 5px;
  62. box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11);
  63. box-sizing: border-box;
  64. margin-top: 4px;
  65. opacity: 0;
  66. overflow: hidden;
  67. padding: 0;
  68. pointer-events: none;
  69. position: absolute;
  70. top: 100%;
  71. left: 0;
  72. -webkit-transform-origin: 50% 0;
  73. -ms-transform-origin: 50% 0;
  74. transform-origin: 50% 0;
  75. -webkit-transform: scale(0.75) translateY(-21px);
  76. -ms-transform: scale(0.75) translateY(-21px);
  77. transform: scale(0.75) translateY(-21px);
  78. -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  79. transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  80. z-index: 9; }
  81. .nice-select .list:hover .option:not(:hover) {
  82. background-color: transparent !important; }
  83. .nice-select .option {
  84. cursor: pointer;
  85. font-weight: 400;
  86. line-height: 40px;
  87. list-style: none;
  88. min-height: 40px;
  89. outline: none;
  90. padding-left: 18px;
  91. padding-right: 29px;
  92. text-align: left;
  93. -webkit-transition: all 0.2s;
  94. transition: all 0.2s; }
  95. .nice-select .option:hover, .nice-select .option.focus, .nice-select .option.selected.focus {
  96. background-color: #f6f6f6; }
  97. .nice-select .option.selected {
  98. font-weight: bold; }
  99. .nice-select .option.disabled {
  100. background-color: transparent;
  101. color: #999;
  102. cursor: default; }
  103. .no-csspointerevents .nice-select .list {
  104. display: none; }
  105. .no-csspointerevents .nice-select.open .list {
  106. display: block; }
  107. /* ,,,,,,,,,,,,,,,, */
  108. .nice-select:after {
  109. content: "\e64b";
  110. display: block;
  111. height: 5px;
  112. margin-top: -5px;
  113. pointer-events: none;
  114. position: absolute;
  115. right: 30px;
  116. top: 8px;
  117. transition: all 0.15s ease-in-out;
  118. width: 5px;
  119. font-family: 'themify';
  120. color: #ddd; }
  121. .nice-select.open:after {
  122. }
  123. .nice-select.open .list {
  124. opacity: 1;
  125. pointer-events: auto;
  126. -webkit-transform: scale(1) translateY(0);
  127. -ms-transform: scale(1) translateY(0);
  128. transform: scale(1) translateY(0); }