index.less 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* components/w-picker/index.wxss */
  2. .van-picker {
  3. --main-color: #1cacf1 !important;
  4. }
  5. .van-picker__toolbar,
  6. .toolbar-top {
  7. margin: 0 14rpx !important;
  8. padding: 0 14rpx !important;
  9. border-bottom: 2rpx solid #f2f2f2;
  10. height: auto !important;
  11. line-height: normal !important;
  12. }
  13. .van-picker__cancel,
  14. .van-picker__confirm,
  15. .toolbar-cancel {
  16. font-size: 32rpx !important;
  17. padding: 28rpx 0 !important;
  18. color: #777777 !important;
  19. }
  20. .van-picker__confirm {
  21. color: var(--main-color) !important;
  22. }
  23. .toolbar-top {
  24. --main-color: #1cacf1 !important;
  25. display: flex;
  26. align-items: center;
  27. justify-content: space-between;
  28. margin: 0 14rpx !important;
  29. padding: 0 14rpx !important;
  30. border-bottom: 2rpx solid #f2f2f2;
  31. height: auto !important;
  32. line-height: normal !important;
  33. .toolbar-confirm {
  34. color: var(--main-color) !important;
  35. }
  36. }
  37. .van-picker-column__item--selected {
  38. font-weight: 600;
  39. font-size: 32rpx;
  40. color: var(--main-color) !important;
  41. }
  42. .van-picker-column {
  43. position: relative;
  44. z-index: 1;
  45. }
  46. .van-picker__frame {
  47. z-index: 0 !important;
  48. left: 0 !important;
  49. right: 0 !important;
  50. &::after {
  51. background: #f6f6f6;
  52. border-radius: 8px;
  53. }
  54. }
  55. .van-picker__columns {
  56. width: calc(100% - 32px) !important;
  57. margin: 0 auto;
  58. }