Something went wrong. Try again.
A Bsky-like frontend using the atprotocol natively.
Something went wrong. Try again.
5.6 kB · 352 lines
CSS
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353.notif-page { min-height: 100vh;}
.notif-header-bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px; backdrop-filter: blur(12px);}
.notif-title { font-size: 20px; font-weight: 700; color: var(--text-h); margin: 0;}
.notif-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 48px 16px; color: var(--text); font-size: 15px;}
.notif-error { padding: 12px 16px; margin: 12px 16px; border-radius: 8px; background: #fed7d7; color: #c53030; font-size: 14px;}
.notif-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px; color: var(--text); gap: 12px;}
.notif-empty-icon { font-size: 48px; opacity: 0.3;}
.notif-empty p { font-size: 16px; margin: 0;}
.notif-list { display: flex; flex-direction: column;}
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; width: 100%; text-align: left; color: inherit; transition: background 0.1s; position: relative;}
.notif-item:hover { background: var(--hover-bg);}
.notif-item--unread { background: color-mix(in srgb, var(--accent) 5%, var(--bg));}
.notif-item--unread:hover { background: color-mix(in srgb, var(--accent) 8%, var(--hover-bg));}
.notif-reason-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--hover-bg); flex-shrink: 0; font-size: 14px;}
.notif-content { flex: 1; min-width: 0;}
.notif-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
.notif-header-text { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;}
.notif-time { font-size: 13px; color: var(--text); opacity: 0.6; white-space: nowrap; flex-shrink: 0;}
.notif-avatar-stack { display: flex; flex-shrink: 0;}
.notif-avatar-stack-item { margin-left: -6px; border-radius: 50%; border: 2px solid var(--bg); overflow: hidden;}
.notif-avatar-stack-item:first-child { margin-left: 0;}
.notif-avatar-stack-overflow { margin-left: -6px; border-radius: 50%; border: 2px solid var(--bg); background: var(--hover-bg); color: var(--text); font-size: 10px; font-weight: 700; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;}
.notif-actors { display: inline;}
.notif-author-name { font-weight: 600; font-size: 14px; color: var(--text-h); cursor: pointer;}
.notif-author-name:hover { text-decoration: underline;}
.notif-others { font-size: 14px; color: var(--text); opacity: 0.8;}
.notif-action { font-size: 14px; color: var(--text);}
.notif-avatar { flex-shrink: 0;}
.notif-avatar-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block;}
.notif-avatar-placeholder { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;}
.notif-post-preview { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--hover-bg); border: 1px solid var(--border); max-width: 100%;}
.notif-post-preview--loading { opacity: 0.5;}
.notif-post-preview-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px;}
.notif-post-preview-avatar { width: 16px; height: 16px; border-radius: 50%; object-fit: cover;}
.notif-post-preview-avatar-placeholder { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700;}
.notif-post-preview-name { font-size: 12px; font-weight: 600; color: var(--text-h); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.notif-post-preview-text { font-size: 13px; color: var(--text); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.notif-replies { margin-top: 6px; display: flex; flex-direction: column; gap: 4px;}
.notif-reply-preview { font-size: 13px; color: var(--text); line-height: 1.4; padding: 6px 10px; border-radius: 8px; background: var(--hover-bg); border: 1px solid var(--border); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 14px;}
.notif-sentinel { padding: 16px;}
.notif-loading-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; color: var(--text); font-size: 14px;}
@media (prefers-color-scheme: dark) { .notif-item--unread { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.notif-item--unread:hover { background: color-mix(in srgb, var(--accent) 12%, var(--hover-bg)); }
.notif-post-preview { border-color: color-mix(in srgb, var(--border) 60%, transparent); }
.notif-reply-preview { border-color: color-mix(in srgb, var(--border) 60%, transparent); }}