进行了一些小优化

This commit is contained in:
kate522 committed 2026-08-25 17:02:33 +08:00
1 parent 4a4009133c
commit 11f1c23fa7
12 files changed
+463 -10

No files matched your search

+128
View File
@@ -2,6 +2,134 @@
* User Center — account settings + invite panel
*/
/* 消息通知偏好 */
.uc-notification-preferences__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
}
.uc-notification-preferences__header h2 {
margin: 0 0 6px;
color: var(--color-ink);
font-size: 20px;
}
.uc-notification-preferences__header p {
margin: 0;
color: var(--color-ink-4);
font-size: 13px;
}
.uc-notification-preferences__header-icon {
display: grid;
place-items: center;
width: 44px;
height: 44px;
flex: 0 0 44px;
border-radius: 14px;
color: var(--color-primary);
background: var(--color-primary-soft);
font-size: 18px;
}
.uc-notification-preferences__list {
display: flex;
flex-direction: column;
}
.uc-notification-preference {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
min-height: 82px;
padding: 18px 0;
border-bottom: 1px solid var(--color-line-soft, rgba(0,0,0,0.06));
cursor: pointer;
}
.uc-notification-preference__copy {
display: flex;
min-width: 0;
flex-direction: column;
gap: 6px;
}
.uc-notification-preference__copy strong {
color: var(--color-ink);
font-size: 15px;
}
.uc-notification-preference__copy small {
color: var(--color-ink-4);
font-size: 13px;
font-weight: 400;
line-height: 1.6;
}
.uc-notification-switch {
position: relative;
display: inline-flex;
width: 44px;
height: 24px;
flex: 0 0 44px;
}
.uc-notification-switch input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}
.uc-notification-switch span {
width: 100%;
height: 100%;
border-radius: 999px;
background: var(--color-line, #cbd5e1);
transition: background-color 0.2s ease;
}
.uc-notification-switch span::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 3px rgba(15,23,42,0.22);
transition: transform 0.2s ease;
}
.uc-notification-switch input:checked + span {
background: var(--color-primary);
}
.uc-notification-switch input:checked + span::after {
transform: translateX(20px);
}
.uc-notification-switch input:focus-visible + span {
outline: 2px solid var(--color-primary);
outline-offset: 3px;
}
.uc-notification-preferences__footer {
display: flex;
justify-content: flex-end;
padding-top: 20px;
}
.uc-notification-preferences__footer .btn-primary {
min-width: 112px;
}
/* 设置区增强 */
.uc-content .settings-section {
margin-bottom: 24px;