feat: 整体页面优化,删除无用svg

This commit is contained in:
Blizzard
2026-02-14 08:32:47 +08:00
parent daea00ca60
commit cbbe82ef63
59 changed files with 1265 additions and 342 deletions
+83 -5
View File
@@ -19,15 +19,71 @@
Usually easier to apply padding to the items or a wrapper inside scroll-view. */
.search-section {
padding: 20rpx 40rpx 0;
padding: 24rpx 40rpx 0;
margin-bottom: 32rpx;
}
.search-box-card {
background: #fff;
border-radius: 40rpx;
padding: 16rpx 20rpx;
box-shadow: 0 8rpx 24rpx rgba(85, 139, 47, 0.08); /* Green-tinted shadow */
}
/* Override TDesign Search */
.search-input-bg {
background: #F4F6F0 !important; /* Light green-grey */
border-radius: 32rpx !important;
height: 80rpx !important;
}
.t-search__input-container {
height: 80rpx !important;
}
/* Category Scroll */
.category-scroll {
display: flex;
flex-wrap: wrap;
padding: 0 40rpx;
margin-bottom: 48rpx;
display: flex;
white-space: nowrap;
padding-left: 40rpx;
margin-bottom: 40rpx;
height: 88rpx;
width: 100%;
box-sizing: border-box;
}
/* Hide scrollbar for webkit */
.category-scroll::-webkit-scrollbar {
display: none;
}
.category-item {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 36rpx;
height: 72rpx;
background: #fff;
border-radius: 36rpx;
margin-right: 24rpx;
font-size: 28rpx;
color: #546E7A;
font-weight: 600;
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.04);
transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
flex-shrink: 0;
border: 2rpx solid transparent; /* Reserve border space */
}
.category-item:active {
transform: scale(0.95);
}
.category-item.active {
background: #558B2F;
color: #fff;
font-weight: 700;
box-shadow: 0 8rpx 20rpx rgba(85, 139, 47, 0.3);
border-color: #558B2F;
}
.wiki-list {
@@ -59,6 +115,28 @@
box-shadow: 0 8rpx 20rpx rgba(0,0,0,0.1);
flex-shrink: 0;
background: #f0f0f0;
position: relative;
}
.fav-icon-box {
position: absolute;
top: 10rpx;
right: 10rpx;
width: 56rpx;
height: 56rpx;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(4px);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 5;
box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
}
.fav-icon-box:active {
transform: scale(0.9);
transition: transform 0.1s;
}
.wiki-image image { width: 100%; height: 100%; display: block; }
.wiki-image-placeholder {