mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 06:09:34 +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>
79 lines
1.6 KiB
Plaintext
79 lines
1.6 KiB
Plaintext
@import '../../style/mixins/index';
|
|
|
|
@confirm-prefix-cls: ~'@{ant-prefix}-modal-confirm';
|
|
|
|
.@{confirm-prefix-cls} {
|
|
.@{ant-prefix}-modal-header {
|
|
display: none;
|
|
}
|
|
|
|
.@{ant-prefix}-modal-close {
|
|
display: none;
|
|
}
|
|
|
|
.@{ant-prefix}-modal-body {
|
|
padding: @modal-confirm-body-padding;
|
|
}
|
|
|
|
&-body-wrapper {
|
|
.clearfix();
|
|
}
|
|
|
|
&-body {
|
|
.@{confirm-prefix-cls}-title {
|
|
display: block;
|
|
// create BFC to avoid
|
|
// https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
|
|
overflow: hidden;
|
|
color: @heading-color;
|
|
font-weight: 500;
|
|
font-size: @font-size-lg;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.@{confirm-prefix-cls}-content {
|
|
margin-top: 8px;
|
|
color: @text-color;
|
|
font-size: @font-size-base;
|
|
}
|
|
|
|
> .@{iconfont-css-prefix} {
|
|
float: left;
|
|
margin-right: 16px;
|
|
font-size: 22px;
|
|
|
|
// `content` after `icon` should set marginLeft
|
|
+ .@{confirm-prefix-cls}-title + .@{confirm-prefix-cls}-content {
|
|
margin-left: 38px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.@{confirm-prefix-cls}-btns {
|
|
float: right;
|
|
margin-top: 24px;
|
|
|
|
button + button {
|
|
margin-bottom: 0;
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
&-error &-body > .@{iconfont-css-prefix} {
|
|
color: @error-color;
|
|
}
|
|
|
|
&-warning &-body > .@{iconfont-css-prefix},
|
|
&-confirm &-body > .@{iconfont-css-prefix} {
|
|
color: @warning-color;
|
|
}
|
|
|
|
&-info &-body > .@{iconfont-css-prefix} {
|
|
color: @info-color;
|
|
}
|
|
|
|
&-success &-body > .@{iconfont-css-prefix} {
|
|
color: @success-color;
|
|
}
|
|
}
|