index.acss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. .a-dropdown-wrapper {
  2. position: relative;
  3. display: flex;
  4. flex-direction: column;
  5. width: 100%;
  6. height: 100rpx;
  7. }
  8. .a-dropdown-wrapper.expand {
  9. position: fixed;
  10. height: 100%;
  11. z-index: 99;
  12. }
  13. .a-dropdown-nav {
  14. display: flex;
  15. position: relative;
  16. border-bottom: 1px solid #ddd;
  17. background: #fff;
  18. min-height: 100rpx;
  19. z-index: 99;
  20. }
  21. .a-dropdown-nav-item {
  22. flex: 1;
  23. text-align: center;
  24. height: 100rpx;
  25. line-height: 100rpx;
  26. }
  27. .a-dropdown-nav-item-hover {
  28. background: rgba(0, 0, 0, 0.03);
  29. }
  30. .a-dropdown-nav-item.active {
  31. color: #f76a24;
  32. }
  33. .triangle {
  34. width: 0;
  35. height: 0;
  36. border-left: 10rpx solid transparent;
  37. border-right: 10rpx solid transparent;
  38. border-top: 10rpx solid #000;
  39. border-bottom: 0;
  40. vertical-align: middle;
  41. display: inline-block;
  42. }
  43. .a-dropdown-nav-item.active .triangle {
  44. border-bottom: 10rpx solid #f76a24;
  45. border-top: 0;
  46. }
  47. .a-dropdown-contents {
  48. max-height: 100%;
  49. z-index: 2;
  50. }
  51. .a-dropdown-list-items {
  52. height: 0;
  53. overflow: hidden;
  54. background: #fff;
  55. position: relative;
  56. z-index: 98;
  57. }
  58. .a-dropdown-list-items.show {
  59. height: auto;
  60. }
  61. .a-dropdown-list-items .a-dropdown-list-item {
  62. display: flex;
  63. font-size: 30rpx;
  64. line-height: 1.5;
  65. color: #333333;
  66. min-height: 88rpx;
  67. align-items: center;
  68. padding-left: 30rpx;
  69. background: #fff;
  70. }
  71. .a-dropdown-list-item.selected {
  72. color: #f76a24;
  73. }
  74. .a-dropdown-list-item .a-dropdown-list-item-bottom {
  75. display: block;
  76. position: absolute;
  77. width: 100%;
  78. border-bottom: 1px solid #ddd;
  79. left: 0;
  80. bottom: 0;
  81. right: auto;
  82. top: auto;
  83. }
  84. .a-dropdown-list-item .a-dropdown-list-item-thumb {
  85. width: 44rpx;
  86. height: 44rpx;
  87. margin-right: 30rpx;
  88. }
  89. .a-dropdown-list-item .a-dropdown-list-item-line {
  90. position: relative;
  91. display: flex;
  92. flex: 1;
  93. align-items: center;
  94. align-self: stretch;
  95. padding-right: 30rpx;
  96. min-height: 88rpx;
  97. overflow: hidden;
  98. }
  99. .a-dropdown-list-item .a-dropdown-list-item-content {
  100. flex: 1;
  101. font-size: .34rem;
  102. text-align: left;
  103. line-height: 1.5;
  104. width: auto;
  105. overflow: hidden;
  106. text-overflow: ellipsis;
  107. white-space: nowrap;
  108. padding-top: .14rem;
  109. padding-bottom: .14rem;
  110. }
  111. .a-dropdown-list-item.last .a-dropdown-list-item-bottom {
  112. border-bottom: none;
  113. }
  114. .a-dropdown-list-item .a-dropdown-list-item-line-wrap .a-dropdown-list-item-content {
  115. white-space: normal;
  116. }
  117. .a-dropdown-list-item.a-dropdown-list-item-hover {
  118. background-color: #ddd;
  119. }
  120. .a-dropdown-list-item-check {
  121. display: block;
  122. width: 35rpx;
  123. height: 35rpx;
  124. margin-left: 16rpx;
  125. background-image: url('data:image/svg+xml;charset=utf-8,<svg t="1500636672907" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1435" xmlns:xlink="http://www.w3.org/1999/xlink" width="350" height="350"><defs><style type="text/css"></style></defs><path d="M824.66816 299.58144 429.54752 694.70208l-190.32064-190.32064c-8.00768-8.00768-20.95104-8.00768-28.95872 0s-8.00768 20.95104 0 28.95872l204.8 204.8c3.9936 3.9936 9.23648 6.00064 14.47936 6.00064s10.48576-2.00704 14.47936-6.00064l409.6-409.6c8.00768-8.00768 8.00768-20.95104 0-28.95872S832.65536 291.57376 824.66816 299.58144z" p-id="1436" fill="#f76a24"></path></svg>');
  126. background-size: contain;
  127. background-repeat: no-repeat;
  128. background-position: 50% 50%;
  129. transition: transform 0.3s;
  130. visibility: hidden;
  131. }
  132. .a-dropdown-list-item.selected .a-dropdown-list-item-check {
  133. visibility: visible;
  134. }
  135. .a-dropdown-placeholder {
  136. min-height: 150rpx;
  137. z-index: 1;
  138. flex: 1;
  139. }
  140. .a-dropdown-bg {
  141. opacity: 0;
  142. transition: opacity linear 0.1s;
  143. }
  144. .expand .a-dropdown-bg {
  145. position: fixed;
  146. top: 0;
  147. left: 0;
  148. width: 100%;
  149. height: 100%;
  150. background: rgb(0, 0, 0);
  151. opacity: 0.4;
  152. z-index: 1;
  153. }