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
+3 -5
View File
@@ -88,14 +88,12 @@ const fits = ['contain', 'cover', 'fill', 'none', 'scale-down'];
</template>
<style lang="less">
@import '../../style/var';
.demo-image {
overflow-x: hidden;
background-color: @white;
background-color: var(--van-white);
.van-row {
padding: 0 @padding-md;
padding: 0 var(--van-padding-md);
}
.van-col {
@@ -104,7 +102,7 @@ const fits = ['contain', 'cover', 'fill', 'none', 'scale-down'];
.text {
margin-top: 5px;
color: @gray-7;
color: var(--van-gray-7);
font-size: 14px;
text-align: center;
}