mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-11-04 12:52:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			644 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			644 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 {
 | 
						|
    transform: rotate(90deg);
 | 
						|
    // should not use transform-origin: center
 | 
						|
    // that will cause incorrect style in android devices
 | 
						|
    transform-origin: 530px 530px;
 | 
						|
    fill: none;
 | 
						|
    stroke-linecap: round;
 | 
						|
    stroke-dasharray: 3140;
 | 
						|
    stroke-dashoffset: 3140;
 | 
						|
  }
 | 
						|
 | 
						|
  &__text {
 | 
						|
    position: absolute;
 | 
						|
    top: 50%;
 | 
						|
    left: 0;
 | 
						|
    width: 100%;
 | 
						|
    color: @circle-text-color;
 | 
						|
    transform: translateY(-50%);
 | 
						|
  }
 | 
						|
}
 |