Browse Source

Merge pull request '缩短功能按钮上下高度,优化紧凑布局' (#17) from ly1 into Xfy

Reviewed-on: http://8.137.125.67:4000/SwtTt29/Mini-Program/pulls/17
pull/19/head
hzj 2 months ago
parent
commit
e1b72f17cd
  1. 16
      pages/index/index.wxss

16
pages/index/index.wxss

@ -97,7 +97,7 @@ page {
display: flex;
justify-content: space-around;
align-items: center;
padding: 15rpx 20rpx;
padding: 10rpx 20rpx;
width: 100%;
max-width: 850rpx;
box-sizing: border-box;
@ -114,7 +114,7 @@ page {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 15rpx 0;
padding: 8rpx 0;
margin: 0;
text-align: center;
background: #ffffff;
@ -126,19 +126,19 @@ page {
}
.function-btn:hover {
transform: translateY(-3rpx);
transform: translateY(-2rpx);
background: #f5f5f5;
box-shadow: 0 3rpx 10rpx rgba(0, 0, 0, 0.1);
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
.function-btn:active {
transform: translateY(0rpx) scale(0.96);
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.15);
}
.function-btn-icon {
font-size: 48rpx;
margin-bottom: 8rpx;
font-size: 42rpx;
margin-bottom: 5rpx;
transition: all 0.3s ease;
display: block;
}
@ -156,7 +156,7 @@ page {
}
.function-btn-text {
font-size: 20rpx;
font-size: 18rpx;
color: #333333;
font-weight: 600;
letter-spacing: 0;

Loading…
Cancel
Save