Skip to content

Commit

Permalink
Refactor UI styles for footer and main content
Browse files Browse the repository at this point in the history
Adjust the styles of the footer and main content to improve the layout and responsiveness. Specifically, the padding and margin of the footer and main sections have been modified to achieve a better visual appearance and spacing. Additionally, the padding-bottom property has been removed from the body element to eliminate unnecessary space at the bottom of the page. These changes ensure a more consistent and visually appealing user experience across different screen sizes.
  • Loading branch information
TMHSDigital committed Dec 23, 2024
1 parent b84f1a5 commit 5ccf300
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ body {
min-height: 100vh;
display: flex;
flex-direction: column;
padding-bottom: 0;
}

/* Header */
Expand Down Expand Up @@ -337,7 +338,7 @@ h2 {
padding: 2.5rem;
border-radius: 1.25rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
margin-top: 2rem;
margin-bottom: 4rem;
}

.dark-mode .improvements-section {
Expand Down Expand Up @@ -994,8 +995,6 @@ h2 {
border-top: 1px solid var(--border-color);
background: white;
width: 100%;
position: relative;
bottom: 0;
}

.dark-mode .site-footer {
Expand Down Expand Up @@ -1095,10 +1094,12 @@ h2 {
min-height: 100vh;
display: flex;
flex-direction: column;
padding-bottom: 0;
}

main {
flex: 1 0 auto;
margin-bottom: 2rem;
}

@keyframes heartbeat {
Expand Down Expand Up @@ -1126,4 +1127,15 @@ main {
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.improvements-section {
margin-bottom: 3rem;
}

main {
margin-bottom: 1.5rem;
}
}

0 comments on commit 5ccf300

Please sign in to comment.