ant-design/components/modal/style/confirm.less

75 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-12-07 16:17:45 +08:00
@import '../../style/mixins/index';
2016-10-07 17:59:00 +08:00
2018-12-07 16:17:45 +08:00
@confirm-prefix-cls: ~'@{ant-prefix}-modal-confirm';
2016-05-05 15:03:24 +08:00
.@{confirm-prefix-cls} {
.@{ant-prefix}-modal-header {
2016-05-05 15:03:24 +08:00
display: none;
}
.@{ant-prefix}-modal-body {
padding: @modal-confirm-body-padding;
2016-05-05 15:03:24 +08:00
}
2016-10-07 17:59:00 +08:00
&-body-wrapper {
.clearfix();
}
2016-05-18 19:07:14 +08:00
&-body {
2016-05-05 15:03:24 +08:00
.@{confirm-prefix-cls}-title {
display: block;
// create BFC to avoid
// https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png
2018-08-02 04:20:42 +08:00
overflow: hidden;
color: @heading-color;
font-weight: 500;
font-size: @modal-confirm-title-font-size;
line-height: 1.4;
2016-05-05 15:03:24 +08:00
}
.@{confirm-prefix-cls}-content {
margin-top: 8px;
2016-05-05 15:03:24 +08:00
color: @text-color;
font-size: @font-size-base;
2016-05-05 15:03:24 +08:00
}
> .@{iconfont-css-prefix} {
2016-09-30 11:30:51 +08:00
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;
}
2016-05-05 15:03:24 +08:00
}
}
.@{confirm-prefix-cls}-btns {
float: right;
margin-top: 24px;
2016-05-05 15:03:24 +08:00
.@{ant-prefix}-btn + .@{ant-prefix}-btn {
2016-05-05 15:03:24 +08:00
margin-bottom: 0;
margin-left: 8px;
2016-05-05 15:03:24 +08:00
}
}
2016-05-18 19:07:14 +08:00
&-error &-body > .@{iconfont-css-prefix} {
2016-05-18 19:07:14 +08:00
color: @error-color;
}
&-warning &-body > .@{iconfont-css-prefix},
&-confirm &-body > .@{iconfont-css-prefix} {
2016-05-18 19:07:14 +08:00
color: @warning-color;
}
&-info &-body > .@{iconfont-css-prefix} {
color: @info-color;
2016-05-18 19:07:14 +08:00
}
&-success &-body > .@{iconfont-css-prefix} {
2016-05-18 19:07:14 +08:00
color: @success-color;
}
2016-05-05 15:03:24 +08:00
}