95 lines
1.6 KiB
CSS
95 lines
1.6 KiB
CSS
.widget-container {
|
|
width: 400px;
|
|
height: 600px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: white;
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
}
|
|
|
|
.widget-container.loading,
|
|
.widget-container.error {
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
}
|
|
|
|
.loading-spinner {
|
|
font-size: 16px;
|
|
color: #666;
|
|
}
|
|
|
|
.error-message {
|
|
color: #d32f2f;
|
|
margin-bottom: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.widget-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 16px;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.widget-header h1 {
|
|
margin: 0;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-button {
|
|
background: none;
|
|
border: none;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.settings-button:hover {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
.widget-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.widget-avatar-section {
|
|
height: 200px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.widget-chat-section {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 480px) {
|
|
.widget-container {
|
|
width: 100%;
|
|
height: 100vh;
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
/* Reduced motion support */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|