feat: ui update

This commit is contained in:
2026-09-15 16:01:59 +08:00
parent 1a11816839
commit 26c392d612
89 changed files with 10377 additions and 4861 deletions
+86 -109
View File
@@ -1,3 +1,4 @@
/** 分享列表:下划线分段 + 横向条目卡(失效项降透明) **/
.page-flex {
height: 100vh;
display: flex;
@@ -10,166 +11,142 @@
height: 0;
}
.seg-wrap {
background: #fff;
padding: 20rpx 24rpx;
.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);
}
.seg-control {
.cs-list {
padding: 28rpx var(--pad) 0;
display: flex;
background: #F2F2F7;
border-radius: 16rpx;
padding: 4rpx;
flex-direction: column;
}
.seg-item {
flex: 1;
height: 64rpx;
line-height: 64rpx;
text-align: center;
border-radius: 12rpx;
font-size: 28rpx;
color: #3C3C43;
transition: all 0.2s;
}
.seg-item.active {
background: #007AFF;
color: #fff;
font-weight: 600;
}
.new-btn {
margin: 24rpx;
width: calc(100% - 48rpx);
}
.list {
padding: 0 24rpx 24rpx;
}
.share-card {
position: relative;
.cs-card {
display: flex;
align-items: center;
margin-bottom: 20rpx;
padding: 24rpx;
gap: 26rpx;
padding: 32rpx 0;
border-bottom: 1rpx solid var(--hairline);
width: 100%;
align-items: flex-start;
transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.share-card.invalid {
opacity: 0.5;
.cs-card:active {
transform: scale(.985);
}
.preview-grid {
display: flex;
flex-wrap: wrap;
width: 160rpx;
height: 160rpx;
gap: 8rpx;
.cs-card.is-dead {
opacity: .38;
}
.cs-thumb {
width: 144rpx;
height: 144rpx;
flex-shrink: 0;
border-radius: var(--r-img);
background: var(--paper-2);
overflow: hidden;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 2rpx;
}
.pg-cell {
width: 76rpx;
height: 76rpx;
background: #F2F2F7;
border-radius: 12rpx;
.cs-thumb .c {
display: flex;
align-items: center;
justify-content: center;
color: #C7C7CC;
background: var(--paper-2);
min-width: 0;
min-height: 0;
overflow: hidden;
}
.pg-cell .icon {
.cs-thumb .c .icon {
width: 40rpx;
height: 40rpx;
flex-shrink: 0;
color: var(--art);
}
/* 穿搭分享封面 */
.preview-cover {
width: 160rpx;
height: 160rpx;
border-radius: 16rpx;
background: #F2F2F7;
.cs-thumb.is-photo {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
color: #C7C7CC;
}
.preview-cover-img {
.cs-thumb.is-photo .ph {
width: 52%;
height: 52%;
color: var(--art);
}
.cs-thumb .pic {
width: 100%;
height: 100%;
}
.preview-cover-ph {
width: 64rpx;
height: 64rpx;
.cs-body {
flex: 1;
min-width: 0;
}
.owner-row {
.cs-owner {
display: flex;
align-items: center;
margin-bottom: 10rpx;
gap: 12rpx;
margin-bottom: 14rpx;
}
.owner-avatar {
width: 40rpx;
height: 40rpx;
.cs-owner .oav {
width: 36rpx;
height: 36rpx;
border-radius: 50%;
margin-right: 12rpx;
flex-shrink: 0;
background: #F2F2F7;
overflow: hidden;
}
.owner-avatar-placeholder {
background: var(--paper-3);
color: var(--ink-3);
display: flex;
align-items: center;
justify-content: center;
color: #C7C7CC;
flex-shrink: 0;
overflow: hidden;
}
.owner-avatar-icon {
width: 24rpx;
height: 24rpx;
.cs-owner .oav .icon {
width: 20rpx;
height: 20rpx;
}
.owner-name {
font-size: 24rpx;
color: #8E8E93;
.cs-owner .onm {
font-size: 23rpx;
color: var(--ink-2);
}
.share-info {
flex: 1;
margin-left: 24rpx;
}
.share-title {
.cs-t {
font-family: var(--serif);
font-size: 30rpx;
font-weight: 600;
color: #000;
line-height: 1.35;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.share-type {
margin-top: 12rpx;
.cs-tags {
display: flex;
align-items: center;
gap: 14rpx;
margin-top: 18rpx;
flex-wrap: wrap;
}
.share-expire {
.cs-exp {
font-size: 22rpx;
color: #8E8E93;
margin-top: 8rpx;
}
.share-badge {
position: absolute;
top: 16rpx;
right: 16rpx;
font-size: 20rpx;
color: #8E8E93;
background: #F2F2F7;
padding: 4rpx 16rpx;
border-radius: 8rpx;
color: var(--ink-3);
font-variant-numeric: tabular-nums;
}