Refactor code for breakpoints in titlebar.scss