4wswt4ex2: Add like and unlike for post cards
This commit is contained in:
@@ -35,3 +35,10 @@ button:disabled { opacity: .5; cursor: not-allowed; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
.new-posts { position: sticky; top: 68px; z-index: 4; align-self: center; margin: 0; padding: 8px 16px; border-radius: 999px; }
|
||||
.sentinel { height: 1px; }
|
||||
.like-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 8px; background: transparent; color: var(--grey); border-radius: 8px; font-size: 14px; font-weight: 400; }
|
||||
.like-btn:hover:not(:disabled) { color: var(--red); background: #fff3f3; }
|
||||
.like-btn.liked { color: var(--red); }
|
||||
.like-btn:disabled { opacity: 1; cursor: default; }
|
||||
.like-btn:disabled:not(.liked) { color: var(--grey); }
|
||||
.like-error { color: #a8141b; font-size: 13px; align-self: center; }
|
||||
.post-stats { align-items: center; }
|
||||
|
||||
Reference in New Issue
Block a user