- Bootstrap 4 Cookbook
- Ajdin Imsirovic
- 198字
- 2021-07-02 21:08:10
How it works...
Note the CSS comment at the top of the main-03-05.scss file. This comment was placed there so as to make it easier to remember the original .blockquote settings as specified in _type.scss. Knowing the logic of the original file allows us to better understand how to use the code in the recipe.
Note that the $white variable is set to white. This is its default value, but it is placed there as another reminder since the next line changes the value of $white to HTML color darksalmon. Commenting out the first value, and uncommenting the second one, will quickly show us an interesting color scheme in our browser.
Finally, several SCSS variables are overwritten. Background is set to white on all .blockquote elements (in contrast to the previous recipe). A custom variable of $faded-green is declared on line 16 and used in the .blockquote declaration on lines 20-22.
Finally, note that in order to view the previous recipe again (Customizing the blockquote element with CSS) the way it was meant, you would have to comment out the @include for main-03-05.scss in main.scss, and run grunt sass and harp server again.
- HTML5+CSS3王者歸來
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- GAE編程指南
- ThinkPHP 5實戰
- The Computer Vision Workshop
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- 從學徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- Visual C
- Android Wear Projects
- Java零基礎實戰
- 后臺開發:核心技術與應用實踐
- 零基礎學HTML+CSS第2版
- Photoshop智能手機APP界面設計
- The Statistics and Calculus with Python Workshop