mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Add attention blocks within quote blocks for Note and Warning (#21711)
				
					
				
			For each quote block, the first `**Note**` or `**Warning**` gets an icon prepended to it and its text is colored accordingly. GitHub does this (community/community#16925). [Initially requested on Discord.](https://discord.com/channels/322538954119184384/322538954119184384/1038816475638661181) ### Before  ### After  Signed-off-by: Yarden Shoham <hrsi88@gmail.com> Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -1732,6 +1732,20 @@ a.ui.card:hover,
 | 
			
		||||
  border-radius: .15em;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.attention-icon {
 | 
			
		||||
  vertical-align: text-top;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.attention-note {
 | 
			
		||||
  font-weight: unset;
 | 
			
		||||
  color: var(--color-info-text);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.attention-warning {
 | 
			
		||||
  font-weight: unset;
 | 
			
		||||
  color: var(--color-warning-text);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
footer {
 | 
			
		||||
  background-color: var(--color-footer);
 | 
			
		||||
  border-top: 1px solid var(--color-secondary);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user