mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-09-08 17:06:20 +08:00
docs: improve demo background (#5529)
This commit is contained in:
parent
4f81d7c0ac
commit
47c24e192c
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user