优化功能菜单布局:手机端2列,PC端横版
This commit is contained in:
@@ -413,20 +413,28 @@ export default {
|
|||||||
.menu-grid {
|
.menu-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 手机端 - 2列布局 */
|
||||||
.menu-card {
|
.menu-card {
|
||||||
width: 48%;
|
width: 44%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 24rpx;
|
border-radius: 24rpx;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
margin-bottom: 20rpx;
|
margin: 10rpx;
|
||||||
box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1);
|
box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 平板/PC端 - 横版布局,超过4个换行 */
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.menu-card {
|
||||||
|
width: 22%;
|
||||||
|
margin: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.menu-card:active {
|
.menu-card:active {
|
||||||
transform: scale(0.98);
|
transform: scale(0.98);
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
|
|||||||
Reference in New Issue
Block a user