mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Merge branch 'master' of github.com:twbs/bootstrap
This commit is contained in:
commit
b7b69cd353
@ -105,6 +105,7 @@ Keep track of development and community news.
|
||||
- Read and subscribe to [The Official Bootstrap Blog](http://blog.getbootstrap.com).
|
||||
- Chat with fellow Bootstrappers in IRC. On the `irc.freenode.net` server, in the `##bootstrap` channel.
|
||||
- Implementation help may be found at Stack Overflow (tagged [`twitter-bootstrap-3`](http://stackoverflow.com/questions/tagged/twitter-bootstrap-3)).
|
||||
- Developers should use the keyword `bootstrap` on packages which modify or add to the functionality of Bootstrap when distributing through [npm](https://www.npmjs.com/browse/keyword/twbs-bootstrap) or similar delivery mechanisms for maximum discoverability.
|
||||
|
||||
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<p>Button dropdowns require the <a href="../javascript/#dropdowns">dropdown plugin</a> to be included in your version of Bootstrap.</p>
|
||||
</div>
|
||||
|
||||
<h3 id="btn-dropdowns-single">Single button dropdowns</h3>
|
||||
<h2 id="btn-dropdowns-single">Single button dropdowns</h2>
|
||||
<p>Turn a button into a dropdown toggle with some basic markup changes.</p>
|
||||
<div class="bs-example" data-example-id="single-button-dropdown">
|
||||
<div class="btn-group">
|
||||
@ -88,7 +88,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-dropdowns-split">Split button dropdowns</h3>
|
||||
<h2 id="btn-dropdowns-split">Split button dropdowns</h2>
|
||||
<p>Similarly, create split button dropdowns with the same markup changes, only with a separate button.</p>
|
||||
<div class="bs-example" data-example-id="split-button-dropdown">
|
||||
<div class="btn-group">
|
||||
@ -194,7 +194,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-dropdowns-sizing">Sizing</h3>
|
||||
<h2 id="btn-dropdowns-sizing">Sizing</h2>
|
||||
<p>Button dropdowns work with buttons of all sizes.</p>
|
||||
<div class="bs-example" data-example-id="button-dropdown-sizing">
|
||||
<div class="btn-toolbar" role="toolbar">
|
||||
@ -272,7 +272,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-dropdowns-dropup">Dropup variation</h3>
|
||||
<h2 id="btn-dropdowns-dropup">Dropup variation</h2>
|
||||
<p>Trigger dropdown menus above elements by adding <code>.dropup</code> to the parent.</p>
|
||||
<div class="bs-example" data-example-id="button-dropdown-dropup">
|
||||
<div class="btn-toolbar" role="toolbar">
|
||||
|
@ -15,7 +15,7 @@
|
||||
<p>In addition, groups and toolbars should be given an explicit label, as most assistive technologies will otherwise not announce them, despite the presence of the correct <code>role</code> attribute. In the examples provided here, we use <code>aria-label</code>, but alternatives such as <code>aria-labelledby</code> can also be used.</p>
|
||||
</div>
|
||||
|
||||
<h3 id="btn-groups-single">Basic example</h3>
|
||||
<h2 id="btn-groups-single">Basic example</h2>
|
||||
<p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
|
||||
<div class="bs-example" data-example-id="simple-button-group">
|
||||
<div class="btn-group" role="group" aria-label="Basic example">
|
||||
@ -32,7 +32,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-groups-toolbar">Button toolbar</h3>
|
||||
<h2 id="btn-groups-toolbar">Button toolbar</h2>
|
||||
<p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p>
|
||||
<div class="bs-example" data-example-id="simple-button-toolbar">
|
||||
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
|
||||
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-groups-sizing">Sizing</h3>
|
||||
<h2 id="btn-groups-sizing">Sizing</h2>
|
||||
<p>Instead of applying button sizing classes to every button in a group, just add <code>.btn-group-*</code> to each <code>.btn-group</code>, including when nesting multiple groups.</p>
|
||||
<div class="bs-example" data-example-id="button-group-sizing">
|
||||
<div class="btn-group btn-group-lg" role="group" aria-label="Large button group">
|
||||
@ -94,7 +94,7 @@
|
||||
<div class="btn-group btn-group-xs" role="group" aria-label="...">...</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-groups-nested">Nesting</h3>
|
||||
<h2 id="btn-groups-nested">Nesting</h2>
|
||||
<p>Place a <code>.btn-group</code> within another <code>.btn-group</code> when you want dropdown menus mixed with a series of buttons.</p>
|
||||
<div class="bs-example" data-example-id="button-group-nesting">
|
||||
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
|
||||
@ -131,7 +131,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-groups-vertical">Vertical variation</h3>
|
||||
<h2 id="btn-groups-vertical">Vertical variation</h2>
|
||||
<p>Make a set of buttons appear vertically stacked rather than horizontally. <strong class="text-danger">Split button dropdowns are not supported here.</strong></p>
|
||||
<div class="bs-example" data-example-id="vertical-button-group">
|
||||
<div class="btn-group-vertical" role="group" aria-label="Vertical button group">
|
||||
@ -187,7 +187,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="btn-groups-justified">Justified button groups</h3>
|
||||
<h2 id="btn-groups-justified">Justified button groups</h2>
|
||||
<p>Make a group of buttons stretch at equal sizes to span the entire width of its parent. Also works with button dropdowns within the button group.</p>
|
||||
|
||||
<div class="bs-callout bs-callout-warning" id="callout-btn-group-justified-dbl-border">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<p class="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="../javascript/#dropdowns">dropdown JavaScript plugin</a>.</p>
|
||||
|
||||
<h3 id="dropdowns-example">Example</h3>
|
||||
<h2 id="dropdowns-example">Example</h2>
|
||||
<p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML. Dropdown menus can be changed to expand upwards (instead of downwards) by adding <code>.dropup</code> to the parent.</p>
|
||||
<div class="bs-example" data-example-id="static-dropdown">
|
||||
<div class="dropdown clearfix">
|
||||
@ -56,7 +56,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="dropdowns-alignment">Alignment</h3>
|
||||
<h2 id="dropdowns-alignment">Alignment</h2>
|
||||
<p>By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add <code>.dropdown-menu-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
|
||||
<div class="bs-callout bs-callout-warning" id="callout-dropdown-positioning">
|
||||
<h4>May require additional positioning</h4>
|
||||
@ -72,7 +72,7 @@
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="dropdowns-headers">Headers</h3>
|
||||
<h2 id="dropdowns-headers">Headers</h2>
|
||||
<p>Add a header to label sections of actions in any dropdown menu.</p>
|
||||
<div class="bs-example">
|
||||
<div class="dropdown clearfix">
|
||||
@ -98,7 +98,7 @@
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="dropdowns-divider">Divider</h3>
|
||||
<h2 id="dropdowns-divider">Divider</h2>
|
||||
<p>Add a divider to separate series of links in a dropdown menu.</p>
|
||||
<div class="bs-example">
|
||||
<div class="dropdown clearfix">
|
||||
@ -123,7 +123,7 @@
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="dropdowns-disabled">Disabled menu items</h3>
|
||||
<h2 id="dropdowns-disabled">Disabled menu items</h2>
|
||||
<p>Add <code>.disabled</code> to a <code><li></code> in the dropdown to disable the link.</p>
|
||||
<div class="bs-example">
|
||||
<div class="dropdown clearfix">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="bs-docs-section">
|
||||
<h1 id="labels" class="page-header">Labels</h1>
|
||||
|
||||
<h3>Example</h3>
|
||||
<h2>Example</h2>
|
||||
<div class="bs-example" data-example-id="labels-in-headings">
|
||||
<h1>Example heading <span class="label label-default">New</span></h1>
|
||||
<h2>Example heading <span class="label label-default">New</span></h2>
|
||||
@ -14,7 +14,7 @@
|
||||
<h3>Example heading <span class="label label-default">New</span></h3>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Available variations</h3>
|
||||
<h2>Available variations</h2>
|
||||
<p>Add any of the below mentioned modifier classes to change the appearance of a label.</p>
|
||||
<div class="bs-example" data-example-id="label-variants">
|
||||
<span class="label label-default">Default</span>
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<p class="lead">List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.</p>
|
||||
|
||||
<h3 id="list-group-basic">Basic example</h3>
|
||||
<h2 id="list-group-basic">Basic example</h2>
|
||||
<p>The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.</p>
|
||||
<div class="bs-example" data-example-id="simple-list-group">
|
||||
<ul class="list-group">
|
||||
@ -24,7 +24,7 @@
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="list-group-badges">Badges</h3>
|
||||
<h2 id="list-group-badges">Badges</h2>
|
||||
<p>Add the badges component to any list group item and it will automatically be positioned on the right.</p>
|
||||
<div class="bs-example" data-example-id="list-group-badges">
|
||||
<ul class="list-group">
|
||||
@ -51,7 +51,7 @@
|
||||
</ul>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="list-group-linked">Linked items</h3>
|
||||
<h2 id="list-group-linked">Linked items</h2>
|
||||
<p>Linkify list group items by using anchor tags instead of list items (that also means a parent <code><div></code> instead of an <code><ul></code>). No need for individual parents around each element.</p>
|
||||
<div class="bs-example" data-example-id="list-group-anchors">
|
||||
<div class="list-group">
|
||||
@ -76,7 +76,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="list-group-disabled">Disabled items</h3>
|
||||
<h2 id="list-group-disabled">Disabled items</h2>
|
||||
<p>Add <code>.disabled</code> to a <code>.list-group-item</code> to gray it out to appear disabled.</p>
|
||||
<div class="bs-example" data-example-id="list-group-disabled">
|
||||
<div class="list-group">
|
||||
@ -101,7 +101,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="list-group-contextual-classes">Contextual classes</h3>
|
||||
<h2 id="list-group-contextual-classes">Contextual classes</h2>
|
||||
<p>Use contextual classes to style list items, default or linked. Also includes <code>.active</code> state.</p>
|
||||
<div class="bs-example" data-example-id="list-group-variants">
|
||||
<div class="row">
|
||||
@ -138,7 +138,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="list-group-custom-content">Custom content</h3>
|
||||
<h2 id="list-group-custom-content">Custom content</h2>
|
||||
<p>Add nearly any HTML within, even for linked list groups like the one below.</p>
|
||||
<div class="bs-example" data-example-id="list-group-custom-content">
|
||||
<div class="list-group">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<p class="lead">Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.</p>
|
||||
|
||||
<h3 id="media-default">Default media</h3>
|
||||
<h2 id="media-default">Default media</h2>
|
||||
<p>The default media displays a media object (images, video, audio) to the left or right of a content block.</p>
|
||||
<div class="bs-example" data-example-id="default-media">
|
||||
<div class="media">
|
||||
@ -82,7 +82,7 @@
|
||||
{% endhighlight %}
|
||||
|
||||
<p>The classes <code>.pull-left</code> and <code>.pull-right</code> also exist and were previously used as part of the media component, but are deprecated for that use as of v3.3.0. They are approximately equivalent to <code>.media-left</code> and <code>.media-right</code>, except that <code>.media-right</code> should be placed after the <code>.media-body</code> in the html.</p>
|
||||
<h3 id="media-alignment">Media alignment</h3>
|
||||
<h2 id="media-alignment">Media alignment</h2>
|
||||
<p>The images or other media can be aligned top, middle, or bottom. The default is top aligned.</p>
|
||||
<div class="bs-example" data-example-id="media-alignment">
|
||||
<div class="media">
|
||||
@ -136,7 +136,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="media-list">Media list</h3>
|
||||
<h2 id="media-list">Media list</h2>
|
||||
<p>With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).</p>
|
||||
<div class="bs-example" data-example-id="media-list">
|
||||
<ul class="media-list">
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
<p class="lead">While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p>
|
||||
|
||||
<h3 id="panels-basic">Basic example</h3>
|
||||
<h2 id="panels-basic">Basic example</h2>
|
||||
<p>By default, all the <code>.panel</code> does is apply some basic border and padding to contain some content.</p>
|
||||
<div class="bs-example" data-example-id="simple-panel">
|
||||
<div class="panel panel-default">
|
||||
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="panels-heading">Panel with heading</h3>
|
||||
<h2 id="panels-heading">Panel with heading</h2>
|
||||
<p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code><h1></code>-<code><h6></code> with a <code>.panel-title</code> class to add a pre-styled heading.</p>
|
||||
<p>For proper link coloring, be sure to place links in headings within <code>.panel-title</code>.</p>
|
||||
<div class="bs-example" data-example-id="panel-with-heading">
|
||||
@ -57,7 +57,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="panels-footer">Panel with footer</h3>
|
||||
<h2 id="panels-footer">Panel with footer</h2>
|
||||
<p>Wrap buttons or secondary text in <code>.panel-footer</code>. Note that panel footers <strong>do not</strong> inherit colors and borders when using contextual variations as they are not meant to be in the foreground.</p>
|
||||
<div class="bs-example" data-example-id="panel-with-footer">
|
||||
<div class="panel panel-default">
|
||||
@ -76,7 +76,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="panels-alternatives">Contextual alternatives</h3>
|
||||
<h2 id="panels-alternatives">Contextual alternatives</h2>
|
||||
<p>Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.</p>
|
||||
<div class="bs-example" data-example-id="contextual-panels">
|
||||
<div class="panel panel-primary">
|
||||
@ -128,7 +128,7 @@
|
||||
<div class="panel panel-danger">...</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="panels-tables">With tables</h3>
|
||||
<h2 id="panels-tables">With tables</h2>
|
||||
<p>Add any non-bordered <code>.table</code> within a panel for a seamless design. If there is a <code>.panel-body</code>, we add an extra border to the top of the table for separation.</p>
|
||||
<div class="bs-example" data-example-id="table-within-panel">
|
||||
<div class="panel panel-default">
|
||||
@ -238,7 +238,7 @@
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h3 id="panels-list-group">With list groups</h3>
|
||||
<h2 id="panels-list-group">With list groups</h2>
|
||||
<p>Easily include full-width <a href="#list-group">list groups</a> within any panel.</p>
|
||||
<div class="bs-example" data-example-id="panel-with-list-group">
|
||||
<div class="panel panel-default">
|
||||
|
@ -8,7 +8,7 @@
|
||||
<p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.</p>
|
||||
</div>
|
||||
|
||||
<h3 id="progress-basic">Basic example</h3>
|
||||
<h2 id="progress-basic">Basic example</h2>
|
||||
<p>Default progress bar.</p>
|
||||
<div class="bs-example" data-example-id="simple-progress-bar">
|
||||
<div class="progress">
|
||||
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="progress-label">With label</h3>
|
||||
<h2 id="progress-label">With label</h2>
|
||||
<p>Remove the <code><span></code> with <code>.sr-only</code> class from within the progress bar to show a visible percentage.</p>
|
||||
<div class="bs-example" data-example-id="progress-bar-with-label">
|
||||
<div class="progress">
|
||||
@ -68,7 +68,7 @@
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<h3 id="progress-alternatives">Contextual alternatives</h3>
|
||||
<h2 id="progress-alternatives">Contextual alternatives</h2>
|
||||
<p>Progress bars use some of the same button and alert classes for consistent styles.</p>
|
||||
<div class="bs-example" data-example-id="contextual-progress-bar">
|
||||
<div class="progress">
|
||||
@ -115,7 +115,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="progress-striped">Striped</h3>
|
||||
<h2 id="progress-striped">Striped</h2>
|
||||
<p>Uses a gradient to create a striped effect. Not available in IE8.</p>
|
||||
<div class="bs-example" data-example-id="striped-progress-bar">
|
||||
<div class="progress">
|
||||
@ -162,7 +162,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="progress-animated">Animated</h3>
|
||||
<h2 id="progress-animated">Animated</h2>
|
||||
<p>Add <code>.active</code> to <code>.progress-bar-striped</code> to animate the stripes right to left. Not available in IE9 and below.</p>
|
||||
<div class="bs-example" data-example-id="animated-progress-bar">
|
||||
<div class="progress">
|
||||
@ -178,7 +178,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="progress-stacked">Stacked</h3>
|
||||
<h2 id="progress-stacked">Stacked</h2>
|
||||
<p>Place multiple bars into the same <code>.progress</code> to stack them.</p>
|
||||
<div class="bs-example" data-example-id="stacked-progress-bar">
|
||||
<div class="progress">
|
||||
|
@ -4,7 +4,7 @@
|
||||
<p class="lead">Extend Bootstrap's <a href="../css/#grid">grid system</a> with the thumbnail component to easily display grids of images, videos, text, and more.</p>
|
||||
<p>If you're looking for Pinterest-like presentation of thumbnails of varying heights and/or widths, you'll need to use a third-party plugin such as <a href="http://masonry.desandro.com">Masonry</a>, <a href="http://isotope.metafizzy.co">Isotope</a>, or <a href="http://salvattore.com">Salvattore</a>.</p>
|
||||
|
||||
<h3 id="thumbnails-default">Default example</h3>
|
||||
<h2 id="thumbnails-default">Default example</h2>
|
||||
<p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
|
||||
<div class="bs-example" data-example-id="simple-thumbnails">
|
||||
<div class="row">
|
||||
@ -41,7 +41,7 @@
|
||||
</div>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3 id="thumbnails-custom-content">Custom content</h3>
|
||||
<h2 id="thumbnails-custom-content">Custom content</h2>
|
||||
<p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p>
|
||||
<div class="bs-example" data-example-id="thumbnails-with-custom-content">
|
||||
<div class="row">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="bs-docs-section">
|
||||
<h1 id="wells" class="page-header">Wells</h1>
|
||||
|
||||
<h3>Default well</h3>
|
||||
<h2>Default well</h2>
|
||||
<p>Use the well as a simple effect on an element to give it an inset effect.</p>
|
||||
<div class="bs-example" data-example-id="default-well">
|
||||
<div class="well">
|
||||
@ -11,7 +11,7 @@
|
||||
{% highlight html %}
|
||||
<div class="well">...</div>
|
||||
{% endhighlight %}
|
||||
<h3>Optional classes</h3>
|
||||
<h2>Optional classes</h2>
|
||||
<p>Control padding and rounded corners with two optional modifier classes.</p>
|
||||
<div class="bs-example" data-example-id="large-well">
|
||||
<div class="well well-lg">
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<p>Designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> and <a href="https://twitter.com/fat" target="_blank">@fat</a>.</p>
|
||||
<p>Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
|
||||
<p>Code licensed under <a href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, documentation under <a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
||||
<p>Code licensed under <a rel="license" href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, documentation under <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
|
||||
<ul class="bs-docs-footer-links text-muted">
|
||||
<li>Currently v{{ site.current_version }}</li>
|
||||
<li>·</li>
|
||||
|
@ -6,6 +6,7 @@
|
||||
<li>Read and subscribe to <a href="http://blog.getbootstrap.com/">The Official Bootstrap Blog</a>.</li>
|
||||
<li>Chat with fellow Bootstrappers using IRC in the <code>irc.freenode.net</code> server, in the <a href="irc://irc.freenode.net/%23bootstrap">##bootstrap channel</a>.</li>
|
||||
<li>For help using Bootstrap, ask on <a href="http://stackoverflow.com/questions/tagged/twitter-bootstrap-3">StackOverflow using the tag <code>twitter-bootstrap-3</code></a>.</li>
|
||||
<li>Developers should use the keyword <code>bootstrap</code> on packages which modify or add to the functionality of Bootstrap when distributing through <a href="https://www.npmjs.com/browse/keyword/twbs-bootstrap">npm</a> or similar delivery mechanisms for maximum discoverability.</li>
|
||||
<li>Find inspiring examples of people building with Bootstrap at the <a href="http://expo.getbootstrap.com">Bootstrap Expo</a>.</li>
|
||||
</ul>
|
||||
<p>You can also follow <a href="https://twitter.com/getbootstrap">@getbootstrap on Twitter</a> for the latest gossip and awesome music videos.</p>
|
||||
|
@ -75,9 +75,9 @@ body {
|
||||
}
|
||||
{% endhighlight %}
|
||||
{% highlight html %}
|
||||
<body data-spy="scroll" data-target=".navbar-example">
|
||||
<body data-spy="scroll" data-target="#navbar-example">
|
||||
...
|
||||
<div class="navbar-example">
|
||||
<div id="navbar-example">
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
...
|
||||
</ul>
|
||||
@ -89,7 +89,7 @@ body {
|
||||
<h3>Via JavaScript</h3>
|
||||
<p>After adding <code>position: relative;</code> in your CSS, call the scrollspy via JavaScript:</p>
|
||||
{% highlight js %}
|
||||
$('body').scrollspy({ target: '.navbar-example' })
|
||||
$('body').scrollspy({ target: '#navbar-example' })
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user