mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
58 lines
955 B
Plaintext
58 lines
955 B
Plaintext
@import '../common/style/var.less';
|
|
|
|
.van-grid-item {
|
|
position: relative;
|
|
float: left;
|
|
box-sizing: border-box;
|
|
|
|
&--square {
|
|
height: 0;
|
|
}
|
|
|
|
&__content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
padding: @grid-item-content-padding;
|
|
background-color: @grid-item-content-background-color;
|
|
|
|
&::after {
|
|
z-index: 1;
|
|
border-width: 0 1px 1px 0;
|
|
}
|
|
|
|
&--surround {
|
|
&::after {
|
|
border-width: 1px;
|
|
}
|
|
}
|
|
|
|
&--center {
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
&--square {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
}
|
|
|
|
&--clickable:active {
|
|
background-color: @grid-item-content-active-color;
|
|
}
|
|
}
|
|
|
|
&__icon {
|
|
font-size: @grid-item-icon-size;
|
|
}
|
|
|
|
&__text {
|
|
color: @grid-item-text-color;
|
|
font-size: @grid-item-text-font-size;
|
|
word-break: break-all;
|
|
}
|
|
}
|