Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README. Co-authored-by: Cursor <cursoragent@cursor.com>
415 lines
9.0 KiB
SCSS
415 lines
9.0 KiB
SCSS
@import '../../../styles/page-rem.scss';
|
||
|
||
/* 全屏单大厅 IM:无频道条、无侧栏、无底栏 Dock */
|
||
.im-root {
|
||
padding-top: var(--safe-status-bar, 0PX);
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
height: 100vh;
|
||
height: 100dvh;
|
||
overflow: hidden;
|
||
box-sizing: border-box;
|
||
background: #0a0e17;
|
||
color: #f1f5f9;
|
||
}
|
||
|
||
.im-header { display: flex; align-items: center; gap: 0.625rem; min-height: var(--safe-nav-bar, 2.75rem); padding: 0.5rem var(--safe-menu-pad, 1rem) 0.5rem 0.75rem; background: var(--social-surface); }
|
||
.im-header-title { flex: 1; min-width: 0; font-size: 1rem; font-weight: 700; }
|
||
.im-header .im-back, .im-header .im-reconnect { padding: 0.5rem !important; font-size: 0.8125rem !important; }
|
||
.im-new-messages { position: absolute; bottom: calc(5rem + env(safe-area-inset-bottom)); left: 25%; z-index: 20; color: var(--social-text); background: var(--social-raised); }
|
||
.im-root[data-theme] .im-composer, .im-root[data-theme] .im-bubble { background: var(--social-surface); color: var(--social-text); border-color: var(--social-line); }
|
||
.im-root[data-theme] .im-input, .im-root[data-theme] .im-nick { background: var(--social-raised); color: var(--social-text); min-height: 2.75rem; }
|
||
.im-root[data-theme] .im-meta, .im-root[data-theme] .im-author, .im-root[data-theme] .im-empty-desc { color: var(--social-muted); }
|
||
.im-root[data-theme] .im-send.is-on { background: #52d3c4; color: #082f2b; }
|
||
|
||
.im-status-row {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 0.5rem;
|
||
padding: 0.45rem 0.75rem;
|
||
border-bottom: 1PX solid rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.im-pill {
|
||
min-height: 1.6rem;
|
||
padding: 0 0.65rem;
|
||
border-radius: 999PX;
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: 0.7rem;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
color: #94a3b8;
|
||
}
|
||
.im-pill.is-live {
|
||
color: #042f2e;
|
||
background: rgba(78, 205, 196, 0.85);
|
||
}
|
||
.im-pill.is-polling {
|
||
color: #422006;
|
||
background: rgba(245, 158, 11, 0.85);
|
||
}
|
||
.im-pill.is-offline {
|
||
color: #fff;
|
||
background: rgba(244, 63, 94, 0.75);
|
||
}
|
||
.im-pill.is-connecting {
|
||
animation: im-pulse 1.2s ease-in-out infinite;
|
||
}
|
||
|
||
@keyframes im-pulse {
|
||
50% {
|
||
opacity: 0.45;
|
||
}
|
||
}
|
||
|
||
.im-nick {
|
||
min-width: 5rem;
|
||
max-width: 8rem;
|
||
min-height: 2.2rem;
|
||
padding: 0 0.55rem;
|
||
border-radius: 0.55rem;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
color: #e2e8f0;
|
||
font-size: 0.8rem;
|
||
}
|
||
|
||
.im-thread {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
height: 0;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.im-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.7rem;
|
||
padding: 0.85rem 0.75rem 1.1rem;
|
||
}
|
||
|
||
.im-row-wrap {
|
||
display: flex;
|
||
width: 100%;
|
||
}
|
||
|
||
.im-empty {
|
||
padding: 18vh 1.25rem 2rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 0.45rem;
|
||
text-align: center;
|
||
}
|
||
.im-empty-title {
|
||
font-size: 1.05rem;
|
||
font-weight: 700;
|
||
}
|
||
.im-empty-desc {
|
||
max-width: 16rem;
|
||
font-size: 0.85rem;
|
||
line-height: 1.5;
|
||
color: #94a3b8;
|
||
}
|
||
|
||
.im-bubble {
|
||
max-width: 84%;
|
||
padding: 0.7rem 0.85rem;
|
||
border-radius: 1rem 1rem 1rem 0.35rem;
|
||
background: rgba(30, 41, 59, 0.95);
|
||
border: 1PX solid rgba(255, 255, 255, 0.06);
|
||
}
|
||
.im-bubble.is-mine {
|
||
margin-left: auto;
|
||
border-radius: 1rem 1rem 0.35rem 1rem;
|
||
background: rgba(78, 205, 196, 0.2);
|
||
border-color: rgba(78, 205, 196, 0.35);
|
||
}
|
||
.im-bubble.is-fail {
|
||
border-style: dashed;
|
||
border-color: rgba(245, 158, 11, 0.6);
|
||
}
|
||
|
||
.im-author {
|
||
display: block;
|
||
font-size: 0.7rem;
|
||
color: #94a3b8;
|
||
margin-bottom: 0.2rem;
|
||
}
|
||
|
||
.im-text {
|
||
font-size: 0.95rem;
|
||
line-height: 1.55;
|
||
word-break: break-word;
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
.im-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.35rem;
|
||
margin-top: 0.3rem;
|
||
font-size: 0.65rem;
|
||
color: #64748b;
|
||
}
|
||
.im-fail {
|
||
color: #fbbf24;
|
||
}
|
||
|
||
.im-typing {
|
||
flex: 0 0 auto;
|
||
padding: 0.25rem 0.9rem;
|
||
font-size: 0.7rem;
|
||
color: #94a3b8;
|
||
}
|
||
|
||
.im-anchor {
|
||
height: 1PX;
|
||
width: 100%;
|
||
}
|
||
|
||
.im-composer {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0PX));
|
||
border-top: 1PX solid rgba(255, 255, 255, 0.08);
|
||
background: #080c14;
|
||
}
|
||
|
||
.im-input {
|
||
flex: 1;
|
||
min-height: 2.75rem;
|
||
padding: 0 0.85rem;
|
||
border-radius: 0.9rem;
|
||
border: 1PX solid rgba(255, 255, 255, 0.1);
|
||
background: rgba(255, 255, 255, 0.06);
|
||
color: #f8fafc;
|
||
font-size: 1rem;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.im-send {
|
||
flex: 0 0 auto;
|
||
min-width: 4.25rem;
|
||
min-height: 2.75rem;
|
||
padding: 0 1rem;
|
||
border-radius: 999PX;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
color: #64748b;
|
||
font-size: 0.9rem;
|
||
font-weight: 700;
|
||
}
|
||
.im-send.is-on {
|
||
background: linear-gradient(120deg, #f59e0b, #fbbf24);
|
||
color: #1c1003;
|
||
}
|
||
.im-send.is-busy {
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.soc-taro-root.im-root[data-theme] .im-back,
|
||
.soc-taro-root.im-root[data-theme] .im-reconnect {
|
||
min-height: 2.75rem; min-width: 2.75rem; margin: 0;
|
||
padding: 0.5rem 0.75rem !important; border: 0; border-radius: 0.75rem;
|
||
background: var(--social-raised); color: var(--social-text); font-size: 0.875rem !important;
|
||
&::after { border: 0; }
|
||
}
|
||
.soc-taro-root.im-root[data-theme] .im-send { border: 0; margin: 0; }
|
||
.soc-taro-root.im-root[data-theme] .im-input { min-width: 0; }
|
||
.soc-taro-root.im-root[data-theme] .im-bubble.is-mine { background: var(--social-raised); border-color: var(--social-accent); }
|
||
.soc-taro-root.im-root[data-theme='light'] .im-fail { color: #926000; }
|
||
|
||
.im-bubble.is-pinned {
|
||
outline: 1PX solid rgba(245, 158, 11, 0.45);
|
||
}
|
||
.im-quote {
|
||
margin-bottom: 0.35rem;
|
||
padding: 0.35rem 0.5rem;
|
||
border-left: 2PX solid #f59e0b;
|
||
background: rgba(255, 255, 255, 0.05);
|
||
border-radius: 0 0.5rem 0.5rem 0;
|
||
}
|
||
.im-quote-a {
|
||
display: block;
|
||
font-size: 0.7rem;
|
||
color: #f59e0b;
|
||
}
|
||
.im-quote-t {
|
||
display: block;
|
||
font-size: 0.72rem;
|
||
color: #94a3b8;
|
||
}
|
||
.im-recalled {
|
||
font-style: italic;
|
||
color: #94a3b8;
|
||
font-size: 0.85rem;
|
||
}
|
||
.im-atts {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.45rem;
|
||
margin-top: 0.35rem;
|
||
}
|
||
.im-att-image,
|
||
.im-att-video {
|
||
width: 100%;
|
||
max-width: 16rem;
|
||
border-radius: 0.75rem;
|
||
}
|
||
.im-att-file {
|
||
display: flex;
|
||
align-items: center;
|
||
min-height: 2.75rem;
|
||
padding: 0.5rem 0.75rem;
|
||
border-radius: 0.75rem;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
color: #fbbf24;
|
||
font-size: 0.85rem;
|
||
border: 0;
|
||
}
|
||
.im-reactions {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.3rem;
|
||
margin-top: 0.35rem;
|
||
}
|
||
.im-react-chip {
|
||
padding: 0.15rem 0.45rem;
|
||
border-radius: 999PX;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
font-size: 0.75rem;
|
||
}
|
||
.im-react-chip.is-mine {
|
||
outline: 1PX solid #f59e0b;
|
||
}
|
||
.im-pinned {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.25rem;
|
||
padding: 0.35rem 0.75rem;
|
||
}
|
||
.im-pinned-item {
|
||
text-align: left;
|
||
min-height: 2.25rem;
|
||
padding: 0.35rem 0.65rem;
|
||
border-radius: 999PX;
|
||
border: 1PX solid rgba(245, 158, 11, 0.35);
|
||
background: rgba(245, 158, 11, 0.12);
|
||
color: #f8fafc;
|
||
font-size: 0.75rem;
|
||
}
|
||
.im-chip-row,
|
||
.im-pending {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 0.4rem;
|
||
padding: 0.35rem 0.75rem;
|
||
font-size: 0.75rem;
|
||
color: #cbd5e1;
|
||
}
|
||
.im-chip-row button,
|
||
.im-pending-item {
|
||
min-height: 2.25rem;
|
||
padding: 0.25rem 0.65rem;
|
||
border: 0;
|
||
border-radius: 999PX;
|
||
background: rgba(255, 255, 255, 0.08);
|
||
color: #e2e8f0;
|
||
font-size: 0.75rem;
|
||
}
|
||
.im-composer-tools {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
gap: 0.35rem;
|
||
padding: 0.25rem 0.75rem 0;
|
||
}
|
||
.im-tool {
|
||
min-width: 2.75rem;
|
||
min-height: 2.75rem;
|
||
border: 0;
|
||
border-radius: 0.85rem;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
font-size: 1.15rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.im-emoji-sheet {
|
||
flex: 0 0 auto;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.35rem;
|
||
padding: 0.5rem 0.75rem;
|
||
border-top: 1PX solid rgba(255, 255, 255, 0.06);
|
||
background: #080c14;
|
||
}
|
||
.im-emoji-btn {
|
||
min-width: 2.75rem;
|
||
min-height: 2.75rem;
|
||
border: 0;
|
||
border-radius: 0.75rem;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
font-size: 1.25rem;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.im-action-sheet {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 80;
|
||
background: rgba(0, 0, 0, 0.55);
|
||
display: flex;
|
||
align-items: flex-end;
|
||
justify-content: center;
|
||
}
|
||
.im-action-panel {
|
||
width: 100%;
|
||
max-width: 40rem;
|
||
padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0PX));
|
||
border-radius: 1.1rem 1.1rem 0 0;
|
||
background: #101826;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.35rem;
|
||
}
|
||
.im-action-title {
|
||
text-align: center;
|
||
font-size: 0.8rem;
|
||
color: #94a3b8;
|
||
margin-bottom: 0.25rem;
|
||
}
|
||
.im-quick-react {
|
||
display: flex;
|
||
justify-content: space-around;
|
||
margin-bottom: 0.35rem;
|
||
}
|
||
.im-action-btn {
|
||
min-height: 2.85rem;
|
||
border: 0;
|
||
border-radius: 0.85rem;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
color: #f8fafc;
|
||
font-size: 1rem;
|
||
font-weight: 600;
|
||
}
|
||
.im-action-btn.is-danger {
|
||
color: #f87171;
|
||
}
|
||
.im-action-btn.is-cancel {
|
||
margin-top: 0.25rem;
|
||
background: transparent;
|
||
color: #94a3b8;
|
||
}
|