only outline eldest new comment ... unset on touch
This commit is contained in:
		
							parent
							
								
									d661c70f16
								
							
						
					
					
						commit
						0867f3ff1c
					
				@ -135,7 +135,8 @@ export default function Comment ({
 | 
			
		||||
  return (
 | 
			
		||||
    <div
 | 
			
		||||
      ref={ref} className={includeParent ? '' : `${styles.comment} ${collapse === 'yep' ? styles.collapsed : ''}`}
 | 
			
		||||
      onMouseEnter={() => ref.current.classList.remove('outline-new-comment')}
 | 
			
		||||
      onMouseEnter={() => ref.current.classList.add('outline-new-comment-unset')}
 | 
			
		||||
      onTouchStart={() => ref.current.classList.add('outline-new-comment-unset')}
 | 
			
		||||
    >
 | 
			
		||||
      <div className={`${itemStyles.item} ${styles.item}`}>
 | 
			
		||||
        {item.meDontLike
 | 
			
		||||
 | 
			
		||||
@ -689,7 +689,15 @@ div[contenteditable]:focus,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.outline-new-comment {
 | 
			
		||||
  box-shadow: inset 0 0 1px 1px rgba(0, 123, 190, 0.35);
 | 
			
		||||
  box-shadow: inset 0 0 1px 1px rgba(0, 123, 190, 0.25);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.outline-new-comment.outline-new-comment-unset {
 | 
			
		||||
  box-shadow: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.outline-new-comment .outline-new-comment {
 | 
			
		||||
  box-shadow: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@keyframes spin {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user