消息
This commit is contained in:
@@ -507,4 +507,127 @@ a {
|
||||
.maxname {
|
||||
max-height: 150px;
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
/* ========== 自定义通知队列 ========== */
|
||||
#custom-notify-container {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 9999;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.custom-notify-item {
|
||||
box-sizing: border-box;
|
||||
max-width: 90%;
|
||||
padding: 8px 16px;
|
||||
margin-bottom: 8px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transform: translateY(-20px);
|
||||
animation: notify-slide-in 300ms ease-out forwards;
|
||||
}
|
||||
|
||||
.custom-notify-item.leaving {
|
||||
animation: notify-fade-out 200ms ease-in forwards;
|
||||
}
|
||||
|
||||
@keyframes notify-slide-in {
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes notify-fade-out {
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
}
|
||||
|
||||
/* ========== 顶部通告栏 ========== */
|
||||
.custom-notice-bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
box-sizing: border-box;
|
||||
z-index: 9998;
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.custom-notice-bar .notice-icon {
|
||||
flex-shrink: 0;
|
||||
margin-right: 8px;
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.custom-notice-bar .notice-wrap {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 40px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.custom-notice-bar .notice-text {
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
padding-right: 50px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.custom-notice-bar .notice-wrap.scrolling {
|
||||
animation: notice-scroll var(--scroll-duration, 10s) linear infinite;
|
||||
}
|
||||
|
||||
@keyframes notice-scroll {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
.custom-notice-bar .notice-close {
|
||||
flex-shrink: 0;
|
||||
margin-left: 8px;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
Reference in New Issue
Block a user