mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore: adjust some css vars (#9758)
This commit is contained in:
parent
5d85f9ca9e
commit
3400c33450
@ -25,7 +25,7 @@
|
|||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: var(--van-badge-background-color);
|
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);
|
border-radius: var(--van-border-radius-max);
|
||||||
|
|
||||||
&--fixed {
|
&--fixed {
|
||||||
|
@ -184,7 +184,7 @@ const toggleAll = () => {
|
|||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.demo-checkbox {
|
.demo-checkbox {
|
||||||
background: var(--van-white);
|
background: var(--van-background-color-light);
|
||||||
|
|
||||||
.van-checkbox {
|
.van-checkbox {
|
||||||
margin: 0 0 8px 20px;
|
margin: 0 0 8px 20px;
|
||||||
|
@ -231,7 +231,7 @@ const copy = (icon: string, option: Record<string, unknown> = {}) => {
|
|||||||
.van-tab__pane {
|
.van-tab__pane {
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
background-color: #fff;
|
background-color: var(--van-background-color-light);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ const onSelect = (action: { text: string }) => Toast(action.text);
|
|||||||
v-model:show="showPicker"
|
v-model:show="showPicker"
|
||||||
round
|
round
|
||||||
position="bottom"
|
position="bottom"
|
||||||
get-container="body"
|
teleport="body"
|
||||||
>
|
>
|
||||||
<div class="demo-popover-box">
|
<div class="demo-popover-box">
|
||||||
<van-popover
|
<van-popover
|
||||||
|
@ -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 class="van-badge__wrapper van-icon van-icon-arrow van-cell__right-icon">
|
||||||
</i>
|
</i>
|
||||||
</div>
|
</div>
|
||||||
<transition-stub>
|
|
||||||
</transition-stub>
|
|
||||||
<transition-stub>
|
|
||||||
</transition-stub>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="van-popover__wrapper">
|
<span class="van-popover__wrapper">
|
||||||
|
@ -88,7 +88,7 @@ const onChange = (value: number) => Toast(t('toastContent', value));
|
|||||||
<style lang="less">
|
<style lang="less">
|
||||||
.demo-rate {
|
.demo-rate {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
background-color: #fff;
|
background-color: var(--van-background-color-light);
|
||||||
|
|
||||||
.van-rate {
|
.van-rate {
|
||||||
margin-left: var(--van-padding-md);
|
margin-left: var(--van-padding-md);
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
left: calc(var(--van-padding-xs) * -1);
|
left: calc(var(--van-padding-xs) * -1);
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding: 0 var(--van-padding-xs);
|
padding: 0 var(--van-padding-xs);
|
||||||
background-color: var(--van-white);
|
background-color: var(--van-background-color-light);
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,10 @@ const container = ref(null);
|
|||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block :title="t('setContainer')">
|
<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-sticky :container="container">
|
||||||
<van-button type="warning" style="margin-left: 215px">
|
<van-button type="warning" style="margin-left: 215px">
|
||||||
{{ t('setContainer') }}
|
{{ t('setContainer') }}
|
||||||
|
@ -34,7 +34,7 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div style="height: 150px; background-color: rgb(255, 255, 255);">
|
<div style="height: 150px;">
|
||||||
<div>
|
<div>
|
||||||
<div class="van-sticky">
|
<div class="van-sticky">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user