docs: improve style (#12024)

This commit is contained in:
inottn 2023-06-24 20:32:40 +08:00 committed by GitHub
parent 0d7a2c6b60
commit edc1f5e7e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 21 deletions

View File

@ -189,9 +189,10 @@ const t = useTranslate({
&-row { &-row {
margin-bottom: var(--van-padding-sm); margin-bottom: var(--van-padding-sm);
} }
}
.notice-swipe { .notice-swipe {
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
}
} }
</style> </style>

View File

@ -148,24 +148,22 @@ const reset = () => {
</template> </template>
<style lang="less"> <style lang="less">
.van-button { .demo-rolling-text {
margin-left: var(--van-padding-md); .van-button {
} margin-left: var(--van-padding-md);
}
.van-rolling-text { .van-rolling-text {
margin-left: var(--van-padding-md); margin-left: var(--van-padding-md);
} }
.van-grid { .my-rolling-text {
margin-left: var(--van-padding-md); --van-rolling-text-background: #1989fa;
} --van-rolling-text-color: white;
--van-rolling-text-font-size: 24px;
.my-rolling-text { --van-rolling-text-gap: 6px;
--van-rolling-text-background: #1989fa; --van-rolling-text-item-border-radius: 5px;
--van-rolling-text-color: white; --van-rolling-text-item-width: 40px;
--van-rolling-text-font-size: 24px; }
--van-rolling-text-gap: 6px;
--van-rolling-text-item-border-radius: 5px;
--van-rolling-text-item-width: 40px;
} }
</style> </style>