[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

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>

View File

@@ -104,7 +104,7 @@
&--small {
min-width: @button-small-min-width;
height: @button-small-height;
padding: 0 8px;
padding: 0 @padding-xs;
font-size: @button-small-font-size;
line-height: @button-small-line-height;
}