Skip to content

Instantly share code, notes, and snippets.

@krutz27
Created October 4, 2013 13:55
Show Gist options
  • Save krutz27/6826289 to your computer and use it in GitHub Desktop.
Save krutz27/6826289 to your computer and use it in GitHub Desktop.
<!-- Begin Navbar -->
<div class="navbar navbar-static">
<div class="container">
<a class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="glyphicon glyphicon-chevron-down"></span>
</a>
<div class="nav-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#">Home</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
<ul class="nav pull-right navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-search"></i></a>
<ul class="dropdown-menu" style="padding:12px;">
<form class="form-inline">
<button type="submit" class="btn btn-default pull-right"><i class="glyphicon glyphicon-search"></i></button><input class="form-control pull-left" placeholder="Search" type="text">
</form>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-user"></i> <i class="glyphicon glyphicon-chevron-down"></i></a>
<ul class="dropdown-menu">
<li><a href="#">Login</a></li>
<li><a href="#">Profile</a></li>
<li class="divider"></li>
<li><a href="#">About</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div><!-- /.navbar -->
<header class="masthead">
<div class="container">
<div class="row">
<div class="col col-sm-6">
<h1><a href="#" title="scroll down for your viewing pleasure">BNW Template</a>
<p class="lead">2-column Layout + Theme for Bootstrap 3</p></h1>
</div>
<div class="col col-sm-6">
<div class="well pull-right">
<img src="//placehold.it/280x100/E7E7E7">
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col col-sm-12">
<div class="panel">
You may want to put some news here <span style="font-size:16pt;vertical-align:middle;" class="glyphicon glyphicon-heart-empty"></span>
</div>
</div>
</div>
</div>
</header>
<!-- Begin Body -->
<div class="container">
<div class="row">
<div class="col col-sm-3">
<div id="sidebar">
<ul class="nav nav-stacked">
<li><h3 class="highlight">Channels <i class="glyphicon glyphicon-dashboard pull-right"></i></h3></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
Accordion
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
There is a lot to be said about RWD.
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
Accordion
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
Use @media queries or utility classes to customize responsiveness.
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col col-sm-9">
<div class="panel">
<h1>The Top Stories from Around</h1>
<div class="row">
<div class="col col-sm-8">
<img src="/assets/example/bg1.jpg" class="img-responsive">
<h2>Content</h2>
</div>
<div class="col col-sm-4">
<img src="/assets/example/bg_dogcat.jpg" class="img-responsive">
<h4>Content</h4>
<hr>
<img src="/assets/example/bg_blueplane.jpg" class="img-responsive">
<h4>Content</h4>
This is an exmaple blurb of content that could go here perhaps?
</div>
</div>
Totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia cor magni dolores
eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit,
sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?
<h2>Content</h2>
Rrem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia cor magni dolores
eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit,
sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut
<br><br>
<button class="btn btn-default">More</button>
<hr>
<h2>Content</h2>
<img src="//placehold.it/150x100/EEEEEE" class="img-responsive pull-right"> Farmhand ida quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia cor magni dolores
eos qui ratione voluptatem sequi nesciunt. I met him on the Internet. He's a French model. Qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit,
sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut
<br><br>
<button class="btn btn-default">More</button>
<hr>
<div class="row">
<div class="col col-sm-6">
<img src="/assets/example/bg_smartphones.jpg" class="img-responsive">
</div>
<div class="col col-sm-6">
<h1>There is still a lot to be said about the Responsive Web.</h1>
</div>
</div>
<hr>
<h2>Responsive Text</h2>
Eeaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia cor magni dolores
eos qui ratione voluptatem sequi nesciunt. Bootply is this awesomeness. Editor, prototype tool, adipisci velit,
sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut
<hr>
<h2>Responsive Images</h2>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia cor magni dolores
eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit,
sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut
<hr>
<h2>Media Queries</h2>
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia cor magni dolores
eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit,
sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.
Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut
<h1><a href="#"><i class="glyphicon glyphicon-user"></i> <i class="glyphicon glyphicon-chevron-down"></i></a></h1>
<hr>
<h4><a href="http://bootply.com/69848">Edit on Bootply</a></h4>
<hr>
</div>
</div>
</div>
</div>
/* bootstrap 3 helpers */
.navbar-form input, .form-inline input {
width:auto;
}
/* end */
/* custom theme */
header {
min-height:230px;
margin-bottom:5px;
}
@media (min-width: 979px) {
#sidebar.affix-top {
position: static;
}
#sidebar.affix {
position: fixed;
top: 0;
width:21.2%;
}
}
.affix,.affix-top {
position:static;
}
/* theme */
body {
color:#828282;
background-color:#eee;
}
a,a:hover {
color:#ff3333;
text-decoration:none;
}
.highlight-bk {
background-color:#ff3333;
padding:1px;
width:100%;
}
.highlight {
color:#ff3333;
}
h3.highlight {
padding-top:13px;
padding-bottom:14px;
border-bottom:2px solid #ff3333;
}
.navbar {
background-color:#ff3333;
color:#ffffff;
border-radius:0;
}
.navbar-nav > li > a {
color:#fff;
padding-left:20px;
padding-right:20px;
border-left:1px solid #ffffff;
}
.navbar-nav > li:last-child > a {
border-right:1px solid #ffffff;
}
.navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus {
color: #ffffff;
background-color:transparent;
}
.navbar-nav > .open > a, .navbar-nav > .open > a:hover, .navbar-nav > .open > a:focus {
color: #555555;
background-color:transparent;
opacity:.9;
}
.accordion-group {
border-width:0;
}
.dropdown-menu {
min-width: 250px;
}
.accordion-heading .accordion-toggle, .accordion-inner, .nav-stacked li > a {
padding-left:1px;
}
.caret {
color:#fff;
}
.navbar-toggle {
color:#fff;
border-width:0;
}
.navbar-toggle:hover {
background-color:#fff;
}
.panel {
padding-left:27px;
padding-right:27px;
}
/* end theme */
$('#sidebar').affix({
offset: {
top: 240
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment