Is there a way to hide the formatting bar

This CSS works most of the time. When the searchbar is in use, hovering the time works as intended, but hovering the title doesn't show the toolbar. The toolbar doesn't show at all and isn't hidden behind the In: notebook button <div>.