vant/src/circle/index.less
2019-09-09 14:20:44 +08:00

33 lines
542 B
Plaintext

@import '../style/var';
.van-circle {
position: relative;
display: inline-block;
text-align: center;
svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
&__layer {
fill: none;
stroke-linecap: round;
}
&__text {
position: absolute;
top: 50%;
left: 0;
width: 100%;
color: @circle-text-color;
font-weight: @circle-text-font-weight;
font-size: @circle-text-font-size;
line-height: @circle-text-line-height;
transform: translateY(-50%);
}
}