uni-data-select.wxss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. /* 颜色变量 */
  15. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. @media screen and (max-width: 500px) {
  28. .hide-on-phone {
  29. display: none;
  30. }
  31. }
  32. .uni-stat__select {
  33. display: flex;
  34. align-items: center;
  35. width: 100%;
  36. flex: 1;
  37. box-sizing: border-box;
  38. }
  39. .uni-stat-box {
  40. width: 100%;
  41. flex: 1;
  42. }
  43. .uni-stat__actived {
  44. width: 100%;
  45. flex: 1;
  46. }
  47. .uni-label-text {
  48. font-size: 14px;
  49. font-weight: bold;
  50. color: #6a6a6a;
  51. margin: auto 0;
  52. margin-right: 5px;
  53. }
  54. .uni-select {
  55. font-size: 14px;
  56. border: 1px solid #e5e5e5;
  57. box-sizing: border-box;
  58. border-radius: 4px;
  59. padding: 0 5px;
  60. padding-left: 10px;
  61. position: relative;
  62. display: flex;
  63. -webkit-user-select: none;
  64. user-select: none;
  65. flex-direction: row;
  66. align-items: center;
  67. border-bottom: solid 1px #e5e5e5;
  68. width: 100%;
  69. flex: 1;
  70. height: 35px;
  71. }
  72. .uni-select--disabled {
  73. background-color: #f5f7fa;
  74. cursor: not-allowed;
  75. }
  76. .uni-select__label {
  77. font-size: 16px;
  78. height: 35px;
  79. padding-right: 10px;
  80. color: #909399;
  81. }
  82. .uni-select__input-box {
  83. height: 35px;
  84. position: relative;
  85. display: flex;
  86. flex: 1;
  87. flex-direction: row;
  88. align-items: center;
  89. }
  90. .uni-select__input {
  91. flex: 1;
  92. font-size: 14px;
  93. height: 22px;
  94. line-height: 22px;
  95. }
  96. .uni-select__input-plac {
  97. font-size: 14px;
  98. color: #909399;
  99. }
  100. .uni-select__selector {
  101. box-sizing: border-box;
  102. position: absolute;
  103. left: 0;
  104. width: 100%;
  105. background-color: #FFFFFF;
  106. border: 1px solid #EBEEF5;
  107. border-radius: 6px;
  108. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  109. z-index: 3;
  110. padding: 4px 0;
  111. }
  112. .uni-select__selector-scroll {
  113. max-height: 200px;
  114. box-sizing: border-box;
  115. }
  116. .uni-select__selector-empty,
  117. .uni-select__selector-item {
  118. display: flex;
  119. cursor: pointer;
  120. line-height: 35px;
  121. font-size: 14px;
  122. text-align: center;
  123. /* border-bottom: solid 1px $uni-border-3; */
  124. padding: 0px 10px;
  125. }
  126. .uni-select__selector-item:hover {
  127. background-color: #f9f9f9;
  128. }
  129. .uni-select__selector-empty:last-child,
  130. .uni-select__selector-item:last-child {
  131. border-bottom: none;
  132. }
  133. .uni-select__selector__disabled {
  134. opacity: 0.4;
  135. cursor: default;
  136. }
  137. /* picker 弹出层通用的指示小三角 */
  138. .uni-popper__arrow_bottom,
  139. .uni-popper__arrow_bottom::after,
  140. .uni-popper__arrow_top,
  141. .uni-popper__arrow_top::after {
  142. position: absolute;
  143. display: block;
  144. width: 0;
  145. height: 0;
  146. border-color: transparent;
  147. border-style: solid;
  148. border-width: 6px;
  149. }
  150. .uni-popper__arrow_bottom {
  151. -webkit-filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  152. filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  153. top: -6px;
  154. left: 10%;
  155. margin-right: 3px;
  156. border-top-width: 0;
  157. border-bottom-color: #EBEEF5;
  158. }
  159. .uni-popper__arrow_bottom::after {
  160. content: " ";
  161. top: 1px;
  162. margin-left: -6px;
  163. border-top-width: 0;
  164. border-bottom-color: #fff;
  165. }
  166. .uni-popper__arrow_top {
  167. -webkit-filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  168. filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  169. bottom: -6px;
  170. left: 10%;
  171. margin-right: 3px;
  172. border-bottom-width: 0;
  173. border-top-color: #EBEEF5;
  174. }
  175. .uni-popper__arrow_top::after {
  176. content: " ";
  177. bottom: 1px;
  178. margin-left: -6px;
  179. border-bottom-width: 0;
  180. border-top-color: #fff;
  181. }
  182. .uni-select__input-text {
  183. width: 100%;
  184. color: #333;
  185. white-space: nowrap;
  186. text-overflow: ellipsis;
  187. -o-text-overflow: ellipsis;
  188. overflow: hidden;
  189. }
  190. .uni-select__input-placeholder {
  191. color: #6a6a6a;
  192. font-size: 12px;
  193. }
  194. .uni-select--mask {
  195. position: fixed;
  196. top: 0;
  197. bottom: 0;
  198. right: 0;
  199. left: 0;
  200. z-index: 2;
  201. }