common.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. // page
  2. .page-wrapper {
  3. width: 100%;
  4. flex-direction: column;
  5. color: @text-black;
  6. background-color: @bg-grey;
  7. }
  8. .page-container {
  9. flex: 1;
  10. .page-column;
  11. }
  12. .page-container-white {
  13. flex: 1;
  14. width: 100%;
  15. flex-direction: column;
  16. background-color: @white;
  17. }
  18. .page-column {
  19. width: 100%;
  20. flex-direction: column;
  21. }
  22. // text
  23. .text {
  24. font-size: 6 * @size-factor;
  25. }
  26. .text-black {
  27. font-size: 6 * @size-factor;
  28. color: @text-black;
  29. }
  30. .text-warning {
  31. font-size: 6 * @size-factor;
  32. color: @warning;
  33. }
  34. .text-primary {
  35. font-size: 6 * @size-factor;
  36. color: @brand;
  37. }
  38. .text-remark {
  39. font-size: 5 * @size-factor;
  40. color: @text-grey;
  41. }
  42. .text-remark-black {
  43. font-size: 5 * @size-factor;
  44. color: @text-black;
  45. }
  46. .text-remark-primary {
  47. font-size: 5 * @size-factor;
  48. color: @brand;
  49. }
  50. .text-remark-big {
  51. font-size: 6 * @size-factor;
  52. color: @text-grey;
  53. }
  54. .text-remark-warning {
  55. font-size: 6 * @size-factor;
  56. color: @warning;
  57. }
  58. .text-title {
  59. font-size: 7 * @size-factor;
  60. color: @text-black;
  61. }
  62. .title {
  63. font-size: 10 * @size-factor;
  64. color: @text-black;
  65. font-weight: bold;
  66. }
  67. .list-title {
  68. width: 100%;
  69. align-content: center;
  70. padding: @gap-3 0;
  71. .text-title;
  72. .border-bottom-mixins();
  73. }
  74. // button
  75. .button {
  76. height: 10 * @size-factor;
  77. width: 100%;
  78. background-color: #e2efff;
  79. padding: 0 3 * @size-factor;
  80. color: @brand;
  81. font-size: 5 * @size-factor;
  82. text-align: center;
  83. border-radius: 1 * @size-factor;
  84. }
  85. // flex
  86. .flex-1 {
  87. flex: 1;
  88. }
  89. .space-between-line {
  90. width: 100%;
  91. .flex-box-mixins(row, space-between, flex-start);
  92. }
  93. // section
  94. .section-container {
  95. width: 100%;
  96. flex-direction: column;
  97. }
  98. .section {
  99. flex-direction: column;
  100. padding-bottom: @gap-3;
  101. background-color: @white;
  102. }
  103. .section-title {
  104. width: 100%;
  105. align-content: center;
  106. padding: @gap-3 @gap-4;
  107. .flex-box-mixins(row, space-between, center);
  108. .section-title-line {
  109. width: 6px;
  110. background-color: @brand;
  111. margin: 8px @gap-1 8px 0;
  112. }
  113. }
  114. .section-title-bordered {
  115. .section-title;
  116. background-color: @white;
  117. .border-bottom-mixins();
  118. }
  119. .section-content {
  120. flex-wrap: wrap;
  121. padding: 0 @gap-3;
  122. }
  123. .section-label {
  124. font-size: 25px;
  125. border-radius: 6px;
  126. height: 80px;
  127. width: 300px;
  128. text-align: center;
  129. margin: @gap-1;
  130. background-color: @bg-grey;
  131. }
  132. .section-item-text {
  133. font-size: 25px;
  134. height: 60px;
  135. text-align: center;
  136. }
  137. // list
  138. .list-container {
  139. background-color: @white;
  140. width: 100%;
  141. flex: 1;
  142. padding: 0 @gap-4;
  143. }
  144. .list-item {
  145. width: 100%;
  146. padding: @gap-3 0;
  147. border-bottom-width: 1px;
  148. border-bottom-color: @border-grey;
  149. border-style: solid;
  150. .list-rank {
  151. width: 50px;
  152. height: 50px;
  153. background-color: @bg-grey;
  154. border-radius: 25px;
  155. margin-right: @gap-1;
  156. .list-rank-text {
  157. width: 100%;
  158. text-align: center;
  159. color: @text-grey;
  160. }
  161. }
  162. }
  163. .load-status {
  164. padding: @gap-2;
  165. justify-content: center;
  166. .load-status-text {
  167. color: @text-grey;
  168. font-size: 6 * @size-factor;
  169. }
  170. }
  171. // titlebar, search
  172. .title-bar {
  173. background-color: @white;
  174. padding: @gap-3 @gap-4;
  175. .flex-box-mixins(row, space-between, flex-start);
  176. .border-bottom-mixins();
  177. }
  178. .title-bar-noline {
  179. background-color: @white;
  180. padding: @gap-3 @gap-4;
  181. .flex-box-mixins(row, space-between, flex-start);
  182. }
  183. .search {
  184. background-color: @input-grey;
  185. flex: 1;
  186. height: 70px;
  187. padding: 0 @gap-2;
  188. border-radius: 8px;
  189. justify-content: center;
  190. align-content: center;
  191. .search-icon {
  192. width: 40px;
  193. height: 70px;
  194. font-size: 25px;
  195. color: @brand;
  196. }
  197. .search-input {
  198. flex: 1;
  199. font-size: 30px;
  200. }
  201. }
  202. // bottom-bar, btn
  203. .bottom-bar {
  204. padding: @gap-3 @gap-4;
  205. .flex-box-mixins(row, space-between, center);
  206. }
  207. .btn-primary {
  208. color: @brand;
  209. border: 1px solid @brand;
  210. border-radius: 5px;
  211. padding: 15px 0;
  212. width: 200px;
  213. text-align: center;
  214. }
  215. .btn-disabled {
  216. color: @text-grey;
  217. border-color: @text-grey;
  218. }
  219. // comment-page
  220. .comment-page {
  221. .textarea {
  222. width: 100%;
  223. height: 300px;
  224. border: 1px solid @border-grey;
  225. padding: @gap-2;
  226. font-size: 6 * @size-factor;
  227. }
  228. .text-line {
  229. padding: 0 @gap-4;
  230. width: 100%;
  231. }
  232. .btn-line {
  233. padding: @gap-4;
  234. width: 100%;
  235. justify-content: flex-end;
  236. }
  237. .publish-btn {
  238. width: 150px;
  239. height: 80px;
  240. color: @white;
  241. background-color: @brand;
  242. border-radius: 4px;
  243. text-align: center;
  244. }
  245. }