[improvement] add padding variables (#3911)

This commit is contained in:
neverland
2019-07-20 15:46:27 +08:00
committed by GitHub
parent e400c9b67d
commit 5d83423b34
59 changed files with 132 additions and 242 deletions
+6 -4
View File
@@ -180,20 +180,22 @@ export default {
</script>
<style lang="less">
@import "../../style/var";
.demo-button {
.van-button {
&--large {
margin-bottom: 15px;
margin-bottom: @padding-md;
}
&--small,
&--normal:not(:last-child) {
margin-right: 10px;
margin-right: @padding-md;
}
}
.van-doc-demo-block {
padding: 0 15px;
padding: 0 @padding-md;
}
.van-doc-demo-block__title {
@@ -201,7 +203,7 @@ export default {
}
&-row {
margin-bottom: 10px;
margin-bottom: @padding-sm;
}
}
</style>