-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add Scrollup and Hamburgur & styling fixes
- Loading branch information
Showing
15 changed files
with
255 additions
and
163 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,82 @@ | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
.Navbar_image { | ||
width: 62px; | ||
width: 120px; | ||
height: auto; | ||
padding: 25px; | ||
} | ||
|
||
nav { | ||
.header { | ||
height: 180px; | ||
padding: 0 20px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding-top: 40px; | ||
padding-left: 50px; | ||
padding-right: 50px; | ||
padding-bottom: 70px; | ||
} | ||
|
||
nav ul li { | ||
.header nav { | ||
position: absolute; | ||
top: 55px; | ||
right: 20px; | ||
} | ||
|
||
nav a { | ||
margin: 0 20px; | ||
font-family: "Poppins"; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 20px; | ||
line-height: 32px; | ||
list-style-type: none; | ||
display: inline-block; | ||
padding: 10px 10px; | ||
} | ||
|
||
nav ul li a { | ||
color: black; | ||
text-decoration: none; | ||
font-size: 1.1rem; | ||
} | ||
|
||
nav ul li a:hover { | ||
nav a:hover { | ||
transition: 0.1s; | ||
border-bottom: 2px solid black; | ||
} | ||
|
||
.header .nav-btn { | ||
visibility: hidden; | ||
opacity: 0; | ||
} | ||
|
||
@media only screen and (max-width: 768px) { | ||
.header nav { | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
height: 100%; | ||
width: 45%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: flex-start; | ||
background-color: rgb(228, 228, 228); | ||
padding: 3rem 0.5rem; | ||
gap: 1.5rem; | ||
transition: 0.5s; | ||
transform: translateX(100%); | ||
/* this transform code automatically pushes the nav to the inside making it collapsed when the screen is small */ | ||
} | ||
|
||
.header .nav_popout { | ||
transform: none; /* reset any previous transformations applied to the nav, this making nav expanded again*/ | ||
/* pointer-events: none; */ | ||
} | ||
|
||
.header .nav-btn { | ||
-webkit-tap-highlight-color: transparent; | ||
visibility: visible; | ||
opacity: 1; | ||
padding: 5px; | ||
cursor: pointer; | ||
font-size: 1.5rem; | ||
background: transparent; | ||
color: black; | ||
border: none; | ||
outline: none; | ||
} | ||
|
||
.header nav .nav-close-btn { | ||
position: absolute; | ||
top: 20px; | ||
right: 20px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.scroll-button { | ||
position: fixed; | ||
left: 48%; | ||
bottom: 20px; | ||
font-size: 2.5rem; | ||
z-index: 1; | ||
cursor: pointer; | ||
color: green; | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
@media only screen and (max-width: 768px) { | ||
.scroll-button { | ||
position: fixed; | ||
left: 80%; | ||
} | ||
} |
Oops, something went wrong.