|
|
|
@ -25,30 +25,24 @@ page { |
|
|
|
padding: 10rpx 0; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
overflow: hidden; |
|
|
|
transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s ease-in-out; |
|
|
|
-webkit-transition: opacity 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out, visibility 0.4s ease-in-out; |
|
|
|
will-change: opacity, transform; |
|
|
|
transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, transform 0.4s ease-in-out, margin-bottom 0.4s ease-in-out, padding 0.4s ease-in-out; |
|
|
|
-webkit-transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out, margin-bottom 0.4s ease-in-out, padding 0.4s ease-in-out; |
|
|
|
will-change: opacity, transform, max-height, margin; |
|
|
|
max-height: 200rpx; |
|
|
|
opacity: 1; |
|
|
|
transform: translateY(0); |
|
|
|
-webkit-transform: translateY(0); |
|
|
|
visibility: visible; |
|
|
|
height: auto; |
|
|
|
/* 固定高度,避免iOS上的布局抖动 */ |
|
|
|
min-height: 160rpx; |
|
|
|
} |
|
|
|
|
|
|
|
/* 顶部搜索区域完全隐藏状态 - 用于平滑收缩高度 */ |
|
|
|
.top-hidden { |
|
|
|
opacity: 0; |
|
|
|
transform: translateY(-100%); |
|
|
|
-webkit-transform: translateY(-100%); |
|
|
|
max-height: 0; |
|
|
|
padding: 0; |
|
|
|
margin-bottom: 0; |
|
|
|
pointer-events: none; |
|
|
|
visibility: hidden; |
|
|
|
/* 保持高度不变,避免iOS上的布局抖动 */ |
|
|
|
height: auto; |
|
|
|
min-height: 160rpx; |
|
|
|
padding: 10rpx 0; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
opacity: 0; |
|
|
|
transform: translateY(-20rpx); |
|
|
|
-webkit-transform: translateY(-20rpx); |
|
|
|
} |
|
|
|
|
|
|
|
/* 标题样式 */ |
|
|
|
|