Commit be1ba7d4 authored by Nick Stenning's avatar Nick Stenning

Merge pull request #2699 from robertknight/gh2654-safari_search_expander

Fix search button not expanding search bar in Safari
parents 43f61596 b5c451a8
......@@ -32,7 +32,13 @@
padding: 0px;
width: 100%;
max-width: 0px;
// the search box expands when focused, via a change in the
// `max-width` property. In Safari, the <input> will not accept
// focus if `max-width` is set to 0px so we set it to
// a near-zero positive value instead.
// See GH #2654
max-width: 0.1px;
transition: max-width .3s ease-out, padding-left .3s ease-out;
&:disabled {
......@@ -40,6 +46,8 @@
color: $gray-light;
}
// expand the search input when focused (triggered by clicking
// on the search icon) or when `is-expanded` is applied
&:focus,&.is-expanded {
max-width: $expanded-max-width;
padding-left: 6px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment