app.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. @charset "utf-8";
  2. @cornflower: #6865fd;
  3. @dark-sky-blue: #4292f0;
  4. @night-blue: #050930;
  5. @slate-grey: #5e677b;
  6. @bluey-grey: #8897a8;
  7. @coral: #f36565;
  8. @butterscotch: #fcb750;
  9. @ice-blue: #f7fcff;
  10. @theme_color: @dark-sky-blue;
  11. @theme_color_hover: darken(@dark-sky-blue, 10);
  12. @holder_color: @bluey-grey;
  13. @base_color: @slate-grey;
  14. @theme_bg_color: #e9eff8;
  15. @line_color: #c7d0d9;
  16. @base_size: 14px;
  17. @base_bg_color: #f4f4f4;
  18. @content_width: 1000px;
  19. .theme,
  20. .theme a,
  21. .theme a:hover {
  22. color: @theme_color;
  23. }
  24. .t-l {
  25. text-align: left;
  26. }
  27. .t-r {
  28. text-align: right;
  29. }
  30. .t-c {
  31. text-align: center;
  32. }
  33. .f-l {
  34. float: left;
  35. }
  36. .f-r {
  37. float: right;
  38. }
  39. .p-a {
  40. position: absolute;
  41. }
  42. .d-i-b {
  43. display: inline-block;
  44. }
  45. .m-l-5 {
  46. margin-left: 5px;
  47. }
  48. .m-l-1 {
  49. margin-left: 10px;
  50. }
  51. .m-l-2 {
  52. margin-left: 20px;
  53. }
  54. .m-r-5 {
  55. margin-right: 5px;
  56. }
  57. .m-r-1 {
  58. margin-right: 10px;
  59. }
  60. .m-r-2 {
  61. margin-right: 10px;
  62. }
  63. .m-t-5 {
  64. margin-top: 5px;
  65. }
  66. .m-t-1 {
  67. margin-top: 10px;
  68. }
  69. .m-t-2 {
  70. margin-top: 20px;
  71. }
  72. .m-b-5 {
  73. margin-bottom: 5px;
  74. }
  75. .m-b-1 {
  76. margin-bottom: 10px;
  77. }
  78. .m-b-2 {
  79. margin-bottom: 20px;
  80. }
  81. .p-l-5 {
  82. padding-left: 5px;
  83. }
  84. .p-l-1 {
  85. padding-left: 10px;
  86. }
  87. .p-l-2 {
  88. padding-left: 20px;
  89. }
  90. .p-r-5 {
  91. padding-right: 5px;
  92. }
  93. .p-r-1 {
  94. padding-right: 10px;
  95. }
  96. .p-r-2 {
  97. padding-right: 10px;
  98. }
  99. .p-t-5 {
  100. padding-top: 5px;
  101. }
  102. .p-t-1 {
  103. padding-top: 10px;
  104. }
  105. .p-t-2 {
  106. padding-top: 20px;
  107. }
  108. .p-b-5 {
  109. padding-bottom: 5px;
  110. }
  111. .p-b-1 {
  112. padding-bottom: 10px;
  113. }
  114. .p-b-2 {
  115. padding-bottom: 20px;
  116. }
  117. .c-p {
  118. cursor: pointer;
  119. }
  120. .w-1 {
  121. width: 10%;
  122. }
  123. .w-2 {
  124. width: 20%;
  125. }
  126. .w-3 {
  127. width: 30%;
  128. }
  129. .w-4 {
  130. width: 40%;
  131. }
  132. .w-5 {
  133. width: 50%;
  134. }
  135. input,
  136. textarea {
  137. outline: none;
  138. }
  139. input::-webkit-input-placeholder,
  140. textarea::-webkit-input-placeholder {
  141. color: @holder_color;
  142. }
  143. .d-i-b {
  144. display: inline-block;
  145. overflow: hidden;
  146. }
  147. .nowrap {
  148. white-space: nowrap;
  149. text-overflow: ellipsis;
  150. }
  151. body {
  152. color: @base_color;
  153. font-size: @base_size;
  154. line-height: 1.7;
  155. font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Hiragino Sans GB', Helvetica, Arial, sans-serif;
  156. -webkit-font-smoothing: subpixel-antialiased;
  157. background: @base_bg_color;
  158. }
  159. * {
  160. box-sizing: border-box;
  161. }
  162. html,
  163. body,
  164. #root {
  165. margin: 0;
  166. padding: 0;
  167. min-height: 100%;
  168. #page {
  169. min-height: 100%;
  170. }
  171. .content {
  172. width: @content_width;
  173. margin: 0 auto;
  174. }
  175. }
  176. #root {}