How does the stack overflow search input at the top works? It seems to expand random or when it's empty and backspace is hit.

1. What is the jQuery, html and css behind it?
2. Does it replace or expand over the links?
3. Is there an other additional functionality I've missed?