Skip to content

Commit

Permalink
fix: searchbar w bug in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Mazzon committed Sep 16, 2023
1 parent 7bfdd7d commit 20df58e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/src/theme/SearchBar/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@
border: 1px solid var(--general-light-line-3-webapp, #DDD);
background: #FFF;
margin: 0;
width: 13.75rem;
width: 13rem;
height: 2rem;
padding: 0.75rem 1rem;
box-shadow: 0 16px 30px 10px rgba(70, 53, 43, 0.02);
transition: all var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
}

/** In mobile view, reduce the padding */
@media screen and (max-width: 996px) {
.DocSearch-Button {
width: auto;
padding: 0.5rem;
}
}

.DocSearch-Button:hover {
background: white;
color: #25282D;
Expand Down

0 comments on commit 20df58e

Please sign in to comment.