mirror of
				https://gitee.com/vant-contrib/vant.git
				synced 2025-10-31 03:22:08 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			864 B
		
	
	
	
		
			Smarty
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			864 B
		
	
	
	
		
			Smarty
		
	
	
	
	
	
| /* stylelint-disable selector-pseudo-element-colon-notation */
 | |
| /* stylelint-disable font-family-no-missing-generic-family-keyword */
 | |
| @font-face {
 | |
|   font-weight: normal;
 | |
|   font-family: '<%= fontName %>';
 | |
|   font-style: normal;
 | |
|   font-display: auto;
 | |
|   src: url('https://img01.yzcdn.cn/vant/<%= cssClass %>.woff2') format('woff2'),
 | |
|     url('https://img01.yzcdn.cn/vant/<%= cssClass %>.woff') format('woff'),
 | |
|     url('https://img01.yzcdn.cn/vant/<%= cssClass %>.ttf') format('truetype');
 | |
| }
 | |
| 
 | |
| .van-icon {
 | |
|   position: relative;
 | |
|   display: inline-block;
 | |
|   font: normal normal normal 14px/1 '<%= fontName %>';
 | |
|   font-size: inherit;
 | |
|   text-rendering: auto;
 | |
|   -webkit-font-smoothing: antialiased;
 | |
| 
 | |
|   &::before {
 | |
|     display: inline-block;
 | |
|   }
 | |
| }
 | |
| 
 | |
| <% _.each(glyphs, function(glyph) { %>.van-icon-<%= glyph.fileName %>::before {
 | |
|   content: '\<%= glyph.codePoint %>';
 | |
| }
 | |
| 
 | |
| <% }); %> |