Made scrolling nicer for aboutme on mobile
This commit is contained in:
parent
6d586c0982
commit
b84cf83bda
|
@ -21,7 +21,7 @@ topshrtct.addEventListener('click', () => {
|
|||
}
|
||||
});
|
||||
|
||||
let links = document.getElementsById('navbar').getElementsByTagName('a');
|
||||
let links = document.getElementById('navbar').getElementsByTagName('a');
|
||||
|
||||
for (let link of links) {
|
||||
link.addEventListener('click', () => {
|
||||
|
@ -29,7 +29,6 @@ for (let link of links) {
|
|||
navbar.classList.remove('expanded');
|
||||
navbtn.classList.remove('expanded');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
async function updateAge() {
|
||||
|
|
|
@ -542,5 +542,13 @@ em {
|
|||
width: 500px;
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
#aboutme {
|
||||
padding-top: 70px;
|
||||
}
|
||||
|
||||
#aboutme h1 {
|
||||
transform: translateY(170px);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue