[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
+1 -1
View File
@@ -61,7 +61,7 @@ export default {
};
</script>
<style lang="postcss">
<style lang="less">
.demo-circle {
.van-circle {
margin-left: 15px;
+33
View File
@@ -0,0 +1,33 @@
@import '../style/var';
.van-circle {
position: relative;
text-align: center;
display: inline-block;
svg {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: absolute;
}
&__layer {
fill: none;
stroke-linecap: round;
stroke-dasharray: 3140;
stroke-dashoffset: 3140;
transform: rotate(90deg);
transform-origin: center;
}
&__text {
top: 50%;
left: 0;
width: 100%;
color: @text-color;
position: absolute;
transform: translateY(-50%);
}
}