index.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @pageheader-prefix-cls: ~'@{ant-prefix}-page-header';
  4. .@{pageheader-prefix-cls} {
  5. .reset-component();
  6. position: relative;
  7. padding: @page-header-padding-vertical @page-header-padding;
  8. background-color: @component-background;
  9. &-ghost {
  10. background-color: @page-header-ghost-bg;
  11. }
  12. &.has-breadcrumb {
  13. padding-top: @page-header-padding-breadcrumb;
  14. }
  15. &.has-footer {
  16. padding-bottom: 0;
  17. }
  18. &-back {
  19. margin-right: @margin-md;
  20. font-size: 16px;
  21. line-height: 1;
  22. &-button {
  23. .operation-unit();
  24. color: @page-header-back-color;
  25. }
  26. }
  27. .@{ant-prefix}-divider-vertical {
  28. height: 14px;
  29. margin: 0 @margin-sm;
  30. vertical-align: middle;
  31. }
  32. .@{ant-prefix}-breadcrumb + &-heading {
  33. margin-top: @margin-xs;
  34. }
  35. .text-overflow-ellipsis() {
  36. overflow: hidden;
  37. white-space: nowrap;
  38. text-overflow: ellipsis;
  39. }
  40. &-heading {
  41. display: flex;
  42. justify-content: space-between;
  43. &-left {
  44. display: flex;
  45. align-items: center;
  46. margin: (@margin-xs / 2) 0;
  47. overflow: hidden;
  48. }
  49. &-title {
  50. margin-right: @margin-sm;
  51. margin-bottom: 0;
  52. color: @heading-color;
  53. font-weight: 600;
  54. font-size: @page-header-heading-title;
  55. line-height: @height-base;
  56. .text-overflow-ellipsis();
  57. }
  58. .@{ant-prefix}-avatar {
  59. margin-right: @margin-sm;
  60. }
  61. &-sub-title {
  62. margin-right: @margin-sm;
  63. color: @text-color-secondary;
  64. font-size: @page-header-heading-sub-title;
  65. line-height: @line-height-base;
  66. .text-overflow-ellipsis();
  67. }
  68. &-extra {
  69. margin: (@margin-xs / 2) 0;
  70. white-space: nowrap;
  71. > * {
  72. white-space: unset;
  73. }
  74. }
  75. }
  76. &-content {
  77. padding-top: @page-header-content-padding-vertical;
  78. }
  79. &-footer {
  80. margin-top: @margin-md;
  81. .@{ant-prefix}-tabs {
  82. > .@{ant-prefix}-tabs-nav {
  83. margin: 0;
  84. &::before {
  85. border: none;
  86. }
  87. }
  88. .@{ant-prefix}-tabs-tab {
  89. padding-top: @padding-xs;
  90. padding-bottom: @padding-xs;
  91. font-size: @page-header-tabs-tab-font-size;
  92. }
  93. }
  94. }
  95. &-compact &-heading {
  96. flex-wrap: wrap;
  97. }
  98. }
  99. @import './rtl';