Something went wrong. Try again.
A Bsky-like frontend using the atprotocol natively.
Something went wrong. Try again.
9.1 kB · 558 lines
CSS
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559.profile-page { min-height: 100%;}
.profile-header { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10;}
.profile-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--accent); font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 999px; font-family: inherit; transition: background 0.15s;}
.profile-back:hover { background: var(--hover-bg);}
.profile-header-title { font-size: 18px; font-weight: 700; color: var(--text-h);}
.profile-banner { width: 100%; max-height: 200px; overflow: hidden; background: var(--border);}
.profile-banner--clickable { cursor: pointer; position: relative;}
.profile-banner--clickable:hover img { filter: brightness(0.85);}
.profile-banner--clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px;}
.profile-banner img { width: 100%; height: 200px; object-fit: cover; transition: filter 0.15s;}
.profile-info { padding: 0 20px 16px; position: relative;}
.profile-info-top { display: flex; justify-content: space-between; align-items: flex-start;}
.profile-actions-wrap { margin-top: 20px; flex-shrink: 0;}
.profile-info.no-banner .profile-actions-wrap { margin-top: 0;}
.profile-avatar-wrap { margin-top: -40px;}
.profile-info.no-banner .profile-avatar-wrap { margin-top: 0;}
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--bg); object-fit: cover; background: var(--border);}
.profile-avatar-link { display: block; padding: 0; margin: 0; border: none; background: none; cursor: pointer; border-radius: 50%; line-height: 0; transition: filter 0.15s;}
.profile-avatar-link:hover { filter: brightness(0.85);}
.profile-avatar-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px;}
.profile-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--bg); background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--accent);}
.profile-names { margin-top: 8px; display: flex; flex-direction: column;}
.profile-name-row { display: flex; align-items: baseline; gap: 8px;}
.profile-display-name { font-size: 20px; font-weight: 700; color: var(--text-h);}
.profile-pronouns { font-size: 13px; font-weight: 400; color: var(--text); white-space: nowrap;}
.profile-handle { font-size: 15px; color: var(--text);}
.profile-handle-row { display: flex; align-items: center; gap: 8px;}
.profile-bio { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--text-h); white-space: pre-wrap; word-break: break-word;}
.profile-website { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 14px; color: var(--accent); text-decoration: none; word-break: break-all; transition: opacity 0.15s;}
.profile-website:hover { text-decoration: underline;}
.profile-website svg { font-size: 12px; flex-shrink: 0;}
.profile-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px;}
.profile-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text);}
.profile-meta-item svg { font-size: 12px;}
.profile-stats { margin-top: 10px; display: flex; gap: 16px;}
.profile-stat { font-size: 13px; color: var(--text); background: none; border: none; padding: 0; font-family: inherit; cursor: default;}
.profile-stat strong { color: var(--text-h); font-weight: 600;}
.profile-stat--clickable { cursor: pointer; transition: opacity 0.15s;}
.profile-stat--clickable:hover strong { text-decoration: underline;}
.profile-tabs { display: flex; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 9;}
.profile-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text); font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; position: relative;}
.profile-tab:hover { background: var(--hover-bg); color: var(--accent);}
.profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600;}
.profile-tab-icon { font-size: 13px;}
.profile-tab-label { display: inline;}
@media (max-width: 480px) { .profile-tab-label { display: none; } .profile-tab-icon { font-size: 16px; }}
.profile-feed { border-top: none;}
.profile-loading { padding: 32px 20px; text-align: center; color: var(--text); font-size: 14px;}
.profile-error { padding: 32px 20px; text-align: center; color: #ef4444; font-size: 14px;}
.profile-empty { padding: 32px 20px; text-align: center; color: var(--text); font-size: 14px;}
.profile-load-more { display: block; width: 100%; padding: 12px; background: none; border: none; border-top: 1px solid var(--border); color: var(--accent); font-size: 14px; cursor: pointer; font-family: inherit; transition: background 0.15s;}
.profile-load-more:hover { background: var(--hover-bg);}
.profile-load-more-sentinel { height: 4px;}
.profile-load-more:disabled { opacity: 0.5; cursor: not-allowed;}
.profile-pinned-post { border-bottom: 1px solid var(--border);}
.profile-pinned-label { display: flex; align-items: center; gap: 6px; padding: 8px 16px 0; font-size: 13px; font-weight: 500; color: var(--text);}
.profile-pinned-icon { font-size: 12px;}
.profile-known-followers { margin-top: 10px; display: flex; flex-direction: column; gap: 6px;}
.profile-known-followers__avatars { display: flex; gap: 0;}
.profile-known-followers__avatar-wrap { position: relative; display: inline-flex; cursor: pointer;}
.profile-known-followers__avatar-wrap + .profile-known-followers__avatar-wrap { margin-left: -6px;}
.profile-known-followers__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); background: var(--border);}
.profile-known-followers__avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent);}
.profile-known-followers__label { background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; line-height: 1.35;}
.profile-known-followers__label:hover { color: var(--accent);}
.profile-known-followers__label:hover .profile-known-followers__name { text-decoration: underline;}
.profile-feed-card { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--border); gap: 8px;}
.profile-feed-card:hover { background: var(--hover-bg);}
.profile-feed-card-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer;}
.profile-feed-card-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--border); flex-shrink: 0;}
.profile-feed-card-avatar-placeholder { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--accent); flex-shrink: 0;}
.profile-feed-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0;}
.profile-feed-card-name { font-size: 15px; font-weight: 600; color: var(--text-h); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.profile-feed-card-meta { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 4px;}
.profile-feed-card-meta svg { font-size: 11px; color: #ef4444;}
.profile-feed-card-actions { display: flex; gap: 4px; flex-shrink: 0;}
.profile-feed-card-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: none; color: var(--text); border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.15s;}
.profile-feed-card-btn:hover:not(:disabled) { background: var(--hover-bg); color: var(--text-h); border-color: var(--accent);}
.profile-feed-card-btn:disabled { opacity: 0.5; cursor: not-allowed;}