官术网_书友最值得收藏!

How to do it...

  1. Open chapter3/start/app/recipe3.ejs and add the following code to it:
      <div class="container bg-white mt-5 rounded">
<h1>Chapter 3, Recipe 3:</h1>
<p class="lead">Style Text Content with Bootstrap Typography
Classes</p>

<!-- Let's apply the exisiting default Bootstrap styles to a
paragraph of text, as follows: -->

<p class="display-4">This is just a regular paragraph.</p>
<p class="display-3"><span class="text-muted">This is an example
of muted text</span>.</p>
<p class="display-2">
<span class="text-primary">All the </span>
<span class="text-success"> contextual Bootstrap</span>
<span class="text-info bg-primary"> colors have</span>
<span class="text-warning"> their specific</span>
<span class="text-danger"> text color</span>
<span class="text-white bg-inverse"> classes</span>.
</p>
<p class="h3">Just another h3 <mark>paragraph</mark>.</p>
<p class="h3">And <mark>here is <span class="align-text-
bottom">another</span><span class="align-text-top"> one</span>
</mark>.
</div>

<!-- Let's play around with those now -->
<div class="container mt-5">
<div>
<div class="d-inline">Lorem ipsum dolor sit amet, <span
class="d-block">consectetur</span> adipisicing elit. Dolor
ratione, voluptatibus debitis veniam rem suscipit.
</div>
</div>

<div class="container mt-5">
<!-- Use $font-family-base, $font-size-base, $line-height-base
attributes as our typographic base applied to the <body> -->

<!-- Set the global link color via $link-color and apply link
underlines only on :hover -->

<!-- These styles can be found within _reboot.scss, and the
global variables are defined in _variables.scss -->

</div>
  1. In main-03-03.scss, add the following code:
      .bg-white {
background-color: white;
}
  1. In main.scss, uncomment the @include call to the scss file updated in step 2.
  2. Run harp compile / harp server, and preview the recipe in your browser.
主站蜘蛛池模板: 阜康市| 孟州市| 凉山| 绥中县| 墨竹工卡县| 拜泉县| 那坡县| 吕梁市| 灵山县| 合作市| 辽中县| 五大连池市| 麻栗坡县| 开化县| 通榆县| 金阳县| 原平市| 神木县| 潢川县| 长武县| 陈巴尔虎旗| 泽普县| 汾西县| 三台县| 多伦县| 和林格尔县| 临沧市| 和田市| 郁南县| 南投县| 皮山县| 墨脱县| 商城县| 台中县| 宜昌市| 牡丹江市| 富蕴县| 新疆| 东山县| 东兰县| 赤城县|