awselect.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /**
  2. jQuery Awselect
  3. Developed by: Prev Wong
  4. Documentation: https://prevwong.github.io/awesome-select/
  5. Github: https://github.com/prevwong/awesome-select/
  6. **/
  7. .awselect_bg {
  8. position: fixed;
  9. z-index: 999;
  10. left: 0;
  11. top: 0;
  12. width: 100%;
  13. height: 100%;
  14. opacity: 0;
  15. background: rgba(0, 0, 0, 0.8);
  16. -webkit-transition: 0.2s ease-in;
  17. -moz-transition: 0.2s ease-in;
  18. -o-transition: 0.2s ease-in;
  19. transition: 0.2s ease-in; }
  20. .awselect_bg.animate {
  21. opacity: 1; }
  22. .awselect {
  23. float: left;
  24. width: 100%;
  25. position: relative;
  26. cursor: pointer;
  27. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  28. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  29. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  30. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  31. .awselect > .bg {
  32. background: #fff;
  33. height: 0%;
  34. float: left;
  35. width: 100%;
  36. position: absolute;
  37. z-index: 1;
  38. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  39. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  40. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  41. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  42. .awselect .front_face {
  43. position: relative;
  44. padding: 20px 40px;
  45. color: #000;
  46. float: left;
  47. width: 100%; }
  48. .awselect .front_face > .bg {
  49. position: absolute;
  50. z-index: 0;
  51. float: left;
  52. width: 100%;
  53. height: 100%;
  54. left: 0;
  55. background: #e5e5e5;
  56. top: 0; }
  57. .awselect .front_face .content {
  58. float: left;
  59. width: 100%;
  60. position: relative;
  61. z-index: 2; }
  62. .awselect .front_face span {
  63. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  64. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  65. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  66. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  67. float: left;
  68. width: 100%;
  69. color: inherit; }
  70. .awselect .front_face .current_value {
  71. position: absolute; }
  72. .awselect .front_face .placeholder {
  73. position: relative; }
  74. .awselect .front_face .icon {
  75. float: right;
  76. position: absolute;
  77. right: 0px;
  78. top: 50%;
  79. transform: rotate(180deg) translateY(-50%);
  80. transform-origin: center 0;
  81. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  82. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  83. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  84. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  85. .awselect .front_face .icon svg {
  86. width: 10px;
  87. height: 10px; }
  88. .awselect .back_face {
  89. z-index: 2;
  90. position: absolute;
  91. padding: 0px;
  92. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  93. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  94. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  95. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  96. transform: translateY(20px);
  97. opacity: 0;
  98. float: left;
  99. width: 100%;
  100. max-height: 200px;
  101. overflow: hidden;
  102. display: none; }
  103. .awselect .back_face.overflow {
  104. overflow-y: scroll; }
  105. .awselect .back_face ul {
  106. margin: 0;
  107. float: left;
  108. padding: 0;
  109. width: 100%; }
  110. .awselect .back_face ul li {
  111. float: left;
  112. width: 100%;
  113. display: block; }
  114. .awselect .back_face ul li a {
  115. color: inherit;
  116. opacity: 0.8;
  117. float: left;
  118. width: 100%;
  119. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  120. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  121. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  122. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  123. .awselect .back_face ul li a:hover {
  124. background: rgba(0, 0, 0, 0.07);
  125. opacity: 1; }
  126. .awselect.animate {
  127. z-index: 9999; }
  128. .awselect.animate .front_face .icon {
  129. transform: rotate(0deg) translateY(-50%); }
  130. .awselect.animate > .bg {
  131. height: 100%; }
  132. .awselect.animate2 > .bg {
  133. box-shadow: 0px 11px 43px 11px rgba(0, 0, 0, 0.11); }
  134. .awselect.animate2 .back_face {
  135. transform: translateY(0px);
  136. opacity: 1; }
  137. .awselect.hasValue .front_face .placeholder {
  138. transform: translateY(20px);
  139. opacity: 0; }
  140. .awselect.placeholder_animate .front_face .current_value {
  141. opacity: 0; }
  142. .awselect.placeholder_animate2 .front_face .placeholder {
  143. transform: translateY(0);
  144. opacity: 1; }
  145. .awselect.transition_paused {
  146. transition: none !important; }
  147. .aw_cursor_pointer {
  148. float: left;
  149. width: 20px;
  150. height: 20px;
  151. border-radius: 100%;
  152. background: #ddd;
  153. overflow: hidden;
  154. padding: 5px;
  155. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  156. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  157. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  158. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  159. transform: scale(0.5); }
  160. .aw_cursor_pointer .inner {
  161. float: left;
  162. width: 100%;
  163. height: 0%;
  164. background: #fff;
  165. border-radius: 100%;
  166. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  167. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  168. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  169. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  170. .aw_cursor_pointer.animate {
  171. transform: scale(1); }
  172. .aw_cursor_pointer.animate .inner {
  173. height: 100%; }
  174. /*# sourceMappingURL=awselect.css.map */