Integrate visual styling into the course outline

STUD-1849
Might as well combine with the previous conditional to avoid an unnecessary nested if.