Apply overlay when the sidebar opens.