my-selectCheckbox.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. cursor: pointer;
  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. min-height: 35px;
  72. }
  73. .uni-select--disabled {
  74. background-color: #f5f7fa;
  75. cursor: not-allowed;
  76. }
  77. .uni-select__label {
  78. font-size: 16px;
  79. min-height: 35px;
  80. height: 35px;
  81. padding-right: 10px;
  82. color: #909399;
  83. }
  84. .uni-select__input-box {
  85. height: 35px;
  86. position: relative;
  87. display: flex;
  88. flex: 1;
  89. flex-direction: row;
  90. align-items: center;
  91. }
  92. .uni-select__input-box .tag-calss {
  93. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  94. font-weight: 400;
  95. -webkit-font-smoothing: antialiased;
  96. -webkit-tap-highlight-color: transparent;
  97. font-size: 12px;
  98. border: 1px solid #d9ecff;
  99. border-radius: 4px;
  100. white-space: nowrap;
  101. height: 24px;
  102. padding: 0 4px 0px 8px;
  103. line-height: 22px;
  104. box-sizing: border-box;
  105. margin: 2px 0 2px 6px;
  106. display: flex;
  107. max-width: 100%;
  108. align-items: center;
  109. background-color: #f4f4f5;
  110. border-color: #e9e9eb;
  111. color: #909399;
  112. }
  113. .uni-select__input-box .tag-calss .text {
  114. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  115. font-weight: 400;
  116. -webkit-font-smoothing: antialiased;
  117. -webkit-tap-highlight-color: transparent;
  118. font-size: 12px;
  119. white-space: nowrap;
  120. line-height: 22px;
  121. color: #909399;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. }
  125. .uni-select__input {
  126. flex: 1;
  127. font-size: 14px;
  128. height: 22px;
  129. line-height: 22px;
  130. }
  131. .uni-select__input-plac {
  132. font-size: 14px;
  133. color: #909399;
  134. }
  135. .uni-select__selector {
  136. box-sizing: border-box;
  137. position: absolute;
  138. top: calc(100% + 12px);
  139. left: 0;
  140. width: 100%;
  141. background-color: #FFFFFF;
  142. border: 1px solid #EBEEF5;
  143. border-radius: 6px;
  144. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  145. z-index: 3;
  146. padding: 4px 0;
  147. }
  148. .uni-select__selector-scroll {
  149. max-height: 200px;
  150. box-sizing: border-box;
  151. }
  152. .uni-select__selector-empty,
  153. .uni-select__selector-item {
  154. display: flex;
  155. cursor: pointer;
  156. line-height: 35px;
  157. font-size: 14px;
  158. text-align: center;
  159. /* border-bottom: solid 1px $uni-border-3; */
  160. padding: 0px 10px;
  161. }
  162. .uni-select__selector-item:hover {
  163. background-color: #f9f9f9;
  164. }
  165. .uni-select__selector-empty:last-child,
  166. .uni-select__selector-item:last-child {
  167. border-bottom: none;
  168. }
  169. .uni-select__selector__disabled {
  170. opacity: 0.4;
  171. cursor: default;
  172. }
  173. /* picker 弹出层通用的指示小三角 */
  174. .uni-popper__arrow,
  175. .uni-popper__arrow::after {
  176. position: absolute;
  177. display: block;
  178. width: 0;
  179. height: 0;
  180. border-color: transparent;
  181. border-style: solid;
  182. border-width: 6px;
  183. }
  184. .uni-popper__arrow {
  185. -webkit-filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  186. filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
  187. top: -6px;
  188. left: 10%;
  189. margin-right: 3px;
  190. border-top-width: 0;
  191. border-bottom-color: #EBEEF5;
  192. }
  193. .uni-popper__arrow::after {
  194. content: " ";
  195. top: 1px;
  196. margin-left: -6px;
  197. border-top-width: 0;
  198. border-bottom-color: #fff;
  199. }
  200. .uni-select__input-text {
  201. width: 100%;
  202. color: #333;
  203. white-space: nowrap;
  204. text-overflow: ellipsis;
  205. -o-text-overflow: ellipsis;
  206. overflow: hidden;
  207. }
  208. .uni-select__input-placeholder {
  209. color: #6a6a6a;
  210. font-size: 12px;
  211. }
  212. .uni-select--mask {
  213. position: fixed;
  214. top: 0;
  215. bottom: 0;
  216. right: 0;
  217. left: 0;
  218. }