feat(users): style VIP sidebar card
This commit is contained in:
@@ -450,6 +450,123 @@ body.aksrt-user-center .uc-content,
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
/* VIP 入口:琥珀会员券,与下方中性资产卡形成主次层级 */
|
||||
.uc-sidebar .uc-sidebar-vip {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
padding: 13px 14px;
|
||||
border: 1px solid rgba(255, 232, 177, 0.34);
|
||||
border-radius: var(--main-radius, var(--radius, 8px));
|
||||
background:
|
||||
radial-gradient(circle at 88% 12%, rgba(255, 239, 190, 0.2), transparent 34%),
|
||||
linear-gradient(122deg, #4a2b13 0%, #7c4a1c 48%, #a86d28 100%);
|
||||
box-shadow: 0 7px 18px rgba(91, 50, 15, 0.18);
|
||||
color: #fff8e8;
|
||||
text-decoration: none;
|
||||
isolation: isolate;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.uc-sidebar .uc-sidebar-vip::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: -80%;
|
||||
left: 58%;
|
||||
width: 34px;
|
||||
height: 260%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 246, 211, 0.14), transparent);
|
||||
transform: rotate(24deg);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.uc-sidebar-vip__icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 1px solid rgba(255, 240, 197, 0.46);
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 244, 211, 0.12);
|
||||
box-shadow: inset 0 0 0 4px rgba(255, 244, 211, 0.05);
|
||||
color: #ffd982;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.uc-sidebar-vip__content {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.uc-sidebar-vip__content strong,
|
||||
.uc-sidebar-vip__content small {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.uc-sidebar-vip__content strong {
|
||||
color: #fffaf0;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.01em;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.uc-sidebar-vip__content small {
|
||||
margin-top: 3px;
|
||||
color: rgba(255, 244, 216, 0.76);
|
||||
font-size: 11px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.uc-sidebar-vip__arrow {
|
||||
color: rgba(255, 244, 216, 0.72);
|
||||
font-size: 12px;
|
||||
transition: transform 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.uc-sidebar .uc-sidebar-vip:hover {
|
||||
border-color: rgba(255, 235, 180, 0.58);
|
||||
box-shadow: 0 10px 24px rgba(91, 50, 15, 0.25);
|
||||
color: #fff8e8;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.uc-sidebar .uc-sidebar-vip:hover .uc-sidebar-vip__arrow {
|
||||
color: #fff4d8;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.uc-sidebar .uc-sidebar-vip:focus-visible {
|
||||
outline: 3px solid rgba(244, 180, 67, 0.42);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@media (max-width: 991.98px) {
|
||||
.uc-sidebar .uc-sidebar-vip {
|
||||
margin-right: 12px;
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.uc-sidebar .uc-sidebar-vip,
|
||||
.uc-sidebar-vip__arrow {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
.uc-sidebar .uc-sidebar-vip:hover,
|
||||
.uc-sidebar .uc-sidebar-vip:hover .uc-sidebar-vip__arrow {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.uc-service-grid__icon small {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
|
||||
Reference in New Issue
Block a user