index.less 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. @import url('./font/index.less');
  2. :root:root {
  3. --k-primary: #1CACF1; // 主题色
  4. --k-font-primary: #1CACF1; // 字体色
  5. --van-pull-refresh-head-height: 55px;
  6. --van-skeleton-paragraph-background: #ECEEF3;
  7. --van-skeleton-avatar-background: #ECEEF3;
  8. --van-dialog-message-font-size: 16px;
  9. }
  10. img {
  11. /* -webkit-touch-callout: none; */
  12. -moz-user-select: none;
  13. /* 火狐浏览器 */
  14. -webkit-user-drag: none;
  15. /* 谷歌、Safari和Opera浏览器 */
  16. -webkit-user-select: none;
  17. /* 谷歌、Safari和Opera浏览器 */
  18. -ms-user-select: none;
  19. /* IE10+浏览器 */
  20. user-select: none;
  21. /* 通用 */
  22. -webkit-touch-callout: none;
  23. }
  24. body {
  25. user-select: none;
  26. -webkit-user-select: none;
  27. -moz-user-select: none;
  28. }
  29. // 默认输入框光标颜色
  30. input,
  31. textarea {
  32. caret-color: var(--k-font-primary) !important;
  33. }
  34. .van-skeleton {
  35. padding: 0;
  36. }
  37. * {
  38. padding: 0;
  39. margin: 0;
  40. border: 0;
  41. box-sizing: border-box;
  42. }
  43. #app {
  44. -webkit-font-smoothing: antialiased;
  45. -moz-osx-font-smoothing: grayscale;
  46. color: #333;
  47. min-height: 100vh;
  48. }
  49. body {
  50. background-color: #f8f9fc;
  51. user-select: none;
  52. }
  53. // tab 选项卡样式
  54. .van-picker .van-picker-column__item--selected {
  55. color: var(--k-font-primary);
  56. }
  57. // 下拉框样式重置
  58. .van-dropdown-menu__bar {
  59. box-shadow: none;
  60. --van-dropdown-menu-title-font-size: 14px;
  61. --van-button-normal-font-size: 16px;
  62. --van-dropdown-menu-height: 44px;
  63. }
  64. .van-dropdown-item {
  65. // 在某些浏览器上面会显示一条线
  66. margin-top: -1px;
  67. }
  68. .van-dropdown-item__content {
  69. border-radius: 0px 0px 12px 12px;
  70. .van-dropdown-item__option {
  71. margin: 0 13px;
  72. height: 44px;
  73. border-radius: 8px;
  74. width: auto;
  75. ;
  76. &:first-child {
  77. margin-top: 12px;
  78. }
  79. &:last-child {
  80. margin-bottom: 12px;
  81. }
  82. &:after {
  83. border: none;
  84. }
  85. .van-cell__title {
  86. white-space: nowrap;
  87. width: 100%;
  88. overflow: hidden;
  89. text-overflow: ellipsis;
  90. font-size: 16px;
  91. color: var(--k-gray-4);
  92. text-align: center;
  93. }
  94. .van-cell__value {
  95. display: none;
  96. }
  97. }
  98. .van-dropdown-item__option--active {
  99. background: #F6F6F6;
  100. .van-cell__title {
  101. font-weight: 600;
  102. color: var(--k-font-primary);
  103. }
  104. }
  105. }
  106. // 固定底部按钮样式
  107. .btnGroupFixed {
  108. padding: 0 25px;
  109. padding-bottom: calc(20px + constant(safe-area-inset-bottom));
  110. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  111. }
  112. // 搜索公用样式
  113. .popupBottomSearch {
  114. --van-picker-toolbar-height: 44px !important;
  115. .van-picker__toolbar {
  116. position: relative;
  117. &::after {
  118. position: absolute;
  119. box-sizing: border-box;
  120. content: ' ';
  121. pointer-events: none;
  122. right: var(--van-padding-md);
  123. bottom: 0;
  124. left: var(--van-padding-md);
  125. border-bottom: 1px solid var(--van-cell-border-color);
  126. transform: scaleY(0.5);
  127. }
  128. }
  129. .van-picker__columns {
  130. padding: 0 24px;
  131. }
  132. .van-picker-column {
  133. position: relative;
  134. z-index: 1;
  135. }
  136. .van-picker__frame {
  137. z-index: 0;
  138. &::after {
  139. background: #f6f6f6;
  140. border-radius: 8px;
  141. }
  142. }
  143. }
  144. .btnGroupPopup {
  145. display: flex;
  146. align-items: center;
  147. justify-content: space-between;
  148. padding: 18px 13px;
  149. .van-button {
  150. font-weight: 400;
  151. width: 48%;
  152. font-size: 16px;
  153. }
  154. }
  155. .myClassM2 {
  156. .amap-marker-label {
  157. background: #FF5A56;
  158. }
  159. }
  160. // 地图样式
  161. .amap-marker-label {
  162. // border: 0;
  163. background: #00B2A7;
  164. border: 0;
  165. color: #fff;
  166. line-height: 18px;
  167. font-size: 12px;
  168. padding: 2px 4px;
  169. border-radius: 4px;
  170. }
  171. // 自定义动画基类
  172. .popup-custom {
  173. transition: all 0.25s;
  174. background: transparent;
  175. overflow: initial;
  176. }
  177. .popup-custom.van-scale {
  178. transform-origin: center -25%;
  179. }
  180. /* 缩放动画 */
  181. .van-scale-enter-from,
  182. .van-scale-leave-to {
  183. opacity: 0;
  184. transform: scale(0.3);
  185. }
  186. .van-scale-enter-active,
  187. .van-scale-leave-active {
  188. transition: all 0.25s;
  189. }
  190. .mb12 {
  191. margin-bottom: 12px !important;
  192. }
  193. .btnGroup {
  194. padding: 0 25px;
  195. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  196. .van-button {
  197. font-size: 18px !important;
  198. font-weight: 500;
  199. }
  200. }
  201. .btnMore {
  202. padding-left: 13px;
  203. padding-right: 13px;
  204. display: flex !important;
  205. justify-content: center !important;
  206. // :global {
  207. .van-button {
  208. width: 100% !important;
  209. }
  210. .van-button+.van-button {
  211. margin-left: 15px;
  212. }
  213. }
  214. .van-overlay {
  215. transition: all 0.25s;
  216. }
  217. .popup-custom {
  218. transition: all 0.25s;
  219. background: transparent;
  220. overflow: initial;
  221. max-width: 100%;
  222. }
  223. .popup-custom.van-scale {
  224. transform-origin: center -25%;
  225. }
  226. /* 缩放动画 */
  227. .van-scale-enter-from,
  228. .van-scale-leave-to {
  229. opacity: 0;
  230. transform: scale(0.3);
  231. }
  232. .van-scale-enter-active,
  233. .van-scale-leave-active {
  234. transition: all 0.25s;
  235. }
  236. .van-toast {
  237. z-index: 99999 !important;
  238. }
  239. .fontBlod {
  240. font-weight: bold;
  241. }
  242. .transferStaff {
  243. .van-popover__content {
  244. padding: 5px 0;
  245. }
  246. .van-popover__action {
  247. border-radius: 4px;
  248. height: auto;
  249. margin: 3px 8px;
  250. padding: 6px 7px;
  251. --van-border-width: 0;
  252. text-align: left;
  253. &.fontBlod {
  254. background: #EEF8FF;
  255. }
  256. }
  257. }
  258. .transferStaffSection {
  259. --van-popover-action-width: 142px;
  260. .van-popover__action-text {
  261. white-space: nowrap;
  262. overflow: hidden;
  263. display: block;
  264. text-overflow: ellipsis;
  265. }
  266. }
  267. /** 处理富文本编辑器样式 重置 **/
  268. .only-child-select {
  269. div, span, applet, object, iframe,
  270. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  271. a, abbr, acronym, address, big, cite, code,
  272. del, dfn, em, img, ins, kbd, q, s, samp,
  273. small, strike, strong, sub, sup, tt, var,
  274. b, u, i, center,
  275. dl, dt, dd, ol, ul, li,
  276. fieldset, form, label, legend,
  277. table, caption, tbody, tfoot, thead, tr, th, td,
  278. article, aside, canvas, details, embed,
  279. figure, figcaption, footer, header, hgroup,
  280. menu, nav, output, ruby, section, summary,
  281. time, mark, audio, video {
  282. all: revert;
  283. }
  284. hr {
  285. border-top: 1px solid #D2D2D2;
  286. }
  287. }