mock平台

theme.less 9.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. @import '~antd/dist/antd.less';
  2. @ant-prefix : ant;
  3. // -------- Colors -----------
  4. @primary-color : #2395f1;
  5. @info-color : #2395f1;
  6. @success-color : #57cf27;
  7. @error-color : #ff561b;
  8. @highlight-color : #ff561b;
  9. @warning-color : #fac200;
  10. @normal-color : #d9d9d9;
  11. // Color used by default to control hover and active backgrounds and for
  12. // alert info backgrounds.
  13. @primary-1: color(~`colorPalette("@{primary-color}", 1)`); // replace tint(@primary-color, 90%)
  14. @primary-2: color(~`colorPalette("@{primary-color}", 2)`); // replace tint(@primary-color, 80%)
  15. // unused
  16. @primary-3: color(~`colorPalette("@{primary-color}", 3)`);
  17. @primary-4: color(~`colorPalette("@{primary-color}", 4)`);
  18. // Color used to control the text color in many active and hover states.
  19. @primary-5: color(~`colorPalette("@{primary-color}", 5)`); // replace tint(@primary-color, 20%)
  20. @primary-6: @primary-color; // don't use, use @primary-color
  21. // Color used to control the text color of active buttons.
  22. @primary-7: color(~`colorPalette("@{primary-color}", 7)`); // replace shade(@primary-color, 5%)
  23. // unused
  24. @primary-8: color(~`colorPalette("@{primary-color}", 8)`);
  25. // unused
  26. @primary-9: color(~`colorPalette("@{primary-color}", 9)`);
  27. // unused
  28. @primary-10: color(~`colorPalette("@{primary-color}", 10)`);
  29. // Base Scaffolding Variables
  30. // ---
  31. // Background color for `<body>`
  32. @body-background : #eceef1;
  33. // Base background color for most components
  34. @component-background : #fff;
  35. @heading-color : fade(#273848, 85%);
  36. @text-color : fade(#0d1b3e, 65%);
  37. @text-color-secondary : fade(#0d1b3e, 43%);
  38. @heading-color-dark : fade(#fff, 97%);
  39. @text-color-dark : fade(#fff, 91%);
  40. @text-color-secondary-dark: fade(#fff, 67%);
  41. @font-size-base : 13px;
  42. @font-size-lg : @font-size-base + 3px;
  43. @line-height-base : 1.5;
  44. @border-radius-base : 4px;
  45. @border-radius-sm : 2px;
  46. // The background colors for active and hover states for things like
  47. // list items or table cells.
  48. @item-active-bg : @primary-1;
  49. @item-hover-bg : @primary-1;
  50. // ICONFONT
  51. @iconfont-css-prefix : anticon;
  52. // @icon-url : "https://at.alicdn.com/t/font_zck90zmlh7hf47vi";
  53. @icon-url : "/iconfont/iconfont";
  54. // LINK
  55. @link-color : @primary-color;
  56. @link-hover-color : @primary-5;
  57. @link-active-color : @primary-7;
  58. @link-hover-decoration : none;
  59. // Animation
  60. @ease-out : cubic-bezier(0.215, 0.61, 0.355, 1);
  61. @ease-in : cubic-bezier(0.55, 0.055, 0.675, 0.19);
  62. @ease-in-out : cubic-bezier(0.645, 0.045, 0.355, 1);
  63. @ease-out-back : cubic-bezier(0.12, 0.4, 0.29, 1.46);
  64. @ease-in-back : cubic-bezier(0.71, -0.46, 0.88, 0.6);
  65. @ease-in-out-back : cubic-bezier(0.71, -0.46, 0.29, 1.46);
  66. @ease-out-circ : cubic-bezier(0.08, 0.82, 0.17, 1);
  67. @ease-in-circ : cubic-bezier(0.6, 0.04, 0.98, 0.34);
  68. @ease-in-out-circ : cubic-bezier(0.78, 0.14, 0.15, 0.86);
  69. @ease-out-quint : cubic-bezier(0.23, 1, 0.32, 1);
  70. @ease-in-quint : cubic-bezier(0.755, 0.05, 0.855, 0.06);
  71. @ease-in-out-quint : cubic-bezier(0.86, 0, 0.07, 1);
  72. // Border color
  73. @border-color-base : #d9d9d9; // base border outline a component
  74. @border-color-split : #e9e9e9; // split border inside a component
  75. @border-width-base : 1px; // width of the border for a component
  76. @border-style-base : solid; // style of a components border
  77. // Outline
  78. @outline-blur-size : 0;
  79. @outline-width : 2px;
  80. @outline-color : @primary-color;
  81. // Default background color for disabled states, Collapse wrappers,
  82. // and several active and hover states.
  83. @background-color-base : #f7f7f7;
  84. @background-color-active: #eee;
  85. // Disabled states
  86. @disabled-color : fade(#0d1b3e, 45%);
  87. @disabled-bg : @background-color-base;
  88. @disabled-color-dark : fade(#fff, 55%);
  89. // Shadow
  90. @shadow-color : rgba(0, 0, 0, .2);
  91. @box-shadow-base : @shadow-1-down;
  92. @shadow-1-up : 0 -1px 6px @shadow-color;
  93. @shadow-1-down : 0 1px 6px @shadow-color;
  94. @shadow-1-left : -1px 0 6px @shadow-color;
  95. @shadow-1-right : 1px 0 6px @shadow-color;
  96. @shadow-2 : 0 2px 8px @shadow-color;
  97. // Buttons
  98. @btn-font-weight : 400;
  99. @btn-border-radius-base : @border-radius-base;
  100. @btn-border-radius-sm : @border-radius-base;
  101. @btn-primary-color : #fff;
  102. @btn-primary-bg : @primary-color;
  103. @btn-default-color : @text-color;
  104. @btn-default-bg : #fff;
  105. @btn-default-border : @border-color-base;
  106. @btn-danger-color : @error-color;
  107. @btn-danger-bg : @background-color-base;
  108. @btn-danger-border : @border-color-base;
  109. @btn-disable-color : @disabled-color;
  110. @btn-disable-bg : @disabled-bg;
  111. @btn-disable-border : @border-color-base;
  112. @btn-padding-base : 2px 16px;
  113. @btn-font-size-lg : @font-size-lg;
  114. @btn-padding-lg : @btn-padding-base;
  115. @btn-padding-sm : 0 7px;
  116. @btn-height-base : 28px + 4px;
  117. @btn-height-lg : 32px + 4px;
  118. @btn-height-sm : 22px + 4px;
  119. @btn-circle-size : @btn-height-base;
  120. @btn-circle-size-lg : @btn-height-lg;
  121. @btn-circle-size-sm : @btn-height-sm;
  122. @btn-group-border : @primary-7;
  123. // Radio buttons
  124. @radio-button-bg : @btn-default-bg;
  125. @radio-button-color : @btn-default-color;
  126. // Layout
  127. @layout-body-background : #eceef1;
  128. @layout-header-background : #32363a;
  129. @layout-header-height : 56px;
  130. @layout-header-padding : 0 0;
  131. // @layout-footer-padding : 24px 50px;
  132. // @layout-sider-background : @layout-header-background;
  133. // 侧栏背景颜色
  134. @layout-sider-background : #fff;
  135. // @layout-trigger-height : 48px;
  136. // @layout-trigger-background : tint(@heading-color, 20%);
  137. // @layout-trigger-color : #fff;
  138. // @layout-zero-trigger-width : 36px;
  139. // @layout-zero-trigger-height : 42px;
  140. // Animation
  141. @animation-duration-slow: .3s -.1s; // Modal
  142. @animation-duration-base: .2s;
  143. @animation-duration-fast: .1s; // Tooltip
  144. // Form
  145. // ---
  146. @label-required-color : @highlight-color;
  147. @label-color : @heading-color;
  148. @form-item-margin-bottom : 24px;
  149. // 处理添加环境配置下边距重合的 bug
  150. .ant-form-item > .ant-form-item, .ant-form-item :not(.ant-form) > .ant-form-item {
  151. margin-bottom: 16px;
  152. }
  153. @form-item-trailing-colon : true;
  154. // Input
  155. // ---
  156. @input-height-base : 28px + 4px;
  157. @input-height-lg : 32px + 4px;
  158. @input-height-sm : 22px + 4px;
  159. @input-padding-horizontal : 7px + 2px;
  160. @input-padding-vertical-base : 4px + 2px;
  161. @input-padding-vertical-sm : 1px + 2px;
  162. @input-padding-vertical-lg : 6px + 2px;
  163. @input-placeholder-color : @disabled-color;
  164. @input-color : @text-color;
  165. @input-border-color : @border-color-base;
  166. @input-bg : #fff;
  167. @input-addon-bg : #eee;
  168. @input-hover-border-color : @primary-color;
  169. @input-disabled-bg : @disabled-bg;
  170. // Tooltip
  171. // ---
  172. //* Tooltip max width
  173. @tooltip-max-width: 250px;
  174. //** Tooltip text color
  175. @tooltip-color: #fff;
  176. //** Tooltip background color
  177. @tooltip-bg: rgba(64, 64, 64, .85);
  178. //** Tooltip arrow width
  179. @tooltip-arrow-width: 5px;
  180. //** Tooltip distance with trigger
  181. @tooltip-distance: @tooltip-arrow-width - 1px + 4px;
  182. //** Tooltip arrow color
  183. @tooltip-arrow-color: @tooltip-bg;
  184. // Popover
  185. // ---
  186. //** Popover body background color
  187. @popover-bg: #fff;
  188. //** Popover text color
  189. @popover-color: @text-color;
  190. //** Popover maximum width
  191. @popover-min-width: 177px;
  192. //** Popover arrow width
  193. @popover-arrow-width: 4px;
  194. //** Popover arrow color
  195. @popover-arrow-color: @popover-bg;
  196. //** Popover outer arrow width
  197. @popover-arrow-outer-width: (@popover-arrow-width + 1px);
  198. //** Popover outer arrow color
  199. @popover-arrow-outer-color: fadeout(@border-color-base, 30%);
  200. //** Popover distance with trigger
  201. @popover-distance: @popover-arrow-width + 4px;
  202. // Modal
  203. // --
  204. @modal-mask-bg: rgba(55, 55, 55, 0.6);
  205. // Progress
  206. // --
  207. @process-default-color: @primary-color;
  208. @progress-remaining-color: @background-color-base;
  209. // Menu
  210. // ---
  211. @menu-dark-bg: @layout-header-background;
  212. @menu-dark-submenu-bg: #333;
  213. @menu-collapsed-width: 64px;
  214. // .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
  215. // background-color: rgba(35,149,241, .15);
  216. // }
  217. // .ant-menu-item:active, .ant-menu-submenu-title:active {
  218. // background-color: rgba(35,149,241, .15);
  219. // }
  220. // Spin
  221. // ---
  222. @spin-dot-size-sm: 14px + 2px;
  223. @spin-dot-size: 20px + 3px;
  224. @spin-dot-size-lg: 32px + 4px;
  225. // Table
  226. // --
  227. @table-header-bg: #eee;
  228. @table-header-sort-bg: @background-color-active;
  229. @table-row-hover-bg: @primary-1;
  230. @table-selected-row-bg: #fafafa;
  231. @table-padding-vertical: 16px;
  232. @table-padding-horizontal: 8px + 2px;
  233. // Tag
  234. // --
  235. @tag-default-bg: #f3f3f3;
  236. @tag-default-color: @text-color;
  237. @tag-font-size: @font-size-base;
  238. // TimePicker
  239. // ---
  240. @time-picker-panel-column-width: 56px;
  241. @time-picker-panel-width: @time-picker-panel-column-width * 3;
  242. @time-picker-selected-bg: @background-color-base;
  243. // Carousel
  244. // ---
  245. @carousel-dot-width: 16px + 4px;
  246. @carousel-dot-height: 3px + 2px;
  247. @carousel-dot-active-width: 24px + 4px;
  248. // Badge
  249. // ---
  250. @badge-height: 20px + 4px;
  251. @badge-dot-size: 8px + 4px;
  252. @badge-font-size: @font-size-base + 2px;
  253. // Rate
  254. // ---
  255. @rate-star-color: #f5a623;
  256. @rate-star-bg: #e9e9e9;
  257. // Card
  258. // ---
  259. @card-head-height: 48px;
  260. @card-head-color: @heading-color;
  261. @card-head-background: @component-background;
  262. // Tabs
  263. // ---
  264. // @tabs-card-head-background: #f9f9f9;
  265. // @tabs-title-font-size: @font-size-lg;
  266. .ant-tabs-bar {
  267. margin-bottom: 0;
  268. }
  269. // BackTop
  270. @back-top-color: #fff;
  271. @back-top-bg: rgba(64, 64, 64, 0.4);
  272. @back-top-hover-bg: rgba(64, 64, 64, 0.6);
  273. // Avatar
  274. @avatar-size-base: 32px;
  275. @avatar-size-lg: 40px;
  276. @avatar-size-sm: 24px;
  277. @avatar-font-size-base: 18px;
  278. @avatar-font-size-lg: 24px;
  279. @avatar-font-size-sm: 14px;
  280. @avatar-bg: #ccc;
  281. @avatar-color: #fff;
  282. @avatar-border-radius: @border-radius-base;