mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
134 lines
3.2 KiB
HTML
134 lines
3.2 KiB
HTML
---
|
|
layout: example
|
|
title: Narrow page template
|
|
---
|
|
|
|
<!-- Custom styles for this template -->
|
|
<style>
|
|
/* Space out content a bit */
|
|
body {
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
/* Everything but the jumbotron gets side spacing for mobile-first views */
|
|
.header,
|
|
.marketing,
|
|
.footer {
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
}
|
|
|
|
/* Custom page header */
|
|
.header {
|
|
border-bottom: 1px solid #e5e5e5;
|
|
}
|
|
/* Make the masthead heading the same height as the navigation */
|
|
.header h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
line-height: 40px;
|
|
padding-bottom: 19px;
|
|
}
|
|
|
|
/* Custom page footer */
|
|
.footer {
|
|
padding-top: 19px;
|
|
color: #777;
|
|
border-top: 1px solid #e5e5e5;
|
|
}
|
|
|
|
/* Custom container */
|
|
.container-narrow {
|
|
margin: 0 auto;
|
|
max-width: 700px;
|
|
}
|
|
.container-narrow > hr {
|
|
margin: 30px 0;
|
|
}
|
|
|
|
/* Main marketing message and sign up button */
|
|
.jumbotron {
|
|
text-align: center;
|
|
border-bottom: 1px solid #e5e5e5;
|
|
}
|
|
.jumbotron .btn {
|
|
font-size: 21px;
|
|
padding: 14px 24px;
|
|
}
|
|
|
|
/* Supporting marketing content */
|
|
.marketing {
|
|
margin: 40px 0;
|
|
}
|
|
.marketing p + h4 {
|
|
margin-top: 28px;
|
|
}
|
|
|
|
/* Responsive: Portrait tablets and up */
|
|
@media screen and (min-width: 768px) {
|
|
/* Remove the padding we set earlier */
|
|
.header,
|
|
.marketing,
|
|
.footer {
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
/* Space out the masthead */
|
|
.header {
|
|
margin-bottom: 30px;
|
|
}
|
|
/* Remove the bottom border on the jumbotron for visual effect */
|
|
.jumbotron {
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
<div class="container-narrow">
|
|
<div class="header">
|
|
<ul class="nav nav-pills pull-right">
|
|
<li class="active"><a href="#">Home</a></li>
|
|
<li><a href="#">About</a></li>
|
|
<li><a href="#">Contact</a></li>
|
|
</ul>
|
|
<h3 class="muted">Project name</h3>
|
|
</div>
|
|
|
|
<div class="jumbotron">
|
|
<h1>Jumbotron heading</h1>
|
|
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
|
<p><a class="btn btn-large btn-success" href="#">Sign up today</a></p>
|
|
</div>
|
|
|
|
<div class="row marketing">
|
|
<div class="span6">
|
|
<h4>Subheading</h4>
|
|
<p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
|
|
|
|
<h4>Subheading</h4>
|
|
<p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
|
|
|
|
<h4>Subheading</h4>
|
|
<p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
|
</div>
|
|
|
|
<div class="span6">
|
|
<h4>Subheading</h4>
|
|
<p>Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
|
|
|
|
<h4>Subheading</h4>
|
|
<p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
|
|
|
|
<h4>Subheading</h4>
|
|
<p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>© Company 2013</p>
|
|
</div>
|
|
|
|
</div> <!-- /container -->
|