core.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. @charset "utf-8";
  2. @base_color: #444444;
  3. @empty_color: #fff;
  4. @base_bg_color: #f0f0f0;
  5. @admin_bg_color: #f0f2f5;
  6. @base_size: 14px;
  7. @second_color: #999999;
  8. @second_bg_color: #f5f5f5;
  9. @select_bg_color: #e5e5e5;
  10. @small_size: 12px;
  11. @shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.18);
  12. @border: 1px solid #e1e1e1;
  13. @light_color: #777777;
  14. @holder_color: #bbbbbb;
  15. @theme_color: rgb(24, 144, 255);
  16. @theme_shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  17. @theme_second_color: rgb(230, 247, 255);
  18. @error_bg_color: #fff1f0;
  19. @error_color: #f5222d;
  20. @error_shadow: 0 0 0 1px #f85a62;
  21. @magenta: #fff0f6;
  22. @red: #fff1f0;
  23. @volcano: #fff2e8;
  24. @orange: #fff7e6;
  25. @gold: #fffbe6;
  26. @lime: #fcffe6;
  27. @green: #f6ffed;
  28. @cyan: #e6fffb;
  29. @blue: #e6f7ff;
  30. @geekblue: #f0f5ff;
  31. @purple: #f9f0ff;
  32. .theme,
  33. .theme a,
  34. .theme a:hover {
  35. color: @theme_color;
  36. }
  37. .t-l {
  38. text-align: left;
  39. }
  40. .t-r {
  41. text-align: right;
  42. }
  43. .t-c {
  44. text-align: center;
  45. }
  46. .f-l {
  47. float: left;
  48. }
  49. .f-r {
  50. float: right;
  51. }
  52. .p-a {
  53. position: absolute;
  54. }
  55. .d-i-b {
  56. display: inline-block;
  57. }
  58. .m-l-5 {
  59. margin-left: 5px;
  60. }
  61. .m-l-1 {
  62. margin-left: 10px;
  63. }
  64. .m-l-2 {
  65. margin-left: 20px;
  66. }
  67. .m-r-5 {
  68. margin-right: 5px;
  69. }
  70. .m-r-1 {
  71. margin-right: 10px;
  72. }
  73. .m-r-2 {
  74. margin-right: 10px;
  75. }
  76. .m-t-5 {
  77. margin-top: 5px;
  78. }
  79. .m-t-1 {
  80. margin-top: 10px;
  81. }
  82. .m-t-2 {
  83. margin-top: 20px;
  84. }
  85. .m-b-5 {
  86. margin-bottom: 5px;
  87. }
  88. .m-b-1 {
  89. margin-bottom: 10px;
  90. }
  91. .m-b-2 {
  92. margin-bottom: 20px;
  93. }
  94. .p-l-5 {
  95. padding-left: 5px;
  96. }
  97. .p-l-1 {
  98. padding-left: 10px;
  99. }
  100. .p-l-2 {
  101. padding-left: 20px;
  102. }
  103. .p-r-5 {
  104. padding-right: 5px;
  105. }
  106. .p-r-1 {
  107. padding-right: 10px;
  108. }
  109. .p-r-2 {
  110. padding-right: 10px;
  111. }
  112. .p-t-5 {
  113. padding-top: 5px;
  114. }
  115. .p-t-1 {
  116. padding-top: 10px;
  117. }
  118. .p-t-2 {
  119. padding-top: 20px;
  120. }
  121. .p-b-5 {
  122. padding-bottom: 5px;
  123. }
  124. .p-b-1 {
  125. padding-bottom: 10px;
  126. }
  127. .p-b-2 {
  128. padding-bottom: 20px;
  129. }
  130. .c-p {
  131. cursor: pointer;
  132. }
  133. .w-1 {
  134. width: 10%;
  135. }
  136. .w-2 {
  137. width: 20%;
  138. }
  139. .w-3 {
  140. width: 30%;
  141. }
  142. .w-4 {
  143. width: 40%;
  144. }
  145. .w-5 {
  146. width: 50%;
  147. }
  148. input,
  149. textarea {
  150. outline: none;
  151. }
  152. input::-webkit-input-placeholder,
  153. textarea::-webkit-input-placeholder {
  154. color: @holder_color;
  155. }
  156. .d-i-b {
  157. display: inline-block;
  158. overflow: hidden;
  159. }
  160. .nowrap {
  161. white-space: nowrap;
  162. text-overflow: ellipsis;
  163. }
  164. body {
  165. color: @base_color;
  166. font-size: @base_size;
  167. line-height: 1.7;
  168. font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Hiragino Sans GB', Helvetica, Arial, sans-serif;
  169. -webkit-font-smoothing: subpixel-antialiased;
  170. background: @base_bg_color;
  171. }
  172. * {
  173. box-sizing: border-box;
  174. }
  175. html,
  176. body,
  177. #root {
  178. margin: 0;
  179. padding: 0;
  180. }