refactor(client): use css modules
This commit is contained in:
		
							parent
							
								
									d23aa94b41
								
							
						
					
					
						commit
						ffc29aa6f5
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		|  | @ -1,7 +1,7 @@ | ||||||
| <template> | <template> | ||||||
| <div class="fpezltsf" :class="{ warn }"> | <div :class="[$style.root, { [$style.warn]: warn }]"> | ||||||
| 	<i v-if="warn" class="ti ti-alert-triangle"></i> | 	<i v-if="warn" class="ti ti-alert-triangle" :class="$style.i"></i> | ||||||
| 	<i v-else class="ti ti-info-circle"></i> | 	<i v-else class="ti ti-info-circle" :class="$style.i"></i> | ||||||
| 	<slot></slot> | 	<slot></slot> | ||||||
| </div> | </div> | ||||||
| </template> | </template> | ||||||
|  | @ -14,8 +14,8 @@ const props = defineProps<{ | ||||||
| }>(); | }>(); | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <style lang="scss" scoped> | <style lang="scss" module> | ||||||
| .fpezltsf { | .root { | ||||||
| 	padding: 12px 14px; | 	padding: 12px 14px; | ||||||
| 	font-size: 90%; | 	font-size: 90%; | ||||||
| 	background: var(--infoBg); | 	background: var(--infoBg); | ||||||
|  | @ -26,9 +26,9 @@ const props = defineProps<{ | ||||||
| 		background: var(--infoWarnBg); | 		background: var(--infoWarnBg); | ||||||
| 		color: var(--infoWarnFg); | 		color: var(--infoWarnFg); | ||||||
| 	} | 	} | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| 	> i { | .i { | ||||||
| 		margin-right: 4px; | 	margin-right: 4px; | ||||||
| 	} |  | ||||||
| } | } | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue