File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const Navbar = () => {
1515 } ;
1616 const displayMenu = ( ) => {
1717 if ( isMenuOpen ) {
18- return "flex sm:hidden flex-col justify-center items-center gap-2 my-2" ;
18+ return "flex small-screen-header flex-col justify-center items-center gap-2 my-2" ;
1919 } else {
2020 return "hidden" ;
2121 }
@@ -45,7 +45,7 @@ const Navbar = () => {
4545 < div role = "button" className = "nav_links" > FAQs</ div >
4646 </ Link >
4747 </ div >
48- < div className = "flex sm:hidden hamburger" onClick = { showMenu } >
48+ < div className = "hamburger" onClick = { showMenu } >
4949 < p > { isMenuOpen ? < AiOutlineClose /> : < MdMenu /> } </ p >
5050 </ div >
5151 </ nav >
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ nav {
4545 background-color : rgba (118 , 14 , 216 , 0.501 );
4646 border-radius : 40px ;
4747}
48- @media (max-width : 640 px ) {
48+ @media (max-width : 899 px ) {
4949 .right_contents {
5050 display : none;
5151 }
5252}
5353
54- @media (max-width : 900 px ) {
54+ @media (max-width : 899 px ) {
5555 .nav_links {
5656 padding : 12px ;
5757 /* margin-bottom: 24px; */
7070 }
7171}
7272
73- @media (max-width : 900 px ) {
73+ @media (max-width : 899 px ) {
7474 .nav_container nav div {
7575 flex-direction : column;
7676 gap : 8px ;
7777 }
7878}
79+
80+ @media (min-width : 899px ) {
81+ .hamburger {
82+ display : none;
83+ }
84+ }
85+
86+ @media (min-width : 899px ) {
87+ .small-screen-header {
88+ display : none;
89+ }
90+ }
You can’t perform that action at this time.
0 commit comments