mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
dda45e4796
* feat: support narrow theme mode * chore: rename narrow to compact * chore: height part * chore: preview compact mode * chore: to make site corrected * chore: preview site * docs: 📖 document compact theme usage * docs: tweak theme doc * docs: 📖 Add description about double css bundle size * chore: preview * chore: for preview * chore: adjust pagination * chore: compact mode done! * chore: remove useless todo * chore: fix review bug * chore: fix review bug * chore: fix card margin * chore: fix review bug * chore: fix review bug * chore: improve i18n and transition * Update site/theme/static/common.less Co-Authored-By: 偏右 <afc163@gmail.com> * chore: fix button size and description padding * chore: update snapshots * chore: add compact css bundlesize limit * chore: compact dist support Co-authored-by: afc163 <afc163@gmail.com>
126 lines
2.2 KiB
Plaintext
126 lines
2.2 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
|
|
@pageheader-prefix-cls: ~'@{ant-prefix}-page-header';
|
|
|
|
.@{pageheader-prefix-cls} {
|
|
.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 {
|
|
float: left;
|
|
margin: 8px 0;
|
|
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;
|
|
margin: 0 @margin-sm;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.@{ant-prefix}-breadcrumb + &-heading {
|
|
margin-top: @margin-xs;
|
|
}
|
|
|
|
&-heading {
|
|
width: 100%;
|
|
.clearfix;
|
|
|
|
&-title {
|
|
display: block;
|
|
float: left;
|
|
margin-bottom: 0;
|
|
padding-right: @padding-sm;
|
|
color: @heading-color;
|
|
font-weight: 600;
|
|
font-size: @heading-4-size;
|
|
line-height: 32px;
|
|
}
|
|
|
|
.@{ant-prefix}-avatar {
|
|
float: left;
|
|
margin-right: @margin-sm;
|
|
}
|
|
|
|
&-sub-title {
|
|
float: left;
|
|
margin: 5px 0;
|
|
margin-right: @margin-sm;
|
|
color: @text-color-secondary;
|
|
font-size: 14px;
|
|
line-height: 22px;
|
|
}
|
|
|
|
&-tags {
|
|
float: left;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
&-extra {
|
|
float: right;
|
|
|
|
> * {
|
|
margin-left: 8px;
|
|
}
|
|
> *:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
padding-top: @page-header-content-padding-vertical;
|
|
}
|
|
|
|
&-footer {
|
|
margin-top: @margin-md;
|
|
.@{ant-prefix}-tabs-bar {
|
|
margin-bottom: 1px;
|
|
border-bottom: 0;
|
|
.@{ant-prefix}-tabs-nav {
|
|
.@{ant-prefix}-tabs-tab {
|
|
padding: @tabs-horizontal-padding-sm;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: @screen-md) {
|
|
&-heading {
|
|
&-extra {
|
|
display: block;
|
|
float: unset;
|
|
clear: both;
|
|
width: 100%;
|
|
padding-top: @padding-sm;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@import './rtl';
|