Skip to content

Commit 890fa69

Browse files
Merge pull request #3 from jim-coder-debug/fix/sticky-header
Feat: Make header sticky and transparent
2 parents 81d5aa9 + 2a1af8d commit 890fa69

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

css/style.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ body.dashboard-page {
3939
display: block;
4040
padding: 0;
4141
min-height: 100vh;
42-
/* Add padding to prevent content from going under sticky header */
43-
padding-top: 70px;
42+
padding-top: 70px; /* Add this line */
4443
}
4544

46-
4745
/* ======================================= */
4846
/* === LOGIN & REGISTER FORM STYLES === */
4947
/* ======================================= */
@@ -144,17 +142,18 @@ body.dashboard-page {
144142
/* === DASHBOARD LAYOUT & STYLES === */
145143
/* ======================================= */
146144

145+
/* --- Sticky, Transparent Header --- */
147146
/* --- Sticky, Transparent Header --- */
148147
.header {
149148
position: sticky; /* Make it stick */
150149
top: 0; /* Stick it to the top */
151150
z-index: 1000; /* Keep it above other content */
152-
151+
153152
/* Semi-transparent background with blur */
154153
background: rgba(0, 123, 255, 0.8); /* Blue with 80% opacity */
155154
backdrop-filter: blur(10px); /* Frosted glass effect */
156155
-webkit-backdrop-filter: blur(10px); /* For Safari */
157-
156+
158157
color: white;
159158
padding: 0 2.5rem;
160159
display: flex;

0 commit comments

Comments
 (0)