interstellar_ai/app/styles/container.css

43 lines
1.2 KiB
CSS
Raw Normal View History

2024-09-18 11:17:34 +02:00
/* container.css */
2024-09-19 12:18:04 +02:00
.container,
.content {
2024-09-18 11:17:34 +02:00
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
position: relative; /* Ensure relative positioning for proper transitions */
}
.left-panel {
2024-09-25 13:33:46 +02:00
margin-top: 5em;
2024-09-18 16:26:57 +02:00
width: 25vw; /* Adjust as needed */
2024-09-19 12:18:04 +02:00
transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* Smooth transitions for all properties */
2024-09-23 11:55:58 +02:00
background-color: var(--left-panel-background-color); /* Use variable for background color */
border-radius: 0 1em 0 0;
margin-left: 0;
padding-right: 1em;
2024-09-18 11:17:34 +02:00
}
.left-panel.hidden {
opacity: 0; /* Fade out when hidden */
2024-09-19 12:18:04 +02:00
width: 0; /* Collapse width to 0 */
visibility: hidden; /* Hide visibility while collapsing */
2024-09-18 11:17:34 +02:00
}
.conversation-container {
2024-09-25 13:33:46 +02:00
margin-top: 5em;
2024-09-18 11:17:34 +02:00
flex: 1;
2024-09-19 12:18:04 +02:00
transition: margin-left 0.3s ease; /* Smooth margin adjustment */
2024-09-23 11:55:58 +02:00
background-color: var(--conversation-background-color); /* Use variable for background color */
border-radius: 1em 0 0 0;
2024-09-18 11:17:34 +02:00
}
/* Adjust margin-left when panel is shown or hidden */
.conversation-container.expanded {
2024-09-19 12:18:04 +02:00
margin-left: 1vw;
2024-09-18 11:17:34 +02:00
}
.conversation-container.collapsed {
2024-09-19 12:18:04 +02:00
margin-left: 1vw; /* Space for the left panel */
2024-09-19 09:54:00 +02:00
}