Skip to content

Commit

Permalink
fix: avoid the searchbox exceeded out of screen in narrow screen (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy authored and ulivz committed Apr 25, 2018
1 parent 9663bb8 commit 8f04081
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions lib/default-theme/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,22 @@ export default {
color $accentColor
@media (max-width: $MQNarrow)
.search-box input
width 0
border-color transparent
position relative
left 1rem
&:focus
.search-box
input
cursor pointer
width 0
border-color transparent
position relative
left 1rem
&:focus
cursor text
left 0
width 10rem
@media (max-width: $MQNarrow) and (min-width: $MQMobile)
.search-box
.suggestions
left 0
width 10rem
@media (max-width: $MQMobile)
.search-box
Expand Down

0 comments on commit 8f04081

Please sign in to comment.