ygd
Version:
An enterprise-class UI design language and React-based implementation
190 lines (189 loc) • 3.85 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 */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-alert {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
position: relative;
padding: 10px 15px 10px 37px;
border-radius: 2px;
}
.yg-alert.yg-alert-no-icon {
padding: 8px 10px;
}
.yg-alert.yg-alert-closable {
padding-right: 30px;
}
.yg-alert-icon {
position: absolute;
top: 13px ;
left: 16px;
}
.yg-alert-description {
display: none;
font-size: 12px;
line-height: 22px;
color: #666;
}
.yg-alert-success {
background-color: #b8e986;
border: 1px solid #b8e986;
}
.yg-alert-success .yg-alert-icon {
color: #228b22;
}
.yg-alert-info {
background-color: #fff;
border: 1px solid #e5e5e5;
}
.yg-alert-info .yg-alert-icon {
color: #00a1ff;
}
.yg-alert-warning {
background-color: #fff9a9;
border: 1px solid #fff9a9;
border-radius: 4px;
}
.yg-alert-warning .yg-alert-icon {
color: #ffa812;
}
.yg-alert-error {
background-color: #ff6961;
border: 1px solid #ff6961;
}
.yg-alert-error .yg-alert-icon {
color: #e2062c;
}
.yg-alert-error .yg-alert-message {
color: #fff;
}
.yg-alert-error .yg-alert-description {
color: #fff;
}
.yg-alert-close-icon {
position: absolute;
top: 6px;
right: 16px;
overflow: hidden;
font-size: 12px;
line-height: 22px;
cursor: pointer;
}
.yg-alert-close-icon .anticon-close {
color: rgba(0, 0, 0, 0.45);
transition: color 0.3s;
}
.yg-alert-close-icon .anticon-close:hover {
color: rgba(0, 0, 0, 0.75);
}
.yg-alert-close-text {
position: absolute;
right: 16px;
}
.yg-alert-with-description {
position: relative;
padding: 15px 15px 15px 64px;
color: #333;
line-height: 28px;
border-radius: 2px;
}
.yg-alert-error.yg-alert-with-description .yg-alert-message {
color: #fff;
}
.yg-alert-with-description.yg-alert-no-icon {
padding: 10px;
}
.yg-alert-with-description .yg-alert-icon {
position: absolute;
top: 17px;
left: 24px;
font-size: 24px;
}
.yg-alert-with-description .yg-alert-close-icon {
position: absolute;
top: 16px;
right: 16px;
font-size: 12px;
cursor: pointer;
}
.yg-alert-with-description .yg-alert-message {
display: block;
margin-bottom: 4px;
color: #333;
font-size: 14px;
}
.yg-alert-with-description .yg-alert-description {
display: block;
}
.yg-alert.yg-alert-close {
height: 0;
margin: 0;
padding-top: 0;
padding-bottom: 0;
transform-origin: 50% 0;
transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.yg-alert-slide-up-leave {
-webkit-animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.yg-alert-banner {
margin-bottom: 0;
border: 0;
border-radius: 0;
}
@-webkit-keyframes antAlertSlideUpIn {
0% {
transform: scaleY(0);
transform-origin: 0% 0%;
opacity: 0;
}
100% {
transform: scaleY(1);
transform-origin: 0% 0%;
opacity: 1;
}
}
@keyframes antAlertSlideUpIn {
0% {
transform: scaleY(0);
transform-origin: 0% 0%;
opacity: 0;
}
100% {
transform: scaleY(1);
transform-origin: 0% 0%;
opacity: 1;
}
}
@-webkit-keyframes antAlertSlideUpOut {
0% {
transform: scaleY(1);
transform-origin: 0% 0%;
opacity: 1;
}
100% {
transform: scaleY(0);
transform-origin: 0% 0%;
opacity: 0;
}
}
@keyframes antAlertSlideUpOut {
0% {
transform: scaleY(1);
transform-origin: 0% 0%;
opacity: 1;
}
100% {
transform: scaleY(0);
transform-origin: 0% 0%;
opacity: 0;
}
}