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'; @import '../../style/var';
.demo-button { .demo-button {
background: @white;
.van-button { .van-button {
&--large { &--large {
margin-bottom: @padding-md; margin-bottom: @padding-md;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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