w-select.wxss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. @charset "UTF-8";
  2. /**
  3. * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量
  4. * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可
  5. * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用
  6. */
  7. .w-select.data-v-5fdefe44 {
  8. --select-wrap-width: 100%;
  9. --select-wrap-height: 30px;
  10. --select-border-radius: 4px;
  11. --select-border: 1px solid #dcdfe6;
  12. --select-active-border: 1px solid #409eff;
  13. --select-options-max-height: 70vh;
  14. --select-option-item-font-size: 14px;
  15. --select-input-font-size: 14px;
  16. --no-data-default-color: #999999;
  17. --select-options-box-shadow: 0px 0px 12px rgb(0 0 0 / 12%);
  18. --select-bg-color: #ffffff;
  19. }
  20. .w-select .select-wrap.data-v-5fdefe44 {
  21. position: relative;
  22. display: flex;
  23. justify-content: space-between;
  24. align-items: center;
  25. width: var(--select-wrap-width);
  26. height: var(--select-wrap-height);
  27. border: var(--select-border);
  28. border-radius: var(--select-border-radius);
  29. background-color: var(--select-bg-color);
  30. transition: all 0.2s;
  31. }
  32. .w-select .select-wrap input.data-v-5fdefe44 {
  33. padding: 0 10px;
  34. width: 100%;
  35. min-width: 0;
  36. height: 100%;
  37. font-size: var(--select-input-font-size);
  38. flex: 1;
  39. }
  40. .w-select .select-wrap .select-content.data-v-5fdefe44 {
  41. display: flex;
  42. align-items: center;
  43. font-size: var(--select-option-item-font-size);
  44. }
  45. .w-select .select-wrap .select-content .select-content-item.data-v-5fdefe44 {
  46. margin-left: 5px;
  47. padding: 2px 6px;
  48. border-radius: var(--select-border-radius);
  49. color: #aa93b1;
  50. background-color: #f4f4f5;
  51. }
  52. .w-select .select-wrap .select-content .select-content-item-default.data-v-5fdefe44 {
  53. margin-left: 5px;
  54. color: var(--no-data-default-color);
  55. }
  56. .w-select .select-wrap .close-icon.data-v-5fdefe44 {
  57. position: absolute;
  58. top: 50%;
  59. right: 7px;
  60. z-index: 1000;
  61. width: 15px;
  62. height: 15px;
  63. -webkit-transform: translateY(-50%);
  64. transform: translateY(-50%);
  65. }
  66. .w-select .select-wrap .close-icon image.data-v-5fdefe44 {
  67. width: 100%;
  68. height: 100%;
  69. }
  70. .w-select .select-wrap .position-bottom.data-v-5fdefe44 {
  71. top: calc(var(--select-wrap-height) + 10px);
  72. }
  73. .w-select .select-wrap .position-top.data-v-5fdefe44 {
  74. bottom: calc(var(--select-wrap-height) + 10px);
  75. }
  76. .w-select .select-wrap .select-options.data-v-5fdefe44 {
  77. position: absolute;
  78. right: 0;
  79. left: 0;
  80. z-index: 9999;
  81. overflow: scroll;
  82. padding: 10px 0 10px 0px;
  83. max-height: var(--select-options-max-height);
  84. border-radius: var(--select-border-radius);
  85. background-color: var(--select-bg-color);
  86. box-shadow: var(--select-options-box-shadow);
  87. }
  88. .w-select .select-wrap .select-options .select-option-item.data-v-5fdefe44 {
  89. margin-bottom: 5px;
  90. padding: 10px;
  91. font-size: var(--select-option-item-font-size);
  92. transition: background-color 0.2s;
  93. }
  94. .w-select .select-wrap .select-options .item-active.data-v-5fdefe44 {
  95. font-weight: 700;
  96. color: #409eff;
  97. background-color: #f5f7fa;
  98. }
  99. .w-select .select-wrap .select-options .options-no-data.data-v-5fdefe44 {
  100. font-size: var(--select-option-item-font-size);
  101. text-align: center;
  102. color: var(--no-data-default-color);
  103. }
  104. .w-select .select-wrap .w-select-arrow.data-v-5fdefe44 {
  105. display: inline-block;
  106. margin: 3px 10px 0;
  107. width: 8px;
  108. height: 8px;
  109. border-top: 1px solid transparent;
  110. border-right: 1px solid transparent;
  111. border-bottom: 1px solid #999999;
  112. border-left: 1px solid #999999;
  113. transition: all 0.3s;
  114. -webkit-transform: translateY(-50%) rotate(-45deg);
  115. transform: translateY(-50%) rotate(-45deg);
  116. }
  117. .w-select .select-wrap .w-select-arrow-up.data-v-5fdefe44 {
  118. -webkit-transform: rotate(-225deg);
  119. transform: rotate(-225deg);
  120. }
  121. .w-select .select-wrap-active.data-v-5fdefe44 {
  122. border: var(--select-active-border);
  123. }
  124. .w-select .animation-bottom-in.data-v-5fdefe44 {
  125. -webkit-animation-name: bottom-in-data-v-5fdefe44;
  126. animation-name: bottom-in-data-v-5fdefe44;
  127. -webkit-animation-duration: 0.4s;
  128. animation-duration: 0.4s;
  129. -webkit-animation-timing-function: ease-out;
  130. animation-timing-function: ease-out;
  131. -webkit-animation-fill-mode: both;
  132. animation-fill-mode: both;
  133. }
  134. .w-select .animation-bottom-out.data-v-5fdefe44 {
  135. -webkit-animation-name: bottom-out-data-v-5fdefe44;
  136. animation-name: bottom-out-data-v-5fdefe44;
  137. -webkit-animation-duration: 0.2s;
  138. animation-duration: 0.2s;
  139. -webkit-animation-timing-function: ease-out;
  140. animation-timing-function: ease-out;
  141. -webkit-animation-fill-mode: both;
  142. animation-fill-mode: both;
  143. }
  144. .w-select .animation-top-in.data-v-5fdefe44 {
  145. -webkit-animation-name: top-in-data-v-5fdefe44;
  146. animation-name: top-in-data-v-5fdefe44;
  147. -webkit-animation-duration: 0.4s;
  148. animation-duration: 0.4s;
  149. -webkit-animation-timing-function: ease-out;
  150. animation-timing-function: ease-out;
  151. -webkit-animation-fill-mode: both;
  152. animation-fill-mode: both;
  153. }
  154. .w-select .animation-top-out.data-v-5fdefe44 {
  155. -webkit-animation-name: top-out-data-v-5fdefe44;
  156. animation-name: top-out-data-v-5fdefe44;
  157. -webkit-animation-duration: 0.2s;
  158. animation-duration: 0.2s;
  159. -webkit-animation-timing-function: ease-out;
  160. animation-timing-function: ease-out;
  161. -webkit-animation-fill-mode: both;
  162. animation-fill-mode: both;
  163. }
  164. @-webkit-keyframes bottom-in-data-v-5fdefe44 {
  165. 0% {
  166. opacity: 0;
  167. -webkit-transform: translateY(-15%);
  168. transform: translateY(-15%);
  169. }
  170. 100% {
  171. opacity: 1;
  172. -webkit-transform: translateY(0);
  173. transform: translateY(0);
  174. }
  175. }
  176. @keyframes bottom-in-data-v-5fdefe44 {
  177. 0% {
  178. opacity: 0;
  179. -webkit-transform: translateY(-15%);
  180. transform: translateY(-15%);
  181. }
  182. 100% {
  183. opacity: 1;
  184. -webkit-transform: translateY(0);
  185. transform: translateY(0);
  186. }
  187. }
  188. @-webkit-keyframes bottom-out-data-v-5fdefe44 {
  189. 0% {
  190. opacity: 1;
  191. -webkit-transform: translateY(0);
  192. transform: translateY(0);
  193. }
  194. 100% {
  195. opacity: 0;
  196. -webkit-transform: translateY(-20%);
  197. transform: translateY(-20%);
  198. }
  199. }
  200. @keyframes bottom-out-data-v-5fdefe44 {
  201. 0% {
  202. opacity: 1;
  203. -webkit-transform: translateY(0);
  204. transform: translateY(0);
  205. }
  206. 100% {
  207. opacity: 0;
  208. -webkit-transform: translateY(-20%);
  209. transform: translateY(-20%);
  210. }
  211. }
  212. @-webkit-keyframes top-in-data-v-5fdefe44 {
  213. 0% {
  214. opacity: 0;
  215. -webkit-transform: translateY(15%);
  216. transform: translateY(15%);
  217. }
  218. 100% {
  219. opacity: 1;
  220. -webkit-transform: translateY(0);
  221. transform: translateY(0);
  222. }
  223. }
  224. @keyframes top-in-data-v-5fdefe44 {
  225. 0% {
  226. opacity: 0;
  227. -webkit-transform: translateY(15%);
  228. transform: translateY(15%);
  229. }
  230. 100% {
  231. opacity: 1;
  232. -webkit-transform: translateY(0);
  233. transform: translateY(0);
  234. }
  235. }
  236. @-webkit-keyframes top-out-data-v-5fdefe44 {
  237. 0% {
  238. opacity: 1;
  239. -webkit-transform: translateY(0);
  240. transform: translateY(0);
  241. }
  242. 100% {
  243. opacity: 0;
  244. -webkit-transform: translateY(20%);
  245. transform: translateY(20%);
  246. }
  247. }
  248. @keyframes top-out-data-v-5fdefe44 {
  249. 0% {
  250. opacity: 1;
  251. -webkit-transform: translateY(0);
  252. transform: translateY(0);
  253. }
  254. 100% {
  255. opacity: 0;
  256. -webkit-transform: translateY(20%);
  257. transform: translateY(20%);
  258. }
  259. }
  260. .w-select .contentMask.data-v-5fdefe44 {
  261. position: fixed;
  262. top: 0;
  263. right: 0;
  264. bottom: 0;
  265. left: 0;
  266. z-index: 998;
  267. width: 100%;
  268. height: 100%;
  269. }