index.less 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. :root:root {
  2. --k-primary: #1CACF1; // 主题色
  3. --k-font-primary: #1CACF1; // 字体色
  4. --van-pull-refresh-head-height: 55px;
  5. --van-skeleton-paragraph-background: #ECEEF3;
  6. --van-skeleton-avatar-background: #ECEEF3;
  7. --van-dialog-message-font-size: 16px;
  8. }
  9. img {
  10. /* -webkit-touch-callout: none; */
  11. -moz-user-select: none;
  12. /* 火狐浏览器 */
  13. -webkit-user-drag: none;
  14. /* 谷歌、Safari和Opera浏览器 */
  15. -webkit-user-select: none;
  16. /* 谷歌、Safari和Opera浏览器 */
  17. -ms-user-select: none;
  18. /* IE10+浏览器 */
  19. user-select: none;
  20. /* 通用 */
  21. -webkit-touch-callout: none;
  22. }
  23. body {
  24. user-select: none;
  25. -webkit-user-select: none;
  26. -moz-user-select: none;
  27. }
  28. // 默认输入框光标颜色
  29. input,
  30. textarea {
  31. caret-color: var(--k-font-primary) !important;
  32. }
  33. .van-skeleton {
  34. padding: 0;
  35. }
  36. * {
  37. padding: 0;
  38. margin: 0;
  39. border: 0;
  40. box-sizing: border-box;
  41. }
  42. #app {
  43. -webkit-font-smoothing: antialiased;
  44. -moz-osx-font-smoothing: grayscale;
  45. color: #333;
  46. min-height: 100vh;
  47. }
  48. body {
  49. background-color: #f8f9fc;
  50. user-select: none;
  51. }
  52. // tab 选项卡样式
  53. .van-picker .van-picker-column__item--selected {
  54. color: var(--k-font-primary);
  55. }
  56. // 下拉框样式重置
  57. .van-dropdown-menu__bar {
  58. box-shadow: none;
  59. --van-dropdown-menu-title-font-size: 14px;
  60. --van-button-normal-font-size: 16px;
  61. --van-dropdown-menu-height: 44px;
  62. }
  63. .van-dropdown-item {
  64. // 在某些浏览器上面会显示一条线
  65. margin-top: -1px;
  66. }
  67. .van-dropdown-item__content {
  68. border-radius: 0px 0px 12px 12px;
  69. .van-dropdown-item__option {
  70. margin: 0 13px;
  71. height: 44px;
  72. border-radius: 8px;
  73. width: auto;
  74. ;
  75. &:first-child {
  76. margin-top: 12px;
  77. }
  78. &:last-child {
  79. margin-bottom: 12px;
  80. }
  81. &:after {
  82. border: none;
  83. }
  84. .van-cell__title {
  85. white-space: nowrap;
  86. width: 100%;
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. font-size: 16px;
  90. color: var(--k-gray-4);
  91. text-align: center;
  92. }
  93. .van-cell__value {
  94. display: none;
  95. }
  96. }
  97. .van-dropdown-item__option--active {
  98. background: #F6F6F6;
  99. .van-cell__title {
  100. font-weight: 600;
  101. color: var(--k-font-primary);
  102. }
  103. }
  104. }
  105. // 固定底部按钮样式
  106. .btnGroupFixed {
  107. padding: 0 25px;
  108. padding-bottom: calc(20px + constant(safe-area-inset-bottom));
  109. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  110. }
  111. // 搜索公用样式
  112. .popupBottomSearch {
  113. --van-picker-toolbar-height: 44px !important;
  114. .van-picker__toolbar {
  115. position: relative;
  116. &::after {
  117. position: absolute;
  118. box-sizing: border-box;
  119. content: ' ';
  120. pointer-events: none;
  121. right: var(--van-padding-md);
  122. bottom: 0;
  123. left: var(--van-padding-md);
  124. border-bottom: 1px solid var(--van-cell-border-color);
  125. transform: scaleY(0.5);
  126. }
  127. }
  128. .van-picker__columns {
  129. padding: 0 24px;
  130. }
  131. .van-picker-column {
  132. position: relative;
  133. z-index: 1;
  134. }
  135. .van-picker__frame {
  136. z-index: 0;
  137. &::after {
  138. background: #f6f6f6;
  139. border-radius: 8px;
  140. }
  141. }
  142. }
  143. .btnGroupPopup {
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-between;
  147. padding: 18px 13px;
  148. .van-button {
  149. font-weight: 400;
  150. width: 48%;
  151. font-size: 16px;
  152. }
  153. }
  154. .myClassM2 {
  155. .amap-marker-label {
  156. background: #FF5A56;
  157. }
  158. }
  159. // 地图样式
  160. .amap-marker-label {
  161. // border: 0;
  162. background: #00B2A7;
  163. border: 0;
  164. color: #fff;
  165. line-height: 18px;
  166. font-size: 12px;
  167. padding: 2px 4px;
  168. border-radius: 4px;
  169. }
  170. // 自定义动画基类
  171. .popup-custom {
  172. transition: all 0.25s;
  173. background: transparent;
  174. overflow: initial;
  175. }
  176. .popup-custom.van-scale {
  177. transform-origin: center -25%;
  178. }
  179. /* 缩放动画 */
  180. .van-scale-enter-from,
  181. .van-scale-leave-to {
  182. opacity: 0;
  183. transform: scale(0.3);
  184. }
  185. .van-scale-enter-active,
  186. .van-scale-leave-active {
  187. transition: all 0.25s;
  188. }
  189. .mb12 {
  190. margin-bottom: 12px !important;
  191. }
  192. .btnGroup {
  193. padding: 0 25px;
  194. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  195. .van-button {
  196. font-size: 18px !important;
  197. font-weight: 500;
  198. }
  199. }
  200. .btnMore {
  201. padding-left: 13px;
  202. padding-right: 13px;
  203. display: flex !important;
  204. justify-content: center !important;
  205. // :global {
  206. .van-button {
  207. width: 100% !important;
  208. }
  209. .van-button+.van-button {
  210. margin-left: 15px;
  211. }
  212. }
  213. .van-overlay {
  214. transition: all 0.25s;
  215. }
  216. .popup-custom {
  217. transition: all 0.25s;
  218. background: transparent;
  219. overflow: initial;
  220. max-width: 100%;
  221. }
  222. .popup-custom.van-scale {
  223. transform-origin: center -25%;
  224. }
  225. /* 缩放动画 */
  226. .van-scale-enter-from,
  227. .van-scale-leave-to {
  228. opacity: 0;
  229. transform: scale(0.3);
  230. }
  231. .van-scale-enter-active,
  232. .van-scale-leave-active {
  233. transition: all 0.25s;
  234. }
  235. .van-toast {
  236. z-index: 99999 !important;
  237. }
  238. .fontBlod {
  239. font-weight: bold;
  240. }