Enhancement: auto-hide the search bar on mobile (#12404)

This commit is contained in:
shamoon
2026-03-26 07:36:32 -07:00
committed by GitHub
parent ae0474450f
commit 38dba60ceb
5 changed files with 122 additions and 4 deletions
@@ -44,6 +44,23 @@
.sidebar {
top: 3.5rem;
}
.search-container {
max-height: 4.5rem;
overflow: hidden;
transition: max-height .2s ease, opacity .2s ease, padding-top .2s ease, padding-bottom .2s ease;
&.mobile-hidden {
max-height: 0;
opacity: 0;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
}
main.mobile-search-hidden {
padding-top: 56px;
}
}
main {