Replace platform checkboxes with pill toggles in social scheduler

Target selection is now a row of compact pills (per platform+target)
instead of grouped checkbox lists. Clicking a pill toggles it active;
the image icon inside only activates when the pill is selected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-06-04 20:09:57 +03:00
parent 24c9deef94
commit 5b801514b2
2 changed files with 51 additions and 39 deletions

View file

@ -458,6 +458,21 @@ pre { color: #e6edf3; }
.social-platform-mastodon { background: rgba(99,100,255,.25); color: #a29cf4; border-color: rgba(99,100,255,.4); }
.social-platform-linkedin { background: rgba(10,102,194,.25); color: #5ba3d9; border-color: rgba(10,102,194,.4); }
.social-pill {
display: inline-flex; align-items: center; gap: 5px;
padding: 3px 10px; border-radius: 999px;
border: 1px solid var(--hm-border); cursor: pointer;
font-size: .8rem; color: var(--hm-muted);
background: transparent; user-select: none; transition: all .15s;
}
.social-pill:hover { border-color: #8b949e; color: #c9d1d9; }
.social-pill.active[data-platform="discord"] { background: rgba(88,101,242,.2); border-color: rgba(88,101,242,.7); color: #9aa0f5; }
.social-pill.active[data-platform="mastodon"] { background: rgba(99,100,255,.2); border-color: rgba(99,100,255,.7); color: #a29cf4; }
.social-pill.active[data-platform="linkedin"] { background: rgba(10,102,194,.2); border-color: rgba(10,102,194,.7); color: #5ba3d9; }
.social-pill-img { opacity: .35; font-size: .75em; transition: opacity .15s; }
.social-pill:hover .social-pill-img { opacity: .6; }
.social-pill.img-on .social-pill-img { opacity: 1; }
.social-post-card .card-body { border-left: 3px solid transparent; border-radius: inherit; }
.social-post-card.status-pending .card-body { border-left-color: #e3b341; }
.social-post-card.status-done .card-body { border-left-color: #3fb950; }