CSS Update React

This commit is contained in:
Sage The DM 2024-09-19 12:18:04 +02:00
parent 2ca0689167
commit 79acf4aa52
11 changed files with 389 additions and 108 deletions

View file

@ -1,5 +1,6 @@
/* container.css */
.container {
.container,
.content {
padding-top: 10vh;
display: flex;
height: 100vh;
@ -10,60 +11,25 @@
.left-panel {
width: 25vw; /* Adjust as needed */
transition: width 0.3s ease, visibility 0.3s ease; /* Transition for width, opacity, and visibility */
transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* Smooth transitions for all properties */
}
.left-panel.hidden {
opacity: 0; /* Fade out when hidden */
width: 0; /* Set width to 0 when hidden */
visibility: hidden; /* Hide the panel while keeping the space occupied */
margin-right: -30vw;
width: 0; /* Collapse width to 0 */
visibility: hidden; /* Hide visibility while collapsing */
}
.conversation-container {
flex: 1;
transition: width 0.3s ease, visibility 0.3s ease; /* Transition for margin-left */
transition: margin-left 0.3s ease; /* Smooth margin adjustment */
}
/* Adjust margin-left when panel is shown or hidden */
.conversation-container.expanded {
margin-left: 0;
margin-left: 1vw;
}
.conversation-container.collapsed {
margin-left: 30vw; /* Same as the width of the left-panel */
}
/* container.css */
/* Overlay styles for Documentation and FAQ */
.overlay {
position: fixed; /* Fixed positioning for overlay */
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
z-index: 1000; /* Ensure it is above other content */
display: none; /* Hidden by default */
align-items: center;
justify-content: center;
color: white; /* Text color for better readability */
padding: 20px;
box-sizing: border-box;
}
/* Show overlay when active */
.overlay.active {
display: flex;
}
/* Specific styling for Documentation overlay */
.overlay.documentation {
/* Add specific styles for Documentation overlay if needed */
}
/* Specific styling for FAQ overlay */
.overlay.faq {
/* Add specific styles for FAQ overlay if needed */
margin-left: 1vw; /* Space for the left panel */
}

46
app/styles/doc.css Normal file
View file

@ -0,0 +1,46 @@
/* styles.css */
/* Styling for the documentation container */
.documentation-container {
padding: 2rem;
}
.documentation-section {
max-width: 900px;
height: 80vh;
margin: 0 auto;
background: #fff;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
overflow-y: scroll;
}
.title {
font-size: 2rem;
color: #333;
margin-bottom: 1.5rem;
}
.subtitle {
font-size: 1.5rem;
color: #555;
margin-top: 2rem;
margin-bottom: 1rem;
}
.subsection-title {
font-size: 1.25rem;
color: #666;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
}
.paragraph {
font-size: 1rem;
color: #333;
margin-bottom: 1.5rem;
line-height: 1.6;
}

View file

@ -1,6 +1,51 @@
.faq-background{
width: 100vw;
height: 100vh;
color: white;
background-color: white;
}
/* Make sure the parent container of #faq takes up the full viewport height */
.faq-container {
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
height: 100vh; /* Full viewport height */
padding: 0 10px; /* Optional padding to ensure spacing on small screens */
}
#faq {
max-width: 800px;
width: 90%;
padding: 20px;
background-color: #222;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
overflow-y: scroll; /* Allow vertical scrolling if content overflows */
margin: 0 auto;
height: 80vh;
}
#faq h2 {
text-align: center;
color: #00ccff;
font-size: 2em;
margin-bottom: 20px;
}
.faq-item {
margin-bottom: 20px;
padding: 10px;
border-radius: 5px;
background-color: #333;
}
.faq-item h3 {
color: #00ccff;
margin-bottom: 10px;
font-size: 1.5em;
}
.faq-item p {
color: #ddd;
font-size: 1.1em;
line-height: 1.5;
}
.faq-item:hover {
background-color: #444;
transition: background-color 0.3s;
}

View file

@ -11,4 +11,5 @@
@import './input.css';
@import './faq.css';
@import './scrollbar.css';
@import './doc.css';
@import './responsive.css';

View file

@ -54,4 +54,23 @@
margin-left: 0;
}
}
/* Responsive design adjustments */
@media (max-width: 768px) {
.title {
font-size: 1.5rem;
}
.subtitle {
font-size: 1.25rem;
}
.subsection-title {
font-size: 1rem;
}
.paragraph {
font-size: 0.9rem;
}
}