2020-03-18 14:23:30 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@alert-prefix-cls: ~'@{ant-prefix}-alert';
|
|
|
|
|
|
|
|
.@{alert-prefix-cls} {
|
2020-04-23 17:58:36 +08:00
|
|
|
&&-rtl {
|
2020-03-18 14:23:30 +08:00
|
|
|
padding: 8px 37px 8px 15px;
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
2020-04-28 17:14:21 +08:00
|
|
|
&&-no-icon {
|
|
|
|
.@{alert-prefix-cls}-rtl& {
|
|
|
|
padding: @alert-no-icon-padding-vertical 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-18 14:23:30 +08:00
|
|
|
&&-closable {
|
2020-04-23 17:58:36 +08:00
|
|
|
.@{alert-prefix-cls}.@{alert-prefix-cls}-rtl& {
|
|
|
|
padding-right: 37px;
|
|
|
|
padding-left: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&&-no-icon&-closable {
|
|
|
|
.@{alert-prefix-cls}.@{alert-prefix-cls}-rtl& {
|
2020-03-18 14:23:30 +08:00
|
|
|
padding-right: 15px;
|
|
|
|
padding-left: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-icon {
|
|
|
|
.@{alert-prefix-cls}-rtl & {
|
2020-05-27 10:29:04 +08:00
|
|
|
right: @padding-md;
|
2020-03-18 14:23:30 +08:00
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-close-icon {
|
|
|
|
.@{alert-prefix-cls}-rtl & {
|
|
|
|
right: auto;
|
2020-05-27 10:29:04 +08:00
|
|
|
left: @padding-md;
|
2020-03-18 14:23:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-23 17:58:36 +08:00
|
|
|
&-with-description,
|
|
|
|
&-with-description&-closable {
|
|
|
|
.@{alert-prefix-cls}.@{alert-prefix-cls}-rtl& {
|
2020-05-27 10:29:04 +08:00
|
|
|
padding: @alert-with-description-padding-vertical @alert-with-description-icon-size * 2 +
|
|
|
|
@alert-with-description-padding-vertical @alert-with-description-no-icon-padding-vertical
|
|
|
|
15px;
|
2020-03-18 14:23:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-description&-no-icon {
|
2020-04-23 17:58:36 +08:00
|
|
|
.@{alert-prefix-cls}.@{alert-prefix-cls}-rtl& {
|
2020-03-18 14:23:30 +08:00
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-description &-icon {
|
|
|
|
.@{alert-prefix-cls}-rtl& {
|
2020-05-27 10:29:04 +08:00
|
|
|
right: @alert-with-description-icon-size;
|
2020-03-18 14:23:30 +08:00
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-with-description &-close-icon {
|
|
|
|
.@{alert-prefix-cls}-rtl& {
|
|
|
|
right: auto;
|
2020-05-27 10:29:04 +08:00
|
|
|
left: @padding-md;
|
2020-03-18 14:23:30 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|