awselect.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 {
  8. float: left;
  9. width: 100%;
  10. position: relative;
  11. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  12. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  13. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  14. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  15. .awselect > .bg {
  16. background: #fff;
  17. height: 0%;
  18. float: left;
  19. width: 100%;
  20. position: absolute;
  21. z-index: 1;
  22. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  23. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  24. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  25. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  26. .awselect .front_face {
  27. position: relative;
  28. padding: 20px 40px;
  29. color: #000;
  30. float: left;
  31. width: 100%; }
  32. .awselect .front_face > .bg {
  33. position: absolute;
  34. z-index: 0;
  35. float: left;
  36. width: 100%;
  37. height: 100%;
  38. left: 0;
  39. background: #e5e5e5;
  40. top: 0; }
  41. .awselect .front_face .content {
  42. float: left;
  43. width: 100%;
  44. position: relative;
  45. z-index: 2; }
  46. .awselect .front_face span {
  47. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  48. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  49. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  50. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  51. float: left;
  52. width: 100%;
  53. color: inherit; }
  54. .awselect .front_face .current_value {
  55. position: absolute; }
  56. .awselect .front_face .placeholder {
  57. position: relative; }
  58. .awselect .front_face .icon {
  59. float: right;
  60. position: absolute;
  61. right: 0px;
  62. top: 50%;
  63. transform: rotate(180deg) translateY(-50%);
  64. transform-origin: center 0;
  65. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  66. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  67. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  68. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  69. .awselect .front_face .icon svg {
  70. width: 10px;
  71. height: 10px; }
  72. .awselect .back_face {
  73. z-index: 2;
  74. position: absolute;
  75. padding: 0px;
  76. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  77. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  78. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  79. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  80. transform: translateY(20px);
  81. opacity: 0;
  82. float: left;
  83. width: 100%;
  84. max-height: 200px;
  85. overflow: hidden;
  86. display: none; }
  87. .awselect .back_face.overflow {
  88. overflow-y: scroll; }
  89. .awselect .back_face ul {
  90. margin: 0;
  91. float: left;
  92. padding: 0;
  93. width: 100%; }
  94. .awselect .back_face ul li {
  95. float: left;
  96. width: 100%;
  97. display: block; }
  98. .awselect .back_face ul li a {
  99. color: inherit;
  100. opacity: 0.8;
  101. float: left;
  102. width: 100%;
  103. -webkit-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  104. -moz-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  105. -o-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  106. transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
  107. .awselect .back_face ul li a:hover {
  108. background: rgba(0, 0, 0, 0.07);
  109. opacity: 1; }
  110. .awselect.animate {
  111. z-index: 3;
  112. height: 100% !important; }
  113. .awselect.animate .front_face .icon {
  114. transform: rotate(0deg) translateY(-50%); }
  115. .awselect.animate > .bg {
  116. height: 100%; }
  117. .awselect.animate2 > .bg {
  118. box-shadow: 0px 11px 43px 11px rgba(0, 0, 0, 0.11); }
  119. .awselect.animate2 .back_face {
  120. transform: translateY(0px);
  121. opacity: 1; }
  122. .awselect.hasValue .front_face .placeholder {
  123. transform: translateY(20px);
  124. opacity: 0; }
  125. .awselect.placeholder_animate .front_face .current_value {
  126. opacity: 0; }
  127. .awselect.placeholder_animate2 .front_face .placeholder {
  128. transform: translateY(0);
  129. opacity: 1; }
  130. /*# sourceMappingURL=awselect.css.map */