diff --git a/docs/docs.html b/docs/docs.html index b134416cc5..60711f5daa 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -85,7 +85,7 @@ title: Bootstrap Documentation
Copy and paste the HTML from below to get started with a bare bones Bootstrap document.
-{% highlight html linenos %} +{% highlight html %} @@ -220,13 +220,13 @@ title: Bootstrap DocumentationThere are varying degrees to customizing components, but most fall into two camps: light customizations and complete visual overhauls. Luckily, there are plenty of examples of both.
We define light customizations as mostly surface layer changes, things like a color and font changes to existing Bootstrap components. A great example of this is the the Twitter Translation Center (coded by @mdo). Let's look at how to implement the custom button we wrote for this site, .btn-ttc.
Instead of using the provided Bootstrap buttons, which only require just one class to start, .btn, we'll add our own modifier class, .btn-ttc. This will give us a slightly custom look with minimal effort.
In the custom stylesheet, add the following CSS:
-{% highlight css linenos %} +{% highlight css %} /* Custom button -------------------------------------------------- */ @@ -293,7 +293,7 @@ title: Bootstrap DocumentationBootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.
-{% highlight html linenos %} +{% highlight html %} ... @@ -303,7 +303,7 @@ title: Bootstrap DocumentationWith Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, Bootstrap is mobile first. Mobile first styles can be found throughout the entire library instead of in separate files.
To ensure proper rendering and touch zooming, add the viewport meta tag to your <head>.
Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.
-{% highlight css linenos %} +{% highlight css %} @grid-columns: 12; @grid-gutter-width: 30px; @grid-float-breakpoint: 768px; @@ -490,7 +490,7 @@ title: Bootstrap DocumentationMixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.
-{% highlight css linenos %} +{% highlight css %} // Creates a wrapper for a series of columns .make-row() { // Negative margin the row out to align the content of columns @@ -524,7 +524,7 @@ title: Bootstrap DocumentationYou can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.
-{% highlight css linenos %} +{% highlight css %} .wrapper { .make-row(); } @@ -536,7 +536,7 @@ title: Bootstrap Documentation .make-column-offset(1); } {% endhighlight %} -{% highlight html linenos %} +{% highlight html %}Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.
Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
...
{% endhighlight %} @@ -616,7 +616,7 @@ title: Bootstrap DocumentationVivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.
...
{% endhighlight %} @@ -634,7 +634,7 @@ title: Bootstrap DocumentationThis line of text is meant to be treated as fine print.
The following snippet of text is rendered as bold text.
The following snippet of text is rendered as italicized text.
Center aligned text.
Right aligned text.
Left aligned text.
Center aligned text.
Right aligned text.
@@ -680,7 +680,7 @@ title: Bootstrap DocumentationDonec ullamcorper nulla non metus auctor fringilla.
Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
-{% highlight html linenos %} +{% highlight html %}...
...
...
@@ -697,7 +697,7 @@ title: Bootstrap DocumentationAn abbreviation of the word attribute is attr.
HTML is the best thing since sliced bread.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
-{% highlight html linenos %} +{% highlight html %}@@ -769,7 +769,7 @@ title: Bootstrap Documentation Someone famous in Source Title -{% highlight html linenos %} +{% highlight html %}Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
-{% highlight html linenos %} +{% highlight html %}Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Someone famous Source Title @@ -784,7 +784,7 @@ title: Bootstrap Documentation Someone famous in Source Title
...@@ -815,7 +815,7 @@ title: Bootstrap Documentation
<section> should be wrapped as inline.
<section> should be wrapped as inline.
{% endhighlight %}
@@ -953,7 +953,7 @@ For example, <section> should be wrapped as inline.
<p>Sample text here...</p>
<p>Sample text here...</p>{% endhighlight %} @@ -1003,7 +1003,7 @@ For example,
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
...
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
-{% highlight html linenos %}
+{% highlight html %}
-{% highlight html linenos %}
+{% highlight html %}
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
.00
<section> should be wrapped as inline.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
<section> should be wrapped as inline.
<section> should be wrapped as inline.
A longer block of help text that breaks onto a new line and may extend beyond one line.
-{% highlight html linenos %}
+{% highlight html %}
A longer block of help text that breaks onto a new line and may extend beyond one line.
{% endhighlight %}
@@ -2044,7 +2044,7 @@ For example, <section> should be wrapped as inline.
<section> should be wrapped as inline.
@@ -2114,7 +2114,7 @@ For example, <section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
{% endhighlight %}
@@ -2129,7 +2129,7 @@ For example, <section> should be wrapped as inline.
<section> should be wrapped as inline.
Primary link
Link
-{% highlight html linenos %}
+{% highlight html %}
Primary link
Link
{% endhighlight %}
@@ -2166,7 +2166,7 @@ For example, <section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
Link
@@ -2199,7 +2199,7 @@ For example, <section> should be wrapped as inline.
<section> should be wrapped as inline.
Float an element left
-{% highlight html linenos %} +{% highlight html %}<section> should be wrapped as inline.
Float an element right
-{% highlight html linenos %} +{% highlight html %}<section> should be wrapped as inline.
Clear the float on any element. Utilizes the micro clearfix as popularized by Nicolas Gallagher.
<section> should be wrapped as inline.
Add the appropriate class to any inline element. All icon classes are prefixed with glyphicon- for easy styling. To use, place the following code just about anywhere:
Want to change the icon color? Just change the color of the parent element.
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
-{% highlight html linenos %}
+{% highlight html %}
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
Star
{% endhighlight %}
@@ -2649,7 +2649,7 @@ For example, <section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
{% endhighlight %}
@@ -2663,7 +2663,7 @@ For example, <section> should be wrapped as inline.
<section> should be wrapped as inline.
-{% highlight html linenos %}
+{% highlight html %}
@@ -3526,7 +3526,7 @@ For example, <section> should be wrapped as inline.
The fixed navbar will overlay your other content, unless you add padding to the top of the <body>. The navbar itself has a height of 54px by default. At 768px and above, its height shrinks to 50px. Try out your own values or use our snippet below:
The fixed navbar will overlay your other content, unless you add padding to the bottom of the <body>. The navbar itself has a height of 54px by default. At 768px and above, its height shrinks to 50px. Try out your own values or use our snippet below:
You can optionally swap out active or disabled anchors for <span> to remove click functionality while retaining intended styles.
You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.
That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this: -{% highlight js linenos %} +{% highlight js %} $('body').off('.data-api') {% endhighlight %}
Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this:
-{% highlight js linenos %} +{% highlight js %} $('body').off('.alert.data-api') {% endhighlight %}We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.
-{% highlight js linenos %} +{% highlight js %} $(".btn.danger").button("toggle").addClass("fat") {% endhighlight %}All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):
-{% highlight js linenos %} +{% highlight js %} $("#myModal").modal() // initialized with defaults $("#myModal").modal({ keyboard: false }) // initialized with no keyboard $("#myModal").modal('show') // initializes and invokes show immediately @@ -4882,7 +4882,7 @@ $("#myModal").modal('show') // initializes and invokes show immedSometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call .noConflict on the plugin you wish to revert the value of.
Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. show) is triggered at the start of an event, and its past participle form (ex. shown) is trigger on the completion of an action.
All infinitive events provide preventDefault functionality. This provides the ability to stop the execution of an action before it starts.
Activates your content as a modal. Accepts an optional options object.
Manually toggles a modal.
- {% highlight js linenos %}$('#myModal').modal('toggle'){% endhighlight %} + {% highlight js %}$('#myModal').modal('toggle'){% endhighlight %}Manually opens a modal.
- {% highlight js linenos %}$('#myModal').modal('show'){% endhighlight %} + {% highlight js %}$('#myModal').modal('show'){% endhighlight %}Manually hides a modal.
- {% highlight js linenos %}$('#myModal').modal('hide'){% endhighlight %} + {% highlight js %}$('#myModal').modal('hide'){% endhighlight %}Bootstrap's modal class exposes a few events for hooking into modal functionality.
@@ -5148,7 +5148,7 @@ $('#myModal').modal({ -{% highlight js linenos %} +{% highlight js %} $('#myModal').on('hidden', function () { // do something… }) @@ -5258,7 +5258,7 @@ $('#myModal').on('hidden', function () {Add data-toggle="dropdown" to a link or button to toggle a dropdown.
To keep URLs intact, use the data-target attribute instead of href="#".
Reveals an element's tooltip.
- {% highlight js linenos %}$('#element').tooltip('show'){% endhighlight %} + {% highlight js %}$('#element').tooltip('show'){% endhighlight %}Hides an element's tooltip.
- {% highlight js linenos %}$('#element').tooltip('hide'){% endhighlight %} + {% highlight js %}$('#element').tooltip('hide'){% endhighlight %}Toggles an element's tooltip.
- {% highlight js linenos %}$('#element').tooltip('toggle'){% endhighlight %} + {% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}Hides and destroys an element's tooltip.
- {% highlight js linenos %}$('#element').tooltip('destroy'){% endhighlight %} + {% highlight js %}$('#element').tooltip('destroy'){% endhighlight %} @@ -5756,7 +5756,7 @@ $('#example').tooltip(options)Enable popovers via JavaScript:
- {% highlight js linenos %}$('#example').popover(options){% endhighlight %} + {% highlight js %}$('#example').popover(options){% endhighlight %}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-animation="".
Reveals an elements popover.
- {% highlight js linenos %}$('#element').popover('show'){% endhighlight %} + {% highlight js %}$('#element').popover('show'){% endhighlight %}Hides an elements popover.
- {% highlight js linenos %}$('#element').popover('hide'){% endhighlight %} + {% highlight js %}$('#element').popover('hide'){% endhighlight %}Toggles an elements popover.
- {% highlight js linenos %}$('#element').popover('toggle'){% endhighlight %} + {% highlight js %}$('#element').popover('toggle'){% endhighlight %}Hides and destroys an element's popover.
- {% highlight js linenos %}$('#element').popover('destroy'){% endhighlight %} + {% highlight js %}$('#element').popover('destroy'){% endhighlight %} @@ -5897,11 +5897,11 @@ $('#example').tooltip(options)Enable dismissal of an alert via JavaScript:
- {% highlight js linenos %}$(".alert").alert(){% endhighlight %} + {% highlight js %}$(".alert").alert(){% endhighlight %}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.
Closes an alert.
- {% highlight js linenos %}$(".alert").alert('close'){% endhighlight %} + {% highlight js %}$(".alert").alert('close'){% endhighlight %}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.
Resets button state - swaps text to any data defined text state.
-{% highlight html linenos %} +{% highlight html %}