Skip to content

Commit 12af75e

Browse files
committed
updated pills to include vertical (stacked) variation in patterns and documentation
1 parent b8a4921 commit 12af75e

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

bootstrap.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Mon Oct 10 19:37:09 PDT 2011
9+
* Date: Tue Oct 11 21:49:21 PDT 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -1706,6 +1706,9 @@ a.menu:after, .dropdown-toggle:after {
17061706
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
17071707
background-color: #0069d6;
17081708
}
1709+
.pills-vertical > li {
1710+
float: none;
1711+
}
17091712
.tab-content, .pill-content {
17101713
clear: both;
17111714
}

bootstrap.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ <h2>Tabs and pills</h2>
14471447
<p>Great for sub-sections of content like our account settings pages and user timelines for toggling between pages of like content. Available in tabbed or pill styles.</p>
14481448
</div>
14491449
<div class="span12">
1450-
<h3>Basic tab example</h3>
1450+
<h3>Basic tabs example</h3>
14511451
<ul class="tabs">
14521452
<li class="active"><a href="#">Home</a></li>
14531453
<li><a href="#">Profile</a></li>
@@ -1473,7 +1473,7 @@ <h3>Basic tab example</h3>
14731473
&lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
14741474
&lt;/ul&gt;
14751475
</pre>
1476-
<h3>Alternate styles</h3>
1476+
<h3>Alternate tabs</h3>
14771477
<p>You can also use tabs that are stacked on either side of an element, or on the bottom.</p>
14781478
<ul class="tabs tabs-left">
14791479
<li class="active"><a href="#">Active link</a></li>
@@ -1512,9 +1512,9 @@ <h3>Basic pills example</h3>
15121512
&lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
15131513
&lt;/ul&gt;
15141514
</pre>
1515-
<h3>Alternate styles</h3>
1515+
<h3>Vertical pill nav</h3>
15161516
<p>With a pill-style nav, you can also stack the list items to have a simple sidebar. We don't offer left or right aligned versions here because that's easy enough to customize based on your own needs</p>
1517-
<ul class="pills pills-vertical">
1517+
<ul class="pills pills-vertical span4">
15181518
<li class="active"><a href="#">Home</a></li>
15191519
<li><a href="#">Profile</a></li>
15201520
<li><a href="#">Messages</a></li>

lib/patterns.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,13 @@ a.menu:after,
412412
background-color: @linkColor;
413413
}
414414
}
415+
// Stacked pills
416+
.pills-vertical {
417+
> li {
418+
float: none;
419+
}
420+
}
421+
415422

416423
// For js-enabled tabbed areas
417424
.tab-content,

0 commit comments

Comments
 (0)