choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
212 lines (211 loc) • 5.09 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
.c7n-alert {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding: 0.08rem 0.15rem 0.08rem 0.37rem;
word-break: break-all;
border-radius: 0.02rem;
}
.c7n-alert-content {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.c7n-alert-close-wrapper {
margin: 0 0 0 0.16rem;
padding: unset;
background-color: transparent;
border: none;
}
.c7n-alert.c7n-alert-no-icon {
padding: 0.08rem 0.15rem;
}
.c7n-alert-icon {
position: absolute;
top: 0.0825rem;
left: 0.16rem;
}
.c7n-alert-message {
color: rgba(0, 0, 0, 0.85);
font-size: unset;
line-height: unset;
}
.c7n-alert-description {
display: none;
font-size: 0.13rem;
line-height: 0.22rem;
}
.c7n-alert-success {
background-color: #e6fff5;
border: 0.01rem solid #6ee6c0;
}
.c7n-alert-success .c7n-alert-icon {
color: #00bf96;
}
.c7n-alert-info {
background-color: #e6ebf5;
border: 0.01rem solid #b6bfdb;
}
.c7n-alert-info .c7n-alert-icon {
color: #3f51b5;
}
.c7n-alert-warning {
background-color: #fffbe6;
border: 0.01rem solid #ffe58f;
}
.c7n-alert-warning .c7n-alert-icon {
color: #faad14;
}
.c7n-alert-error {
background-color: #ffeae6;
border: 0.01rem solid #fc8679;
}
.c7n-alert-error .c7n-alert-icon {
color: #d50000;
}
.c7n-alert-close-icon {
overflow: hidden;
font-size: 0.12rem;
line-height: 1.5;
cursor: pointer;
}
.c7n-alert-close-icon .icon-close {
color: rgba(0, 0, 0, 0.45);
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.c7n-alert-close-icon .icon-close:hover {
color: #404040;
}
.c7n-alert-close-text {
position: absolute;
right: 0.16rem;
}
.c7n-alert-with-description {
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
padding: 0.15rem 0.15rem 0.15rem 0.64rem;
color: #000000;
line-height: 1.5;
border-radius: 0.02rem;
}
.c7n-alert-with-description.c7n-alert-no-icon {
padding: 0.15rem;
}
.c7n-alert-with-description .c7n-alert-icon {
position: absolute;
top: 0.16rem;
left: 0.24rem;
font-size: 0.24rem;
}
.c7n-alert-with-description .c7n-alert-close-icon {
font-size: 0.13rem;
cursor: pointer;
}
.c7n-alert-with-description .c7n-alert-message {
display: block;
margin: 0 0 0.04rem 0;
color: rgba(0, 0, 0, 0.85);
font-size: 0.16rem;
}
.c7n-alert-with-description .c7n-alert-description {
display: block;
}
.c7n-alert.c7n-alert-close {
height: 0 ;
margin: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-transform-origin: 50% 0;
-ms-transform-origin: 50% 0;
transform-origin: 50% 0;
-webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.c7n-alert-slide-up-leave {
-webkit-animation: c7nAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
animation: c7nAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.c7n-alert-banner {
margin-bottom: 0;
border: 0;
border-radius: 0;
}
@-webkit-keyframes c7nAlertSlideUpIn {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
}
@keyframes c7nAlertSlideUpIn {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
}
@-webkit-keyframes c7nAlertSlideUpOut {
0% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
100% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
}
@keyframes c7nAlertSlideUpOut {
0% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
100% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
}