Skip to content

Commit

Permalink
fixed side bar and other styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesquantum committed Sep 10, 2024
1 parent f2c5979 commit c4c7c93
Showing 1 changed file with 7 additions and 46 deletions.
53 changes: 7 additions & 46 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ html, body {

/* Sidebar Styling */
.sidebar {
width: 200px;
background-color: #add8e6; /* Light blue color */
width: 200px; /* Fixed width for larger screens */
background-color: #1a3d5d; /* Darker blue color for better contrast */
padding: 20px;
color: white;
position: fixed; /* Fix the sidebar position */
Expand All @@ -39,7 +39,7 @@ html, body {
}

.sidebar ul li a {
color: white;
color: white; /* Ensure the text color is white */
text-decoration: none;
font-size: 18px;
transition: color 0.3s;
Expand Down Expand Up @@ -103,6 +103,7 @@ html, body {
/* Home Section Styling */
.home-content {
text-align: left; /* Align text to the left */
max-width: 50%; /* Limit the width to 50% for better line breaks */
}

.home-content h1 {
Expand Down Expand Up @@ -252,64 +253,24 @@ html, body {
color: #666;
}

/* Add this CSS at the end of your existing CSS file */

/* Prevent horizontal scrolling */
body {
overflow-x: hidden;
}

/* Overhang Card Styling */
.overhang-card {
position: absolute; /* or fixed if you want it to stay in place even when scrolling vertically */
top: 50%;
left: 0;
transform: translateY(-50%);
width: 300px;
height: 500px;
background-color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
overflow: hidden;
}

.overhang {
position: absolute;
top: 0;
left: -50px; /* Adjust this value to control the overhang */
width: 50px;
height: 100%;
background-color: #add8e6; /* Adjust the color as needed */
}

/* Media Queries for Mobile Optimization */
@media (max-width: 768px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
width: 150px; /* Adjust width for smaller screens */
padding: 10px;
}

.content {
margin-left: 0;
width: 100%;
margin-left: 170px; /* Adjust for the fixed sidebar width on smaller screens */
width: calc(100% - 170px);
padding: 10px;
}

.overhang-card {
width: 100%;
height: auto;
position: relative;
transform: none;
top: 0;
left: 0;
}

.overhang {
display: none; /* Hide the overhang on mobile */
}

.section {
padding: 10px;
margin-bottom: 20px;
Expand Down

0 comments on commit c4c7c93

Please sign in to comment.