Skip to content

Commit

Permalink
fix(ui): improve search visual on Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Aug 17, 2020
1 parent 62ec753 commit 186299a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ui/src/articles/components/Search.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
margin: 0.2em;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0.15);
transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.box:hover {
Expand All @@ -22,9 +21,15 @@
justify-content: center;
}

.box form {
display: flex;
height: 100%;
}

.box input {
border-color: transparent;
box-shadow: none;
outline: none;
opacity: 1;
background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;
color: currentColor;
Expand All @@ -34,6 +39,10 @@
transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.box input::placeholder {
color: currentColor;
}

.box input:focus {
width: 16em;
}

0 comments on commit 186299a

Please sign in to comment.