Workplace.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. @import '~ant-design-vue/es/style/themes/default.less';
  2. .text-overflow() {
  3. overflow: hidden;
  4. text-overflow: ellipsis;
  5. word-break: break-all;
  6. white-space: nowrap;
  7. }
  8. // mixins for clearfix
  9. // ------------------------
  10. .clearfix() {
  11. zoom: 1;
  12. &::before,
  13. &::after {
  14. display: table;
  15. content: ' ';
  16. }
  17. &::after {
  18. height: 0;
  19. clear: both;
  20. font-size: 0;
  21. visibility: hidden;
  22. }
  23. }
  24. .page-header-content {
  25. display: flex;
  26. .avatar {
  27. flex: 0 1 72px;
  28. & > span {
  29. display: block;
  30. width: 72px;
  31. height: 72px;
  32. border-radius: 72px;
  33. }
  34. }
  35. .content {
  36. position: relative;
  37. top: 4px;
  38. margin-left: 24px;
  39. line-height: 22px;
  40. color: @text-color-secondary;
  41. flex: 1 1 auto;
  42. .content-title {
  43. margin-bottom: 12px;
  44. font-size: 20px;
  45. font-weight: 500;
  46. line-height: 28px;
  47. color: @heading-color;
  48. }
  49. }
  50. }
  51. .extra-content {
  52. .clearfix();
  53. float: right;
  54. white-space: nowrap;
  55. .stat-item {
  56. position: relative;
  57. display: inline-block;
  58. padding: 0 32px;
  59. > p:first-child {
  60. margin-bottom: 4px;
  61. font-size: @font-size-base;
  62. line-height: 22px;
  63. color: @text-color-secondary;
  64. }
  65. > p {
  66. margin: 0;
  67. font-size: 30px;
  68. line-height: 38px;
  69. color: @heading-color;
  70. > span {
  71. font-size: 20px;
  72. color: @text-color-secondary;
  73. }
  74. }
  75. &::after {
  76. position: absolute;
  77. top: 8px;
  78. right: 0;
  79. width: 1px;
  80. height: 40px;
  81. background-color: @border-color-split;
  82. content: '';
  83. }
  84. &:last-child {
  85. padding-right: 0;
  86. &::after {
  87. display: none;
  88. }
  89. }
  90. }
  91. }