Workplace.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. height: 24px;
  86. color: @text-color;
  87. transition: all 0.3s;
  88. .textOverflow();
  89. .member {
  90. font-size: @font-size-base;
  91. line-height: 24px;
  92. vertical-align: top;
  93. margin-left: 12px;
  94. }
  95. &:hover {
  96. color: @primary-color;
  97. }
  98. }
  99. }
  100. .projectList {
  101. :global {
  102. .ant-card-meta-description {
  103. color: @text-color-secondary;
  104. height: 44px;
  105. line-height: 22px;
  106. overflow: hidden;
  107. }
  108. }
  109. .cardTitle {
  110. font-size: 0;
  111. a {
  112. color: @heading-color;
  113. margin-left: 12px;
  114. line-height: 24px;
  115. height: 24px;
  116. display: inline-block;
  117. vertical-align: top;
  118. font-size: @font-size-base;
  119. &:hover {
  120. color: @primary-color;
  121. }
  122. }
  123. }
  124. .projectGrid {
  125. width: 33.33%;
  126. }
  127. .projectItemContent {
  128. display: flex;
  129. margin-top: 8px;
  130. overflow: hidden;
  131. font-size: 12px;
  132. height: 20px;
  133. line-height: 20px;
  134. .textOverflow();
  135. a {
  136. color: @text-color-secondary;
  137. display: inline-block;
  138. flex: 1 1 0;
  139. .textOverflow();
  140. &:hover {
  141. color: @primary-color;
  142. }
  143. }
  144. .datetime {
  145. color: @disabled-color;
  146. flex: 0 0 auto;
  147. float: right;
  148. }
  149. }
  150. }
  151. .datetime {
  152. color: @disabled-color;
  153. }
  154. @media screen and (max-width: @screen-xl) and (min-width: @screen-lg) {
  155. .activeCard {
  156. margin-bottom: 24px;
  157. }
  158. .members {
  159. margin-bottom: 0;
  160. }
  161. .extraContent {
  162. margin-left: -44px;
  163. .statItem {
  164. padding: 0 16px;
  165. }
  166. }
  167. }
  168. @media screen and (max-width: @screen-lg) {
  169. .activeCard {
  170. margin-bottom: 24px;
  171. }
  172. .members {
  173. margin-bottom: 0;
  174. }
  175. .extraContent {
  176. float: none;
  177. margin-right: 0;
  178. .statItem {
  179. padding: 0 16px;
  180. text-align: left;
  181. &:after {
  182. display: none;
  183. }
  184. }
  185. }
  186. }
  187. @media screen and (max-width: @screen-md) {
  188. .extraContent {
  189. margin-left: -16px;
  190. }
  191. .projectList {
  192. .projectGrid {
  193. width: 50%;
  194. }
  195. }
  196. }
  197. @media screen and (max-width: @screen-sm) {
  198. .pageHeaderContent {
  199. display: block;
  200. .content {
  201. margin-left: 0;
  202. }
  203. }
  204. .extraContent {
  205. .statItem {
  206. float: none;
  207. }
  208. }
  209. }
  210. @media screen and (max-width: @screen-xs) {
  211. .projectList {
  212. .projectGrid {
  213. width: 100%;
  214. }
  215. }
  216. }