CPSC415A
Web Programming

Assignment 23

Less

Create a less file that styles html code with two divs that each contains a header and a paragraph. Each div should have a different background color, the same header text color, and paragraph text color that is a mix of the background color and the header text color. The less file should have:

  1. a variable for the header color.
  2. a mixin with with a parameter for the background color that:
    1. sets the background color to the parameter
    2. sets the text color of a nested header to the header text color variable
    3. sets the text color to a mix of the background color and the header color
  3. two classes that use the mixin to set the color of the two divs

Submission

Submit your code on the course Inquire site.