change design
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* ── Chat Page ── */
|
||||
/* ── Chat Page (Instagram Direct style) ── */
|
||||
.chat-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
height: 100vh;
|
||||
background: linear-gradient(135deg, #1a2340 0%, #0d1018 100%);
|
||||
background: var(--bg-app);
|
||||
}
|
||||
|
||||
/* Header */
|
||||
@@ -12,9 +12,9 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 14px 18px;
|
||||
padding: 12px 18px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(13, 16, 24, .7);
|
||||
background: var(--bg-surface-solid);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
.chat-back-btn {
|
||||
@@ -28,30 +28,30 @@
|
||||
transition: background .15s, color .15s;
|
||||
}
|
||||
.chat-back-btn:hover {
|
||||
background: rgba(255, 255, 255, .08);
|
||||
color: #fff;
|
||||
background: var(--hover-bg);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
.chat-header-title {
|
||||
flex: 1;
|
||||
color: #fff;
|
||||
font-weight: 900;
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-primary);
|
||||
font-weight: 800;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.chat-status {
|
||||
font-size: .75rem;
|
||||
font-size: .72rem;
|
||||
font-weight: 700;
|
||||
color: var(--muted);
|
||||
}
|
||||
.chat-status.connected {
|
||||
color: #2de0c8;
|
||||
color: #30a85e;
|
||||
}
|
||||
|
||||
.chat-header-avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
background: rgba(45, 224, 200, .15);
|
||||
border: 2px solid rgba(45, 224, 200, .3);
|
||||
background: var(--bg-input);
|
||||
border: 2px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -73,10 +73,10 @@
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
.chat-messages::-webkit-scrollbar { width: 4px; }
|
||||
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
|
||||
.chat-messages::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||||
|
||||
.chat-empty {
|
||||
text-align: center;
|
||||
@@ -97,18 +97,20 @@
|
||||
.chat-bubble {
|
||||
max-width: 70%;
|
||||
padding: 10px 14px;
|
||||
border-radius: 14px;
|
||||
font-size: .93rem;
|
||||
border-radius: 18px;
|
||||
font-size: .92rem;
|
||||
line-height: 1.45;
|
||||
align-self: flex-start;
|
||||
background: rgba(255, 255, 255, .08);
|
||||
color: #fff;
|
||||
background: var(--bg-surface-solid);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
word-break: break-word;
|
||||
}
|
||||
.chat-bubble.mine {
|
||||
align-self: flex-end;
|
||||
background: #2de0c8;
|
||||
color: #082320;
|
||||
background: #3797f0;
|
||||
border-color: #3797f0;
|
||||
color: #fff;
|
||||
}
|
||||
.chat-bubble-time {
|
||||
display: block;
|
||||
@@ -123,39 +125,38 @@
|
||||
/* Input row */
|
||||
.chat-input-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 16px;
|
||||
gap: 8px;
|
||||
padding: 14px 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
background: rgba(13, 16, 24, .5);
|
||||
backdrop-filter: blur(8px);
|
||||
background: var(--bg-surface-solid);
|
||||
}
|
||||
.chat-input {
|
||||
flex: 1;
|
||||
padding: 12px 16px;
|
||||
border-radius: 12px;
|
||||
padding: 12px 18px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, .08);
|
||||
color: #fff;
|
||||
background: var(--bg-input);
|
||||
color: var(--text-primary);
|
||||
font-family: var(--font);
|
||||
font-size: .9rem;
|
||||
outline: none;
|
||||
transition: border-color .2s;
|
||||
transition: border-color .2s, box-shadow .2s;
|
||||
}
|
||||
.chat-input::placeholder { color: var(--muted); }
|
||||
.chat-input:focus { border-color: rgba(45, 224, 200, .5); }
|
||||
.chat-input:focus { border-color: rgba(var(--teal-rgb), .5); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .12); }
|
||||
|
||||
.chat-send-btn {
|
||||
padding: 0 20px;
|
||||
border-radius: 12px;
|
||||
border-radius: 999px;
|
||||
border: none;
|
||||
background: #2de0c8;
|
||||
color: #082320;
|
||||
background: var(--teal);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 1.1rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
transition: background .2s, opacity .2s;
|
||||
}
|
||||
.chat-send-btn:hover:not(:disabled) { background: #24c9b2; }
|
||||
.chat-send-btn:hover:not(:disabled) { background: var(--teal2); }
|
||||
.chat-send-btn:disabled { opacity: .4; cursor: default; }
|
||||
|
||||
/* ── Emoji picker ── */
|
||||
@@ -172,23 +173,21 @@
|
||||
.chat-emoji-picker em-emoji-picker {
|
||||
width: 320px;
|
||||
max-height: 350px;
|
||||
--rgb-background: 13, 16, 24;
|
||||
--rgb-accent: 45, 224, 200;
|
||||
}
|
||||
.chat-emoji-btn {
|
||||
background: rgba(255, 255, 255, .08);
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
border-radius: 999px;
|
||||
padding: 0 12px;
|
||||
cursor: pointer;
|
||||
font-size: 1.3rem;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1;
|
||||
transition: background .15s, border-color .15s;
|
||||
}
|
||||
.chat-emoji-btn:hover,
|
||||
.chat-emoji-btn.active {
|
||||
background: rgba(255, 255, 255, .14);
|
||||
border-color: rgba(45, 224, 200, .5);
|
||||
background: var(--hover-bg);
|
||||
border-color: rgba(var(--teal-rgb), .5);
|
||||
}
|
||||
|
||||
/* ── Chat List ── */
|
||||
@@ -196,37 +195,38 @@
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 8px;
|
||||
max-width: 560px;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.chat-list::-webkit-scrollbar { width: 4px; }
|
||||
.chat-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
|
||||
.chat-list::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
||||
|
||||
.chat-list-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 14px 16px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 14px;
|
||||
cursor: pointer;
|
||||
transition: background .15s;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.chat-list-item:hover {
|
||||
background: rgba(255, 255, 255, .05);
|
||||
border-color: rgba(45, 224, 200, .2);
|
||||
background: var(--hover-bg);
|
||||
}
|
||||
|
||||
.chat-list-avatar {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 50%;
|
||||
background: rgba(45, 224, 200, .15);
|
||||
border: 2px solid rgba(45, 224, 200, .3);
|
||||
background: var(--bg-input);
|
||||
border: 2px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.15rem;
|
||||
font-weight: 800;
|
||||
color: #2de0c8;
|
||||
color: var(--muted);
|
||||
flex-shrink: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -242,14 +242,14 @@
|
||||
min-width: 0;
|
||||
}
|
||||
.chat-list-item.unread .chat-list-name {
|
||||
color: #2de0c8;
|
||||
font-weight: 800;
|
||||
}
|
||||
.chat-list-item.unread .chat-list-preview {
|
||||
color: rgba(45, 224, 200, .6);
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
.chat-list-name {
|
||||
color: #fff;
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
font-size: .9rem;
|
||||
white-space: nowrap;
|
||||
@@ -267,10 +267,10 @@
|
||||
|
||||
/* ── Unread Badge ── */
|
||||
.chat-list-unread-badge {
|
||||
background: #2de0c8;
|
||||
color: #082320;
|
||||
background: #ff3040;
|
||||
color: #fff;
|
||||
font-size: .7rem;
|
||||
font-weight: 900;
|
||||
font-weight: 800;
|
||||
min-width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
@@ -283,10 +283,10 @@
|
||||
|
||||
/* ── Sidebar Unread Badge ── */
|
||||
.f-sb-unread-badge {
|
||||
background: #2de0c8;
|
||||
color: #082320;
|
||||
background: #ff3040;
|
||||
color: #fff;
|
||||
font-size: .65rem;
|
||||
font-weight: 900;
|
||||
font-weight: 800;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 9px;
|
||||
@@ -302,24 +302,24 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
background: rgba(45, 224, 200, .12);
|
||||
border: 1px solid rgba(45, 224, 200, .3);
|
||||
border-radius: 20px;
|
||||
background: rgba(var(--teal-rgb), .1);
|
||||
border: 1px solid rgba(var(--teal-rgb), .3);
|
||||
border-radius: 999px;
|
||||
padding: 5px 14px;
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
font-size: .8rem;
|
||||
font-weight: 700;
|
||||
color: #2de0c8;
|
||||
color: var(--teal);
|
||||
transition: all .2s;
|
||||
}
|
||||
.f-card-contact:hover {
|
||||
background: rgba(45, 224, 200, .22);
|
||||
border-color: rgba(45, 224, 200, .5);
|
||||
background: rgba(var(--teal-rgb), .18);
|
||||
border-color: rgba(var(--teal-rgb), .5);
|
||||
}
|
||||
|
||||
.chat-list-delete-btn {
|
||||
background: rgba(255, 71, 87, .1);
|
||||
background: rgba(255, 71, 87, .08);
|
||||
border: 1px solid rgba(255, 71, 87, .2);
|
||||
border-radius: 10px;
|
||||
color: rgba(255, 71, 87, .5);
|
||||
@@ -336,7 +336,7 @@
|
||||
opacity: 1;
|
||||
}
|
||||
.chat-list-delete-btn:hover {
|
||||
background: rgba(255, 71, 87, .2);
|
||||
background: rgba(255, 71, 87, .15);
|
||||
border-color: rgba(255, 71, 87, .4);
|
||||
color: #ff4757;
|
||||
}
|
||||
@@ -344,10 +344,10 @@
|
||||
/* Mobile adjustments */
|
||||
@media (max-width: 600px) {
|
||||
.chat-header {
|
||||
padding: 12px 14px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.chat-input-row {
|
||||
padding: 12px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.chat-bubble {
|
||||
max-width: 85%;
|
||||
|
||||
Reference in New Issue
Block a user