[WEEK #5] – 05 Natours Project with Sass Part 2 + Problem Set + Blog Question


Problem Set

so here is the color palette and font styles that i want to use going forth in my template design.

Blogging Question.

The :not() pseudo-selector, selects everything that you pass as a parameter except the last child of it. In the tutorials, we used the not selector when creating the grid system, the not selector was used to give everything except the last child a margin-bottom.

lastly, the calc() method allows developers to do math functions. in the tutorials, we used the calc function when creating the grid system.

&:not(:last-child) {
        margin-bottom: $gutter-vertical;
width: calc((100% - #{$gutter-horizontal}) / 2);

Leave a comment

Your email address will not be published. Required fields are marked *