115 lines
1.8 KiB
Plaintext
115 lines
1.8 KiB
Plaintext
/** 通知列表:下划线筛选 + 未读黑竖条 + 发丝线分行 **/
|
|
.page-flex {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.scroll-body {
|
|
flex: 1;
|
|
height: 0;
|
|
}
|
|
|
|
.segbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
margin-top: 36rpx;
|
|
background: var(--glass);
|
|
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
|
backdrop-filter: saturate(180%) blur(20px);
|
|
border-bottom: 1rpx solid var(--hairline);
|
|
}
|
|
|
|
.nt-skel {
|
|
padding: 40rpx var(--pad) 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 52rpx;
|
|
}
|
|
|
|
.nt-skel-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18rpx;
|
|
}
|
|
|
|
.nt-list {
|
|
padding: 8rpx var(--pad) 0;
|
|
}
|
|
|
|
.nt-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 26rpx;
|
|
padding: 36rpx 0;
|
|
border-bottom: 1rpx solid var(--hairline);
|
|
}
|
|
|
|
/* 未读:左侧 4rpx 黑竖条 */
|
|
.nt-item.is-unread::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -20rpx;
|
|
top: 44rpx;
|
|
width: 4rpx;
|
|
height: 32rpx;
|
|
border-radius: 2rpx;
|
|
background: var(--ink);
|
|
}
|
|
|
|
.nt-ic {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
border-radius: 50%;
|
|
background: var(--fill);
|
|
color: var(--ink-2);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nt-ic .icon {
|
|
width: 36rpx;
|
|
height: 36rpx;
|
|
}
|
|
|
|
.nt-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.nt-t {
|
|
font-size: 30rpx;
|
|
font-weight: 500;
|
|
color: var(--ink-3);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nt-item.is-unread .nt-t {
|
|
color: var(--ink);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nt-c {
|
|
margin-top: 10rpx;
|
|
font-size: 26rpx;
|
|
line-height: 1.6;
|
|
color: var(--ink-2);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nt-time {
|
|
margin-top: 12rpx;
|
|
font-size: 22rpx;
|
|
color: var(--ink-4);
|
|
}
|