fix: move chat CSS inside style block, clean up orphaned tags
This commit is contained in:
+151
-151
@@ -969,158 +969,158 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
}
|
||||||
|
|
||||||
/* ── Chat Widget ─────────────────────────────────────────── */
|
/* ── Chat Widget ─────────────────────────────────────────── */
|
||||||
.chat-widget {
|
.chat-widget {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 24px;
|
bottom: 24px;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
.chat-toggle {
|
.chat-toggle {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 12px 20px;
|
padding: 12px 20px;
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 60px;
|
border-radius: 60px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
|
box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
|
||||||
transition: opacity 0.25s, transform 0.25s;
|
transition: opacity 0.25s, transform 0.25s;
|
||||||
}
|
}
|
||||||
.chat-toggle:hover {
|
.chat-toggle:hover {
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
transform: scale(1.04);
|
transform: scale(1.04);
|
||||||
}
|
}
|
||||||
.chat-toggle svg { flex-shrink: 0; }
|
.chat-toggle svg { flex-shrink: 0; }
|
||||||
.chat-panel {
|
.chat-panel {
|
||||||
display: none;
|
display: none;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 80px;
|
bottom: 80px;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
width: 360px;
|
width: 360px;
|
||||||
max-height: 520px;
|
max-height: 520px;
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: var(--radius-card);
|
border-radius: var(--radius-card);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--shadow);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
animation: chatSlideUp 0.28s ease;
|
animation: chatSlideUp 0.28s ease;
|
||||||
}
|
}
|
||||||
.chat-panel.open { display: flex; }
|
.chat-panel.open { display: flex; }
|
||||||
@keyframes chatSlideUp {
|
@keyframes chatSlideUp {
|
||||||
from { opacity: 0; transform: translateY(16px); }
|
from { opacity: 0; transform: translateY(16px); }
|
||||||
to { opacity: 1; transform: translateY(0); }
|
to { opacity: 1; transform: translateY(0); }
|
||||||
}
|
}
|
||||||
.chat-header {
|
.chat-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 16px 20px;
|
padding: 16px 20px;
|
||||||
background: var(--accent-dim);
|
background: var(--accent-dim);
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
.chat-header button {
|
.chat-header button {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
.chat-header button:hover { color: var(--text); }
|
.chat-header button:hover { color: var(--text); }
|
||||||
.chat-msgs {
|
.chat-msgs {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 16px 20px;
|
padding: 16px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
max-height: 340px;
|
max-height: 340px;
|
||||||
}
|
}
|
||||||
.chat-msg {
|
.chat-msg {
|
||||||
max-width: 85%;
|
max-width: 85%;
|
||||||
padding: 10px 14px;
|
padding: 10px 14px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.chat-msg-bot {
|
.chat-msg-bot {
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
background: var(--bg-inner);
|
background: var(--bg-inner);
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
}
|
}
|
||||||
.chat-msg-user {
|
.chat-msg-user {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
background: var(--accent-dim);
|
background: var(--accent-dim);
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
}
|
}
|
||||||
.chat-msg-thinking {
|
.chat-msg-thinking {
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
background: var(--bg-inner);
|
background: var(--bg-inner);
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
}
|
}
|
||||||
.chat-input-row {
|
.chat-input-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
border-top: 1px solid var(--border);
|
border-top: 1px solid var(--border);
|
||||||
background: var(--bg-inner);
|
background: var(--bg-inner);
|
||||||
}
|
}
|
||||||
.chat-input-row input {
|
.chat-input-row input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 9px 14px;
|
padding: 9px 14px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
background: var(--bg-input);
|
background: var(--bg-input);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
.chat-input-row input:focus {
|
.chat-input-row input:focus {
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.15);
|
box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.15);
|
||||||
}
|
}
|
||||||
.chat-input-row button {
|
.chat-input-row button {
|
||||||
padding: 9px 18px;
|
padding: 9px 18px;
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: opacity 0.2s;
|
transition: opacity 0.2s;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.chat-input-row button:hover { opacity: 0.9; }
|
.chat-input-row button:hover { opacity: 0.9; }
|
||||||
.chat-input-row button:disabled { opacity: 0.5; cursor: default; }
|
.chat-input-row button:disabled { opacity: 0.5; cursor: default; }
|
||||||
|
@media (max-width: 480px) {
|
||||||
@media (max-width: 480px) {
|
.chat-panel {
|
||||||
.chat-panel {
|
right: 10px;
|
||||||
right: 10px;
|
left: 10px;
|
||||||
left: 10px;
|
width: auto;
|
||||||
width: auto;
|
bottom: 72px;
|
||||||
bottom: 72px;
|
max-height: 60vh;
|
||||||
max-height: 60vh;
|
}
|
||||||
}
|
.chat-widget { bottom: 14px; right: 14px; }
|
||||||
.chat-widget { bottom: 14px; right: 14px; }
|
.chat-toggle { padding: 10px 16px; font-size: 13px; }
|
||||||
.chat-toggle { padding: 10px 16px; font-size: 13px; }
|
}
|
||||||
}
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user