srsViewer/public/css/moveableChat.css
creations a3b03fdec4
All checks were successful
Code quality checks / biome (push) Successful in 22s
add chat :p
2025-06-08 19:57:50 -04:00

210 lines
3.1 KiB
CSS

.moveable-chat-frame {
position: fixed;
top: 20%;
right: 20px;
width: 350px;
height: 500px;
background: var(--bg-card);
border-radius: 12px 12px 0 0;
box-shadow: var(--shadow-xl);
backdrop-filter: blur(20px);
z-index: 1000;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 280px;
min-height: 200px;
max-width: 90vw;
max-height: 90vh;
transition: all 0.3s ease;
}
.moveable-chat-frame.minimized {
height: 44px;
resize: none;
}
.moveable-chat-frame.minimized .chat-frame-content {
display: none;
}
.moveable-chat-frame.minimized .resize-handle {
display: none;
}
.chat-frame-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-bottom: none;
cursor: move;
user-select: none;
border-radius: 12px 12px 0 0;
flex-shrink: 0;
}
.chat-frame-title {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-primary);
font-weight: 600;
font-size: 14px;
}
.chat-frame-title svg {
color: var(--accent-blue);
}
.chat-frame-controls {
display: flex;
gap: 4px;
}
.chat-control-btn {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: none;
border: none;
border-radius: 4px;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s ease;
}
.chat-control-btn:hover {
background: var(--bg-primary);
color: var(--text-primary);
}
.chat-frame-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid var(--border-primary);
border-top: none;
border-radius: 0;
}
.chat-frame-iframe {
width: 100%;
height: 100%;
border: none;
background: var(--bg-card);
}
.resize-handle {
position: absolute;
background: transparent;
z-index: 10;
}
.resize-handle-n,
.resize-handle-s {
left: 0;
right: 0;
height: 4px;
cursor: ns-resize;
}
.resize-handle-n {
top: 0;
}
.resize-handle-s {
bottom: 0;
}
.resize-handle-e,
.resize-handle-w {
top: 0;
bottom: 0;
width: 4px;
cursor: ew-resize;
}
.resize-handle-e {
right: 0;
}
.resize-handle-w {
left: 0;
}
.resize-handle-ne,
.resize-handle-nw,
.resize-handle-se,
.resize-handle-sw {
width: 8px;
height: 8px;
}
.resize-handle-ne {
top: 0;
right: 0;
cursor: ne-resize;
}
.resize-handle-nw {
top: 0;
left: 0;
cursor: nw-resize;
}
.resize-handle-se {
bottom: 0;
right: 0;
cursor: se-resize;
}
.resize-handle-sw {
bottom: 0;
left: 0;
cursor: sw-resize;
}
.chat-open #toggleChatBtn {
background: var(--accent-blue);
color: white;
}
@media (max-width: 768px) {
.moveable-chat-frame {
width: calc(100vw - 20px);
height: 60vh;
right: 10px;
left: 10px;
top: auto;
bottom: 10px;
border-radius: 12px 12px 0 0;
}
.moveable-chat-frame.minimized {
height: 44px;
bottom: 10px;
}
.resize-handle {
display: none;
}
}
.chat-frame-loading {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
color: var(--text-secondary);
font-size: 14px;
}
.chat-frame-loading .spinner {
width: 20px;
height: 20px;
margin-right: 8px;
}