O'Reilly logo

Mastering Sass by Luke Watts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Footer

One of the final steps for our homepage is to color the footer. We'll use the secondary color as the background and the primary color for all the links, as well as the dropcap. Open scss/theme/_color.scss and add the following to the end of the file:

.footer { 
    background-color: get($theme, color, secondary); 
    color: white; 
 
    a, 
    a:hover, 
    .subfooter a, 
    .subfooter a:hover { 
        @include hover-link; 
        color: get($theme, color, primary); 
    } 
 
    .subfooter-widget-section-text > p:first-of-type::first-letter { 
        color: get($theme, color, primary); 
    } 
 
    .footer-inner:last-child { 
        border-top: 1px solid hsla(0, 0%, 100%, 0.1); 
    } 
}

Lastly, we'll increase the size of the social icons in the _typography.scss file in our scss/theme folder. While we're here we'll also tidy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required