Reader small image

You're reading from  Bootstrap 4 Cookbook

Product typeBook
Published inJun 2017
Reading LevelBeginner
PublisherPackt
ISBN-139781785889295
Edition1st Edition
Languages
Right arrow
Author (1)
Ajdin Imsirovic
Ajdin Imsirovic
author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic

Right arrow

Extending the blockquote styles with Sass


In this recipe, we will show how to extend the blockquote styles using Sass. To make this work, we will have to rely both on the @include for main-03-04.scss and the @include for main-03-05.scss. Also, since we are overriding Bootstrap variables, our @include element for this recipe has to be added before the addition of the Bootstrap SCSS files.

Getting ready

Navigate to the recipe5 page of the chapter 3 website, and preview the final result that we are trying to achieve. To get this look, we need to override several SCSS variables from Bootstrap 4, as well as declare a new variable to be used in the box-shadow effect applied around the blockquote element.

How to do it...

  1. Open main-03-05.scss and add the following code to it:
      /*
      FROM _type.scss, line 110:

      .blockquote {
       padding: ($spacer / 2) $spacer;
       margin-bottom: $spacer;
       font-size: $blockquote-font-size;
       border-left: $blockquote-border-width solid $blockquote...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Bootstrap 4 Cookbook
Published in: Jun 2017Publisher: PacktISBN-13: 9781785889295

Author (1)

author image
Ajdin Imsirovic

Ajdin Imsirovic is a full-stack web developer who has published several courses on the subject of web design and web development. He has also authored three books, Bootstrap 4 Cookbook, Elm Web Development, and Vue.js Quick Start Guide. In his fourth book, Vue CLI 3 Quick Start Guide, he introduces readers to the rich ecosystem of frontend tooling and best practices.
Read more about Ajdin Imsirovic