multiple-select.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. .select-container.data-v-6a2e966e {
  28. width: 100vw;
  29. position: fixed;
  30. left: 0;
  31. bottom: 0;
  32. z-index: 999;
  33. }
  34. .select-container .mask.data-v-6a2e966e {
  35. width: 100%;
  36. height: 100%;
  37. background-color: rgba(0, 0, 0, 0.4);
  38. opacity: 0;
  39. transition: opacity 0.3s;
  40. }
  41. .select-container .mask.mask-show.data-v-6a2e966e {
  42. opacity: 1;
  43. }
  44. .select-container .select-box.data-v-6a2e966e {
  45. width: 100%;
  46. position: absolute;
  47. bottom: 0;
  48. left: 0;
  49. -webkit-transform: translate3d(0px, 100%, 0px);
  50. transform: translate3d(0px, 100%, 0px);
  51. background-color: #ffffff;
  52. transition: all 0.3s;
  53. }
  54. .select-container .select-box.select-box-show.data-v-6a2e966e {
  55. -webkit-transform: translateZ(0);
  56. transform: translateZ(0);
  57. }
  58. .select-container .select-box .header.data-v-6a2e966e {
  59. display: flex;
  60. box-sizing: border-box;
  61. width: 100%;
  62. justify-content: space-between;
  63. border-bottom: 1px solid #c8c7cc;
  64. line-height: 76rpx;
  65. font-size: 30rpx;
  66. padding: 0 18rpx;
  67. }
  68. .select-container .select-box .header .cancel.data-v-6a2e966e {
  69. color: #999;
  70. }
  71. .select-container .select-box .header .all.data-v-6a2e966e {
  72. color: #57C878;
  73. }
  74. .select-container .select-box .header .all .all-active.data-v-6a2e966e::after {
  75. display: inline-block;
  76. content: "✔";
  77. padding-left: 8rpx;
  78. }
  79. .select-container .select-box .header .confirm.data-v-6a2e966e {
  80. color: #007aff;
  81. }
  82. .select-container .select-box .body-warp.data-v-6a2e966e {
  83. width: 100%;
  84. height: 30vh;
  85. box-sizing: border-box;
  86. padding: 20rpx 18rpx;
  87. }
  88. .select-container .select-box .body.data-v-6a2e966e {
  89. width: 100%;
  90. height: 100%;
  91. overflow-y: auto;
  92. }
  93. .select-container .select-box .body .empty-tips.data-v-6a2e966e {
  94. margin-top: 25%;
  95. text-align: center;
  96. font-size: 26rpx;
  97. color: #dd524d;
  98. }
  99. .select-container .select-box .body .select-item.data-v-6a2e966e {
  100. display: flex;
  101. font-size: 26rpx;
  102. line-height: 58rpx;
  103. color: #303133;
  104. position: relative;
  105. transition: all 0.3s;
  106. }
  107. .select-container .select-box .body .select-item.selected.data-v-6a2e966e {
  108. color: #007aff;
  109. }
  110. .select-container .select-box .body .select-item.disabled.data-v-6a2e966e {
  111. color: #c0c0c0;
  112. }
  113. .select-container .select-box .body .select-item > .label.data-v-6a2e966e {
  114. flex: 1;
  115. text-align: center;
  116. }
  117. .select-container .select-box .body .select-item > .selected-icon.data-v-6a2e966e {
  118. position: absolute;
  119. right: 0;
  120. top: 50%;
  121. -webkit-transform: translateY(-50%);
  122. transform: translateY(-50%);
  123. }