Skip to content

Commit 14ba8d3

Browse files
authored
Update style.css
1 parent e0a9dea commit 14ba8d3

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

public/style.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,3 +1036,52 @@ body::after {
10361036
box-shadow:
10371037
0 30px 60px rgba(15,23,42,0.15);
10381038
}
1039+
1040+
@media (max-width: 768px) {
1041+
1042+
.navbar {
1043+
justify-content: space-between;
1044+
}
1045+
1046+
.btn-nav {
1047+
position: absolute;
1048+
left: 50%;
1049+
transform: translateX(-50%);
1050+
}
1051+
1052+
.nav-links {
1053+
position: fixed;
1054+
top: 0;
1055+
right: -100%;
1056+
width: 75%;
1057+
height: 100vh;
1058+
1059+
flex-direction: column;
1060+
justify-content: center;
1061+
align-items: flex-start;
1062+
1063+
padding: 40px;
1064+
1065+
background: rgba(255,255,255,0.85);
1066+
backdrop-filter: blur(20px);
1067+
1068+
transition: 0.4s ease;
1069+
1070+
box-shadow: -20px 0 40px rgba(0,0,0,0.1);
1071+
1072+
z-index: 9999;
1073+
}
1074+
1075+
.nav-links.active {
1076+
right: 0;
1077+
}
1078+
1079+
.menu-toggle {
1080+
display: block;
1081+
}
1082+
1083+
.btn-nav.hidden {
1084+
opacity: 0;
1085+
pointer-events: none;
1086+
}
1087+
}

0 commit comments

Comments
 (0)