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

75 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-10-07 17:59:00 +08:00
@import "../../style/mixins/index";
@confirm-prefix-cls: ~"@{ant-prefix}-confirm";
2018-09-03 17:11:20 +08:00
@confirm-icon-size: 26px;
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-close {
display: none;
2016-05-05 15:03:24 +08:00
}
.@{ant-prefix}-modal-body {
padding: 32px 32px 24px;
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 {
color: @heading-color;
font-weight: 500;
2016-11-08 21:07:01 +08:00
font-size: @font-size-lg;
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;
2016-05-05 15:03:24 +08:00
}
.@{confirm-prefix-cls}-content {
2018-09-03 17:11:20 +08:00
margin-left: @confirm-icon-size + 16px;
2016-05-05 15:03:24 +08:00
font-size: @font-size-base;
color: @text-color;
margin-top: 8px;
}
> .@{iconfont-css-prefix} {
2018-09-03 17:11:20 +08:00
font-size: @confirm-icon-size;
2016-09-30 11:30:51 +08:00
margin-right: 16px;
float: left;
2016-05-05 15:03:24 +08:00
}
}
.@{confirm-prefix-cls}-btns {
margin-top: 24px;
2016-05-05 15:03:24 +08:00
float: right;
button + button {
margin-left: 8px;
2016-05-05 15:03:24 +08:00
margin-bottom: 0;
}
}
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
}