1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 18:40:03 +00:00

Merge branch 'v4' of github.com:twbs/derpstrap into v4

This commit is contained in:
Jacob Thornton 2015-08-12 20:00:33 -07:00
commit 9bdb6d13f6
4 changed files with 23 additions and 35 deletions

View File

@ -14,35 +14,21 @@ group: components
The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well. The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.
<div class="bd-example"> <div class="bd-example">
<nav id="navbar-example2" class="navbar navbar-default navbar-static" role="navigation"> <nav id="navbar-example2" class="navbar navbar-default" role="navigation">
<div class="container-fluid"> <h3 class="navbar-brand">Project Name</h3>
<div class="navbar-header"> <ul class="nav nav-pills">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bd-example-js-navbar-scrollspy"> <li class="nav-item"><a class="nav-link" href="#fat">@fat</a></li>
<span class="sr-only">Toggle navigation</span> <li class="nav-item"><a class="nav-link" href="#mdo">@mdo</a></li>
<span class="icon-bar"></span> <li class="nav-item">
<span class="icon-bar"></span> <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<span class="icon-bar"></span> <ul class="dropdown-menu">
</button> <li><a href="#one">one</a></li>
<a class="navbar-brand" href="#">Project Name</a> <li><a href="#two">two</a></li>
</div> <li role="separator" class="divider"></li>
<div class="collapse navbar-collapse bd-example-js-navbar-scrollspy"> <li><a href="#three">three</a></li>
<ul class="nav navbar-nav">
<li><a href="#fat">@fat</a></li>
<li><a href="#mdo">@mdo</a></li>
<li class="dropdown">
<a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDrop1">
<li><a href="#one">one</a></li>
<li><a href="#two">two</a></li>
<li role="separator" class="divider"></li>
<li><a href="#three">three</a></li>
</ul>
</li>
</ul> </ul>
</div> </li>
</div> </ul>
</nav> </nav>
<div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example"> <div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example">
<h4 id="fat">@fat</h4> <h4 id="fat">@fat</h4>

View File

@ -179,7 +179,7 @@ For quoting blocks of content from another source within your document. Wrap `<b
Add a `<footer>` for identifying the source. Wrap the name of the source work in `<cite>`. Add a `<footer>` for identifying the source. Wrap the name of the source work in `<cite>`.
{% example html %} {% example html %}
<blockquote> <blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer> <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote> </blockquote>
@ -190,7 +190,7 @@ Add a `<footer>` for identifying the source. Wrap the name of the source work in
Add `.blockquote-reverse` for a blockquote with right-aligned content. Add `.blockquote-reverse` for a blockquote with right-aligned content.
{% example html %} {% example html %}
<blockquote class="blockquote-reverse"> <blockquote class="blockquote blockquote-reverse">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer> <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote> </blockquote>

View File

@ -28,7 +28,7 @@ title: Bootstrap &middot; The world's most popular mobile-first and responsive f
<h4>Managed dependencies</h4> <h4>Managed dependencies</h4>
<p>Include Bootstrap's source Sass and JavaScript files via Bower, Composer, Meteor, or npm. Package managed installs don't include documentation, but do include our Gruntfile and readme.</p> <p>Include Bootstrap's source Sass and JavaScript files via Bower, Composer, Meteor, or npm. Package managed installs don't include documentation, but do include our Gruntfile and readme.</p>
<p> <p>
<a class="btn btn-primary" href="">View install methods</a> <a class="btn btn-bs btn-outline" href="">View install methods</a>
</p> </p>
</div> </div>
<!-- <div class="col-sm-4"> <!-- <div class="col-sm-4">
@ -51,7 +51,7 @@ title: Bootstrap &middot; The world's most popular mobile-first and responsive f
<hr class="half-rule"> <hr class="half-rule">
<p class="lead">More customized builds of Bootstrap's CSS and JS are also available.</p> <p class="lead">More customized builds of Bootstrap's CSS and JS are also available.</p>
<a href="{{ site.baseurl }}/getting-started/download" class="btn btn-outline btn-lg">More download options</a> <a href="{{ site.baseurl }}/getting-started/download" class="btn btn-bs btn-outline btn-lg">More download options</a>
</div> </div>
</div> </div>
@ -83,7 +83,7 @@ title: Bootstrap &middot; The world's most popular mobile-first and responsive f
<hr class="half-rule"> <hr class="half-rule">
<p class="lead">Bootstrap is open source. It's hosted, developed, and maintained on GitHub.</p> <p class="lead">Bootstrap is open source. It's hosted, developed, and maintained on GitHub.</p>
<a href="{{ site.repo }}" class="btn btn-outline btn-lg">View the GitHub project</a> <a href="{{ site.repo }}" class="btn btn-bs btn-outline btn-lg">View the GitHub project</a>
</div> </div>
</div> </div>
@ -107,6 +107,6 @@ title: Bootstrap &middot; The world's most popular mobile-first and responsive f
<hr class="half-rule"> <hr class="half-rule">
<p class="lead">We showcase dozens of inspiring projects built with Bootstrap on the Bootstrap Expo.</p> <p class="lead">We showcase dozens of inspiring projects built with Bootstrap on the Bootstrap Expo.</p>
<a href="{{ site.expo }}" class="btn btn-outline btn-lg">Explore the Expo</a> <a href="{{ site.expo }}" class="btn btn-bs btn-outline btn-lg">Explore the Expo</a>
</div> </div>
</div> </div>

View File

@ -14,6 +14,8 @@
// Grid breakpoints // Grid breakpoints
// Grid containers // Grid containers
// Grid columns // Grid columns
// Fonts
// Components
// Colors // Colors
@ -53,6 +55,7 @@ $enable-hover-media-query: false !default;
$spacer: 1rem !default; $spacer: 1rem !default;
$spacer-x: $spacer !default; $spacer-x: $spacer !default;
$spacer-y: $spacer !default; $spacer-y: $spacer !default;
$border-width: .0625rem !default;
// Body // Body
@ -152,7 +155,6 @@ $headings-font-weight: 500 !default;
$headings-line-height: 1.1 !default; $headings-line-height: 1.1 !default;
$headings-color: inherit !default; $headings-color: inherit !default;
$border-width: .0625rem !default;
// Components // Components