Move to off-canvas width function to a functions file