docs: improve demo background (#5529)

This commit is contained in:
neverland 2020-01-09 18:53:27 +08:00 committed by GitHub
parent 4f81d7c0ac
commit 47c24e192c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 36 additions and 6 deletions

View File

@ -143,6 +143,8 @@ export default {
@import '../../style/var';
.demo-button {
background: @white;
.van-button {
&--large {
margin-bottom: @padding-md;

View File

@ -170,6 +170,8 @@ export default {
@import "../../style/var";
.demo-checkbox {
background: @white;
.van-checkbox {
margin: 10px 0 0 20px;
}

View File

@ -103,6 +103,8 @@ export default {
@import '../../style/var';
.demo-col {
background: @white;
.van-doc-demo-block {
padding: 0 @padding-md;
}

View File

@ -222,6 +222,7 @@ export default {
width: auto;
margin: 20px;
background-color: #fff;
border-radius: 12px;
}
}
</style>

View File

@ -66,9 +66,9 @@ export default {
padding: @padding-md;
background-color: white;
background-repeat: no-repeat;
background-position: @padding-md;
background-size: 315px 250px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
background-size: 100% 100%;
border-radius: 12px;
box-shadow: 0 8px 12px #ebedf0;
}
.van-doc-demo-block__title,

View File

@ -50,7 +50,11 @@ export default {
</script>
<style lang="less">
@import "../../style/var";
.demo-loading {
background: @white;
.van-loading {
display: inline-block;
margin: 5px 0 5px 20px;

View File

@ -66,13 +66,17 @@ export default {
</script>
<style lang="less">
@import '../../style/var';
.demo-notice-bar {
background: @white;
.van-notice-bar:not(:first-of-type) {
margin-top: 5px;
margin-top: 4px;
}
.van-doc-demo-block__title {
padding-top: 25px;
padding-top: 24px;
}
}
</style>

View File

@ -51,7 +51,11 @@ export default {
</script>
<style lang="less">
@import "../../style/var";
.demo-overlay {
background: @white;
.wrapper {
display: flex;
align-items: center;
@ -62,7 +66,7 @@ export default {
.block {
width: 120px;
height: 120px;
background-color: #fff;
background-color: @white;
}
}
</style>

View File

@ -43,7 +43,11 @@ export default {
</script>
<style lang="less">
@import '../../style/var';
.demo-progress {
background: @white;
.van-progress {
margin: 20px;

View File

@ -121,7 +121,11 @@ export default {
</script>
<style lang="less">
@import "../../style/var";
.demo-radio {
background: @white;
&-group {
padding: 0 17px;

View File

@ -112,6 +112,7 @@ export default {
@import '../../style/var';
.demo-slider {
background: @white;
user-select: none;
.van-slider {

View File

@ -73,6 +73,8 @@ export default {
@import '../../style/var';
.demo-switch {
background: @white;
.van-switch {
margin: 0 @padding-md;
}