101 lines
1.9 KiB
SCSS
101 lines
1.9 KiB
SCSS
@import '../mixins.scss';
|
|
|
|
.menu-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20rpx 12rpx;
|
|
}
|
|
|
|
.menu-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 8rpx;
|
|
min-height: 168rpx;
|
|
padding: 20rpx 8rpx 12rpx;
|
|
border-radius: 24rpx;
|
|
}
|
|
|
|
.menu-card:active {
|
|
background: var(--brand-green-soft, #ecfdf5);
|
|
}
|
|
|
|
.menu-icon {
|
|
position: relative;
|
|
overflow: visible;
|
|
width: 96rpx;
|
|
height: 96rpx;
|
|
border-radius: 28rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #eef2f1;
|
|
color: #3d524a;
|
|
font-size: 48rpx;
|
|
box-shadow: inset 0 0 0 1rpx rgba(15, 41, 30, 0.06);
|
|
}
|
|
|
|
/* 微信风格数量角标:图标右上角 */
|
|
.menu-badge {
|
|
position: absolute;
|
|
top: -8rpx;
|
|
right: -12rpx;
|
|
z-index: 1;
|
|
min-width: 32rpx;
|
|
height: 32rpx;
|
|
padding: 0 8rpx;
|
|
border-radius: 16rpx;
|
|
background: #fa5151;
|
|
color: #fff;
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
line-height: 32rpx;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 0 0 2rpx #fff;
|
|
}
|
|
|
|
.menu-icon .v-icon--img {
|
|
width: 52rpx;
|
|
height: 52rpx;
|
|
}
|
|
|
|
/* 无色底:仅展示位图本身(如发起审批纸飞机),收紧容器避免与标题脱节 */
|
|
.menu-icon.menu-icon--plain {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.menu-icon.menu-icon--plain .v-icon--img {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
}
|
|
|
|
.menu-icon.tone-approve {
|
|
background: #ffe4e6;
|
|
color: #e11d48;
|
|
box-shadow: inset 0 0 0 1rpx rgba(225, 29, 72, 0.12);
|
|
}
|
|
|
|
.menu-icon.tone-yellow {
|
|
background: var(--barley-yellow-soft, #fffbeb);
|
|
color: #a16207;
|
|
}
|
|
|
|
.menu-icon.tone-slate {
|
|
background: #eef2f1;
|
|
color: #3d524a;
|
|
}
|
|
|
|
.menu-title {
|
|
font-size: 24rpx;
|
|
line-height: 1.25;
|
|
color: var(--text-primary, #0f291e);
|
|
text-align: center;
|
|
max-width: 144rpx;
|
|
word-break: break-all;
|
|
}
|