awselect.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. .immersive_awselect {
  8. overflow: hidden !important; }
  9. .awselect_immersive_background {
  10. position: fixed;
  11. z-index: 999;
  12. left: 0;
  13. top: 0;
  14. width: 100%;
  15. height: 100%;
  16. opacity: 0;
  17. background: rgba(0, 0, 0, 0.8);
  18. -webkit-transition: 0.2s ease-in;
  19. -moz-transition: 0.2s ease-in;
  20. -o-transition: 0.2s ease-in;
  21. transition: 0.2s ease-in; }
  22. .awselect_immersive_background.animate {
  23. opacity: 1; }
  24. .awselect {
  25. --awselect_frame_padding_x: 40px;
  26. --awselect_frame_padding_y: 10px;
  27. --awselect_frame_padding_t: unset;
  28. --awselect_frame_padding_r: unset;
  29. --awselect_frame_padding_b: unset;
  30. --awselect_frame_padding_l: unset;
  31. --awselect_option_padding_x: unset;
  32. --awselect_option_padding_y: 5px;
  33. --awselect_options_margin: 10px 0;
  34. --awselect_icon_color: unset;
  35. --awselect_placeholder_color: green;
  36. --awselect_expand_placeholder_color: unset;
  37. float: left;
  38. width: 100%;
  39. position: relative;
  40. cursor: pointer;
  41. background: var(--awselect_background, #e5e5e5);
  42. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  43. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  44. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  45. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  46. .awselect > .expand_background {
  47. background: var(--awselect_active_background, #fff);
  48. height: 0;
  49. float: left;
  50. width: 100%;
  51. position: absolute;
  52. z-index: 1;
  53. transform-origin: top;
  54. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  55. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  56. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  57. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  58. .awselect > .frame {
  59. position: relative;
  60. padding: var(--awselect_frame_padding_y, var(--awselect_frame_padding_t, 10px) var(--awselect_frame_padding_r, 40px)) var(--awselect_frame_padding_x, var(--awselect_frame_padding_b, 10px) var(--awselect_frame_padding_l, 40px));
  61. color: #000;
  62. float: left;
  63. width: 100%; }
  64. .awselect > .frame .content {
  65. float: left;
  66. width: 100%;
  67. position: relative;
  68. z-index: 2;
  69. color: var(--awselect_placeholder_color, #000); }
  70. .awselect > .frame span {
  71. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  72. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  73. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  74. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  75. float: left;
  76. width: 100%;
  77. color: inherit; }
  78. .awselect > .frame .value {
  79. position: absolute;
  80. left: 0; }
  81. .awselect > .frame .placeholder {
  82. position: relative; }
  83. .awselect > .frame .icon {
  84. float: right;
  85. position: absolute;
  86. right: 0;
  87. top: 50%;
  88. transform: rotate(180deg) translateY(-50%);
  89. transform-origin: center 0;
  90. fill: var(--awselect_icon_color, var(--awselect_placeholder_color, #000));
  91. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  92. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  93. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  94. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  95. .awselect > .frame .icon svg {
  96. width: 10px;
  97. height: 10px; }
  98. .awselect .expand_frame {
  99. z-index: 2;
  100. position: absolute;
  101. padding: 0;
  102. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  103. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  104. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  105. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  106. transform: translateY(20px);
  107. opacity: 0;
  108. float: left;
  109. width: 100%;
  110. max-height: 200px;
  111. overflow: hidden;
  112. display: none;
  113. top: 100%; }
  114. .awselect .expand_frame.overflow {
  115. overflow-y: scroll; }
  116. .awselect .expand_frame > ul {
  117. float: left;
  118. padding: 0;
  119. width: 100%;
  120. color: var(--awselect_options_color, #000);
  121. margin: var(--awselect_options_margin); }
  122. .awselect .expand_frame > ul li {
  123. float: left;
  124. width: 100%;
  125. display: block; }
  126. .awselect .expand_frame > ul li a {
  127. padding: var(--awselect_option_padding_y, var(--awselect_frame_padding_y, var(--awselect_frame_padding_t, 10px) var(--awselect_frame_padding_r, 40px))) var(--awselect_option_padding_x, var(--awselect_frame_padding_x, var(--awselect_frame_padding_b, 10px) var(--awselect_frame_padding_l, 40px)));
  128. color: inherit;
  129. opacity: 0.8;
  130. float: left;
  131. width: 100%;
  132. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  133. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  134. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  135. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  136. .awselect .expand_frame > ul li a:hover {
  137. background: rgba(0, 0, 0, 0.07);
  138. opacity: 1; }
  139. .awselect.animate {
  140. z-index: 9999; }
  141. .awselect.animate > .frame .icon {
  142. color: var(--awselect_expand_icon_color, var(--awselect_icon_color, var(--awselect_placeholder_color, #000)));
  143. transform: rotate(0deg) translateY(-50%); }
  144. .awselect.animate > .frame > .content {
  145. color: var(--awselect_expand_placeholder_color, var(--awselect_placeholder_color, #000)); }
  146. .awselect.animate > .expand_background {
  147. height: 100%; }
  148. .awselect.animate2 > .expand_background {
  149. box-shadow: 0px 11px 43px 11px rgba(0, 0, 0, 0.11); }
  150. .awselect.animate2 .expand_frame {
  151. transform: translateY(0px);
  152. opacity: 1; }
  153. .awselect.placeholder_animate > .frame .value {
  154. opacity: 0; }
  155. .awselect.placeholder_animate2 .frame .placeholder {
  156. transform: translateY(0);
  157. opacity: 1; }
  158. .awselect.transition_paused {
  159. transition: none !important; }
  160. .awselect.animate > .expand_frame, .awselect.animating > .expand_frame {
  161. display: block; }
  162. .awselect:not(.expand) > .expand_background {
  163. transform: scaleY(0); }
  164. .awselect:not(.animate) > .frame > .content > .value + .placeholder {
  165. transform: translateY(20px);
  166. opacity: 0; }
  167. .aw_cursor_pointer {
  168. float: left;
  169. width: 20px;
  170. height: 20px;
  171. border-radius: 100%;
  172. background: #ddd;
  173. overflow: hidden;
  174. padding: 5px;
  175. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  176. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  177. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  178. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  179. transform: scale(0.5); }
  180. .aw_cursor_pointer .inner {
  181. float: left;
  182. width: 100%;
  183. height: 0;
  184. background: #fff;
  185. border-radius: 100%;
  186. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  187. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  188. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  189. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  190. .aw_cursor_pointer.animate {
  191. transform: scale(1); }
  192. .aw_cursor_pointer.animate .inner {
  193. height: 100%; }
  194. .immersive_shadow {
  195. position: relative;
  196. float: left; }
  197. /*# sourceMappingURL=awselect.css.map */