var.less 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. // Color Palette
  2. @black: #000;
  3. @white: #fff;
  4. @gray-1: #f7f8fa;
  5. @gray-2: #f2f3f5;
  6. @gray-3: #ebedf0;
  7. @gray-4: #dcdee0;
  8. @gray-5: #c8c9cc;
  9. @gray-6: #969799;
  10. @gray-7: #646566;
  11. @gray-8: #323233;
  12. @red: #ee0a24;
  13. @blue: #1989fa;
  14. @orange: #ff976a;
  15. @orange-dark: #ed6a0c;
  16. @orange-light: #fffbe8;
  17. @green: #07c160;
  18. // Gradient Colors
  19. @gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
  20. @gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
  21. // Component Colors
  22. @text-color: @gray-8;
  23. @active-color: @gray-2;
  24. @active-opacity: 0.7;
  25. @disabled-opacity: 0.5;
  26. @background-color: @gray-1;
  27. @background-color-light: #fafafa;
  28. @text-link-color: #576b95;
  29. // Padding
  30. @padding-base: 4px;
  31. @padding-xs: @padding-base * 2;
  32. @padding-sm: @padding-base * 3;
  33. @padding-md: @padding-base * 4;
  34. @padding-lg: @padding-base * 6;
  35. @padding-xl: @padding-base * 8;
  36. // Font
  37. @font-size-xs: 10px;
  38. @font-size-sm: 12px;
  39. @font-size-md: 14px;
  40. @font-size-lg: 16px;
  41. @font-weight-bold: 500;
  42. @line-height-xs: 14px;
  43. @line-height-sm: 18px;
  44. @line-height-md: 20px;
  45. @line-height-lg: 22px;
  46. @base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
  47. Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB',
  48. 'Microsoft Yahei', sans-serif;
  49. @price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial,
  50. sans-serif;
  51. // Animation
  52. @animation-duration-base: 0.3s;
  53. @animation-duration-fast: 0.2s;
  54. // Border
  55. @border-color: @gray-3;
  56. @border-width-base: 1px;
  57. @border-radius-sm: 2px;
  58. @border-radius-md: 4px;
  59. @border-radius-lg: 8px;
  60. @border-radius-max: 999px;
  61. //ActionSheet
  62. @action-sheet-max-height: 90%;
  63. @action-sheet-header-height: 44px;
  64. @action-sheet-header-font-size: @font-size-lg;
  65. @action-sheet-description-color: @gray-7;
  66. @action-sheet-description-font-size: @font-size-md;
  67. @action-sheet-description-line-height: 20px;
  68. @action-sheet-item-height: 50px;
  69. @action-sheet-item-background: @white;
  70. @action-sheet-item-font-size: @font-size-lg;
  71. @action-sheet-item-text-color: @text-color;
  72. @action-sheet-item-disabled-text-color: @gray-5;
  73. @action-sheet-subname-color: @gray-7;
  74. @action-sheet-subname-font-size: @font-size-sm;
  75. @action-sheet-close-icon-size: 18px;
  76. @action-sheet-close-icon-color: @gray-6;
  77. @action-sheet-close-icon-padding: 0 @padding-sm;
  78. @action-sheet-cancel-padding-top: @padding-xs;
  79. @action-sheet-cancel-padding-color: @background-color;
  80. // Button
  81. @button-mini-height: 22px;
  82. @button-mini-min-width: 50px;
  83. @button-mini-font-size: @font-size-xs;
  84. @button-small-height: 30px;
  85. @button-small-font-size: @font-size-sm;
  86. @button-small-min-width: 60px;
  87. @button-normal-font-size: @font-size-md;
  88. @button-large-height: 50px;
  89. @button-default-color: @text-color;
  90. @button-default-height: 44px;
  91. @button-default-font-size: @font-size-lg;
  92. @button-default-background-color: @white;
  93. @button-default-border-color: @border-color;
  94. @button-primary-color: @white;
  95. @button-primary-background-color: @green;
  96. @button-primary-border-color: @green;
  97. @button-info-color: @white;
  98. @button-info-background-color: @blue;
  99. @button-info-border-color: @blue;
  100. @button-danger-color: @white;
  101. @button-danger-background-color: @red;
  102. @button-danger-border-color: @red;
  103. @button-warning-color: @white;
  104. @button-warning-background-color: @orange;
  105. @button-warning-border-color: @orange;
  106. @button-line-height: 20px;
  107. @button-border-width: 1px;
  108. @button-border-radius: @border-radius-sm;
  109. @button-round-border-radius: @border-radius-max;
  110. @button-plain-background-color: @white;
  111. @button-disabled-opacity: @disabled-opacity;
  112. // Calendar
  113. @calendar-height: 100%;
  114. @calendar-background-color: @white;
  115. @calendar-popup-height: 80%;
  116. @calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
  117. @calendar-header-title-height: 44px;
  118. @calendar-header-title-font-size: @font-size-lg;
  119. @calendar-header-subtitle-font-size: @font-size-md;
  120. @calendar-weekdays-height: 30px;
  121. @calendar-weekdays-font-size: @font-size-sm;
  122. @calendar-month-title-font-size: @font-size-md;
  123. @calendar-month-mark-color: fade(@gray-2, 80%);
  124. @calendar-month-mark-font-size: 160px;
  125. @calendar-day-height: 64px;
  126. @calendar-day-font-size: @font-size-lg;
  127. @calendar-range-edge-color: @white;
  128. @calendar-range-edge-background-color: @red;
  129. @calendar-range-middle-color: @red;
  130. @calendar-range-middle-background-opacity: 0.1;
  131. @calendar-selected-day-size: 54px;
  132. @calendar-selected-day-color: @white;
  133. @calendar-info-font-size: @font-size-xs;
  134. @calendar-info-line-height: 14px;
  135. @calendar-selected-day-background-color: @red;
  136. @calendar-day-disabled-color: @gray-5;
  137. @calendar-confirm-button-height: 36px;
  138. @calendar-confirm-button-margin: 7px 0;
  139. @calendar-confirm-button-line-height: 34px;
  140. // Card
  141. @card-padding: @padding-xs @padding-md;
  142. @card-font-size: @font-size-sm;
  143. @card-text-color: @text-color;
  144. @card-background-color: @background-color-light;
  145. @card-thumb-size: 88px;
  146. @card-title-line-height: 16px;
  147. @card-desc-color: @gray-7;
  148. @card-desc-line-height: 20px;
  149. @card-price-color: @red;
  150. @card-origin-price-color: @gray-7;
  151. @card-origin-price-font-size: @font-size-xs;
  152. @card-price-font-size: @font-size-sm;
  153. @card-price-integer-font-size: @font-size-lg;
  154. @card-price-font-family: @price-integer-font-family;
  155. // Cell
  156. @cell-font-size: @font-size-md;
  157. @cell-line-height: 24px;
  158. @cell-vertical-padding: 10px;
  159. @cell-horizontal-padding: @padding-md;
  160. @cell-text-color: @text-color;
  161. @cell-background-color: @white;
  162. @cell-border-color: @border-color;
  163. @cell-active-color: @active-color;
  164. @cell-required-color: @red;
  165. @cell-label-color: @gray-6;
  166. @cell-label-font-size: @font-size-sm;
  167. @cell-label-line-height: 18px;
  168. @cell-label-margin-top: 3px;
  169. @cell-value-color: @gray-6;
  170. @cell-icon-size: 16px;
  171. @cell-right-icon-color: @gray-6;
  172. @cell-large-vertical-padding: @padding-sm;
  173. @cell-large-title-font-size: @font-size-lg;
  174. @cell-large-value-font-size: @font-size-lg;
  175. @cell-large-label-font-size: @font-size-md;
  176. // CellGroup
  177. @cell-group-background-color: @white;
  178. @cell-group-title-color: @gray-6;
  179. @cell-group-title-padding: @padding-md @padding-md @padding-xs;
  180. @cell-group-title-font-size: @font-size-md;
  181. @cell-group-title-line-height: 16px;
  182. // Checkbox
  183. @checkbox-size: 20px;
  184. @checkbox-border-color: @gray-5;
  185. @checkbox-transition-duration: 0.2s;
  186. @checkbox-label-margin: 10px;
  187. @checkbox-label-color: @text-color;
  188. @checkbox-checked-icon-color: @blue;
  189. @checkbox-disabled-icon-color: @gray-5;
  190. @checkbox-disabled-label-color: @gray-5;
  191. @checkbox-disabled-background-color: @border-color;
  192. // Circle
  193. @circle-text-color: @text-color;
  194. // Collapse
  195. @collapse-item-transition-duration: 0.3s;
  196. @collapse-item-content-padding: 15px;
  197. @collapse-item-content-font-size: 13px;
  198. @collapse-item-content-line-height: 1.5;
  199. @collapse-item-content-text-color: @gray-6;
  200. @collapse-item-content-background-color: @white;
  201. @collapse-item-title-disabled-color: @gray-5;
  202. // CountDown
  203. @count-down-text-color: @text-color;
  204. @count-down-font-size: @font-size-md;
  205. @count-down-line-height: 20px;
  206. // Dialog
  207. @dialog-width: 320px;
  208. @dialog-small-screen-width: 90%;
  209. @dialog-font-size: @font-size-lg;
  210. @dialog-border-radius: 16px;
  211. @dialog-background-color: @white;
  212. @dialog-header-font-weight: @font-weight-bold;
  213. @dialog-header-line-height: 24px;
  214. @dialog-header-padding-top: @padding-lg;
  215. @dialog-header-isolated-padding: @padding-lg 0;
  216. @dialog-message-padding: @padding-lg;
  217. @dialog-message-font-size: @font-size-md;
  218. @dialog-message-line-height: 20px;
  219. @dialog-message-max-height: 60vh;
  220. @dialog-has-title-message-text-color: @gray-7;
  221. @dialog-has-title-message-padding-top: @padding-xs;
  222. // Field
  223. @field-label-color: @gray-7;
  224. @field-input-text-color: @text-color;
  225. @field-input-error-text-color: @red;
  226. @field-input-disabled-text-color: @gray-5;
  227. @field-placeholder-text-color: @gray-5;
  228. @field-icon-size: 16px;
  229. @field-clear-icon-size: 16px;
  230. @field-clear-icon-color: @gray-5;
  231. @field-icon-container-color: @gray-6;
  232. @field-error-message-color: @red;
  233. @field-error-message-text-font-size: @font-size-sm;
  234. @field-text-area-min-height: 18px;
  235. @field-word-limit-color: @gray-7;
  236. @field-word-limit-font-size: @font-size-sm;
  237. @field-word-limit-line-height: 16px;
  238. @field-word-num-full-color: @red;
  239. @field-disabled-text-color: @gray-5;
  240. // GoodsAction
  241. @goods-action-background-color: @white;
  242. @goods-action-height: 50px;
  243. @goods-action-icon-width: 48px;
  244. @goods-action-icon-height: @goods-action-height;
  245. @goods-action-icon-color: @text-color;
  246. @goods-action-icon-size: 18px;
  247. @goods-action-icon-font-size: @font-size-xs;
  248. @goods-action-icon-text-color: @gray-7;
  249. @goods-action-button-height: 40px;
  250. @goods-action-button-line-height: @button-line-height;
  251. @goods-action-button-border-radius: @goods-action-button-height / 2;
  252. @goods-action-button-warning-color: @gradient-orange;
  253. @goods-action-button-danger-color: @gradient-red;
  254. @goods-action-button-plain-color: @white;
  255. // Image
  256. @image-placeholder-text-color: @gray-6;
  257. @image-placeholder-font-size: @font-size-md;
  258. @image-placeholder-background-color: @background-color;
  259. // Info
  260. @info-size: 16px;
  261. @info-color: @white;
  262. @info-padding: 0 3px;
  263. @info-font-size: 12px;
  264. @info-font-weight: 500;
  265. @info-border-width: 1px;
  266. @info-background-color: @red;
  267. @info-dot-color: @red;
  268. @info-dot-size: 8px;
  269. @info-font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
  270. // Loading
  271. @loading-text-color: @gray-6;
  272. @loading-text-font-size: @font-size-md;
  273. @loading-text-line-height: 20px;
  274. @loading-spinner-color: @gray-5;
  275. @loading-spinner-size: 30px;
  276. @loading-spinner-animation-duration: 0.8s;
  277. // NavBar
  278. @nav-bar-height: 46px;
  279. @nav-bar-background-color: @white;
  280. @nav-bar-arrow-size: 16px;
  281. @nav-bar-icon-color: @blue;
  282. @nav-bar-text-color: @blue;
  283. @nav-bar-title-font-size: @font-size-lg;
  284. @nav-bar-title-text-color: @text-color;
  285. // NoticeBar
  286. @notice-bar-height: 40px;
  287. @notice-bar-padding: 0 @padding-md;
  288. @notice-bar-wrapable-padding: @padding-xs @padding-md;
  289. @notice-bar-font-size: @font-size-md;
  290. @notice-bar-text-color: @orange-dark;
  291. @notice-bar-line-height: 24px;
  292. @notice-bar-background-color: @orange-light;
  293. @notice-bar-icon-size: 16px;
  294. @notice-bar-icon-min-width: 22px;
  295. // Notify
  296. @notify-padding: 6px 15px;
  297. @notify-font-size: 14px;
  298. @notify-line-height: 20px;
  299. @notify-primary-background-color: @blue;
  300. @notify-success-background-color: @green;
  301. @notify-danger-background-color: @red;
  302. @notify-warning-background-color: @orange;
  303. // Overlay
  304. @overlay-background-color: rgba(0, 0, 0, 0.7);
  305. // Panel
  306. @panel-background-color: @white;
  307. @panel-header-value-color: @red;
  308. @panel-footer-padding: @padding-xs @padding-md;
  309. // Picker
  310. @picker-background-color: @white;
  311. @picker-toolbar-height: 44px;
  312. @picker-title-font-size: @font-size-lg;
  313. @picker-action-padding: 0 @padding-md;
  314. @picker-action-font-size: @font-size-md;
  315. @picker-confirm-action-color: @text-link-color;
  316. @picker-cancel-action-color: @gray-6;
  317. @picker-option-font-size: @font-size-lg;
  318. @picker-option-text-color: @black;
  319. @picker-loading-icon-color: @blue;
  320. @picker-loading-mask-color: rgba(255, 255, 255, 0.9);
  321. @picker-option-disabled-opacity: 0.3;
  322. @picker-option-selected-text-color: @text-color;
  323. // Popup
  324. @popup-background-color: @white;
  325. @popup-round-border-radius: 20px;
  326. @popup-close-icon-size: 18px;
  327. @popup-close-icon-color: @gray-6;
  328. @popup-close-icon-margin: 16px;
  329. @popup-close-icon-z-index: 1;
  330. // Progress
  331. @progress-height: 4px;
  332. @progress-background-color: @gray-3;
  333. @progress-pivot-padding: 0 5px;
  334. @progress-color: @blue;
  335. @progress-pivot-font-size: @font-size-xs;
  336. @progress-pivot-line-height: 1.6;
  337. @progress-pivot-background-color: @blue;
  338. @progress-pivot-text-color: @white;
  339. // Radio
  340. @radio-size: 20px;
  341. @radio-border-color: @gray-5;
  342. @radio-transition-duration: 0.2s;
  343. @radio-label-margin: 10px;
  344. @radio-label-color: @text-color;
  345. @radio-checked-icon-color: @blue;
  346. @radio-disabled-icon-color: @gray-5;
  347. @radio-disabled-label-color: @gray-5;
  348. @radio-disabled-background-color: @border-color;
  349. // Rate
  350. @rate-horizontal-padding: 2px;
  351. @rate-icon-size: 20px;
  352. // Switch
  353. @switch-width: 2em;
  354. @switch-height: 1em;
  355. @switch-node-size: 1em;
  356. @switch-node-z-index: 1;
  357. @switch-node-background-color: @white;
  358. @switch-node-box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05),
  359. 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
  360. @switch-background-color: @white;
  361. @switch-on-background-color: @blue;
  362. @switch-transition-duration: 0.3s;
  363. @switch-disabled-opacity: 0.4;
  364. @switch-border: 1px solid rgba(0, 0, 0, 0.1);
  365. // ShareSheet
  366. @share-sheet-header-padding: @padding-sm @padding-md @padding-base;
  367. @share-sheet-title-color: @text-color;
  368. @share-sheet-title-font-size: @font-size-md;
  369. @share-sheet-title-line-height: @line-height-md;
  370. @share-sheet-description-color: @gray-6;
  371. @share-sheet-description-font-size: @font-size-sm;
  372. @share-sheet-description-line-height: 16px;
  373. @share-sheet-icon-size: 48px;
  374. @share-sheet-option-name-color: @gray-7;
  375. @share-sheet-option-name-font-size: @font-size-sm;
  376. @share-sheet-option-description-color: @gray-5;
  377. @share-sheet-option-description-font-size: @font-size-sm;
  378. @share-sheet-cancel-button-font-size: @font-size-lg;
  379. @share-sheet-cancel-button-height: 48px;
  380. @share-sheet-cancel-button-background: @white;
  381. // Search
  382. @search-background-color: @gray-1;
  383. @search-padding: 10px @padding-sm;
  384. @search-input-height: 34px;
  385. @search-label-padding: 0 5px;
  386. @search-label-color: @text-color;
  387. @search-label-font-size: @font-size-md;
  388. @search-left-icon-color: @gray-6;
  389. @search-action-padding: 0 @padding-xs;
  390. @search-action-text-color: @text-color;
  391. @search-action-font-size: @font-size-md;
  392. // Sidebar
  393. @sidebar-width: 85px;
  394. // SidebarItem
  395. @sidebar-font-size: @font-size-md;
  396. @sidebar-line-height: 20px;
  397. @sidebar-text-color: @text-color;
  398. @sidebar-disabled-text-color: @gray-5;
  399. @sidebar-padding: 20px @padding-sm 20px @padding-xs;
  400. @sidebar-active-color: @active-color;
  401. @sidebar-background-color: @background-color;
  402. @sidebar-selected-font-weight: @font-weight-bold;
  403. @sidebar-selected-text-color: @text-color;
  404. @sidebar-selected-border-color: @red;
  405. @sidebar-selected-background-color: @white;
  406. // Slider
  407. @slider-active-background-color: @blue;
  408. @slider-inactive-background-color: @gray-3;
  409. @slider-disabled-opacity: @disabled-opacity;
  410. @slider-button-width: 24px;
  411. @slider-button-height: 24px;
  412. @slider-button-border-radius: 50%;
  413. @slider-button-background-color: @white;
  414. @slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  415. // Step
  416. @step-text-color: @gray-6;
  417. @step-process-text-color: @text-color;
  418. @step-font-size: @font-size-md;
  419. @step-line-color: @border-color;
  420. @step-finish-line-color: @green;
  421. @step-finish-text-color: @text-color;
  422. @step-icon-size: 12px;
  423. @step-circle-size: 5px;
  424. @step-circle-color: @gray-6;
  425. @step-horizontal-title-font-size: @font-size-sm;
  426. // Steps
  427. @steps-background-color: @white;
  428. // Stepper
  429. @stepper-active-color: #e8e8e8;
  430. @stepper-background-color: @gray-2;
  431. @stepper-button-icon-color: @text-color;
  432. @stepper-button-disabled-color: @gray-1;
  433. @stepper-button-disabled-icon-color: @gray-5;
  434. @stepper-input-width: 32px;
  435. @stepper-input-height: 28px;
  436. @stepper-input-font-size: @font-size-md;
  437. @stepper-input-text-color: @text-color;
  438. @stepper-input-disabled-text-color: @gray-5;
  439. @stepper-input-disabled-background-color: @gray-2;
  440. @stepper-border-radius: @border-radius-md;
  441. // SubmitBar
  442. @submit-bar-height: 50px;
  443. @submit-bar-z-index: 100;
  444. @submit-bar-background-color: @white;
  445. @submit-bar-button-width: 110px;
  446. @submit-bar-price-color: @red;
  447. @submit-bar-price-font-size: @font-size-sm;
  448. @submit-bar-currency-font-size: @font-size-sm;
  449. @submit-bar-text-color: @text-color;
  450. @submit-bar-text-font-size: 14px;
  451. @submit-bar-tip-padding: 10px;
  452. @submit-bar-tip-font-size: 12px;
  453. @submit-bar-tip-line-height: 1.5;
  454. @submit-bar-tip-color: #f56723;
  455. @submit-bar-tip-background-color: #fff7cc;
  456. @submit-bar-tip-icon-size: 12px;
  457. @submit-bar-button-height: 40px;
  458. @submit-bar-padding: 0 @padding-md;
  459. @submit-bar-price-integer-font-size: 20px;
  460. @submit-bar-price-font-family: @price-integer-font-family;
  461. // Tabbar
  462. @tabbar-height: 50px;
  463. @tabbar-background-color: @white;
  464. // TabbarItem
  465. @tabbar-item-font-size: @font-size-sm;
  466. @tabbar-item-text-color: @gray-7;
  467. @tabbar-item-active-color: @blue;
  468. @tabbar-item-line-height: 1;
  469. @tabbar-item-icon-size: 18px;
  470. @tabbar-item-margin-bottom: 5px;
  471. // Tab
  472. @tab-text-color: @gray-7;
  473. @tab-active-text-color: @text-color;
  474. @tab-disabled-text-color: @gray-5;
  475. @tab-font-size: @font-size-md;
  476. // Tabs
  477. @tabs-default-color: @red;
  478. @tabs-line-height: 44px;
  479. @tabs-card-height: 30px;
  480. @tabs-nav-background-color: @white;
  481. @tabs-bottom-bar-height: 3px;
  482. @tabs-bottom-bar-color: @tabs-default-color;
  483. // Tag
  484. @tag-padding: 0 @padding-base;
  485. @tag-text-color: @white;
  486. @tag-font-size: @font-size-sm;
  487. @tag-border-radius: 2px;
  488. @tag-line-height: 16px;
  489. @tag-medium-padding: 2px 6px;
  490. @tag-large-padding: @padding-base @padding-xs;
  491. @tag-large-border-radius: @border-radius-md;
  492. @tag-large-font-size: @font-size-md;
  493. @tag-round-border-radius: @border-radius-max;
  494. @tag-danger-color: @red;
  495. @tag-primary-color: @blue;
  496. @tag-success-color: @green;
  497. @tag-warning-color: @orange;
  498. @tag-default-color: @gray-6;
  499. @tag-plain-background-color: @white;
  500. // Toast
  501. @toast-max-width: 70%;
  502. @toast-font-size: 14px;
  503. @toast-text-color: @white;
  504. @toast-line-height: 20px;
  505. @toast-border-radius: @border-radius-lg;
  506. @toast-background-color: fade(@black, 70%);
  507. @toast-icon-size: 36px;
  508. @toast-text-min-width: 96px;
  509. @toast-text-padding: @padding-xs @padding-sm;
  510. @toast-default-padding: @padding-md;
  511. @toast-default-width: 88px;
  512. @toast-default-min-height: 88px;
  513. // GridItem
  514. @grid-item-content-padding: @padding-md @padding-xs;
  515. @grid-item-content-background-color: @white;
  516. @grid-item-content-active-color: @active-color;
  517. @grid-item-icon-size: 26px;
  518. @grid-item-text-color: @gray-7;
  519. @grid-item-text-font-size: @font-size-sm;
  520. // Divider
  521. @divider-margin: @padding-md 0;
  522. @divider-text-color: @gray-6;
  523. @divider-font-size: @font-size-md;
  524. @divider-line-height: 24px;
  525. @divider-border-color: @border-color;
  526. @divider-content-padding: @padding-md;
  527. @divider-content-left-width: 10%;
  528. @divider-content-right-width: 10%;
  529. // Empty
  530. @empty-padding: @padding-xl 0;
  531. @empty-image-size: 160px;
  532. @empty-description-margin-top: @padding-md;
  533. @empty-description-padding: 0 60px;
  534. @empty-description-color: @gray-6;
  535. @empty-description-font-size: 14px;
  536. @empty-description-line-height: 20px;
  537. @empty-bottom-margin-top: 24px;
  538. // TreeSelect
  539. @tree-select-font-size: @font-size-md;
  540. @tree-select-nav-background-color: @background-color;
  541. @tree-select-content-background-color: @white;
  542. @tree-select-nav-item-padding: @padding-sm @padding-xs @padding-sm @padding-sm;
  543. @tree-select-item-height: 44px;
  544. @tree-select-item-active-color: @red;
  545. @tree-select-item-disabled-color: @gray-5;
  546. // Uploader
  547. @uploader-size: 80px;
  548. @uploader-icon-size: 24px;
  549. @uploader-icon-color: @gray-4;
  550. @uploader-text-color: @gray-6;
  551. @uploader-text-font-size: @font-size-sm;
  552. @uploader-upload-background-color: @gray-1;
  553. @uploader-upload-active-color: @active-color;
  554. @uploader-delete-color: @white;
  555. @uploader-delete-icon-size: 14px;
  556. @uploader-delete-background-color: rgba(0, 0, 0, 0.7);
  557. @uploader-file-background-color: @background-color;
  558. @uploader-file-icon-size: 20px;
  559. @uploader-file-icon-color: @gray-7;
  560. @uploader-file-name-padding: 0 @padding-base;
  561. @uploader-file-name-margin-top: @padding-xs;
  562. @uploader-file-name-font-size: @font-size-sm;
  563. @uploader-file-name-text-color: @gray-7;
  564. @uploader-mask-background-color: fade(@gray-8, 88%);
  565. @uploader-mask-icon-size: 22px;
  566. @uploader-mask-message-font-size: @font-size-sm;
  567. @uploader-mask-message-line-height: 14px;
  568. @uploader-loading-icon-size: 22px;
  569. @uploader-loading-icon-color: @white;
  570. @uploader-disabled-opacity: @disabled-opacity;
  571. // DropdownMenu
  572. @dropdown-menu-height: 50px;
  573. @dropdown-menu-background-color: @white;
  574. @dropdown-menu-title-font-size: 15px;
  575. @dropdown-menu-title-text-color: @text-color;
  576. @dropdown-menu-title-active-text-color: @blue;
  577. @dropdown-menu-title-disabled-text-color: @gray-6;
  578. @dropdown-menu-title-padding: 0 @padding-xs;
  579. @dropdown-menu-title-line-height: 18px;
  580. @dropdown-menu-option-active-color: @blue;
  581. // IndexAnchor
  582. @index-anchor-padding: 0 @padding-md;
  583. @index-anchor-text-color: @text-color;
  584. @index-anchor-font-weight: 500;
  585. @index-anchor-font-size: @font-size-md;
  586. @index-anchor-line-height: 32px;
  587. @index-anchor-background-color: transparent;
  588. @index-anchor-active-background-color: @white;
  589. @index-anchor-active-text-color: @green;
  590. // IndexBar
  591. @index-bar-index-font-size: @font-size-xs;
  592. @index-bar-index-line-height: 14px;
  593. // skeleton
  594. @skeleton-padding: 0 @padding-md;
  595. @skeleton-row-height: 16px;
  596. @skeleton-row-background-color: @gray-2;
  597. @skeleton-row-margin-top: @padding-sm;
  598. @skeleton-avatar-background-color: @gray-2;
  599. @skeleton-animation-duration: 1.2s;