interstellar_ai/app/styles/responsive.css

186 lines
4 KiB
CSS
Raw Permalink 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-10-08 09:44:44 +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-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-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-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-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 16:27:24 +02:00
/* Model box styles */
2024-09-23 11:55:58 +02:00
.model-box {
2024-10-10 09:29:41 +02:00
width: 50vw;
height: 50vw;
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;
2024-10-01 11:37:53 +02:00
gap: 5px;
2024-09-19 15:00:23 +02:00
padding: 0.5em;
margin: 0 auto;
align-items: center;
2024-10-01 11:37:53 +02:00
bottom: 3dvh;
right: 2vw;
left: 2vw;
justify-content: flex-start;
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 */
2024-10-01 11:37:53 +02:00
max-width: 70%;
2024-09-19 16:27:24 +02:00
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-10-01 11:37:53 +02:00
height: 100%; /* Adjust button height */
width: 15%; /* Adjust button width */
2024-09-19 16:27:24 +02:00
font-size: 1.2em; /* Adjust button font size */
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-10-01 11:37:53 +02:00
margin: 0;
2024-09-19 12:18:04 +02:00
}
2024-10-08 09:44:44 +02:00
.header-logo {
2024-09-30 11:40:14 +02:00
position: relative;
}
2024-10-08 09:44:44 +02:00
.hamburger.open {
2024-09-25 11:22:59 +02:00
margin-top: 0.5vh;
2024-09-25 12:35:17 +02:00
padding-left: 1vw;
2024-09-25 11:22:59 +02:00
}
2024-10-08 09:44:44 +02:00
.nav-links {
display: none; /* Hidden by default */
2024-09-25 12:35:17 +02:00
position: absolute;
2024-10-08 09:44:44 +02:00
top: 10vh; /* Adjust as needed */
2024-09-25 12:35:17 +02:00
left: 0;
background-color: var(--burger-menu-background-color);
width: 100%;
flex-direction: column;
align-items: flex-start;
padding: 10px;
height: fit-content;
}
2024-10-08 09:44:44 +02:00
.nav-links.active {
display: flex; /* Show when active */
2024-09-30 11:40:14 +02:00
height: fit-content;
2024-09-25 12:35:17 +02:00
}
2024-10-08 09:44:44 +02:00
.nav-btn {
2024-09-25 12:35:17 +02:00
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-10-08 09:44:44 +02:00
background-color: var(--input-button-color);
border: none;
font-size: 0.9em;
border-radius: 5px;
2024-09-25 11:22:59 +02:00
}
2024-10-08 09:44:44 +02:00
.nav-btn:hover {
background-color: var(--input-button-hover-color);
}
2024-09-25 11:22:59 +02:00
.hamburger {
2024-10-08 09:44:44 +02:00
display: flex; /* Always show hamburger button */
2024-09-25 11:22:59 +02:00
}
2024-10-08 09:44:44 +02:00
.header-login-button {
right: 5vh; /* Keep login button visible */
2024-09-30 11:40:14 +02:00
}
2024-10-09 15:28:03 +02:00
.show-hide-btn {
width: fit-content;
left: 20vw;
}
.header-logo {
background-image: url(../../public/img/logo-small.png);
width: 4em;
}
2024-10-09 15:28:03 +02:00
.sidebar {
width: 0%;
display: none;
}
.settings-main {
width: 80vw; /* Full width for main content */
margin: auto;
padding: auto;
}
2024-10-09 15:28:03 +02:00
.dropdown {
display: flex;
position: relative;
top: 10px;
display: block;
}
2024-10-09 15:28:03 +02:00
.slider-option {
2024-10-09 08:11:40 +02:00
width: fit-content;
margin: 10px 10px 0 0;
}
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
}
2024-09-23 11:55:58 +02:00
}
2024-10-09 15:28:03 +02:00
/* Optional: Add media query for responsive adjustments */
@media (max-width: 600px) {
.documentation-section {
padding: 1.5rem; /* Decrease padding for smaller screens */
}
.title {
font-size: 2em; /* Adjust title size */
}
.subtitle {
font-size: 1.5em; /* Adjust subtitle size */
}
.paragraph {
font-size: 1em; /* Adjust paragraph size */
}
}