diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index a39dc3c6e0..c91afd73a8 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -69,81 +69,6 @@ body > .navbar-fixed-top .brand:hover { } - -/* Left nav --------------------------------------------------- */ - -.bs-docs-nav { - display: none; - position: fixed; - top: 0; - left: 0; - bottom: 0; - overflow-y: scroll; - width: 150px; - padding: 25px; - background-color: #dde2e9; - text-shadow: 0 1px 0 rgba(255,255,255,.55); - -webkit-box-shadow: inset -10px 0 15px rgba(0,0,0,.15); - -moz-box-shadow: inset -10px 0 15px rgba(0,0,0,.15); - box-shadow: inset -10px 0 15px rgba(0,0,0,.15); - background-color: #444; - text-shadow: 0 1px 0 rgba(0,0,0,.5); -} -.bs-docs-nav ul { - margin-left: 0; - margin-bottom: 15px; -} -.bs-docs-nav ul li { - list-style: none; - line-height: 1; -} -.bs-docs-nav a:hover { - text-decoration: none; -} -.bs-docs-nav ul li a { - display: block; - width: 145px; - padding: 0 30px; - margin: 0 -30px; - font-size: 12px; - line-height: 22px; - color: #444; - color: #999; -} -.bs-docs-nav ul li a:hover { - color: #333; - color: #fff; - background-color: rgba(0,0,0,.05); -} -.bs-docs-nav > ul > li > a { - font-size: 14px; - font-weight: bold; - line-height: 24px; - color: #333; - color: #fff; -} - -/* Logo wordmark */ -.bs-docs-logo { - font-size: 24px; - font-weight: bold; - line-height: 1; - margin-top: 0; - margin-bottom: 20px; -} -.bs-docs-logo a { - color: #a4b4cb; - color: #333; - text-shadow: 0 1px 0 #555; -} -.bs-docs-logo a:hover { - color: #8e9db3; - color: #222; -} - - - /* Space out sub-sections more -------------------------------------------------- */ @@ -151,6 +76,11 @@ section { padding-top: 60px; } +section > .table { + font-size: 13px; +} + + /* Table of contents */ .bs-docs-contents li { line-height: 25px; diff --git a/docs/javascript.html b/docs/javascript.html index 90079292b4..b83612d52e 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -106,10 +106,13 @@ +

Individual or compiled

If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.

-

Data attributea

+ +

Data attributes

...

+

Programmatic API

...

@@ -126,8 +129,16 @@

Transitions bootstrap-transition.js

About transitions

-

For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.

-

* Required for animation in plugins

+

For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.

+

Use cases

+

A few examples of the transition plugin:

+ + @@ -139,11 +150,11 @@

Modals bootstrap-modal.js

-

About modals

+ +

About modals

A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.

-

Static example

-

Below is a statically rendered modal.

+

Static example

+
+<div class="modal hide fade">
+  <div class="modal-header">
+    <button type="button" class="close" data-dismiss="modal">&times;</button>
+    <h3>Modal header</h3>
+  </div>
+  <div class="modal-body">
+    <p>One fine body…</p>
+  </div>
+  <div class="modal-footer">
+    <a href="#" class="btn">Close</a>
+    <a href="#" class="btn btn-primary">Save changes</a>
+  </div>
+</div>
+
-

Live demo

+

Live demo

Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.

- -
Launch demo modal
-
-

Using bootstrap-modal

+
+ + +

Usage

Call the modal via javascript:

$('#myModal').modal(options)
+

Options

diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index d90184c7b8..38e38a9e43 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -29,10 +29,13 @@ +

{{_i}}Individual or compiled{{/i}}

{{_i}}If you have downloaded the latest version of Bootstrap, both bootstrap.js and bootstrap.min.js contain all of these plugins.{{/i}}

-

{{_i}}Data attributea{{/i}}

+ +

{{_i}}Data attributes{{/i}}

{{_i}}...{{/i}}

+

{{_i}}Programmatic API{{/i}}

{{_i}}...{{/i}}

@@ -50,8 +53,17 @@

{{_i}}Transitions{{/i}} bootstrap-transition.js

{{_i}}About transitions{{/i}}

-

{{_i}}For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.{{/i}}

-

* {{_i}}Required for animation in plugins{{/i}}

+

{{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.{{/i}}

+

{{_i}}Use cases{{/i}}

+

{{_i}}A few examples of the transition plugin:{{/i}}

+ + + {{! Ideas: include docs for .fade.in, .slide.in, etc }} @@ -63,11 +75,11 @@

{{_i}}Modals{{/i}} bootstrap-modal.js

-

{{_i}}About modals{{/i}}

+ +

{{_i}}About modals{{/i}}

{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}

-

{{_i}}Static example{{/i}}

-

{{_i}}Below is a statically rendered modal.{{/i}}

+

{{_i}}Static example{{/i}}

{{! /example }} +
+<div class="modal hide fade">
+  <div class="modal-header">
+    <button type="button" class="close" data-dismiss="modal">&times;</button>
+    <h3>{{_i}}Modal header{{/i}}</h3>
+  </div>
+  <div class="modal-body">
+    <p>{{_i}}One fine body…{{/i}}</p>
+  </div>
+  <div class="modal-footer">
+    <a href="#" class="btn">{{_i}}Close{{/i}}</a>
+    <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
+  </div>
+</div>
+
-

{{_i}}Live demo{{/i}}

+

{{_i}}Live demo{{/i}}

{{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}

- -
{{_i}}Launch demo modal{{/i}}
{{! /example }} -
-

{{_i}}Using bootstrap-modal{{/i}}

+
+ + +

{{_i}}Usage{{/i}}

{{_i}}Call the modal via javascript:{{/i}}

$('#myModal').modal(options)
+

{{_i}}Options{{/i}}