[breaking change] rebuild style struct (#2021)

This commit is contained in:
neverland
2018-11-03 21:08:06 +08:00
committed by GitHub
parent a5576762d8
commit 11ce2a602f
165 changed files with 1371 additions and 4729 deletions

View File

@@ -36,7 +36,7 @@ export default {
};
</script>
<style lang="postcss">
<style lang="less">
.demo-progress {
.van-progress {
margin: 20px;

View File

@@ -0,0 +1,36 @@
@import '../style/var';
.van-progress {
height: 4px;
position: relative;
border-radius: 4px;
background: @gray-light;
&__portion {
left: 0;
height: 100%;
position: absolute;
border-radius: inherit;
&--with-pivot {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
&__pivot {
top: 50%;
right: 0;
min-width: 2em;
padding: 0 5px;
font-size: 10px;
position: absolute;
line-height: 1.6;
text-align: center;
border-radius: 1em;
word-break: keep-all;
box-sizing: border-box;
background-color: @gray-light;
transform: translate(100%, -50%);
}
}