动态菜单和动态路由的 antd pro

Workplace.less 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. @import '~antd/lib/style/themes/default.less';
  2. @import '../../utils/utils.less';
  3. .activitiesList {
  4. padding: 0 24px 8px 24px;
  5. .username {
  6. color: @text-color;
  7. }
  8. .event {
  9. font-weight: normal;
  10. }
  11. }
  12. .pageHeaderContent {
  13. display: flex;
  14. .avatar {
  15. flex: 0 1 72px;
  16. margin-bottom: 8px;
  17. & > span {
  18. border-radius: 72px;
  19. display: block;
  20. width: 72px;
  21. height: 72px;
  22. }
  23. }
  24. .content {
  25. position: relative;
  26. top: 4px;
  27. margin-left: 24px;
  28. flex: 1 1 auto;
  29. color: @text-color-secondary;
  30. line-height: 22px;
  31. .contentTitle {
  32. font-size: 20px;
  33. line-height: 28px;
  34. font-weight: 500;
  35. color: @heading-color;
  36. margin-bottom: 12px;
  37. }
  38. }
  39. }
  40. .extraContent {
  41. .clearfix();
  42. float: right;
  43. white-space: nowrap;
  44. .statItem {
  45. padding: 0 32px;
  46. position: relative;
  47. display: inline-block;
  48. > p:first-child {
  49. color: @text-color-secondary;
  50. font-size: @font-size-base;
  51. line-height: 22px;
  52. margin-bottom: 4px;
  53. }
  54. > p {
  55. color: @heading-color;
  56. font-size: 30px;
  57. line-height: 38px;
  58. margin: 0;
  59. > span {
  60. color: @text-color-secondary;
  61. font-size: 20px;
  62. }
  63. }
  64. &:after {
  65. background-color: @border-color-split;
  66. position: absolute;
  67. top: 8px;
  68. right: 0;
  69. width: 1px;
  70. height: 40px;
  71. content: '';
  72. }
  73. &:last-child {
  74. padding-right: 0;
  75. &:after {
  76. display: none;
  77. }
  78. }
  79. }
  80. }
  81. .members {
  82. a {
  83. display: block;
  84. margin: 12px 0;
  85. line-height: 24px;
  86. height: 24px;
  87. .textOverflow();
  88. .member {
  89. font-size: @font-size-base;
  90. color: @text-color;
  91. line-height: 24px;
  92. max-width: 100px;
  93. vertical-align: top;
  94. margin-left: 12px;
  95. transition: all 0.3s;
  96. display: inline-block;
  97. .textOverflow();
  98. }
  99. &:hover {
  100. span {
  101. color: @primary-color;
  102. }
  103. }
  104. }
  105. }
  106. .projectList {
  107. :global {
  108. .ant-card-meta-description {
  109. color: @text-color-secondary;
  110. height: 44px;
  111. line-height: 22px;
  112. overflow: hidden;
  113. }
  114. }
  115. .cardTitle {
  116. font-size: 0;
  117. a {
  118. color: @heading-color;
  119. margin-left: 12px;
  120. line-height: 24px;
  121. height: 24px;
  122. display: inline-block;
  123. vertical-align: top;
  124. font-size: @font-size-base;
  125. &:hover {
  126. color: @primary-color;
  127. }
  128. }
  129. }
  130. .projectGrid {
  131. width: 33.33%;
  132. }
  133. .projectItemContent {
  134. display: flex;
  135. margin-top: 8px;
  136. overflow: hidden;
  137. font-size: 12px;
  138. height: 20px;
  139. line-height: 20px;
  140. .textOverflow();
  141. a {
  142. color: @text-color-secondary;
  143. display: inline-block;
  144. flex: 1 1 0;
  145. .textOverflow();
  146. &:hover {
  147. color: @primary-color;
  148. }
  149. }
  150. .datetime {
  151. color: @disabled-color;
  152. flex: 0 0 auto;
  153. float: right;
  154. }
  155. }
  156. }
  157. .datetime {
  158. color: @disabled-color;
  159. }
  160. @media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
  161. .activeCard {
  162. margin-bottom: 24px;
  163. }
  164. .members {
  165. margin-bottom: 0;
  166. }
  167. .extraContent {
  168. margin-left: -44px;
  169. .statItem {
  170. padding: 0 16px;
  171. }
  172. }
  173. }
  174. @media screen and (max-width: @screen-lg) {
  175. .activeCard {
  176. margin-bottom: 24px;
  177. }
  178. .members {
  179. margin-bottom: 0;
  180. }
  181. .extraContent {
  182. float: none;
  183. margin-right: 0;
  184. .statItem {
  185. padding: 0 16px;
  186. text-align: left;
  187. &:after {
  188. display: none;
  189. }
  190. }
  191. }
  192. }
  193. @media screen and (max-width: @screen-md) {
  194. .extraContent {
  195. margin-left: -16px;
  196. }
  197. .projectList {
  198. .projectGrid {
  199. width: 50%;
  200. }
  201. }
  202. }
  203. @media screen and (max-width: @screen-sm) {
  204. .pageHeaderContent {
  205. display: block;
  206. .content {
  207. margin-left: 0;
  208. }
  209. }
  210. .extraContent {
  211. .statItem {
  212. float: none;
  213. }
  214. }
  215. }
  216. @media screen and (max-width: @screen-xs) {
  217. .projectList {
  218. .projectGrid {
  219. width: 100%;
  220. }
  221. }
  222. }