Converted Javascript functions into media queries in _responsive.scss