interstellar_ai/app/styles/responsive.css

159 lines
3 KiB
CSS
Raw Normal View History

2024-09-18 12:52:36 +02:00
/* Responsive behavior - applies only on smaller screens */
@media (max-width: 1200px) {
2024-09-23 11:55:58 +02:00
* {
2024-09-19 16:27:24 +02:00
margin: 0;
padding: 0;
2024-09-24 09:54:45 +02:00
border-radius: none;
2024-09-19 15:00:23 +02:00
}
2024-09-19 16:27:24 +02:00
/* Header styles */
header {
top: 0;
left: 0;
2024-09-24 07:42:39 +02:00
margin-top: 0px;
2024-09-19 16:27:24 +02:00
padding-top: 0;
width: 100%;
}
/* Container styles */
2024-09-19 15:00:23 +02:00
.container {
display: flex;
2024-09-19 16:27:24 +02:00
flex-direction: column;
width: 100vw;
2024-09-30 16:11:01 +02:00
overflow: hidden;
2024-09-19 16:27:24 +02:00
margin: 0;
2024-09-30 16:11:01 +02:00
padding: 1dvh 0 0 0 ;
2024-09-19 15:00:23 +02:00
}
2024-09-19 16:27:24 +02:00
/* Left panel styles */
2024-09-23 11:55:58 +02:00
.left-panel {
2024-09-24 09:54:45 +02:00
display: hidden; /* Initially hidden */
min-width: 100%; /* Takes full width when visible */
2024-09-19 15:00:23 +02:00
margin: 0;
}
2024-09-18 15:01:31 +02:00
2024-09-23 11:55:58 +02:00
.left-panel.visible {
2024-09-19 16:27:24 +02:00
display: block;
2024-09-30 10:46:03 +02:00
height: min-content;
2024-09-19 16:27:24 +02:00
}
/* Conversation container styles */
2024-09-23 11:55:58 +02:00
.conversation-container {
2024-09-24 09:54:45 +02:00
min-width: 100%;
height: 100%;
border-radius: 0;
2024-09-19 15:00:23 +02:00
}
2024-09-18 15:01:31 +02:00
2024-09-23 11:55:58 +02:00
.conversation-container.collapsed {
2024-09-19 16:27:24 +02:00
width: 0;
padding: 0;
border: none;
overflow: hidden;
2024-09-24 09:54:45 +02:00
display: hidden;
2024-09-19 15:00:23 +02:00
}
2024-09-18 15:01:31 +02:00
2024-09-23 11:55:58 +02:00
.conversation-container.expanded {
2024-09-24 09:54:45 +02:00
min-width: 100%;
margin-left: 0;
border-radius: none;
2024-09-30 16:11:01 +02:00
height: 10vh;
2024-09-19 15:00:23 +02:00
}
2024-09-18 15:01:31 +02:00
2024-09-19 16:27:24 +02:00
/* Grid styles */
2024-09-23 11:55:58 +02:00
.grid {
2024-09-19 15:00:23 +02:00
grid-template-columns: 1fr; /* One item per line */
}
2024-09-19 12:18:04 +02:00
2024-09-19 16:27:24 +02:00
/* Model box styles */
2024-09-23 11:55:58 +02:00
.model-box {
2024-09-19 16:27:24 +02:00
max-width: none; /* Remove max-width */
margin: 0 auto; /* Center each model-box */
2024-09-19 12:18:04 +02:00
}
2024-09-19 16:27:24 +02:00
/* Input styles */
2024-09-23 11:55:58 +02:00
.input {
2024-09-19 15:00:23 +02:00
grid-column: 1 / -1;
gap: 10px;
padding: 0.5em;
margin: 0 auto;
align-items: center;
width: 90%;
2024-09-30 16:11:01 +02:00
bottom: 10dvh
2024-09-19 12:18:04 +02:00
}
2024-09-23 11:55:58 +02:00
.input input {
2024-09-19 16:27:24 +02:00
font-size: 1em; /* Adjust font size */
max-width: 65%;
margin-right: 0;
2024-09-23 11:55:58 +02:00
border-color: var(--input-border-color); /* Use variable for input border */
color: var(--text-color); /* Use variable for text color */
2024-09-19 12:18:04 +02:00
}
2024-09-23 11:55:58 +02:00
.input button {
2024-09-19 16:27:24 +02:00
height: 40px; /* Adjust button height */
width: 40px; /* Adjust button width */
font-size: 1.2em; /* Adjust button font size */
margin: auto;
2024-09-23 11:55:58 +02:00
background-color: var(--input-button-color); /* Use variable for button color */
color: var(--user-message-text-color); /* Use variable for button text color */
2024-09-19 12:18:04 +02:00
}
2024-09-24 07:42:39 +02:00
2024-09-30 11:40:14 +02:00
.header-logo{
position: relative;
margin-left: -40px;
}
2024-09-25 11:22:59 +02:00
.hamburger.open{
margin-top: 0.5vh;
2024-09-25 12:35:17 +02:00
padding-left: 1vw;
2024-09-25 11:22:59 +02:00
}
.nav-links{
2024-09-25 12:35:17 +02:00
display: none;
position: absolute;
top: 10vh;
left: 0;
background-color: var(--burger-menu-background-color);
width: 100%;
flex-direction: column;
align-items: flex-start;
padding: 10px;
height: fit-content;
}
.nav-links.active{
display: flex;
2024-09-30 11:40:14 +02:00
height: fit-content;
2024-09-25 12:35:17 +02:00
}
.nav-btn{
width: 100%;
2024-09-30 10:46:03 +02:00
text-align: center;
2024-09-25 12:35:17 +02:00
padding: 10px;
2024-09-30 11:40:14 +02:00
height: 50px;
2024-09-25 11:22:59 +02:00
}
.hamburger {
display: flex;
}
2024-09-30 11:40:14 +02:00
.header-login-button{
right: 5vh;
}
2024-09-20 10:00:54 +02:00
}
2024-09-23 11:55:58 +02:00
/* Responsive adjustments for the settings */
2024-09-20 10:00:54 +02:00
@media (max-width: 768px) {
.settings-content {
2024-09-23 11:55:58 +02:00
flex-direction: column; /* Stack sidebar and main content on smaller screens */
2024-09-20 10:00:54 +02:00
}
.sidebar {
2024-09-23 11:55:58 +02:00
width: 100%; /* Full width for sidebar */
2024-09-20 10:00:54 +02:00
}
.settings-main {
2024-09-23 11:55:58 +02:00
width: 100%; /* Full width for main content */
2024-09-20 10:00:54 +02:00
}
2024-09-23 11:55:58 +02:00
}