chore: adjust some css vars (#9758)

This commit is contained in:
neverland 2021-10-30 20:45:07 +08:00 committed by GitHub
parent 5d85f9ca9e
commit 3400c33450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 12 deletions

View File

@ -25,7 +25,7 @@
line-height: 1.2;
text-align: center;
background: var(--van-badge-background-color);
border: var(--van-badge-border-width) solid var(--van-white);
border: var(--van-badge-border-width) solid var(--van-background-color-light);
border-radius: var(--van-border-radius-max);
&--fixed {

View File

@ -184,7 +184,7 @@ const toggleAll = () => {
<style lang="less">
.demo-checkbox {
background: var(--van-white);
background: var(--van-background-color-light);
.van-checkbox {
margin: 0 0 8px 20px;

View File

@ -231,7 +231,7 @@ const copy = (icon: string, option: Record<string, unknown> = {}) => {
.van-tab__pane {
width: auto;
margin: 20px;
background-color: #fff;
background-color: var(--van-background-color-light);
border-radius: 12px;
}
}

View File

@ -136,7 +136,7 @@ const onSelect = (action: { text: string }) => Toast(action.text);
v-model:show="showPicker"
round
position="bottom"
get-container="body"
teleport="body"
>
<div class="demo-popover-box">
<van-popover

View File

@ -47,10 +47,6 @@ exports[`should render demo and match snapshot 1`] = `
<i class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
</i>
</div>
<transition-stub>
</transition-stub>
<transition-stub>
</transition-stub>
</div>
<div>
<span class="van-popover__wrapper">

View File

@ -88,7 +88,7 @@ const onChange = (value: number) => Toast(t('toastContent', value));
<style lang="less">
.demo-rate {
padding-bottom: 20px;
background-color: #fff;
background-color: var(--van-background-color-light);
.van-rate {
margin-left: var(--van-padding-md);

View File

@ -66,7 +66,7 @@
left: calc(var(--van-padding-xs) * -1);
z-index: 1;
padding: 0 var(--van-padding-xs);
background-color: var(--van-white);
background-color: var(--van-background-color-light);
transform: translateY(-50%);
}

View File

@ -38,7 +38,10 @@ const container = ref(null);
</demo-block>
<demo-block :title="t('setContainer')">
<div ref="container" style="height: 150px; background-color: #fff">
<div
ref="container"
style="height: 150px; background-color: var(--van-background-color-light)"
>
<van-sticky :container="container">
<van-button type="warning" style="margin-left: 215px">
{{ t('setContainer') }}

View File

@ -34,7 +34,7 @@ exports[`should render demo and match snapshot 1`] = `
</div>
</div>
<div>
<div style="height: 150px; background-color: rgb(255, 255, 255);">
<div style="height: 150px;">
<div>
<div class="van-sticky">
<button type="button"