mirror of
				https://github.com/discourse/discourse-solved.git
				synced 2025-10-31 06:28:53 +00:00 
			
		
		
		
	add the text "Accepted Answer" next to the lonely button
use new "fade-out" class for the green areas in post menu
This commit is contained in:
		
							parent
							
								
									af5606a48a
								
							
						
					
					
						commit
						6808b4539d
					
				| @ -81,7 +81,7 @@ export default { | |||||||
|             'unacceptAnswer', |             'unacceptAnswer', | ||||||
|             locale, |             locale, | ||||||
|             'check-square', |             'check-square', | ||||||
|             {className: 'accepted'}) |             {className: 'accepted fade-out', prefixHTML: '<span class="accepted-text">' + I18n.t('solved.accepted_answer') + '</span>'}) | ||||||
|           ); |           ); | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,12 +1,25 @@ | |||||||
| .post-controls .accepted, .fa.accepted { | .post-controls .accepted, .fa.accepted, .accepted-text { | ||||||
|   color: green; |   color: green; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .post-controls .accepted-text { | ||||||
|  |   display: inline-block; | ||||||
|  |   font-size: inherit; | ||||||
|  |   vertical-align: middle; | ||||||
|  |   line-height: 35px; | ||||||
|  |   margin-right: -5px; | ||||||
|  |   z-index: 999; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| // you can style accepted answers however your want | // you can style accepted answers however your want | ||||||
| .topic-post.accepted-answer .topic-body { | .topic-post.accepted-answer .topic-body { | ||||||
| //  background-color: #E9FFE0; | //  background-color: #E9FFE0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | .mobile-view .post-controls .accepted-text { | ||||||
|  |   float: left; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .mobile-view .cooked .solved { | .mobile-view .cooked .solved { | ||||||
|   margin-bottom: 15px; |   margin-bottom: 15px; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user