interstellar_ai/app/styles/container.css

30 lines
956 B
CSS
Raw Normal View History

2024-09-18 11:17:34 +02:00
/* container.css */
2024-09-30 10:46:03 +02:00
.container{
2024-09-18 11:17:34 +02:00
display: flex;
width: 100vw;
2024-09-30 16:11:01 +02:00
height: 90dvh;
padding-top: 1dvh;
2024-09-18 11:17:34 +02:00
}
2024-10-08 17:37:17 +02:00
.left-panel{
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
}
2024-10-08 17:37:17 +02:00
.left-panel.hidden{
2024-09-18 11:17:34 +02:00
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
}
2024-10-08 17:37:17 +02:00
.conversation-container{
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
}
2024-10-08 17:37:17 +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
}