main.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .vanFieldNew_1 {
  2. .van-cell, .van-field {
  3. background-color: transparent;
  4. padding: 1rem;
  5. line-height: unset;
  6. width: 100%;
  7. height: 100%;
  8. /* 水平垂直居中,支持文字自动换行 */
  9. // display: flex;
  10. // flex-direction: column;
  11. // justify-content: center;
  12. align-items: center;
  13. .van-field__label {
  14. width: 46%;
  15. color: #ffffff;
  16. font-size: 1.5714rem;
  17. // margin-right: 0.85rem;
  18. margin-right: 0rem;
  19. text-align: center;
  20. }
  21. .van-field__value {
  22. width: 46%;
  23. .van-field__body {
  24. .van-field__control--custom {
  25. min-height: auto;
  26. }
  27. .van-field__control {
  28. .van-switch {
  29. // width: 100%;
  30. height: 2.35rem;
  31. .van-switch__node {
  32. width: 2rem;
  33. height: 2rem;
  34. }
  35. }
  36. .van-slider {
  37. .van-slider__bar {
  38. .van-slider__button-wrapper {
  39. .van-slider__button {
  40. width: 1.7rem;
  41. height: 1.7rem;
  42. }
  43. }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }
  50. }