Something went wrong. Try again.
A Bsky-like frontend using the atprotocol natively.
Something went wrong. Try again.
7.7 kB · 462 lines
CSS
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463.thread-page { display: flex; flex-direction: column;}
.thread-header { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10;}
.thread-back { background: none; border: none; color: var(--accent); font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: background 0.15s; display: inline-flex; align-items: center; gap: 4px;}
.thread-back svg { font-size: 14px; width: 14px; height: 14px;}
.thread-back:hover { background: var(--hover-bg);}
.thread-header-title { font-size: 18px; font-weight: 700; color: var(--text-h);}
.thread-loading,.thread-error,.thread-no-replies { padding: 48px 20px; text-align: center; color: var(--text);}
.thread-error { color: #e53e3e;}
.thread-ancestor { border-bottom: 1px solid var(--border);}
.thread-main-post { border-bottom: 1px solid var(--border);}
.thread-post-detail { padding: 16px 20px;}
.thread-post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px;}
.thread-post-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--border);}
.thread-post-avatar-btn { padding: 0; border: none; background: none; cursor: pointer; display: flex; flex-shrink: 0; border-radius: 50%; transition: opacity 0.15s;}
.thread-post-avatar-btn:hover { opacity: 0.8;}
.thread-post-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--accent); flex-shrink: 0;}
.thread-post-author-info { display: flex; flex-direction: column; min-width: 0;}
.thread-post-name { font-size: 17px; font-weight: 700; color: var(--text-h);}
.thread-post-pronouns { font-size: 13px; color: var(--text); opacity: 0.6; font-weight: 400; margin-left: 2px;}
.thread-post-handle { font-size: 14px; color: var(--text);}
.thread-post-handle-row { display: flex; align-items: center; gap: 6px; min-width: 0;}
.thread-post-name-btn { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0; border: none; background: none; cursor: pointer; font-family: inherit; text-align: left;}
.thread-post-name-row { display: flex; align-items: baseline; gap: 4px;}
.thread-post-name-btn:hover .thread-post-name { text-decoration: underline;}
.thread-post-body { font-size: 17px; line-height: 1.5; color: var(--text-h); white-space: pre-wrap; word-break: break-word; margin-bottom: 12px;}
.thread-post-body .post-body-link { color: var(--accent); text-decoration: none; cursor: pointer;}
.thread-post-body .post-body-link:hover { text-decoration: underline;}
.thread-post-body .post-body-url { word-break: break-all;}
.thread-post-meta { font-size: 13px; color: var(--text); padding-bottom: 12px; border-bottom: 1px solid var(--border);}
.thread-post-stats { display: flex; gap: 16px; padding: 12px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border);}
.thread-post-stats strong { color: var(--text-h); font-weight: 700;}
.thread-stat-btn { background: none; border: none; color: var(--text); font-size: 13px; cursor: pointer; padding: 0; font-family: inherit; transition: text-decoration 0.15s;}
.thread-stat-btn:hover { text-decoration: underline;}
.thread-stat-btn strong { color: var(--text-h); font-weight: 700;}
.thread-post-actions { display: flex; gap: 4px; padding-top: 10px; position: relative;}
.thread-post-actions .post-action { flex: 0 0 auto;}
.thread-reply-composer { padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--bg);}
.thread-reply-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text-h); font-size: 15px; font-family: inherit; resize: vertical; min-height: 60px; outline: none; transition: border-color 0.15s;}
.thread-reply-input:focus { border-color: var(--accent);}
.thread-reply-actions { display: flex; justify-content: flex-end; margin-top: 8px;}
.thread-reply-submit { padding: 8px 20px; border-radius: 999px; border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s;}
.thread-reply-submit:hover:not(:disabled) { opacity: 0.9;}
.thread-reply-submit:disabled { opacity: 0.5; cursor: not-allowed;}
.thread-quote-composer { padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--card-bg, var(--bg));}
.thread-quote-header { font-size: 14px; font-weight: 600; color: var(--text-h); margin-bottom: 8px;}
.thread-quote-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text-h); font-size: 15px; font-family: inherit; resize: vertical; min-height: 60px; outline: none; transition: border-color 0.15s;}
.thread-quote-input:focus { border-color: var(--accent);}
.thread-quote-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px;}
.thread-quote-cancel { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--text-h); font-size: 14px; cursor: pointer;}
.thread-quote-cancel:hover { background: var(--hover-bg);}
.thread-quote-submit { padding: 8px 20px; border-radius: 999px; border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s;}
.thread-quote-submit:hover:not(:disabled) { opacity: 0.9;}
.thread-quote-submit:disabled { opacity: 0.5; cursor: not-allowed;}
.thread-replies { display: flex; flex-direction: column;}
.thread-reply { border-bottom: 1px solid var(--border);}
.thread-reply-clickable { cursor: pointer; transition: background 0.15s; display: block; text-decoration: none; color: inherit;}
.thread-reply-clickable:hover { background: var(--hover-bg);}
.thread-reply-unavailable { padding: 16px 20px; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--border); opacity: 0.55;}
.thread-reply-unavailable--blocked { opacity: 0.55; color: #ef4444;}
.thread-reply-unavailable--deleted { opacity: 0.55;}
.thread-replies--depth-1 { margin-left: 32px; border-left: 2px solid var(--border);}
.thread-replies--depth-2 { margin-left: 24px; border-left: 2px solid color-mix(in srgb, var(--border) 70%, transparent);}
.thread-replies--depth-3 { margin-left: 20px; border-left: 2px solid color-mix(in srgb, var(--border) 50%, transparent);}
[data-theme="dark"] .thread-replies--depth-1 { border-left-color: color-mix(in srgb, var(--accent) 25%, transparent);}
[data-theme="dark"] .thread-replies--depth-2 { border-left-color: color-mix(in srgb, var(--accent) 15%, transparent);}
[data-theme="dark"] .thread-replies--depth-3 { border-left-color: color-mix(in srgb, var(--accent) 10%, transparent);}
.thread-replies--flat .thread-reply { position: relative;}
.thread-replies--flat .thread-reply::before { content: ''; position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: var(--border);}