fine tune UI

This commit is contained in:
KOWX712
2024-11-04 23:42:15 +08:00
parent 4a9650bd54
commit 55406e377a
2 changed files with 4 additions and 4 deletions

View File

@@ -231,8 +231,8 @@ const menu = document.querySelector('.menu');
window.addEventListener('scroll', () => {
if (window.scrollY > lastScrollY) {
title.style.transform = 'translateY(-100%)';
searchCard.style.transform = 'translateY(-40px)';
menu.style.transform = 'translateY(-40px)';
searchCard.style.transform = 'translateY(-35px)';
menu.style.transform = 'translateY(-35px)';
} else {
title.style.transform = 'translateY(0)';
searchCard.style.transform = 'translateY(0)';

View File

@@ -8,7 +8,7 @@ body {
font-size: 18px;
font-weight: bold;
left: 0;
padding: 7px 25px;
padding: 10px 25px;
position: fixed;
text-align: left;
top: 0;
@@ -213,7 +213,7 @@ body {
.search-input {
color: white;
}
.menu-options,
#menu-button {
background-color: #343434;