chore: demo using css vars (#9265)

This commit is contained in:
neverland
2021-08-17 09:50:28 +08:00
committed by GitHub
parent 42888a1c22
commit 33996db3fa
42 changed files with 85 additions and 168 deletions
+2 -4
View File
@@ -45,10 +45,8 @@ const showEmbedded = ref(false);
</template>
<style lang="less">
@import '../../style/var';
.demo-overlay {
background: @white;
background: var(--van-white);
.wrapper {
display: flex;
@@ -60,7 +58,7 @@ const showEmbedded = ref(false);
.block {
width: 120px;
height: 120px;
background-color: @white;
background-color: var(--van-white);
border-radius: 4px;
}
}