mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-11-04 12:52:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			620 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			620 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
@import '../style/var';
 | 
						|
 | 
						|
.van-image-preview {
 | 
						|
  position: fixed;
 | 
						|
  top: 0;
 | 
						|
  left: 0;
 | 
						|
  width: 100%;
 | 
						|
  height: 100%;
 | 
						|
 | 
						|
  &__image {
 | 
						|
    position: absolute;
 | 
						|
    top: 0;
 | 
						|
    right: 0;
 | 
						|
    bottom: 0;
 | 
						|
    left: 0;
 | 
						|
    max-width: 100%;
 | 
						|
    max-height: 100%;
 | 
						|
    margin: auto;
 | 
						|
  }
 | 
						|
 | 
						|
  &__index {
 | 
						|
    position: absolute;
 | 
						|
    top: 10px;
 | 
						|
    left: 50%;
 | 
						|
    color: @image-preview-index-text-color;
 | 
						|
    font-size: @image-preview-index-font-size;
 | 
						|
    letter-spacing: 2px;
 | 
						|
    transform: translate(-50%, 0);
 | 
						|
  }
 | 
						|
 | 
						|
  &__overlay {
 | 
						|
    background-color: @image-preview-overlay-background-color;
 | 
						|
  }
 | 
						|
 | 
						|
  .van-swipe {
 | 
						|
    height: 100%;
 | 
						|
  }
 | 
						|
}
 |