index.module.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. .setting {
  2. width: 148px;
  3. height: 70vh;
  4. max-height: 70vh;
  5. overflow: hidden;
  6. border-radius: 8px;
  7. --van-switch-background-color: #fff;
  8. --van-switch-on-background-color: linear-gradient(180deg, #39f3d0 0%, #2dc7aa 100%);
  9. --van-switch-border: 0.1px solid #2dc7aa;
  10. :global {
  11. .van-tabs {
  12. height: 100%;
  13. }
  14. .van-tabs__content {
  15. height: calc(100% - 0.58667rem);
  16. overflow-y: auto;
  17. }
  18. .van-tab__pane {
  19. height: 100%;
  20. > div {
  21. height: 100%;
  22. }
  23. }
  24. }
  25. :global(.van-switch) {
  26. background: url('./icons/off.svg') no-repeat center;
  27. background-size: cover;
  28. border-radius: 0;
  29. background-color: transparent !important;
  30. border: none !important;
  31. width: 24px;
  32. height: 12px;
  33. :global(.van-switch__node) {
  34. display: none;
  35. }
  36. }
  37. :global(.van-switch--on) {
  38. background-image: url('./icons/on.svg');
  39. background-size: cover;
  40. }
  41. :global {
  42. .van-tabs__content > .van-tab__pane > div {
  43. // min-height: 120px;
  44. overflow: hidden;
  45. box-sizing: border-box;
  46. }
  47. }
  48. }
  49. .sliderWrap {
  50. height: 30px;
  51. display: flex;
  52. align-items: center;
  53. :global {
  54. .cell__title {
  55. font-size: 0.16rem;
  56. color: #666;
  57. font-weight: 400;
  58. width: 30%;
  59. }
  60. .van-slider {
  61. flex: 1;
  62. margin-right: 10px;
  63. }
  64. }
  65. }
  66. .slider {
  67. width: 24px;
  68. color: #fff;
  69. font-size: 6px;
  70. line-height: 12px;
  71. text-align: center;
  72. background-color: var(--van-primary-color);
  73. border-radius: 20px;
  74. }
  75. .noticebar {
  76. margin: 0 7px;
  77. margin-top: 3px;
  78. height: 17px;
  79. border-radius: 5px;
  80. }
  81. .columnBox {
  82. display: flex;
  83. flex-direction: column;
  84. }
  85. .groupBox {
  86. flex: 1;
  87. padding: 4px 12px;
  88. overflow: hidden;
  89. overflow-y: auto;
  90. // height: 110px;
  91. height: 100%;
  92. box-sizing: border-box;
  93. :global {
  94. .van-cell {
  95. padding: 0;
  96. line-height: 11px;
  97. }
  98. .van-cell__title {
  99. font-size: 6px;
  100. color: #666;
  101. font-weight: 400;
  102. }
  103. .van-divider {
  104. margin: 3px 0;
  105. }
  106. }
  107. }
  108. .btnsbar {
  109. margin: 4px auto;
  110. margin-bottom: 8px;
  111. box-sizing: border-box;
  112. bottom: 0;
  113. display: flex;
  114. width: 100%;
  115. justify-content: center;
  116. .btn {
  117. width: 40%;
  118. height: 16px;
  119. background: #fff6e8;
  120. border-radius: 4px;
  121. display: flex;
  122. align-items: center;
  123. justify-content: center;
  124. font-size: 6px;
  125. color: #904C24;
  126. margin: 0 2px;
  127. .iconBtn {
  128. width: 10px;
  129. height: 10px;
  130. margin-right: 2px;
  131. }
  132. }
  133. }
  134. .radioGroup {
  135. display: flex;
  136. justify-content: space-evenly;
  137. align-items: center;
  138. padding: 2px;
  139. border-radius: 4px;
  140. background: var(--primary-color);
  141. margin-left: auto;
  142. :global {
  143. .van-radio__icon {
  144. display: none;
  145. }
  146. .van-radio__label {
  147. margin: 0;
  148. font-size: 6px;
  149. color: #fff;
  150. line-height: normal;
  151. white-space: nowrap;
  152. }
  153. .van-radio {
  154. flex: 1;
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. border-radius: 2px;
  159. padding: 1px;
  160. }
  161. .van-radio[aria-checked='true'] {
  162. background: #fff;
  163. .van-radio__label {
  164. color: var(--primary-color);
  165. }
  166. }
  167. }
  168. }
  169. :global {
  170. .van-switch {
  171. background: url('./icons/off.svg') no-repeat center;
  172. background-size: cover;
  173. border-radius: 0;
  174. background-color: transparent !important;
  175. border: none !important;
  176. width: 24px;
  177. height: 12px;
  178. :global(.van-switch__node) {
  179. display: none;
  180. }
  181. }
  182. .van-switch.van-switch--on {
  183. background-image: url('./icons/on.svg');
  184. background-size: cover;
  185. }
  186. }
  187. .columnItem {
  188. display: flex;
  189. align-items: center;
  190. justify-content: space-between;
  191. position: relative;
  192. z-index: 9;
  193. background: #fff;
  194. .columnBtn {
  195. word-break: keep-all;
  196. margin-left: 6px;
  197. padding: 2px 6px;
  198. border-radius: 8px;
  199. background-color: var(--van-primary-color);
  200. color: #fff;
  201. font-size: 6px;
  202. cursor: pointer;
  203. }
  204. }