refactor(docs-infra): move common .code-anchor styles to _code.scss (#40704)
				
					
				
			The `.code-anchor` class can be used anywhere where we have code examples (including API pages and docs guides). Previously, global styles for `.code-anchor` were defined in `_api-list.scss` (i.e. the styles from `_api-list.scss` were also applied to `.code-anchor` elements in other pages/components). This commit moves the `.code-anchor` styles to `_code.scss`, which contains other common code-related styles. PR Close #40704
This commit is contained in:
		
							parent
							
								
									60f6e177b8
								
							
						
					
					
						commit
						ae1a00760d
					
				| @ -171,13 +171,3 @@ aio-api-list { | ||||
|     z-index: $layer-1; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .code-anchor { | ||||
|   cursor: pointer; | ||||
|   text-decoration: none; | ||||
|   font-size: inherit; | ||||
| 
 | ||||
|   &:hover { | ||||
|     text-decoration: underline; | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -161,6 +161,16 @@ aio-code { | ||||
|       font-weight: inherit; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   .code-anchor { | ||||
|     cursor: pointer; | ||||
|     text-decoration: none; | ||||
|     font-size: inherit; | ||||
| 
 | ||||
|     &:hover { | ||||
|       text-decoration: underline; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| /* PRETTY PRINTING STYLES for prettify.js. */ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user