[new feature] add grid component (#3669)

This commit is contained in:
neverland
2019-06-28 11:16:42 +08:00
committed by GitHub
parent 1850230102
commit 9737a8b9d0
36 changed files with 907 additions and 51 deletions
+59
View File
@@ -0,0 +1,59 @@
@import '../style/var';
.van-grid-item {
position: relative;
box-sizing: border-box;
&--square {
height: 0;
}
&__content {
display: flex;
flex-direction: column;
box-sizing: border-box;
height: 100%;
padding: 15px 10px;
background-color: #fff;
&::after {
z-index: 1;
border-width: 0 1px 1px 0;
}
&--square {
position: absolute;
top: 0;
right: 0;
left: 0;
}
&--center {
align-items: center;
justify-content: center;
}
&--surround {
&::after {
border-width: 1px;
}
}
&--clickable:active {
background-color: @active-color;
}
}
&__icon {
font-size: 28px;
}
&__text {
color: @gray-darker;
font-size: 12px;
}
&__icon + &__text {
margin-top: 8px;
}
}