-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ryankeairns/cleanup/search
Animate width
- Loading branch information
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 16 additions & 1 deletion
17
x-pack/plugins/global_search_bar/public/components/search_bar.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
//TODO add these overrides to EUI so that search behaves the same globally | ||
.kbnSearchBar { | ||
width: 600px; | ||
width: 400px; | ||
max-width: 100%; | ||
will-change: width; | ||
|
||
&:focus { | ||
animation: kbnAnimateSearchBar $euiAnimSpeedFast forwards; | ||
} | ||
} | ||
|
||
@keyframes kbnAnimateSearchBar { | ||
from { | ||
width: 400px; | ||
} | ||
to { | ||
width: 600px; | ||
} | ||
} |