amis-rpc-design/node_modules/rc-notification/assets/index.less

137 lines
2.5 KiB
Plaintext
Raw Normal View History

2023-10-07 19:42:30 +08:00
@notificationPrefixCls: rc-notification;
.@{notificationPrefixCls} {
// ====================== Notification ======================
position: fixed;
z-index: 1000;
display: flex;
max-height: 100vh;
padding: 10px;
overflow-y: auto;
align-items: flex-end;
// Position
&-top,
&-topLeft,
&-topRight {
top: 0;
flex-direction: column;
}
&-topRight {
right: 0;
}
// ========================= Notice =========================
&-notice {
position: relative;
display: block;
box-sizing: border-box;
width: auto;
margin: 12px 0;
line-height: 1.5;
background: #fff;
border: 1px solid #999;
border: 0px solid rgba(0, 0, 0, 0);
border-radius: 3px 3px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
// Content
&-content {
padding: 7px 20px 7px 10px;
}
&-closable &-content {
padding-right: 20px;
}
&-close {
position: absolute;
top: 3px;
right: 5px;
color: #000;
font-weight: 700;
font-size: 16px;
line-height: 1;
text-decoration: none;
text-shadow: 0 1px 0 #fff;
outline: none;
cursor: pointer;
opacity: 0.2;
filter: alpha(opacity=20);
&-x:after {
content: '×';
}
&:hover {
text-decoration: none;
opacity: 1;
filter: alpha(opacity=100);
}
}
}
&-fade {
overflow: hidden;
transition: all 0.3s;
}
&-fade-appear-start {
transform: translateX(100%);
opacity: 0;
}
&-fade-appear-active {
transform: translateX(0);
opacity: 1;
}
// .fade-effect() {
// animation-duration: 0.3s;
// animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
// animation-fill-mode: both;
// }
// &-fade-appear,
// &-fade-enter {
// opacity: 0;
// animation-play-state: paused;
// .fade-effect();
// }
// &-fade-leave {
// .fade-effect();
// animation-play-state: paused;
// }
// &-fade-appear&-fade-appear-active,
// &-fade-enter&-fade-enter-active {
// animation-name: rcNotificationFadeIn;
// animation-play-state: running;
// }
// &-fade-leave&-fade-leave-active {
// animation-name: rcDialogFadeOut;
// animation-play-state: running;
// }
// @keyframes rcNotificationFadeIn {
// 0% {
// opacity: 0;
// }
// 100% {
// opacity: 1;
// }
// }
// @keyframes rcDialogFadeOut {
// 0% {
// opacity: 1;
// }
// 100% {
// opacity: 0;
// }
// }
}