ant-design-blazor/components/page-header/style/index.less

126 lines
2.3 KiB
Plaintext
Raw Normal View History

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