index.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. :root:root {
  2. --k-primary: #01c1b5; // 主题色
  3. --k-font-primary: #00b2a7; // 字体色
  4. --van-pull-refresh-head-height: 55px;
  5. --van-skeleton-paragraph-background: #ECEEF3;
  6. --van-skeleton-avatar-background: #ECEEF3;
  7. }
  8. // 默认输入框光标颜色
  9. input,
  10. textarea {
  11. caret-color: var(--k-font-primary) !important;
  12. }
  13. .van-skeleton {
  14. padding: 0;
  15. }
  16. * {
  17. padding: 0;
  18. margin: 0;
  19. border: 0;
  20. box-sizing: border-box;
  21. }
  22. #app {
  23. -webkit-font-smoothing: antialiased;
  24. -moz-osx-font-smoothing: grayscale;
  25. color: #333;
  26. min-height: 100vh;
  27. }
  28. body {
  29. background-color: #f8f9fc;
  30. user-select: none;
  31. }
  32. .van-cell {
  33. padding: 12px;
  34. }
  35. // tab 选项卡样式
  36. .van-picker .van-picker-column__item--selected {
  37. color: var(--k-font-primary);
  38. }
  39. // 下拉框样式重置
  40. .van-dropdown-menu__bar {
  41. box-shadow: none;
  42. --van-dropdown-menu-title-font-size: 14px;
  43. --van-button-normal-font-size: 16px;
  44. --van-dropdown-menu-height: 44px;
  45. }
  46. .van-dropdown-item {
  47. // 在某些浏览器上面会显示一条线
  48. margin-top: -1px;
  49. }
  50. .van-dropdown-item__content {
  51. border-radius: 0px 0px 12px 12px;
  52. .van-dropdown-item__option {
  53. margin: 0 13px;
  54. height: 44px;
  55. border-radius: 8px;
  56. width: auto;
  57. ;
  58. &:first-child {
  59. margin-top: 12px;
  60. }
  61. &:last-child {
  62. margin-bottom: 12px;
  63. }
  64. &:after {
  65. border: none;
  66. }
  67. .van-cell__title {
  68. white-space: nowrap;
  69. width: 100%;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. font-size: 16px;
  73. color: var(--k-gray-4);
  74. text-align: center;
  75. }
  76. .van-cell__value {
  77. display: none;
  78. }
  79. }
  80. .van-dropdown-item__option--active {
  81. background: #F6F6F6;
  82. .van-cell__title {
  83. font-weight: 600;
  84. color: var(--k-font-primary);
  85. }
  86. }
  87. }
  88. // 固定底部按钮样式
  89. .btnGroupFixed {
  90. padding: 0 25px;
  91. padding-bottom: calc(20px + constant(safe-area-inset-bottom));
  92. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  93. }
  94. .btnGroupPopup {
  95. display: flex;
  96. align-items: center;
  97. justify-content: space-between;
  98. padding: 18px 13px;
  99. .van-button {
  100. font-weight: 400;
  101. width: 48%;
  102. font-size: 16px;
  103. }
  104. }
  105. .myClassM2 {
  106. .amap-marker-label {
  107. background: #FF5A56;
  108. }
  109. }
  110. // 地图样式
  111. .amap-marker-label {
  112. // border: 0;
  113. background: #00B2A7;
  114. border: 0;
  115. color: #fff;
  116. line-height: 18px;
  117. font-size: 12px;
  118. padding: 2px 4px;
  119. border-radius: 4px;
  120. }
  121. // 自定义动画基类
  122. .popup-custom {
  123. transition: all 0.25s;
  124. background: transparent;
  125. overflow: initial;
  126. }
  127. .popup-custom.van-scale {
  128. transform-origin: center -25%;
  129. }
  130. /* 缩放动画 */
  131. .van-scale-enter-from,
  132. .van-scale-leave-to {
  133. opacity: 0;
  134. transform: scale(0.3);
  135. }
  136. .van-scale-enter-active,
  137. .van-scale-leave-active {
  138. transition: all 0.25s;
  139. }