Skip to content

Commit 4d1f1f0

Browse files
committed
add typography pattern .page-header to components per twbs#1701
1 parent 81d101a commit 4d1f1f0

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

docs/assets/bootstrap.zip

0 Bytes
Binary file not shown.

docs/components.html

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h1>Components</h1>
9898
</ul>
9999
</li>
100100
<li><a href="#labels">Labels</a></li>
101-
<li><a href="#hero">Hero</a></li>
101+
<li><a href="#typography">Typography</a></li>
102102
<li><a href="#thumbnails">Thumbnails</a></li>
103103
<li><a href="#alerts">Alerts</a></li>
104104
<li><a href="#progress">Progress bars</a></li>
@@ -1142,15 +1142,15 @@ <h1>Inline labels <small>Label and annotate text</small></h1>
11421142

11431143

11441144

1145-
<!-- Hero unit
1145+
<!-- Typographic components
11461146
================================================== -->
1147-
<section id="hero">
1147+
<section id="typography">
11481148
<div class="page-header">
1149-
<h1>Hero unit <small>Jumbotron for your site's tagline</small></h1>
1149+
<h1>Typographic components <small>Page header and hero unit for segmenting content</small></h1>
11501150
</div>
1151+
<h2>Hero unit</h2>
11511152
<div class="row">
11521153
<div class="span4">
1153-
<h2>About</h2>
11541154
<p>Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.</p>
11551155
<h3>Markup</h3>
11561156
<p>Wrap your content in a <code>div</code> like so:</p>
@@ -1173,7 +1173,20 @@ <h1>Hello, world!</h1>
11731173
<p><a class="btn btn-primary btn-large">Learn more</a></p>
11741174
</div>
11751175
</div>
1176-
</div>
1176+
</div><!-- /row -->
1177+
<h2>Page header</h2>
1178+
<div class="row">
1179+
<div class="span4">
1180+
<p>A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p>
1181+
</div>
1182+
<div class="span8">
1183+
<pre class="prettyprint linenums">
1184+
&lt;div class="page-haeder"&gt;
1185+
&lt;h1&gt;Example page header&lt;/h1&gt;
1186+
&lt;/div&gt;
1187+
</pre>
1188+
</div>
1189+
</div><!-- /row -->
11771190
</section>
11781191

11791192

docs/templates/pages/components.mustache

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</ul>
2323
</li>
2424
<li><a href="#labels">{{_i}}Labels{{/i}}</a></li>
25-
<li><a href="#hero">{{_i}}Hero{{/i}}</a></li>
25+
<li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
2626
<li><a href="#thumbnails">{{_i}}Thumbnails{{/i}}</a></li>
2727
<li><a href="#alerts">{{_i}}Alerts{{/i}}</a></li>
2828
<li><a href="#progress">{{_i}}Progress bars{{/i}}</a></li>
@@ -1066,15 +1066,15 @@
10661066

10671067

10681068

1069-
<!-- Hero unit
1069+
<!-- Typographic components
10701070
================================================== -->
1071-
<section id="hero">
1071+
<section id="typography">
10721072
<div class="page-header">
1073-
<h1>{{_i}}Hero unit{{/i}} <small>{{_i}}Jumbotron for your site's tagline{{/i}}</small></h1>
1073+
<h1>{{_i}}Typographic components{{/i}} <small>{{_i}}Page header and hero unit for segmenting content{{/i}}</small></h1>
10741074
</div>
1075+
<h2>{{_i}}Hero unit{{/i}}</h2>
10751076
<div class="row">
10761077
<div class="span4">
1077-
<h2>{{_i}}About{{/i}}</h2>
10781078
<p>{{_i}}Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}</p>
10791079
<h3>{{_i}}Markup{{/i}}</h3>
10801080
<p>{{_i}}Wrap your content in a <code>div</code> like so:{{/i}}</p>
@@ -1097,7 +1097,20 @@
10971097
<p><a class="btn btn-primary btn-large">{{_i}}Learn more{{/i}}</a></p>
10981098
</div>
10991099
</div>
1100-
</div>
1100+
</div><!-- /row -->
1101+
<h2>{{_i}}Page header{{/i}}</h2>
1102+
<div class="row">
1103+
<div class="span4">
1104+
<p>{{_i}}A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).{{/i}}</p>
1105+
</div>
1106+
<div class="span8">
1107+
<pre class="prettyprint linenums">
1108+
&lt;div class="page-haeder"&gt;
1109+
&lt;h1&gt;{{_i}}Example page header{{/i}}&lt;/h1&gt;
1110+
&lt;/div&gt;
1111+
</pre>
1112+
</div>
1113+
</div><!-- /row -->
11011114
</section>
11021115

11031116

0 commit comments

Comments
 (0)