mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
[Improvement] Layout: support flex (#1305)
This commit is contained in:
@@ -6,6 +6,6 @@
|
||||
}
|
||||
|
||||
@for $i from 1 to 24 {
|
||||
.van-col-$i { width: calc($i * 100% / 24); }
|
||||
.van-col-offset-$i { margin-left: calc($i * 100% / 24); }
|
||||
.van-col--$i { width: calc($i * 100% / 24); }
|
||||
.van-col--offset-$i { margin-left: calc($i * 100% / 24); }
|
||||
}
|
||||
|
@@ -6,4 +6,36 @@
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
&--flex {
|
||||
display: flex;
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&--justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&--justify-end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
&--justify-space-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&--justify-space-around {
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
&--align-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&--align-bottom {
|
||||
align-items: bottom;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user