diff --git a/docs/_includes/js/alerts.html b/docs/_includes/js/alerts.html
index 7f3bf99c2e..711fd6c40c 100644
--- a/docs/_includes/js/alerts.html
+++ b/docs/_includes/js/alerts.html
@@ -36,10 +36,10 @@
Methods
- $().alert()
+ $().alert()
Makes an alert listen for click events on descendant elements which have the data-dismiss="alert"
attribute. (Not necessary when using the data-api's auto-initialization.)
- $().alert('close')
+ $().alert('close')
Closes an alert by removing it from the DOM. If the .fade
and .in
classes are present on the element, the alert will fade out before it is removed.
diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html
index 83bf0bfaae..827906cd88 100644
--- a/docs/_includes/js/buttons.html
+++ b/docs/_includes/js/buttons.html
@@ -115,15 +115,15 @@
{% endhighlight %}
-
- $().button('toggle')
+ $().button('toggle')
Toggles push state. Gives the button the appearance that it has been activated.
- $().button('reset')
+ $().button('reset')
Resets button state - swaps text to original text.
- $().button(string)
+ $().button(string)
Swaps text to any data defined text state.
+
{% highlight html %}
...
diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html
index 6234032fb8..7d9d783679 100644
--- a/docs/_includes/js/carousel.html
+++ b/docs/_includes/js/carousel.html
@@ -195,7 +195,7 @@ $('.carousel').carousel()
Methods
- .carousel(options)
+ .carousel(options)
Initializes the carousel with an optional options object
and starts cycling through items.
{% highlight js %}
$('.carousel').carousel({
@@ -203,20 +203,20 @@ $('.carousel').carousel({
})
{% endhighlight %}
- .carousel('cycle')
+ .carousel('cycle')
Cycles through the carousel items from left to right.
- .carousel('pause')
+ .carousel('pause')
Stops the carousel from cycling through items.
- .carousel(number)
+ .carousel(number)
Cycles the carousel to a particular frame (0 based, similar to an array).
- .carousel('prev')
+ .carousel('prev')
Cycles to the previous item.
- .carousel('next')
+ .carousel('next')
Cycles to the next item.
Events
diff --git a/docs/_includes/js/collapse.html b/docs/_includes/js/collapse.html
index e193098cc1..72b1e67850 100644
--- a/docs/_includes/js/collapse.html
+++ b/docs/_includes/js/collapse.html
@@ -220,7 +220,7 @@ $('.collapse').collapse()
Methods
- .collapse(options)
+ .collapse(options)
Activates your content as a collapsible element. Accepts an optional options object
.
{% highlight js %}
$('#myCollapsible').collapse({
@@ -228,13 +228,13 @@ $('#myCollapsible').collapse({
})
{% endhighlight %}
- .collapse('toggle')
+ .collapse('toggle')
Toggles a collapsible element to shown or hidden.
- .collapse('show')
+ .collapse('show')
Shows a collapsible element.
- .collapse('hide')
+ .collapse('hide')
Hides a collapsible element.
Events
diff --git a/docs/_includes/js/dropdowns.html b/docs/_includes/js/dropdowns.html
index d00c4da38c..98184eb9cc 100644
--- a/docs/_includes/js/dropdowns.html
+++ b/docs/_includes/js/dropdowns.html
@@ -159,7 +159,7 @@ $('.dropdown-toggle').dropdown()
None
Methods
- $().dropdown('toggle')
+ $().dropdown('toggle')
Toggles the dropdown menu of a given navbar or tabbed navigation.
Events
diff --git a/docs/_includes/js/modal.html b/docs/_includes/js/modal.html
index 2e32331431..8f6b2fb6c7 100644
--- a/docs/_includes/js/modal.html
+++ b/docs/_includes/js/modal.html
@@ -456,7 +456,7 @@ $('#exampleModal').on('show.bs.modal', function (event) {
Methods
- .modal(options)
+ .modal(options)
Activates your content as a modal. Accepts an optional options object
.
{% highlight js %}
$('#myModal').modal({
@@ -464,15 +464,15 @@ $('#myModal').modal({
})
{% endhighlight %}
- .modal('toggle')
+ .modal('toggle')
Manually toggles a modal. Returns to the caller before the modal has actually been shown or hidden (i.e. before the shown.bs.modal
or hidden.bs.modal
event occurs).
{% highlight js %}$('#myModal').modal('toggle'){% endhighlight %}
- .modal('show')
+ .modal('show')
Manually opens a modal. Returns to the caller before the modal has actually been shown (i.e. before the shown.bs.modal
event occurs).
{% highlight js %}$('#myModal').modal('show'){% endhighlight %}
- .modal('hide')
+ .modal('hide')
Manually hides a modal. Returns to the caller before the modal has actually been hidden (i.e. before the hidden.bs.modal
event occurs).
{% highlight js %}$('#myModal').modal('hide'){% endhighlight %}
diff --git a/docs/_includes/js/popovers.html b/docs/_includes/js/popovers.html
index 3616c15216..5f8c6e6610 100644
--- a/docs/_includes/js/popovers.html
+++ b/docs/_includes/js/popovers.html
@@ -248,22 +248,22 @@ sagittis lacus vel augue laoreet rutrum faucibus.">
Methods
- $().popover(options)
+ $().popover(options)
Initializes popovers for an element collection.
- .popover('show')
+ .popover('show')
Reveals an element's popover. Returns to the caller before the popover has actually been shown (i.e. before the shown.bs.popover
event occurs). This is considered a "manual" triggering of the popover. Popovers whose both title and content are zero-length are never displayed.
{% highlight js %}$('#element').popover('show'){% endhighlight %}
- .popover('hide')
+ .popover('hide')
Hides an element's popover. Returns to the caller before the popover has actually been hidden (i.e. before the hidden.bs.popover
event occurs). This is considered a "manual" triggering of the popover.
{% highlight js %}$('#element').popover('hide'){% endhighlight %}
- .popover('toggle')
+ .popover('toggle')
Toggles an element's popover. Returns to the caller before the popover has actually been shown or hidden (i.e. before the shown.bs.popover
or hidden.bs.popover
event occurs). This is considered a "manual" triggering of the popover.
{% highlight js %}$('#element').popover('toggle'){% endhighlight %}
- .popover('destroy')
+ .popover('destroy')
Hides and destroys an element's popover. Popovers that use delegation (which are created using the selector
option ) cannot be individually destroyed on descendant trigger elements.
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html
index 7d5fa5b496..afac356e12 100644
--- a/docs/_includes/js/scrollspy.html
+++ b/docs/_includes/js/scrollspy.html
@@ -94,7 +94,7 @@ $('body').scrollspy({ target: '#navbar-example' })
- .scrollspy('refresh')
+ .scrollspy('refresh')
When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:
{% highlight js %}
$('[data-spy="scroll"]').each(function () {
diff --git a/docs/_includes/js/tabs.html b/docs/_includes/js/tabs.html
index 8622440fc8..b107ca6a22 100644
--- a/docs/_includes/js/tabs.html
+++ b/docs/_includes/js/tabs.html
@@ -92,7 +92,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
{% endhighlight %}
Methods
- $().tab
+ $().tab
Activates a tab element and content container. Tab should have either a data-target
or an href
targeting a container node in the DOM.
diff --git a/docs/_includes/js/tooltips.html b/docs/_includes/js/tooltips.html
index 77a0d5cb50..c3fe17ec24 100644
--- a/docs/_includes/js/tooltips.html
+++ b/docs/_includes/js/tooltips.html
@@ -209,22 +209,22 @@ $('#example').tooltip(options)
- $().tooltip(options)
+ $().tooltip(options)
Attaches a tooltip handler to an element collection.
- .tooltip('show')
+ .tooltip('show')
Reveals an element's tooltip. Returns to the caller before the tooltip has actually been shown (i.e. before the shown.bs.tooltip
event occurs). This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed.
{% highlight js %}$('#element').tooltip('show'){% endhighlight %}
- .tooltip('hide')
+ .tooltip('hide')
Hides an element's tooltip. Returns to the caller before the tooltip has actually been hidden (i.e. before the hidden.bs.tooltip
event occurs). This is considered a "manual" triggering of the tooltip.
{% highlight js %}$('#element').tooltip('hide'){% endhighlight %}
- .tooltip('toggle')
+ .tooltip('toggle')
Toggles an element's tooltip. Returns to the caller before the tooltip has actually been shown or hidden (i.e. before the shown.bs.tooltip
or hidden.bs.tooltip
event occurs). This is considered a "manual" triggering of the tooltip.
{% highlight js %}$('#element').tooltip('toggle'){% endhighlight %}
- .tooltip('destroy')
+ .tooltip('destroy')
Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using the selector
option ) cannot be individually destroyed on descendant trigger elements.
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
diff --git a/docs/assets/css/src/docs.css b/docs/assets/css/src/docs.css
index 3c88d4865f..d95ba093c7 100644
--- a/docs/assets/css/src/docs.css
+++ b/docs/assets/css/src/docs.css
@@ -28,6 +28,13 @@ body {
font-weight: normal;
}
+/* Inline code within headings retain the heading's background-color */
+h2 code,
+h3 code,
+h4 code {
+ background-color: inherit;
+}
+
/* Outline button for use within the docs */
.btn-outline {
color: #563d7c;