my-select.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. .my-fontsize-normal {
  15. font-size: 30rpx;
  16. color: #ffffff;
  17. }
  18. .my-fontsize-Large {
  19. font-size: 34rpx;
  20. }
  21. .my-fontsize-Small {
  22. font-size: 24rpx;
  23. }
  24. .my-fontsize-title {
  25. font-size: 36rpx;
  26. }
  27. .my-flex {
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. }
  32. .flex-column {
  33. display: flex;
  34. flex-direction: column;
  35. justify-content: space-between;
  36. align-items: flex-start;
  37. }
  38. .flex-column-center {
  39. display: flex;
  40. flex-direction: column;
  41. justify-content: center;
  42. align-items: center;
  43. }
  44. .flex-between {
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. }
  49. .flex-around {
  50. display: flex;
  51. justify-content: space-around;
  52. align-items: center;
  53. }
  54. .flex-start {
  55. display: flex;
  56. justify-content: flex-start;
  57. align-items: center;
  58. }
  59. .flex-end {
  60. display: flex;
  61. justify-content: flex-end;
  62. align-items: center;
  63. }
  64. .line {
  65. position: relative;
  66. }
  67. .line::before {
  68. content: '';
  69. position: absolute;
  70. top: 50%;
  71. left: 0;
  72. -webkit-transform: translateY(-50%);
  73. transform: translateY(-50%);
  74. width: 6rpx;
  75. height: 30rpx;
  76. border-radius: 2rpx;
  77. background-color: #3F92F9;
  78. }
  79. /* 颜色变量 */
  80. /* 行为相关颜色 */
  81. /* 文字基本颜色 */
  82. /* 背景颜色 */
  83. /* 边框颜色 */
  84. /* 尺寸变量 */
  85. /* 文字尺寸 */
  86. /* 图片尺寸 */
  87. /* Border Radius */
  88. /* 水平间距 */
  89. /* 垂直间距 */
  90. /* 透明度 */
  91. /* 文章场景相关 */
  92. .input {
  93. position: relative;
  94. padding: 0 5%;
  95. height: 72rpx;
  96. line-height: 72rpx;
  97. width: 100%;
  98. border-radius: 5rpx;
  99. border: 1px solid #6A6B6C;
  100. }
  101. .input .select-text {
  102. padding-right: 50rpx;
  103. display: flex;
  104. align-items: center;
  105. width: 100%;
  106. height: 100%;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. }
  110. .input .icon {
  111. position: absolute;
  112. right: 20rpx;
  113. top: 0;
  114. height: 100%;
  115. }
  116. .input .list-wrap {
  117. position: absolute;
  118. top: calc(100% + 10px);
  119. left: 0;
  120. z-index: 999;
  121. width: 100%;
  122. border: 1px solid #eee;
  123. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  124. background-color: #FFFFFF;
  125. }
  126. .input .list-wrap::before {
  127. content: '';
  128. position: absolute;
  129. top: -14rpx;
  130. left: 50rpx;
  131. z-index: 999;
  132. width: 0;
  133. height: 0;
  134. border-left: 12rpx solid transparent;
  135. border-right: 12rpx solid transparent;
  136. border-bottom: 14rpx solid #eee;
  137. }
  138. .input .list-wrap::after {
  139. content: '';
  140. position: absolute;
  141. top: -13rpx;
  142. left: 52rpx;
  143. z-index: 999;
  144. width: 0;
  145. height: 0;
  146. border-left: 11rpx solid transparent;
  147. border-right: 11rpx solid transparent;
  148. border-bottom: 13rpx solid #fff;
  149. }
  150. .input .list-wrap .list {
  151. padding: 10rpx 0;
  152. max-height: 300rpx;
  153. height: 300rpx;
  154. overflow: auto;
  155. border-radius: 5rpx;
  156. }
  157. .input .list-wrap .list .item {
  158. padding: 0 5%;
  159. }
  160. .input .animate-open-rotate {
  161. -webkit-transform: rotate(180deg);
  162. transform: rotate(180deg);
  163. transition: all .5s ease;
  164. }
  165. .input .animate-close-rotate {
  166. -webkit-transform: rotate(0);
  167. transform: rotate(0);
  168. transition: all .5s ease;
  169. }
  170. .input .fadeShow {
  171. -webkit-animation: fadeShow .2s linear;
  172. animation: fadeShow .2s linear;
  173. }
  174. .input .fadeHidden {
  175. -webkit-animation: fadeHidden .2s linear;
  176. animation: fadeHidden .2s linear;
  177. }
  178. @-webkit-keyframes fadeShow {
  179. 0% {
  180. opacity: 0;
  181. }
  182. 100% {
  183. opacity: 1;
  184. }
  185. }
  186. @keyframes fadeShow {
  187. 0% {
  188. opacity: 0;
  189. }
  190. 100% {
  191. opacity: 1;
  192. }
  193. }
  194. @-webkit-keyframes fadeHidden {
  195. 0% {
  196. opacity: 1;
  197. }
  198. 100% {
  199. opacity: 0;
  200. }
  201. }
  202. @keyframes fadeHidden {
  203. 0% {
  204. opacity: 1;
  205. }
  206. 100% {
  207. opacity: 0;
  208. }
  209. }