Skip to content

Commit

Permalink
Improve search box on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Jun 16, 2022
1 parent 9d7ee67 commit 828c073
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/SearchBlock/less/searchbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
color: @primaryColor;
cursor: pointer;
font-size: 18px;
font-weight: 500;
}

.sui-search-box__autocomplete-container li em {
Expand Down Expand Up @@ -195,7 +196,7 @@
// display: none;
}

@media only screen and (max-width: 357px) {
@media only screen and (max-width: 360px) {
.sui-search-box__autocomplete-container li {
font-size: 14px;
}
Expand All @@ -204,12 +205,13 @@
right: 50%;
left: 50%;
width: 100vw;
padding-top: 10px;
margin-right: -50vw;
margin-left: -50vw;
}

.sui-search-box__section-title,
.sui-search-box__autocomplete-container li {
padding: 8px 35px;
padding: 8px 30px;
}
}
7 changes: 4 additions & 3 deletions src/SearchBlock/less/searchinput.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
.icon {
width: 38px;
height: 38px;
margin: 0;
color: @secondaryColor !important;
font-size: 38px;
}
Expand Down Expand Up @@ -207,7 +208,7 @@
}
}

@media only screen and (max-width: 357px) {
@media only screen and (max-width: 360px) {
.sui-search-box {
.search-input {
.terms-box input {
Expand All @@ -223,8 +224,8 @@
}

.input-controls .clear-button {
width: 20px;
height: 20px;
width: 20px !important;
height: 20px !important;

.close.icon {
top: 2px;
Expand Down

0 comments on commit 828c073

Please sign in to comment.