2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2019-03-02 15:51:08 +08:00
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@pageheader-prefix-cls: ~'@{ant-prefix}-page-header';
|
|
|
|
|
|
|
|
.@{pageheader-prefix-cls} {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2019-03-02 15:51:08 +08:00
|
|
|
position: relative;
|
2019-10-15 11:46:12 +08:00
|
|
|
padding: @page-header-padding-vertical @page-header-padding;
|
|
|
|
background-color: @component-background;
|
|
|
|
|
|
|
|
&-ghost {
|
2019-12-26 14:06:32 +08:00
|
|
|
background-color: @page-header-ghost-bg;
|
2019-10-15 11:46:12 +08:00
|
|
|
}
|
2019-03-02 15:51:08 +08:00
|
|
|
|
2019-08-25 15:38:51 +08:00
|
|
|
&.has-breadcrumb {
|
|
|
|
padding-top: @page-header-padding-breadcrumb;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-footer {
|
2019-10-15 11:46:12 +08:00
|
|
|
padding-bottom: 0;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
|
2019-04-25 15:13:13 +08:00
|
|
|
&-back {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-right: @margin-md;
|
2019-10-15 11:46:12 +08:00
|
|
|
font-size: 16px;
|
2019-08-25 15:38:51 +08:00
|
|
|
line-height: 1;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2019-04-20 10:56:11 +08:00
|
|
|
&-button {
|
|
|
|
.operation-unit();
|
2019-09-19 09:47:16 +08:00
|
|
|
color: @page-header-back-color;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-20 23:25:32 +08:00
|
|
|
.@{ant-prefix}-divider-vertical {
|
2019-03-02 15:51:08 +08:00
|
|
|
height: 14px;
|
2020-03-29 10:39:46 +08:00
|
|
|
margin: 0 @margin-sm;
|
2019-08-25 15:38:51 +08:00
|
|
|
vertical-align: middle;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
|
2019-06-27 23:33:27 +08:00
|
|
|
.@{ant-prefix}-breadcrumb + &-heading {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-top: @margin-xs;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
|
2020-04-10 19:25:31 +08:00
|
|
|
.text-overflow-ellipsis() {
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2019-06-27 23:33:27 +08:00
|
|
|
&-heading {
|
2020-04-10 19:25:31 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
&-left {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-04-15 12:44:35 +08:00
|
|
|
margin: (@margin-xs / 2) 0;
|
2020-04-10 19:25:31 +08:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-03-09 17:52:29 +08:00
|
|
|
|
2019-03-02 15:51:08 +08:00
|
|
|
&-title {
|
2020-04-10 19:25:31 +08:00
|
|
|
margin-right: @margin-sm;
|
2019-08-25 15:38:51 +08:00
|
|
|
margin-bottom: 0;
|
2019-03-02 15:51:08 +08:00
|
|
|
color: @heading-color;
|
2019-08-25 15:38:51 +08:00
|
|
|
font-weight: 600;
|
2020-04-28 11:16:01 +08:00
|
|
|
font-size: @page-header-heading-title;
|
2021-11-16 13:11:51 +08:00
|
|
|
line-height: @height-base;
|
2020-12-22 11:08:12 +08:00
|
|
|
.text-overflow-ellipsis();
|
2019-08-25 15:38:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{ant-prefix}-avatar {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-right: @margin-sm;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-sub-title {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-right: @margin-sm;
|
2019-03-02 15:51:08 +08:00
|
|
|
color: @text-color-secondary;
|
2020-04-28 11:16:01 +08:00
|
|
|
font-size: @page-header-heading-sub-title;
|
|
|
|
line-height: @line-height-base;
|
2020-12-22 11:08:12 +08:00
|
|
|
.text-overflow-ellipsis();
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-extra {
|
2020-04-15 12:44:35 +08:00
|
|
|
margin: (@margin-xs / 2) 0;
|
2020-04-10 19:25:31 +08:00
|
|
|
white-space: nowrap;
|
2020-04-15 12:44:35 +08:00
|
|
|
|
2019-03-02 15:51:08 +08:00
|
|
|
> * {
|
2020-04-10 19:25:31 +08:00
|
|
|
white-space: unset;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-27 23:33:27 +08:00
|
|
|
&-content {
|
2020-03-29 10:39:46 +08:00
|
|
|
padding-top: @page-header-content-padding-vertical;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
2020-03-29 10:39:46 +08:00
|
|
|
margin-top: @margin-md;
|
2020-06-22 19:51:03 +08:00
|
|
|
.@{ant-prefix}-tabs {
|
2020-07-01 16:09:55 +08:00
|
|
|
> .@{ant-prefix}-tabs-nav {
|
|
|
|
margin: 0;
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-07-01 16:09:55 +08:00
|
|
|
&::before {
|
|
|
|
border: none;
|
|
|
|
}
|
2020-06-15 21:34:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.@{ant-prefix}-tabs-tab {
|
2021-04-08 20:08:29 +08:00
|
|
|
padding-top: @padding-xs;
|
|
|
|
padding-bottom: @padding-xs;
|
2020-06-15 21:34:42 +08:00
|
|
|
font-size: @page-header-tabs-tab-font-size;
|
2019-08-25 15:38:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-10 19:25:31 +08:00
|
|
|
&-compact &-heading {
|
2020-04-15 12:44:35 +08:00
|
|
|
flex-wrap: wrap;
|
2019-03-02 15:51:08 +08:00
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
@import './rtl';
|