From f764aee4b919c28974dba7b91edac9a04172ba25 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 23 Jan 2012 14:14:16 -0800 Subject: add templates for doc generation --- docs/templates/layout.mustache | 144 +++ docs/templates/pages/base-css.mustache | 1427 +++++++++++++++++++++++++++++ docs/templates/pages/components.mustache | 1176 ++++++++++++++++++++++++ docs/templates/pages/index.mustache | 188 ++++ docs/templates/pages/javascript.mustache | 1299 ++++++++++++++++++++++++++ docs/templates/pages/less.mustache | 406 ++++++++ docs/templates/pages/scaffolding.mustache | 311 +++++++ docs/templates/pages/upgrading.mustache | 86 ++ 8 files changed, 5037 insertions(+) create mode 100644 docs/templates/layout.mustache create mode 100644 docs/templates/pages/base-css.mustache create mode 100644 docs/templates/pages/components.mustache create mode 100644 docs/templates/pages/index.mustache create mode 100644 docs/templates/pages/javascript.mustache create mode 100644 docs/templates/pages/less.mustache create mode 100644 docs/templates/pages/scaffolding.mustache create mode 100644 docs/templates/pages/upgrading.mustache (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache new file mode 100644 index 000000000..cc36a05ed --- /dev/null +++ b/docs/templates/layout.mustache @@ -0,0 +1,144 @@ + + + + + Bootstrap, from Twitter + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +{{>body}} + + + + +
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache new file mode 100644 index 000000000..3933c867d --- /dev/null +++ b/docs/templates/pages/base-css.mustache @@ -0,0 +1,1427 @@ + +
+

Base CSS

+

On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.

+
+ + + +
+ + +

Headings & body copy

+ + +
+
+

Typographic scale

+

The entire typographic grid is based on two Less variables in our preboot.less file: @baseFontSize and @baseLineHeight. The first is the base font-size used throughout and the second is the base line-height.

+

We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.

+
+
+

Example body text

+

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.

+

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui.

+
+
+
+

h1. Heading 1

+

h2. Heading 2

+

h3. Heading 3

+

h4. Heading 4

+
h5. Heading 5
+
h6. Heading 6
+
+
+
+ + +

Emphasis, address, and abbreviation

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ElementUsageOptional
+ <strong> + + For emphasizing a snippet of text with important + + None +
+ <em> + + For emphasizing a snippet of text with stress + + None +
+ <abbr> + + Wraps abbreviations and acronyms to show the expanded version on hover + + Include optional title for expanded text +
+ <address> + + For contact information for its nearest ancestor or the entire body of work + + Preserve formatting by ending all lines with <br> +
+ +
+
+

Using emphasis

+

Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.

+

Note: Feel free to use <b> and <i> in HTML5, but their usage has changed a bit. <b> is meant to highlight words or phrases without conveying additional importance while <i> is mostly for voice, technical terms, etc.

+
+
+

Example addresses

+

Here are two examples of how the <address> tag can be used:

+
+ Twitter, Inc.
+ 795 Folsom Ave, Suite 600
+ San Francisco, CA 94107
+ P: (123) 456-7890 +
+
+ Full Name
+ first.last@gmail.com +
+
+
+

Example abbreviations

+

Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.

+

HTML is the best thing since sliced bread.

+

An abbreviation of the word attribute is attr.

+
+
+ + + +

Blockquotes

+ + + + + + + + + + + + + + + + + + + + +
ElementUsageOptional
+ <blockquote> + + Block-level element for quoting content from another source + +

Add cite attribute for source URL

+ Use .pull-left and .pull-right classes for floated options +
+ <small> + + Optional element for adding a user-facing citation, typically an author with title of work + + Place the <cite> around the title or name of source +
+
+
+

To include a blockquote, wrap <blockquote> around any HTML as the quote. For straight quotes we recommend a <p>.

+

Include an optional <small> element to cite your source and you'll get an em dash &mdash; before it for styling purposes.

+
+
+
+<blockquote>
+  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
+  <small>Someone famous</small>
+</blockquote>
+
+
+
+ +

Example blockquotes

+
+
+

Default blockquotes are styled as such:

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

+ Someone famous in Body of work +
+
+
+

To float your blockquote to the right, add class="pull-right":

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.

+ Someone famous in Body of work +
+
+
+ + + +

Lists

+
+
+

Unordered

+

<ul>

+
    +
  • Lorem ipsum dolor sit amet
  • +
  • Consectetur adipiscing elit
  • +
  • Integer molestie lorem at massa
  • +
  • Facilisis in pretium nisl aliquet
  • +
  • Nulla volutpat aliquam velit +
      +
    • Phasellus iaculis neque
    • +
    • Purus sodales ultricies
    • +
    • Vestibulum laoreet porttitor sem
    • +
    • Ac tristique libero volutpat at
    • +
    +
  • +
  • Faucibus porta lacus fringilla vel
  • +
  • Aenean sit amet erat nunc
  • +
  • Eget porttitor lorem
  • +
+
+
+

Unstyled

+

<ul class="unstyled">

+
    +
  • Lorem ipsum dolor sit amet
  • +
  • Consectetur adipiscing elit
  • +
  • Integer molestie lorem at massa
  • +
  • Facilisis in pretium nisl aliquet
  • +
  • Nulla volutpat aliquam velit +
      +
    • Phasellus iaculis neque
    • +
    • Purus sodales ultricies
    • +
    • Vestibulum laoreet porttitor sem
    • +
    • Ac tristique libero volutpat at
    • +
    +
  • +
  • Faucibus porta lacus fringilla vel
  • +
  • Aenean sit amet erat nunc
  • +
  • Eget porttitor lorem
  • +
+
+
+

Ordered

+

<ol>

+
    +
  1. Lorem ipsum dolor sit amet
  2. +
  3. Consectetur adipiscing elit
  4. +
  5. Integer molestie lorem at massa
  6. +
  7. Facilisis in pretium nisl aliquet
  8. +
  9. Nulla volutpat aliquam velit
  10. +
  11. Faucibus porta lacus fringilla vel
  12. +
  13. Aenean sit amet erat nunc
  14. +
  15. Eget porttitor lorem
  16. +
+
+
+

Description

+

<dl>

+
+
Description lists
+
A description list is perfect for defining terms.
+
Euismod
+
Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.
+
Donec id elit non mi porta gravida at eget metus.
+
Malesuada porta
+
Etiam porta sem malesuada magna mollis euismod.
+
+
+
+ + + + +

Code Inline and block

+ + + + + + + + + + + + + + + + + + + + + +
ElementResult
<code>In a line of text like this, your wrapped code will look like this <html> element.
<pre> +
<div>
+  <h1>Heading</h1>
+  <p>Something right here...</p>
+</div>
+

Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.

+
<pre class="prettyprint"> +

Using the google-code-prettify library, you're blocks of code get a slightly different visual style and automatic syntax highlighting. You can also add an additional class to add line numbers.

+
<div>
+  <h1>Heading</h1>
+  <p>Something right here...</p>
+</div>
+
<div>
+  <h1>Heading</h1>
+  <p>Something right here...</p>
+</div>
+

Download google-code-prettify and view the readme for how to use.

+
+ + +

Inline labels for special attention

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LabelsMarkup
+ Default + + <span class="label">Default</span> +
+ New + + <span class="label success">New</span> +
+ Warning + + <span class="label warning">Warning</span> +
+ Important + + <span class="label important">Important</span> +
+ Notice + + <span class="label notice">Notice</span> +
+ +
+ + + + +
+ + +

Table markup

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TagDescription
+ <table> + + Wrapping element for displaying data in a tabular format +
+ <thead> + + Container element for table header rows (<tr>) to label table columns +
+ <tbody> + + Container element for table rows (<tr>) in the body of the table +
+ <tr> + + Container element for a set of table cells (<td> or <th>) that appears on a single row +
+ <td> + + Default table cell +
+ <th> + + Special table cell for column (or row, depending on scope and placement) labels
+ Must be used within a <thead> +
+ <caption> + + Description or summary of what the table holds, especially useful for screen readers +
+
+
+
+<table>
+  <thead>
+    <tr>
+      <th>...</th>
+      <th>...</th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr>
+      <td>...</td>
+      <td>...</td>
+    </tr>
+  </tbody>
+</table>
+
+
+
+ +

Table options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameClassDescription
DefaultNoneNo styles, just columns and rows
Basic + .table + Only horizontal lines between rows
Bordered + .table-bordered + Rounds corners and adds outter border
Zebra-stripe + .table-striped + Adds light gray background color to odd rows (1, 3, 5, etc)
Condensed + .table-condensed + Cuts vertical padding in half, from 8px to 4px, within all td and th elements
+ + +

Example tables

+ +

1. Default table styles

+
+
+

Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table class is required.

+
+<table class="table">
+  ...
+</table>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameLanguage
1MarkOttoCSS
2JacobThorntonJavascript
3StuDentHTML
+
+
+ + +

2. Striped table

+
+
+

Get a little fancy with your tables by adding zebra-striping—just add the .table-striped class.

+

Note: Sprited tables use the :nth-child CSS selector and is not available in IE7-IE8.

+
+<table class="table table-striped">
+  ...
+</table>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameLanguage
1MarkOttoCSS
2JacobThorntonJavascript
3StuDentHTML
+
+
+ + +

3. Bordered table

+
+
+

Add borders around the entire table and rounded corners for aesthetic purposes.

+
+<table class="table table-bordered">
+  ...
+</table>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameLanguage
1Mark OttoCSS
2JacobThorntonJavascript
3StuDent
3BrosefStalinHTML
+
+
+ + +

4. Condensed table

+
+
+

Make your tables more compact by adding the .table-condensed class to cut table cell padding in half (from 10px to 5px).

+
+<table class="table table-condensed">
+  ...
+</table>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameLanguage
1MarkOttoCSS
2JacobThorntonJavascript
3StuDentHTML
+
+
+ + + +

5. Striped table w/ TableSorter.js

+
+
+

Include the jQuery Tablesorter plugin and automaically get clear styles for sorted columns.

+
+<script src="jquery.tablesorter.js"></script>
+<script >
+  $(function() {
+    $("table#sortTableExample")
+    .tablesorter({
+      sortList: [[1,0]]
+    });
+  });
+</script>
+<table class="table table-striped">
+  ...
+</table>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameLanguage
1MarkOttoCSS
2JacobThorntonJavascript
3StuDentHTML
4BrosefStalinHTML
+

Styles for the Tablesorter, zebra striping, borders, and condensing may all compound in any variation to fit your needs.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#First NameLast NameLanguage
1MarkOttoCSS
2JacobThorntonJavascript
3StuDentHTML
4BrosefStalinHTML
+
+
+
+ + + + +
+ +
+
+

Flexible HTML and CSS

+

The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.

+

More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.

+
+
+

Four layouts included

+

Bootstrap comes with support for four types of form layouts:

+
    +
  • Vertical (default)
  • +
  • Search
  • +
  • Inline
  • +
  • Horizontal
  • +
+

Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.

+
+
+

Control states and more

+

Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.

+

States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.

+
+
+ +

Four types of forms

+

Bootstrap provides simple markup and styles for four styles of common web forms.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameClassDescription
Vertical (default).vertical-form (not required)Stacked, left-aligned labels over controls
Horizontal.form-horizontalFloat left, right-aligned labels on same line as controls
Inline.form-inlineLeft-aligned label and inline-block controls for compact style
Search.form-searchExtra-rounded text input for a typical search aesthetic
+ + +

Example forms using just form controls, no extra markup

+
+
+

Basic form

+

With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.

+
+ + + + +
+
+
+

Search form

+

Reflecting default WebKit styles, just add .form-search for extra rounded search fields.

+ +
+
+

Inline form

+

Inputs are block level to start. For .form-inline and .form-horizontal, we use inline-block.

+ +
+
+ +
+ +

Horizontal forms

+
+
+
+ Controls Bootstrap supports +
+ +
+ +

In addition to freeform text, any HTML5 text-based input appears like so.

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+
+
+
+

What's included

+

Shown on the left are all the default form controls we support. Here's the bulleted list:

+
    +
  • text inputs (text, password, email, etc)
  • +
  • checkbox
  • +
  • radio
  • +
  • select
  • +
  • multiple select
  • +
  • file input
  • +
  • textarea
  • +
+
+

New defaults with v2.0

+

Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.

+
+
+
+ +
+ +
+
+
+ Form control states +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + Something may have gone wrong +
+
+
+ +
+ + Please correct the error +
+
+
+ +
+ + Woohoo! +
+
+
+ + +
+
+
+
+
+

Redesigned browser states

+

Bootstrap features styles for browser-supported focused and disabled states. We remove the default Webkit outline and apply a box-shadow in it's place for :focus.

+
+

Form validation

+

It also includes validation styles for errors, warnings, and success. To use, add the a class to the surrounding .control-group.

+
+<fieldset
+  class="control-group error">
+  ...
+</fieldset>
+
+
+
+
+ +
+ +
+
+
+ Extending form controls +
+ +
+ + + +

Use the same .span* classes from the grid system for input sizes.

+
+
+
+ +
+
+ @ + +
+

Here's some help text

+
+
+
+ +
+
+ + .00 +
+

Here's more help text

+
+
+
+ +
+ + + +
+
+
+ +
+ + + +

Note: Labels surround all the options for much larger click areas and a more usable form.

+
+
+
+ +
+ + +
+
+
+ + +
+
+
+
+
+

Prepend & append inputs

+

Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.

+
+

Checkboxes and radios

+

Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <label class="checkbox"> that wraps the <input type="checkbox">.

+

Inline checkboxes and radios are also supported. Just add .inline to any .checkbox or .radio and you're done.

+
+
+
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ButtonClassDescription
Default.btnStandard gray button with gradient
Primary.primaryProvides extra visual weight and identifies the primary action in a set of buttons
Info.infoUsed as an alternate to the default styles
Success.successIndicates a successful or positive action
Danger.dangerIndicates a dangerous or potentially negative action
+ +
+
+

Buttons for actions

+

As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.

+
+
+

For anchors and forms

+

Button styles can be applied to anything with the .btn applied. However, typically you’ll want to apply these to only <a> and <button> elements.

+
+
+

Note: All buttons must include the .btn class. Button styles should be applied to <button> and <a> elements for consistency.

+
+
+ +
+
+

Multiple sizes

+

Fancy larger or smaller buttons? Have at it!

+

+ Primary action + Action +

+

+ Primary action + Action +

+
+
+

Disabled state

+

For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s .disabled for links and :disabled for <button> elements.

+

+ Primary action + Action +

+

+   +

+
+
+ +
+ +
+ + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + +
+
+
+

Light red background color is only used to show the dimensions of the icons in the docs.

+
+
+ +
+ +
+
+

Built as a sprite

+

Instead of making every icon an extra request, we've compiled them into a sprite—a bunch of images in one file that uses CSS to position the images with background-position. This is the same method we use on Twitter.com and it has worked well for us.

+

Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit. Please consider doing the same in your projects.

+
+
+

How to use

+

With v2.0.0, the <i> tag is essentially dedicated to iconography. To use the icons, you can place the follow code wherever you like one to appear:

+
+<i class="chevron-left"></i>
+
+

There are over 100 classes to choose from for your icons. Just add an <i> tag with the right class and you're set. You can find the full list in sprites.less or right here in this document.

+
+
+

Use cases

+

Icons are great, but where would one use them? Here are a few ideas:

+
    +
  • As visuals for your sidebar navigation
  • +
  • For a purely icon-driven nav
  • +
  • For buttons to help convey the meaning of an action
  • +
  • With links to share context on a user's destination
  • +
+

Essentially, anywhere you can put an <i> tag, you can put an icon.

+
+
+ +

Examples

+
+
+

Use them in buttons, or in button groups for a toolbar style presentation.

+

+ Refresh + Settings +

+
+
+ + + +
+
+ + + + +
+
+
+
+

Or, use them in navigation.

+ +
+
+
\ No newline at end of file diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache new file mode 100644 index 000000000..21ddf4747 --- /dev/null +++ b/docs/templates/pages/components.mustache @@ -0,0 +1,1176 @@ + +
+

Components

+

Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.

+
+ + + +
+ +
+
+

Button groups

+

Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.

+

You can also combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex projects.

+
+
+ Left + Middle + Right +
+
+
+
+
+ 1 + 2 + 3 + 4 +
+
+ 5 + 6 + 7 +
+
+ 8 +
+
+
+ +
+
+

Example markup

+

Here's how the HTML looks for a standard button group built with anchor tag buttons:

+
+<div class="btn-group">
+  <a class="btn" href="#">1</a>
+  <a class="btn" href="#">2</a>
+  <a class="btn" href="#">3</a>
+</div>
+
+

And with a toolbar for multiple groups:

+
+<div class="btn-toolbar">
+  <div class="btn-group">
+    ...
+  </div>
+</div>
+
+
+
+

Checkbox and radio flavors

+

Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.

+

Get the javascript »

+
+

Heads up

+

CSS for button groups is in a separate file, button-groups.less.

+
+
+
+ + + + +
+ +
+
+

Split button dropdowns

+

Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.

+ +
+
+

Example markup

+

Similar to a button group, our markup uses regular button markup, but with a handful of additions to refine the style and support Bootstrap's dropdown jQuery plugin.

+
+<div class="btn-group">
+  <a class="btn" href="#">Action</a>
+  <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
+    <span class="caret"></span>
+  </a>
+  <ul class="dropdown-menu">
+    <!-- dropdown menu links -->
+  </ul>
+</div>
+
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+ + +

Multi-page pagination

+
+
+

When to use

+

Ultra simplistic and minimally styled pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.

+

Stateful page links

+

Links are customizable and work in a number of circumstances with the right class. .disabled for unclickable links and .active for current page.

+

Flexible alignment

+

Add either of two optional classes to change the alignment of pagination links: .pagination-centered and .pagination-right.

+
+
+

Examples

+

The default pagination component is flexible and works in a number of variations.

+ + + + +
+
+

Markup

+

Wrapped in a <div>, pagination is just a <ul>.

+
+<div class="pagination">
+  <ul>
+    <li><a href="#">Prev</a></li>
+    <li class="active">
+      <a href="#">1</a>
+    </li>
+    <li><a href="#">2</a></li>
+    <li><a href="#">3</a></li>
+    <li><a href="#">4</a></li>
+    <li><a href="#">Next</a></li>
+  </ul>
+</div>
+
+
+
+ +

Pager For quick previous and next links

+
+
+

About pager

+

The pager component is a set of links for simple pagination implemenations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.

+
+
+

Default example

+

By default, the pager centers links.

+ +
+<ul class="pager">
+  <li>
+    <a href="#">Previous</a>
+  </li>
+  <li>
+    <a href="#">Next</a>
+  </li>
+</ul>
+
+
+
+

Aligned links

+

Alternatively, you can align each link to the sides:

+ +
+<ul class="pager">
+  <li class="previous">
+    <a href="#">&larr; Older</a>
+  </li>
+  <li class="next">
+    <a href="#">Newer &rarr;</a>
+  </li>
+</ul>
+
+
+
+
+ + + + +
+ + +
+
+

Default thumbnails

+

By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.

+ +
+
+

Highly customizable

+

With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.

+
    +
  • +
    + +
    +
    Thumbnail label
    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    Action Action

    +
    +
    +
  • +
  • +
    + +
    +
    Thumbnail label
    +

    Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

    +

    Action Action

    +
    +
    +
  • +
+
+
+ +
+
+

Why use thumbnails

+

Thumbnails (previously .media-grid up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.

+
+
+

Simple, flexible markup

+

Thumbnail markup is simple—a ul with any number of li elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.

+
+
+

Uses grid column sizes

+

Lastly, the thumbnails component uses existing grid system classes—like .span2 or .span3—for control of thumbnail dimensions.

+
+
+ +
+
+

The markup

+

As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:

+
+<ul class="thumbnails">
+  <li class="span3">
+    <a href="#" class="thumbnail">
+      <img src="http://placehold.it/210x150" alt="">
+    </a>
+  </li>
+  ...
+</ul>
+
+

For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a> for a <div> like so:

+
+<ul class="thumbnails">
+  <li class="span3">
+    <div class="thumbnail">
+      <img src="http://placehold.it/210x150" alt="">
+      <h5>Thumbnail label</h5>
+      <p>Thumbnail caption right here...</p>
+    </div>
+  </li>
+  ...
+</ul>
+
+
+
+

More examples

+

Explore all your options with the various grid classes available to you. You can also mix and match different sizes.

+ +
+
+ +
+ + + + +
+ + +

Lightweight defaults

+
+
+

Rewritten base class

+

With Bootstrap 2, we've simplified the base class: .alert instead of .alert-message. We've also reduced the minimum required markup—no <p> is required by default, just the outter <div>.

+

Single alert message

+

For a more durable component with less code, we've removed the differentiating look for block alerts, messages that come with more padding and typically more text. The class also has changed to .alert-block.

+
+

Goes great with javascript

+

Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.

+

Get the plugin »

+
+
+

Example alerts

+

Wrap your message and an optional close icon in a div with simple class.

+
+ × + Warning! Best check yo self, you’re not looking too good. +
+
+<div class="alert">
+  <a class="close">×</a>
+  <strong>Warning!</strong> Best check yo self, you’re not looking too good.
+</div>
+
+

Easily extend the standard alert message with two optional classes: .alert-block for more padding and text controls and .alert-heading for a matching heading.

+
+ × +

Warning!

+

Best check yo self, you’re not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

+
+
+<div class="alert alert-block">
+  <a class="close">×</a>
+  <h4 class="alert-heading">Warning!</h4>
+  Best check yo self, you’re not...
+</div>
+
+
+
+ +

Contextual alternatives Add optional classes to change an alert's connotation

+
+
+

Error or danger

+
+ × + Oh snap! Change a few things up and try submitting again. +
+
+<div class="alert alert-error">
+  ...
+</div>
+
+
+
+

Success

+
+ × + Well done! You successfully read this important alert message. +
+
+<div class="alert alert-success">
+  ...
+</div>
+
+
+
+

Information

+
+ × + Heads up! This alert needs your attention, but it’s not super important. +
+
+<div class="alert alert-info">
+  ...
+</div>
+
+
+
+ +
+ + + + +
+ + +

Examples and markup

+
+
+

Basic

+

Default progress bar with a vertical gradient.

+
+
+
+
+<div class="progress">
+  <div class="bar"
+       style="width: 60%;"></div>
+</div>
+
+
+
+

Striped

+

Uses a gradient to create a striped effect.

+
+
+
+
+<div class="progress info
+     striped">
+  <div class="bar"
+       style="width: 20%;"></div>
+</div>
+
+
+
+

Animated

+

Takes the striped example and animates it.

+
+
+
+
+<div class="progress danger
+     striped active">
+  <div class="bar"
+       style="width: 40%;"></div>
+</div>
+
+
+
+ +

Options and browser support

+
+
+

Additional colors

+

Progress bars utilize some of the same classes as buttons and alert messages for quick styling.

+
    +
  • .info
  • +
  • .success
  • +
  • .danger
  • +
+

Alternatively, you can customize the LESS files and roll your own colors and sizes.

+
+
+

Behavior

+

Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.

+

If you use the .active class, your .striped progress bars will animate the stripes left to right.

+
+
+

Browser support

+

Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.

+

Opera does not support animations at this time.

+
+
+ +
\ No newline at end of file diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache new file mode 100644 index 000000000..f07116a5a --- /dev/null +++ b/docs/templates/pages/index.mustache @@ -0,0 +1,188 @@ +
+ + +
+
+

Bootstrap,
from Twitter

+

Bootstrap is a responsive frontend toolkit from Twitter designed to kickstart web development, featuring HTML, CSS, and JS for dozens of base elements and common design components.

+

+ Download on GitHub + Get started → +

+ +
+

Feature highlights

+
    +
  • × Built on LESS
  • +
  • × Complete styleguide docs
  • +
  • × Fully responsive design
  • +
  • × Small footprint (7kb gzipped)
  • +
  • × Support for IE7 and up
  • +
  • × Custom jQuery plugins
  • +
  • × Dozens of components
  • +
+
+
+
+ + + + +
+

Built with Bootstrap.

+ + + +

Designed for everyone, everywhere.

+ +
+
+ +

Built for and by nerds

+

Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.

+
+
+ +

For all skill levels

+

Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.

+
+
+ +

Cross-everything

+

Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.

+
+
+
+
+ +

12-column grid

+

Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.

+
+
+ +

Responsive design

+

With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.

+
+
+ +

Styleguide docs

+

Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.

+
+
+
+
+ +

Growing library

+

Despite being only 7kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.

+
+
+ +

Custom jQuery plugins

+

What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.

+
+
+ +

Built on LESS

+

Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.

+
+
+
+
+ +

HTML5

+

Built to support new HTML5 elements and syntax.

+
+
+ +

CSS3

+

Progressively enhanced components for ultimate style.

+
+
+ +

Open-source

+

Built for and maintained by the community via GitHub.

+
+
+ +

Made at Twitter

+

Brought to you by an experienced engineer and designer.

+
+
+ + + +

Get started in no time.

+ + + + + + + + + +
+

Hotlink the CSS

+

For the quickest and easiest start, just copy this snippet into your webpage.

+
+ +
+
+

Use it with LESS

+

A fan of using LESS? No problem, just clone the repo and add these lines:

+
+ +
+
+

Fork on GitHub

+

Download, fork, pull, file issues, and more with the Bootstrap GitHub repo.

+

Bootstrap on GitHub »

+

Currently v2.0.0

+
+
+
\ No newline at end of file diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache new file mode 100644 index 000000000..aefe87846 --- /dev/null +++ b/docs/templates/pages/javascript.mustache @@ -0,0 +1,1299 @@ + +
+

Javascript for Bootstrap

+

Bring Bootstrap's components to life—now with 12 custom jQuery plugins. +

+ + + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ Select/Unselect All Plugins +

Note: All plugins require the latest version of jQuery to be included.

+
+ + + + +
+ +
+
+

About modals

+

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

+ Download file +
+
+

Static example

+

Below is a statically rendered modal.

+
+ +
+ +

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

+

Call the modal via javascript:

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

Options

+ + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
backdropbooleantrueIncludes a modal-backdrop element
keyboardbooleantrueCloses the modal when escape key is pressed
+

Markup

+

You can activate modals on your page easily without having to write a single line of javascript. Just set data-toggle="modal" on a controller element with a data-target="#foo" or href="#foo" which corresponds to a modal element id, and when clicked, it will launch your modal.

+

Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.

+
+<a class="btn" data-toggle="modal" href="#myModal" >Launch Modal</a>
+
+ +
+<div class="modal">
+<div class="modal-header">
+<a href="#" class="close js-dismiss">×</a>
+<h3>Modal header</h3>
+</div>
+<div class="modal-body">
+<p>One fine body…</p>
+</div>
+<div class="modal-footer">
+<a href="#" class="btn primary">Save changes</a>
+<a href="#" class="btn">Close</a>
+</div>
+</div>
+
+

Notice If you want your modal to animate in and out, just add a .fade class to the .modal element (refer to the demo to see this in action).

+

Methods

+

.modal(options)

+

Activates your content as a modal. Accepts an optional options object. +

+$('#myModal').modal({
+keyboard: false
+})
+

.modal('toggle')

+

Manually toggles a modal.

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

.modal('show')

+

Manually opens a modal.

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

.modal('hide')

+

Manually hides a modal.

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

Events

+

Bootstrap's modal class exposes a few events for hooking into modal functionality.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
EventDescription
showThis event fires immediately when the show instance method is called.
shownThis event is fired when the modal has been made visible to the user (will wait for css transitions to complete).
hideThis event is fired immediately when the hide instance method has been called.
hiddenThis event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).
+ +
+$('#myModal').on('hidden', function () {
+// do something ...
+})
+
+
+
+ + + + + + + + + +
+ +
+
+

The ScrollSpy plugin is for automatically updating nav targets based on scroll position.

+ Download file +
+
+

Example navbar with scrollspy

+

Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!

+ +
+

@fat

+

+ Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. +

+

@mdo

+

+ Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt. +

+

one

+

+ Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone. +

+

two

+

+ In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt. +

+

three

+

+ Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. +

+

Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. +

+
+
+

Using bootstrap-scrollspy.js

+

Call the scrollspy via javascript:

+
$('#navbar').scrollspy()
+

Markup

+

To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body). +

<body data-spy="scroll" >...</body>
+

Notice Navbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>. +

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
offsetnumber10Pixels to offset from top when calculating position of scroll.
+
+
+
+ + + + +
+ +
+
+

This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.

+ Download file +
+
+

Example tabs

+

Click the tabs below to toggle between hidden panes, even via dropdown menus.

+ +
+
+

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

+
+
+

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

+
+ + +
+
+

Using bootstrap-tab.js

+

Enable tabbable tabs via javascript:

+
$('#myTab').tab('show')
+

Markup

+

You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element.

+
+<ul class="tabs">
+<li><a href="#home" data-toggle="tab">Home</a></li>
+<li><a href="#profile" data-toggle="tab">Profile</a></li>
+<li><a href="#messages" data-toggle="tab">Messages</a></li>
+<li><a href="#ettings" data-toggle="tab">Settings</a></li>
+</ul>
+

Methods

+

$().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. +

+
+<ul class="tabs">
+<li class="active"><a href="#home">Home</a></li>
+<li><a href="#profile">Profile</a></li>
+<li><a href="#messages">Messages</a></li>
+<li><a href="#settings">Settings</a></li>
+</ul>
+
+<div class="tab-content">
+<div class="active" id="home">...</div>
+<div id="profile">...</div>
+<div id="messages">...</div>
+<div id="settings">...</div>
+</div>
+
+<script>
+$(function () {
+$('.tabs a:last').tab('show')
+})
+</script>
+

+

Events

+ + + + + + + + + + + + + + + + + +
EventDescription
showThis event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shownThis event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
+ +
+$('a[data-toggle="tab"]').on('shown', function (e) {
+e.target // activated tab
+e.relatedTarget // previous tab
+})
+
+
+
+ + + +
+ +
+
+

About Tooltips

+

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.

+ Download file +
+
+

Example use of Tooltips

+

Hover over the links below to see tooltips:

+
+

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. +

+
+
+

Using bootstrap-tooltip.js

+

Trigger the tooltip via javascript:

+
$('#example').tooltip(options)
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
animationbooleantrueapply a css fade transition to the tooltip
placementstring'top'how to position the tooltip - top | bottom | left | right
selectorstringfalseIf a selector is provided, tooltip objects will be delegated to the specified targets.
titlestring | function''default title value if `title` tag isn't present
triggerstring'hover'how tooltip is triggered - hover | focus | manual
delaynumber | object0 +

delay showing/hiding the tooltip (ms)

+

If a number is supplied, delay is applied to both hide/show

+

Object structure is: delay: { show: 500, hide: 100 }

+
+

Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.

+

Markup

+

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

+

Methods

+

$().tooltip(options)

+

Attaches a tooltip handler to an element collection.

+

.tooltip('show')

+

Reveals an elements tooltip.

+
$('#element').tooltip('show')
+

.tooltip('hide')

+

Hides an elements tooltip.

+
$('#element').tooltip('hide')
+
+
+
+ + + + +
+ +
+
+

About popovers

+

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

+

* Requires Tooltip to be included

+ Download file +
+
+

Example hover popover

+

Hover over the button to trigger the popover.

+ +
+

Using bootstrap-popover.js

+

Enable popovers via javascript:

+
$('#example').popover(options)
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
animationbooleantrueapply a css fade transition to the tooltip
placementstring'right'how to position the popover - top | bottom | left | right
selectorstringfalseif a selector is provided, tooltip objects will be delegated to the specified targets
triggerstring'hover'how tooltip is triggered - hover | focus | manual
titlestring | function''default title value if `title` attribute isn't present
contentstring | function''default content value if `data-content` attribute isn't present
delaynumber | object0 +

delay showing/hiding the popover (ms)

+

If a number is supplied, delay is applied to both hide/show

+

Object structure is: delay: { show: 500, hide: 100 }

+
+

Notice Individual popover instance options can alternatively be specified through the use of data attributes.

+

Markup

+

+ For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option. +

+

Methods

+

$().popover(options)

+

Initializes popovers for an element collection.

+

.popover('show')

+

Reveals an elements popover.

+
$('#element').popover('show')
+

.popover('hide')

+

Hides an elements popover.

+
$('#element').popover('hide')
+
+
+
+ + + + +
+ +
+
+

About alerts

+

The alert plugin is a tiny class for adding close functionality to alerts.

+ Download +
+
+

Example alerts

+

The alerts plugin works on regular alert messages, and block messages.

+
+ × + Holy guacamole! Best check yo self, you’re not looking too good. +
+
+ × +

Oh snap! You got an error!

+

Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

+

+ Take this action Or do this +

+
+
+

Using bootstrap-alerts.js

+

Enable dismissal of an alert via javascript:

+
$(".alert-message").alert()
+

Markup

+

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

+
<a class="close" data-dismiss="alert" href="#">&times;</a>
+

Methods

+

$().alert()

+

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.

+

.alert('close')

+

Closes an alert.

+
$(".alert-message").alert('close')
+

Events

+

Bootstrap's alert class exposes a few events for hooking into alert functionality.

+ + + + + + + + + + + + + + + + + +
EventDescription
closeThis event fires immediately when the close instance method is called.
closedThis event is fired when the alert has been closed (will wait for css transitions to complete).
+
+$('#my-alert').bind('closed', function () {
+// do something ...
+})
+
+
+
+ + + + +
+ +
+
+

About

+

Do more with buttons. Control button states or create groups of buttons for more components like toolbars.

+ Download file +
+
+

Example uses

+

Use the buttons plugin for states and toggles.

+ + + + + + + + + + + + + + + + + + + +
Stateful + +
Single toggle + +
Checkbox +
+ + + +
+
Radio +
+ + + +
+
+
+

Using bootstrap-button.js

+

Enable buttons via javascript:

+
$('.tabs').button()
+

Markup

+

Data attributes are integral to the button plugin. Check out the example code below for the various markup types.

+
+<!-- Add data-toggle="button" to activate toggling on a single button -->
+<button class="btn" data-toggle="button">Single Toggle</button>
+
+<!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group -->
+<div class="btn-group" data-toggle="buttons-checkbox">
+<button class="btn">Left</button>
+<button class="btn">Middle</button>
+<button class="btn">Right</button>
+</div>
+
+<!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group -->
+<div class="btn-group" data-toggle="buttons-radio">
+<button class="btn">Left</button>
+<button class="btn">Middle</button>
+<button class="btn">Right</button>
+</div>
+
+

Methods

+

$().button('toggle')

+

Toggles push state. Gives btn the look that it's been activated.

+

Notice You can enable auto toggling of a button by using the data-toggle attribute.

+
<button class="btn" data-toggle="button" >...</button>
+

$().button('loading')

+

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. +

+
<button class="btn" data-loading-text="loading stuff..." >...</button>
+

+ Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off". More info can be found here. +

+

$().button('reset')

+

Resets button state - swaps text to original text.

+

$().button(string)

+

Resets button state - swaps text to any data defined text state.

+
<button class="btn" data-complete-text="finished!" >...</button>
+<script>
+$('.btn').button('complete')
+</script>
+
+
+
+ + + + +
+ +
+
+

About

+

Get base styles and flexible support for collapsible components like accordions and navigation.

+ Download file +
+
+

Example accordion

+

Using the collapse plugin, we built a simple accordion style widget:

+ +
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
+
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
+
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
+
+
+ + +
+

Using bootstrap-collapse.js

+

Enable via javascript:

+
$(".collapse").collapse()
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
parentselectorfalseIf selector then all collapsible elements under the specified parent will be closed when this collasabile item is shown. (similar to traditional accordion behavior)
togglebooleantrueToggles the collapsible element on invocation
+

Markup

+

Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.

+
+<button class="btn danger" data-toggle="collapse" data-target="#demo">
+simple collapsible
+</button>
+
+<div id="demo" class="collapse in"> … </div>
+

Notice To add accordion like group management to a collapsible control just add the additional data attribute data-parent="#selector". Refer to the demo below to see this in action.

+

Methods

+

.collapse(options)

+

Activates your content as a collapsible element. Accepts an optional options object. +

+$('#myCollapsible').collapse({
+toggle: false
+})
+

.collapse('toggle')

+

Toggles a collapsible element to shown or hidden.

+

.collapse('show')

+

Shows a collapsible element.

+

.collapse('hide')

+

Hides a collapsible element.

+

Events

+

+ Bootstrap's collapse class exposes a few events for hooking into collapse functionality. +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
EventDescription
showThis event fires immediately when the show instance method is called.
shownThis event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).
hide + This event is fired immediately when the hide method has been called. +
hiddenThis event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).
+ +
+$('#myCollapsible').on('hidden', function () {
+// do something ...
+})
+
+
+
+ + + + + + + + + +
+ +
+
+

About

+

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

+ Download file +
+
+

Example

+

Start typing in the field below to show the typeahead results.

+
+ +
+
+

Using bootstrap-typeahead.js

+

Call the typeahead via javascript:

+
$('.typeahead').typeahead()
+

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
itemsnumber8The max number of items to display in the dropdown.
+ +

Markup

+

Add data attributes to register an element with typeahead functionality.

+
+<input type="text" data-provide="typeahead">
+
+
+
+
\ No newline at end of file diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache new file mode 100644 index 000000000..568e857be --- /dev/null +++ b/docs/templates/pages/less.mustache @@ -0,0 +1,406 @@ + +
+

Using LESS with Bootstrap

+

Customize and extend Bootstrap with LESS, a CSS preprocessor, to take advantage of the variables, mixins, and more used to build Bootstrap's CSS.

+
+ + + + + +
+
+

Why LESS?

+

Bootstrap is made with LESS at it's core, a dynamic stylesheet language created by Alexis Sellier. It makes developing systems-based CSS faster, easier, and more fun.

+
+
+

What's included?

+

As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.

+
+
+

Learn more

+ LESS CSS +

Visit the official website at http://lesscss.org to learn more.

+
+
+
+
+

Variables

+

Managing colors and pixel values in CSS can be a bit of a pain, usually full of copy and paste. Not with LESS though—assign colors or pixel values as variables and change them once.

+
+
+

Mixins

+

Those three border-radius declarations you need to make in regular ol' CSS? Now they're down to one line with the help of mixins, snippets of code you can reuse anywhere.

+
+
+

Operations

+

Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiple, divide, add, and subtract your way to CSS sanity.

+
+
+ + + + + + +

Hyperlinks

+ + + + + + + + + + + + + + + + + + + + +
VariableValueUsage
@linkColor#0069d6Default link text color
@linkColorHoverdarken(@linkColor, 15)Default link text hover color
+ +
+
+

Grayscale colors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
@black#000
@grayDarklighten(@black, 25%)
@graylighten(@black, 50%)
@grayLightlighten(@black, 75%)
@grayLighterlighten(@black, 90%)
@white#fff
+
+
+

Accent colors

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@blue#049CDB
@green#46a546
@red#9d261d
@yellow#ffc40d
@orange#f89406
@pink#c3325f
@purple#7a43b6
+
+
+ +
+
+

Grid system

+ + + + + + + + + + + + + + + + + + + +
@gridColumns12
@gridColumnWidth60px
@gridGutterWidth20px
@siteWidth(@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1))
+
+
+

Typography

+ + + + + + + + + + + + + + + + +
@baseFontSize13px
@baseFontFamily"Helvetica Neue", Helvetica, Arial, sans-serif
@baseLineHeight18px
+
+
+ +
+
+

Visuals

+
+
+ + + + + + + + +
@primaryButtonColor@blue
+
+
+ + + + + + + + + + + + + + + + + + + +
+ +
+
+

Bootstrap was built with Preboot, an open-source pack of mixins and variables to be used in conjunction with Less, a CSS preprocessor for faster and easier web development.

+

Check out how we used Preboot in Bootstrap and how you can make use of it should you choose to run Less on your next project.

+
+
+

How to use it

+

Use this option to make full use of Bootstrap’s Less variables, mixins, and nesting in CSS via javascript in your browser.

+
+<link rel="stylesheet/less" href="less/bootstrap.less" media="all" />
+<script src="js/less-1.1.3.min.js"></script>
+

Not feeling the .js solution? Try the Less Mac app or use Node.js to compile when you deploy your code.

+ +

What’s included

+

Here are some of the highlights of what’s included in Twitter Bootstrap as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.

+

Variables

+

Variables in Less are perfect for maintaining and updating your CSS headache free. When you want to change a color value or a frequently used value, update it in one spot and you’re set.

+
+// Links
+@linkColor:         #8b59c2;
+@linkColorHover:    darken(@linkColor, 10);
+
+// Grays
+@black:             #000;
+@grayDark:          lighten(@black, 25%);
+@gray:              lighten(@black, 50%);
+@grayLight:         lighten(@black, 70%);
+@grayLighter:       lighten(@black, 90%);
+@white:             #fff;
+
+// Accent Colors
+@blue:              #08b5fb;
+@green:             #46a546;
+@red:               #9d261d;
+@yellow:            #ffc40d;
+@orange:            #f89406;
+@pink:              #c3325f;
+@purple:            #7a43b6;
+
+// Baseline grid
+@basefont:          13px;
+@baseline:          18px;
+
+ +

Commenting

+

Less also provides another style of commenting in addition to CSS’s normal /* ... */ syntax.

+
+// This is a comment
+/* This is also a comment */
+
+ +

Mixins up the wazoo

+

Mixins are basically includes or partials for CSS, allowing you to combine a block of code into one. They’re great for vendor prefixed properties like box-shadow, cross-browser gradients, font stacks, and more. Below is a sample of the mixins that are included with Bootstrap.

+

Font stacks

+
+#font {
+  .shorthand(@weight: normal, @size: 14px, @lineHeight: 20px) {
+    font-size: @size;
+    font-weight: @weight;
+    line-height: @lineHeight;
+  }
+  .sans-serif(@weight: normal, @size: 14px, @lineHeight: 20px) {
+    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+    font-size: @size;
+    font-weight: @weight;
+    line-height: @lineHeight;
+  }
+  ...
+}
+
+

Gradients

+
+#gradient {
+  ...
+  .vertical (@startColor: #555, @endColor: #333) {
+    background-color: @endColor;
+    background-repeat: repeat-x;
+    background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); // Konqueror
+    background-image: -moz-linear-gradient(@startColor, @endColor); // FF 3.6+
+    background-image: -ms-linear-gradient(@startColor, @endColor); // IE10
+    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @startColor), color-stop(100%, @endColor)); // Safari 4+, Chrome 2+
+    background-image: -webkit-linear-gradient(@startColor, @endColor); // Safari 5.1+, Chrome 10+
+    background-image: -o-linear-gradient(@startColor, @endColor); // Opera 11.10
+    background-image: linear-gradient(@startColor, @endColor); // The standard
+  }
+  ...
+}
+
+ +

Operations

+

Get fancy and perform some math to generate flexible and powerful mixins like the one below.

+
+// Griditude
+@gridColumns:       16;
+@gridColumnWidth:   40px;
+@gridGutterWidth:   20px;
+@siteWidth:         (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
+
+// Make some columns
+.columns(@columnSpan: 1) {
+  width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
+}
+
+ +

Compiling Less

+

After modifying the .less files in /lib/, you'll need to recompile them in order to regenerate the bootstrap-*.*.*.css and bootstrap-*.*.*.min.css files. If you're submitting a pull request to GitHub, you must always recompile.

+

Ways to compile

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodSteps
Node with makefile +

Install the LESS command line compiler with npm by running the following command:

+
$ npm install less
+

Once installed just run make from the root of your bootstrap directory and you're all set.

+

Additionally, if you have watchr installed, you may run make watch to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).

+
Javascript +

Download the latest Less.js and include the path to it (and Bootstrap) in the <head>.

+
+<link rel="stylesheet/less" href="/path/to/bootstrap.less">
+<script src="/path/to/less.js"></script>
+
+

To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.

+
Command line +

Install the LESS command line tool via Node and run the following command:

+
$ lessc ./lib/bootstrap.less > bootstrap.css
+

Be sure to include --compress in that command if you're trying to save some bytes!

+
Unofficial Mac app +

The unofficial Mac app watches directories of .less files and compiles the code to local files after every save of a watched .less file.

+

If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.

+
CrunchCrunch is a great looking LESS editor and compiler built on Adobe Air.
CodeKitCreated by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.
SimplessMac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the source code is on GitHub.
+
+
+ +
\ No newline at end of file diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache new file mode 100644 index 000000000..567ac6d0d --- /dev/null +++ b/docs/templates/pages/scaffolding.mustache @@ -0,0 +1,311 @@ + + +
+

Scaffolding

+

Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.

+
+ + + + +
+ + +

Default 940px grid

+
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
+
+
4
+
4
+
4
+
+
+
4
+
8
+
+
+
6
+
6
+
+
+
12
+
+ +
+
+

The default grid system provided as part of Bootstrap is a 940px-wide, 12-column grid.

+

It also has three responsive variations for various devices and resolutions: phone, tablet, and large widescreen desktops.

+
+
+
+<div class="row">
+  <div class="span4">...</div>
+  <div class="span8">...</div>
+</div>
+
+
+
+

As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.

+
+
+ +

Offsetting columns

+
+
4
+
4 offset 4
+
+
+
3 offset 3
+
3 offset 3
+
+
+
8 offset 4
+
+ +
+ +

Nesting columns

+
+
+

With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new .row and set of .span* columns within an existing .span* column.

+

Example

+
+
+ Level 1 of column +
+
+ Level 2 +
+
+ Level 2 +
+
+
+
+
+
+
+<div class="row">
+  <div class="span12">
+    Level 1 of column
+    <div class="row">
+      <div class="span6">Level 2</div>
+      <div class="span6">Level 2</div>
+    </div>
+  </div>
+</div>
+
+
+
+ +

Grid customization

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableDefault valueDescription
@gridColumns12Number of columns
@gridColumnWidth60pxWidth of each column
@gridGutterWidth20pxNegative space between columns
@siteWidthComputed sum of all columns and guttersCounts number of columns and gutters to set width of the .fixed-container() mixin
+
+
+

Variables in LESS

+

Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.

+
+
+

How to customize

+

Modifying the grid means changing the three @grid* variables and recompiling Bootstrap. Change the grids in the preboot.less file and use one of the four ways documented to recompile.

+
+
+

Staying responsive

+

Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.

+
+
+ +
+ + + + +
+ + +
+
+

Fixed layout

+

The default and simple 940px-wide, centered layout for just about any website or page provided by a single <div class="container">.

+
+
+
+
+<body>
+  <div class="container">
+    ...
+  </div>
+</body>
+
+
+
+

Fluid layout

+

<div class="fluid-container"> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.

+
+
+
+
+
+<body>
+  <div class="fluid-container sidebar-left">
+    <div class="fluid-sidebar">
+      ...
+    </div>
+    <div class="fluid-content">
+      ...
+    </div>
+  </div>
+</body>
+
+
+
+
+ + + + + +
+ + +
+
+ Responsive devices +
+
+

Supported devices

+

Bootstrap supports a handful of media queries to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LabelLayout widthColumn widthGutter width
Smartphones480px and belowFluid columns, no fixed widths
Portrait tablets480px to 768pxFluid columns, no fixed widths
Landscape tablets768px to 940px44px20px
Default940px and up60px20px
Large display1210px and up70px30px
+ +

What they do

+

Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.

+
    +
  • Modify the width of column in our grid
  • +
  • Stack elements instead of float wherever necessary
  • +
  • Resize headings and text to be more appropriate for devices
  • +
+
+
+ +
+ + +

Using the media queries

+
+
+

Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:

+
    +
  1. Use the compiled responsive version, bootstrap.reponsive.css
  2. +
  3. Add @import "responsive.less" and recompile Bootstrap
  4. +
  5. Compile responsive.less as a separate file and include that
  6. +
+

Why not just include it? Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.

+
+
+
+  // Landscape phones and down
+  @media (max-width: 480px) { ... }
+
+  // Landscape phone to portrait tablet
+  @media (min-width: 480px) and (max-width: 768px) { ... }
+
+  // Portrait tablet to landscape and desktop
+  @media (min-width: 768px) and (max-width: 940px) { ... }
+
+  // Large desktop
+  @media (min-width: 1210px) { .. }
+
+
+
+
\ No newline at end of file diff --git a/docs/templates/pages/upgrading.mustache b/docs/templates/pages/upgrading.mustache new file mode 100644 index 000000000..a243d6ad5 --- /dev/null +++ b/docs/templates/pages/upgrading.mustache @@ -0,0 +1,86 @@ + +
+

Upgrading to Bootstrap 2

+

Learn about significant changes and additions since v1.4 with this handy guide.

+
+ + +

Rough outline

+ + + \ No newline at end of file -- cgit v1.2.3 From b4b1ef68398b68dcdfa29465d06cd76d6bf2c49d Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 23 Jan 2012 15:17:32 -0800 Subject: rebuild with new templates --- docs/templates/layout.mustache | 79 +- docs/templates/pages/base-css.mustache | 7 + docs/templates/pages/components.mustache | 26 +- docs/templates/pages/index.mustache | 356 ++--- docs/templates/pages/javascript.mustache | 2338 +++++++++++++++-------------- docs/templates/pages/scaffolding.mustache | 18 +- docs/templates/pages/upgrading.mustache | 12 +- 7 files changed, 1412 insertions(+), 1424 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index cc36a05ed..eccc67974 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -27,79 +27,30 @@ - \ No newline at end of file diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index aefe87846..93789cc03 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1,1299 +1,1313 @@ - -
-

Javascript for Bootstrap

-

Bring Bootstrap's components to life—now with 12 custom jQuery plugins. -

+ +
+

Javascript for Bootstrap

+

Bring Bootstrap's components to life—now with 12 custom jQuery plugins. +

+
- -
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-
-
- Download Source - - - - + +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ -
-
-
- Select/Unselect All Plugins -

Note: All plugins require the latest version of jQuery to be included.

-
+
+ Select/Unselect All Plugins +

Note: All plugins require the latest version of jQuery to be included.

+ - -
- -
-
-

About modals

-

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

- Download file -
-
-

Static example

-

Below is a statically rendered modal.

-
- -
+ + + - - +

Methods

+

$().dropdown()

+

+ A programatic api for activating menus for a given navbar or tabbed navigation. +

+ + + - -
- -
-
-

The ScrollSpy plugin is for automatically updating nav targets based on scroll position.

- Download file -
-
-

Example navbar with scrollspy

-

Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!

- +
+

@fat

+

+ Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. +

+

@mdo

+

+ Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt. +

+

one

+

+ Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone. +

+

two

+

+ In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt. +

+

three

+

+ Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. +

+

Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. +

+
+
+

Using bootstrap-scrollspy.js

+

Call the scrollspy via javascript:

+
$('#navbar').scrollspy()
+

Markup

+

To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body). +

<body data-spy="scroll" >...</body>
+

Notice Navbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>. +

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
offsetnumber10Pixels to offset from top when calculating position of scroll.
-
-

@fat

-

- Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. -

-

@mdo

-

- Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt. -

-

one

-

- Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone. -

-

two

-

- In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt. -

-

three

-

- Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat. -

-

Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. -

-
-
-

Using bootstrap-scrollspy.js

-

Call the scrollspy via javascript:

-
$('#navbar').scrollspy()
-

Markup

-

To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body). -

<body data-spy="scroll" >...</body>
-

Notice Navbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>. -

Options

- - - - - - - - - - - - - - - - - -
Nametypedefaultdescription
offsetnumber10Pixels to offset from top when calculating position of scroll.
- - -
+ - -
- -
-
-

This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.

- Download file -
-
-

Example tabs

-

Click the tabs below to toggle between hidden panes, even via dropdown menus.

- -
-
-

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

-
-
-

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

-
- - + +
+ -
-

Using bootstrap-tab.js

-

Enable tabbable tabs via javascript:

-
$('#myTab').tab('show')
-

Markup

-

You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element.

+
+
+

This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.

+ Download file +
+
+

Example tabs

+

Click the tabs below to toggle between hidden panes, even via dropdown menus.

+ +
+
+

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

+
+
+

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

+
+ + +
+
+

Using bootstrap-tab.js

+

Enable tabbable tabs via javascript:

+
$('#myTab').tab('show')
+

Markup

+

You can activate a tab or pill navigation without writing any javascript by simply specifying data-toggle="tab" or data-toggle="pill" on an element.

 <ul class="tabs">
-<li><a href="#home" data-toggle="tab">Home</a></li>
-<li><a href="#profile" data-toggle="tab">Profile</a></li>
-<li><a href="#messages" data-toggle="tab">Messages</a></li>
-<li><a href="#ettings" data-toggle="tab">Settings</a></li>
+  <li><a href="#home" data-toggle="tab">Home</a></li>
+  <li><a href="#profile" data-toggle="tab">Profile</a></li>
+  <li><a href="#messages" data-toggle="tab">Messages</a></li>
+  <li><a href="#ettings" data-toggle="tab">Settings</a></li>
 </ul>
-

Methods

-

$().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. -

+

Methods

+

$().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. +

 <ul class="tabs">
-<li class="active"><a href="#home">Home</a></li>
-<li><a href="#profile">Profile</a></li>
-<li><a href="#messages">Messages</a></li>
-<li><a href="#settings">Settings</a></li>
+  <li class="active"><a href="#home">Home</a></li>
+  <li><a href="#profile">Profile</a></li>
+  <li><a href="#messages">Messages</a></li>
+  <li><a href="#settings">Settings</a></li>
 </ul>
 
 <div class="tab-content">
-<div class="active" id="home">...</div>
-<div id="profile">...</div>
-<div id="messages">...</div>
-<div id="settings">...</div>
+  <div class="active" id="home">...</div>
+  <div id="profile">...</div>
+  <div id="messages">...</div>
+  <div id="settings">...</div>
 </div>
 
 <script>
-$(function () {
-$('.tabs a:last').tab('show')
-})
+  $(function () {
+    $('.tabs a:last').tab('show')
+  })
 </script>
-

-

Events

- - - - - - - - - - - - - - - - - -
EventDescription
showThis event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shownThis event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
+

+

Events

+ + + + + + + + + + + + + + + + + +
EventDescription
showThis event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shownThis event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
-
+          
 $('a[data-toggle="tab"]').on('shown', function (e) {
-e.target // activated tab
-e.relatedTarget // previous tab
+  e.target // activated tab
+  e.relatedTarget // previous tab
 })
-
-
-
+
+
+
- -
- -
-
-

About Tooltips

-

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.

- Download file -
-
-

Example use of Tooltips

-

Hover over the links below to see tooltips:

-
-

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. -

+ +
+ -
-

Using bootstrap-tooltip.js

-

Trigger the tooltip via javascript:

-
$('#example').tooltip(options)
-

Options

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nametypedefaultdescription
animationbooleantrueapply a css fade transition to the tooltip
placementstring'top'how to position the tooltip - top | bottom | left | right
selectorstringfalseIf a selector is provided, tooltip objects will be delegated to the specified targets.
titlestring | function''default title value if `title` tag isn't present
triggerstring'hover'how tooltip is triggered - hover | focus | manual
delaynumber | object0 -

delay showing/hiding the tooltip (ms)

-

If a number is supplied, delay is applied to both hide/show

-

Object structure is: delay: { show: 500, hide: 100 }

-
-

Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.

-

Markup

-

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

-

Methods

-

$().tooltip(options)

-

Attaches a tooltip handler to an element collection.

-

.tooltip('show')

-

Reveals an elements tooltip.

-
$('#element').tooltip('show')
-

.tooltip('hide')

-

Hides an elements tooltip.

-
$('#element').tooltip('hide')
-
-
-
+
+
+

About Tooltips

+

Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.

+ Download file +
+
+

Example use of Tooltips

+

Hover over the links below to see tooltips:

+
+

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral. +

+
+
+

Using bootstrap-tooltip.js

+

Trigger the tooltip via javascript:

+
$('#example').tooltip(options)
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
animationbooleantrueapply a css fade transition to the tooltip
placementstring'top'how to position the tooltip - top | bottom | left | right
selectorstringfalseIf a selector is provided, tooltip objects will be delegated to the specified targets.
titlestring | function''default title value if `title` tag isn't present
triggerstring'hover'how tooltip is triggered - hover | focus | manual
delaynumber | object0 +

delay showing/hiding the tooltip (ms)

+

If a number is supplied, delay is applied to both hide/show

+

Object structure is: delay: { show: 500, hide: 100 }

+
+

Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.

+

Markup

+

For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.

+

Methods

+

$().tooltip(options)

+

Attaches a tooltip handler to an element collection.

+

.tooltip('show')

+

Reveals an elements tooltip.

+
$('#element').tooltip('show')
+

.tooltip('hide')

+

Hides an elements tooltip.

+
$('#element').tooltip('hide')
+
+
+ - -
- -
-
-

About popovers

-

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

-

* Requires Tooltip to be included

- Download file -
-
-

Example hover popover

-

Hover over the button to trigger the popover.

-
- hover for popover + +
+ -
-

Using bootstrap-popover.js

-

Enable popovers via javascript:

-
$('#example').popover(options)
-

Options

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Nametypedefaultdescription
animationbooleantrueapply a css fade transition to the tooltip
placementstring'right'how to position the popover - top | bottom | left | right
selectorstringfalseif a selector is provided, tooltip objects will be delegated to the specified targets
triggerstring'hover'how tooltip is triggered - hover | focus | manual
titlestring | function''default title value if `title` attribute isn't present
contentstring | function''default content value if `data-content` attribute isn't present
delaynumber | object0 -

delay showing/hiding the popover (ms)

-

If a number is supplied, delay is applied to both hide/show

-

Object structure is: delay: { show: 500, hide: 100 }

-
-

Notice Individual popover instance options can alternatively be specified through the use of data attributes.

-

Markup

-

- For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option. -

-

Methods

-

$().popover(options)

-

Initializes popovers for an element collection.

-

.popover('show')

-

Reveals an elements popover.

-
$('#element').popover('show')
-

.popover('hide')

-

Hides an elements popover.

-
$('#element').popover('hide')
-
-
-
+
+
+

About popovers

+

Add small overlays of content, like those on the iPad, to any element for housing secondary information.

+

* Requires Tooltip to be included

+ Download file +
+
+

Example hover popover

+

Hover over the button to trigger the popover.

+ +
+

Using bootstrap-popover.js

+

Enable popovers via javascript:

+
$('#example').popover(options)
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
animationbooleantrueapply a css fade transition to the tooltip
placementstring'right'how to position the popover - top | bottom | left | right
selectorstringfalseif a selector is provided, tooltip objects will be delegated to the specified targets
triggerstring'hover'how tooltip is triggered - hover | focus | manual
titlestring | function''default title value if `title` attribute isn't present
contentstring | function''default content value if `data-content` attribute isn't present
delaynumber | object0 +

delay showing/hiding the popover (ms)

+

If a number is supplied, delay is applied to both hide/show

+

Object structure is: delay: { show: 500, hide: 100 }

+
+

Notice Individual popover instance options can alternatively be specified through the use of data attributes.

+

Markup

+

+ For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option. +

+

Methods

+

$().popover(options)

+

Initializes popovers for an element collection.

+

.popover('show')

+

Reveals an elements popover.

+
$('#element').popover('show')
+

.popover('hide')

+

Hides an elements popover.

+
$('#element').popover('hide')
+
+
+ - -
- -
-
-

About alerts

-

The alert plugin is a tiny class for adding close functionality to alerts.

- Download -
-
-

Example alerts

-

The alerts plugin works on regular alert messages, and block messages.

-
- × - Holy guacamole! Best check yo self, you’re not looking too good. + +
+ -
- × -

Oh snap! You got an error!

-

Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

-

- Take this action Or do this -

-
-
-

Using bootstrap-alerts.js

-

Enable dismissal of an alert via javascript:

-
$(".alert-message").alert()
-

Markup

-

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

-
<a class="close" data-dismiss="alert" href="#">&times;</a>
-

Methods

-

$().alert()

-

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.

-

.alert('close')

-

Closes an alert.

-
$(".alert-message").alert('close')
-

Events

-

Bootstrap's alert class exposes a few events for hooking into alert functionality.

- - - - - - - - - - - - - - - - - -
EventDescription
closeThis event fires immediately when the close instance method is called.
closedThis event is fired when the alert has been closed (will wait for css transitions to complete).
+
+
+

About alerts

+

The alert plugin is a tiny class for adding close functionality to alerts.

+ Download +
+
+

Example alerts

+

The alerts plugin works on regular alert messages, and block messages.

+
+ × + Holy guacamole! Best check yo self, you’re not looking too good. +
+
+ × +

Oh snap! You got an error!

+

Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.

+

+ Take this action Or do this +

+
+
+

Using bootstrap-alerts.js

+

Enable dismissal of an alert via javascript:

+
$(".alert-message").alert()
+

Markup

+

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

+
<a class="close" data-dismiss="alert" href="#">&times;</a>
+

Methods

+

$().alert()

+

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.

+

.alert('close')

+

Closes an alert.

+
$(".alert-message").alert('close')
+

Events

+

Bootstrap's alert class exposes a few events for hooking into alert functionality.

+ + + + + + + + + + + + + + + + + +
EventDescription
closeThis event fires immediately when the close instance method is called.
closedThis event is fired when the alert has been closed (will wait for css transitions to complete).
 $('#my-alert').bind('closed', function () {
-// do something ...
+  // do something ...
 })
-
-
-
+
+
+
- -
- -
-
-

About

-

Do more with buttons. Control button states or create groups of buttons for more components like toolbars.

- Download file -
-
-

Example uses

-

Use the buttons plugin for states and toggles.

- - - - - - - - - - - - - - - - - - - -
Stateful - -
Single toggle - -
Checkbox -
- - - -
-
Radio -
- - - -
-
-
-

Using bootstrap-button.js

-

Enable buttons via javascript:

-
$('.tabs').button()
-

Markup

-

Data attributes are integral to the button plugin. Check out the example code below for the various markup types.

+ +
+ +
+
+

About

+

Do more with buttons. Control button states or create groups of buttons for more components like toolbars.

+ Download file +
+
+

Example uses

+

Use the buttons plugin for states and toggles.

+ + + + + + + + + + + + + + + + + + + +
Stateful + +
Single toggle + +
Checkbox +
+ + + +
+
Radio +
+ + + +
+
+
+

Using bootstrap-button.js

+

Enable buttons via javascript:

+
$('.tabs').button()
+

Markup

+

Data attributes are integral to the button plugin. Check out the example code below for the various markup types.

 <!-- Add data-toggle="button" to activate toggling on a single button -->
 <button class="btn" data-toggle="button">Single Toggle</button>
 
 <!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group -->
 <div class="btn-group" data-toggle="buttons-checkbox">
-<button class="btn">Left</button>
-<button class="btn">Middle</button>
-<button class="btn">Right</button>
+  <button class="btn">Left</button>
+  <button class="btn">Middle</button>
+  <button class="btn">Right</button>
 </div>
 
 <!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group -->
 <div class="btn-group" data-toggle="buttons-radio">
-<button class="btn">Left</button>
-<button class="btn">Middle</button>
-<button class="btn">Right</button>
+  <button class="btn">Left</button>
+  <button class="btn">Middle</button>
+  <button class="btn">Right</button>
 </div>
 
-

Methods

-

$().button('toggle')

-

Toggles push state. Gives btn the look that it's been activated.

-

Notice You can enable auto toggling of a button by using the data-toggle attribute.

-
<button class="btn" data-toggle="button" >...</button>
-

$().button('loading')

-

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. -

-
<button class="btn" data-loading-text="loading stuff..." >...</button>
-

- Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off". More info can be found here. -

-

$().button('reset')

-

Resets button state - swaps text to original text.

-

$().button(string)

-

Resets button state - swaps text to any data defined text state.

+

Methods

+

$().button('toggle')

+

Toggles push state. Gives btn the look that it's been activated.

+

Notice You can enable auto toggling of a button by using the data-toggle attribute.

+
<button class="btn" data-toggle="button" >...</button>
+

$().button('loading')

+

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. +

+
<button class="btn" data-loading-text="loading stuff..." >...</button>
+

+ Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off". More info can be found here. +

+

$().button('reset')

+

Resets button state - swaps text to original text.

+

$().button(string)

+

Resets button state - swaps text to any data defined text state.

<button class="btn" data-complete-text="finished!" >...</button>
 <script>
-$('.btn').button('complete')
+  $('.btn').button('complete')
 </script>
-
-
-
+
+
+
- -
- -
-
-

About

-

Get base styles and flexible support for collapsible components like accordions and navigation.

- Download file -
-
-

Example accordion

-

Using the collapse plugin, we built a simple accordion style widget:

- -
-
- -
-
- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. -
-
+ +
+ +
+
+

About

+

Get base styles and flexible support for collapsible components like accordions and navigation.

+ Download file
-
- -
-
- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+

Example accordion

+

Using the collapse plugin, we built a simple accordion style widget:

+ +
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
-
-
-
- -
-
- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
+
+
+ +
+
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. +
+
-
-
- -
-

Using bootstrap-collapse.js

-

Enable via javascript:

-
$(".collapse").collapse()
-

Options

- - - - - - - - - - - - - - - - - - - - - - - -
Nametypedefaultdescription
parentselectorfalseIf selector then all collapsible elements under the specified parent will be closed when this collasabile item is shown. (similar to traditional accordion behavior)
togglebooleantrueToggles the collapsible element on invocation
-

Markup

-

Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.

-
+          
+          
+

Using bootstrap-collapse.js

+

Enable via javascript:

+
$(".collapse").collapse()
+

Options

+ + + + + + + + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
parentselectorfalseIf selector then all collapsible elements under the specified parent will be closed when this collasabile item is shown. (similar to traditional accordion behavior)
togglebooleantrueToggles the collapsible element on invocation
+

Markup

+

Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.

+
 <button class="btn danger" data-toggle="collapse" data-target="#demo">
-simple collapsible
+  simple collapsible
 </button>
 
 <div id="demo" class="collapse in"> … </div>
-

Notice To add accordion like group management to a collapsible control just add the additional data attribute data-parent="#selector". Refer to the demo below to see this in action.

-

Methods

-

.collapse(options)

-

Activates your content as a collapsible element. Accepts an optional options object. +

Notice To add accordion like group management to a collapsible control just add the additional data attribute data-parent="#selector". Refer to the demo below to see this in action.

+

Methods

+

.collapse(options)

+

Activates your content as a collapsible element. Accepts an optional options object.

 $('#myCollapsible').collapse({
-toggle: false
+  toggle: false
 })
-

.collapse('toggle')

-

Toggles a collapsible element to shown or hidden.

-

.collapse('show')

-

Shows a collapsible element.

-

.collapse('hide')

-

Hides a collapsible element.

-

Events

-

- Bootstrap's collapse class exposes a few events for hooking into collapse functionality. -

- - - - - - - - - - - - - - - - - - - - - - - - - -
EventDescription
showThis event fires immediately when the show instance method is called.
shownThis event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).
hide - This event is fired immediately when the hide method has been called. -
hiddenThis event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).
+

.collapse('toggle')

+

Toggles a collapsible element to shown or hidden.

+

.collapse('show')

+

Shows a collapsible element.

+

.collapse('hide')

+

Hides a collapsible element.

+

Events

+

+ Bootstrap's collapse class exposes a few events for hooking into collapse functionality. +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
EventDescription
showThis event fires immediately when the show instance method is called.
shownThis event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).
hide + This event is fired immediately when the hide method has been called. +
hiddenThis event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).
 $('#myCollapsible').on('hidden', function () {
-// do something ...
+  // do something ...
 })
-
-
-
+
+
+
- - +

.carousel('cycle')

+

Cycles through the carousel items from left to right.

+

.carousel('pause')

+

Stops the carousel from cycling through items.

+

.carousel(number)

+

Cycles the carousel to a particular frame (0 based, similar to an array).

+

.carousel('prev')

+

Cycles to the previous item.

+

.carousel('next')

+

Cycles to the next item.

+

Events

+

Bootstrap's modal class exposes a few events for hooking into modal functionality.

+ + + + + + + + + + + + + + + + + + +
EventDescription
slideThis event fires immediately when the slide instance method is invoked.
slidThis event is fired when the carousel has completed it's slide transition.
+ + + - -
- -
-
-

About

-

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

- Download file -
-
-

Example

-

Start typing in the field below to show the typeahead results.

-
- + +
+ -
-

Using bootstrap-typeahead.js

-

Call the typeahead via javascript:

-
$('.typeahead').typeahead()
-

Options

- - - - - - - - - - - - - - - - - -
Nametypedefaultdescription
itemsnumber8The max number of items to display in the dropdown.
+
+
+

About

+

A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.

+ Download file +
+
+

Example

+

Start typing in the field below to show the typeahead results.

+
+ +
+
+

Using bootstrap-typeahead.js

+

Call the typeahead via javascript:

+
$('.typeahead').typeahead()
+

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
itemsnumber8The max number of items to display in the dropdown.
-

Markup

-

Add data attributes to register an element with typeahead functionality.

+

Markup

+

Add data attributes to register an element with typeahead functionality.

 <input type="text" data-provide="typeahead">
 
-
-
-
\ No newline at end of file +
+
+
\ No newline at end of file diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index 567ac6d0d..c586af1b9 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -1,10 +1,14 @@ - - -
-

Scaffolding

-

Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.

-
+ +
+

Scaffolding

+

Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.

+ +
diff --git a/docs/templates/pages/upgrading.mustache b/docs/templates/pages/upgrading.mustache index a243d6ad5..475539284 100644 --- a/docs/templates/pages/upgrading.mustache +++ b/docs/templates/pages/upgrading.mustache @@ -1,9 +1,9 @@ - -
-

Upgrading to Bootstrap 2

-

Learn about significant changes and additions since v1.4 with this handy guide.

-
+ +
+

Upgrading to Bootstrap 2

+

Learn about significant changes and additions since v1.4 with this handy guide.

+

Rough outline

-- cgit v1.2.3 From 82de03b67cf729291ea5a73741e44838a42940f8 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 23 Jan 2012 19:55:00 -0800 Subject: start wrapping text in {{_i}} for translation --- docs/templates/layout.mustache | 3 +- docs/templates/pages/javascript.mustache | 460 +++++++++++++++---------------- 2 files changed, 230 insertions(+), 233 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index eccc67974..919872db2 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -22,11 +22,10 @@ - - + + +
+
Build and Download +

What's included?

+

Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.

- +
-- cgit v1.2.3 From 7ca3b98d885071bc032ca28e20452ad879cea422 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 25 Jan 2012 13:56:44 -0800 Subject: docs fixes --- docs/templates/pages/download.mustache | 4 ++-- docs/templates/pages/index.mustache | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index 216098bad..f5964dc35 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -12,7 +12,7 @@
  • {{_i}}1. Select components{{/i}}
  • {{_i}}2. Modify variables{{/i}}
  • {{_i}}3. Select jQuery plugins{{/i}}
  • -
  • {{_i}}4. Build and download{{/i}}
  • +
  • {{_i}}4. Customize and download{{/i}}
  • @@ -231,7 +231,7 @@
    - Build and Download + Customize and Download

    What's included?

    Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.

    diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index c3f725a05..ff486bc7b 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -7,8 +7,8 @@

    {{_i}}Bootstrap,
    from Twitter{{/i}}

    {{_i}}Bootstrap is a responsive frontend toolkit from Twitter designed to kickstart web development, featuring HTML, CSS, and JS for dozens of base elements and common design components.{{/i}}

    - {{_i}}Download on GitHub{{/i}} - {{_i}}Get started →{{/i}} + {{_i}}View on GitHub{{/i}} + {{_i}}Customize and Download{{/i}}

    @@ -74,73 +74,73 @@
    - +

    {{_i}}Built for and by nerds{{/i}}

    {{_i}}Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.{{/i}}

    - +

    {{_i}}For all skill levels{{/i}}

    {{_i}}Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.{{/i}}

    - +

    {{_i}}Cross-everything{{/i}}

    {{_i}}Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.{{/i}}

    - +

    {{_i}}12-column grid{{/i}}

    {{_i}}Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.{{/i}}

    - +

    {{_i}}Responsive design{{/i}}

    {{_i}}With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

    - +

    {{_i}}Styleguide docs{{/i}}

    {{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}

    - +

    {{_i}}Growing library{{/i}}

    {{_i}}Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.{{/i}}

    - +

    {{_i}}Custom jQuery plugins{{/i}}

    {{_i}}What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.{{/i}}

    - +

    {{_i}}Built on LESS{{/i}}

    {{_i}}Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.{{/i}}

    - +

    HTML5

    {{_i}}Built to support new HTML5 elements and syntax.{{/i}}

    - +

    CSS3

    {{_i}}Progressively enhanced components for ultimate style.{{/i}}

    - +

    {{_i}}Open-source{{/i}}

    {{_i}}Built for and maintained by the community via GitHub.{{/i}}

    - +

    {{_i}}Made at Twitter{{/i}}

    {{_i}}Brought to you by an experienced engineer and designer.{{/i}}

    -- cgit v1.2.3 From 7d83f45ebbadf7d100b56f944718763a6ce3e55c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 25 Jan 2012 14:08:51 -0800 Subject: start filling out mixins tables --- docs/templates/pages/less.mustache | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 0889592eb..51d2295de 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -347,7 +347,7 @@

    Parametric mixins

    -

    A parametric mixin is just like a basic mixin, but it also accepts optional paramaters (hence the name).

    +

    A parametric mixin is just like a basic mixin, but it also accepts optional Parameters (hence the name).

       Coming soon!
     
    @@ -364,45 +364,45 @@ Mixin - Paramaters + Parameters Usage .clearfix() - - + none + Add to any parent to clear floats within .center-block() - - + none + Auto center a block-level element using margin: auto .ie7-inline-block() - - + none + Use in addition to regular display: inline-block to get IE7 support .size() - - + @height: 5px, @width: 5px + Quickly set the height and width on one line .square() - - + @size: 5px + Builds on .size() to set the width and height as same value .opacity() - - + @opacity: 100 + Set, in whole numbers, the opacity percentage (e.g., "50" or "75") .reset-filter() - - + none + Resets any IE filter @@ -411,15 +411,15 @@ Mixin - Paramaters + Parameters Usage .placeholder() - - + @color: @placeholderText + Set the placeholder text color for inputs @@ -428,7 +428,7 @@ Mixin - Paramaters + Parameters Usage @@ -475,7 +475,7 @@ Mixin - Paramaters + Parameters Usage @@ -507,7 +507,7 @@ Mixin - Paramaters + Parameters Usage @@ -584,7 +584,7 @@ Mixin - Paramaters + Parameters Usage -- cgit v1.2.3 From b6b7d1343b74713a60e86401d8b625f097a7b8dc Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 25 Jan 2012 15:03:44 -0800 Subject: finish the rest of the less page mixins docs --- docs/templates/pages/less.mustache | 217 +++++++++++++++--------------- docs/templates/pages/scaffolding.mustache | 2 +- 2 files changed, 109 insertions(+), 110 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 51d2295de..f2c266842 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -270,7 +270,7 @@
    -

    Form states and alerts

    +

    {{_i}}Form states and alerts{{/i}}

    @@ -336,73 +336,77 @@ -

    About mixins

    +

    {{_i}}About mixins{{/i}}

    -

    Basic mixins

    -

    A basic mixin is essentially an include or a partial for a snippet of CSS. They're written just like a CSS class and can be called anywhere.

    +

    {{_i}}Basic mixins{{/i}}

    +

    {{_i}}A basic mixin is essentially an include or a partial for a snippet of CSS. They're written just like a CSS class and can be called anywhere.{{/i}}

    -  Coming soon!
    +.element {
    +  .clearfix();
    +}
     
    -

    Parametric mixins

    -

    A parametric mixin is just like a basic mixin, but it also accepts optional Parameters (hence the name).

    +

    {{_i}}Parametric mixins{{/i}}

    +

    {{_i}}A parametric mixin is just like a basic mixin, but it also accepts parameters (hence the name) with optional default values.{{/i}}

    -  Coming soon!
    +.element {
    +  .border-radius(4px);
    +}
     
    -

    Easily add your own

    -

    Nearly all of Bootstrap's mixins are stored in mixins.less, a wonderful utility .less file that enables you to use a mixin in any of the .less files in the toolkit.

    -

    So, go ahead and use the existing ones or feel free to add your own as you need.

    +

    {{_i}}Easily add your own{{/i}}

    +

    {{_i}}Nearly all of Bootstrap's mixins are stored in mixins.less, a wonderful utility .less file that enables you to use a mixin in any of the .less files in the toolkit.{{/i}}

    +

    {{_i}}So, go ahead and use the existing ones or feel free to add your own as you need.{{/i}}

    -

    Included mixins

    -

    Utilities

    +

    {{_i}}Included mixins{{/i}}

    +

    {{_i}}Utilities{{/i}}

    - - - + + + - + - + - + - + - + - + - +
    MixinParametersUsage{{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .clearfix() noneAdd to any parent to clear floats within{{_i}}Add to any parent to clear floats within{{/i}}
    .center-block() noneAuto center a block-level element using margin: auto{{_i}}Auto center a block-level element using margin: auto{{/i}}
    .ie7-inline-block() noneUse in addition to regular display: inline-block to get IE7 support{{_i}}Use in addition to regular display: inline-block to get IE7 support{{/i}}
    .size() @height: 5px, @width: 5pxQuickly set the height and width on one line{{_i}}Quickly set the height and width on one line{{/i}}
    .square() @size: 5pxBuilds on .size() to set the width and height as same value{{_i}}Builds on .size() to set the width and height as same value{{/i}}
    .opacity() @opacity: 100Set, in whole numbers, the opacity percentage (e.g., "50" or "75"){{_i}}Set, in whole numbers, the opacity percentage (e.g., "50" or "75"){{/i}}
    .reset-filter() noneResets any IE filter{{_i}}Resets any IE filter{{/i}}
    @@ -410,16 +414,16 @@ - - - + + + - +
    MixinParametersUsage{{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .placeholder() @color: @placeholderTextSet the placeholder text color for inputs{{_i}}Set the placeholder text color for inputs{{/i}}
    @@ -427,46 +431,46 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
    MixinParametersUsage{{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    #font > #family > .serif()none{{_i}}Make an element use a serif font stack{{/i}}
    #font > #family > .sans-serif()none{{_i}}Make an element use a sans-serif font stack{{/i}}
    #font > #family > .monospace()none{{_i}}Make an element use a monospace font stack{{/i}}
    #font > .shorthand()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Easily set font size, weight, and leading{{/i}}
    #font > .serif()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Set font family to serif, and control size, weight, and leading{{/i}}
    #font > .sans-serif()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Set font family to sans-serif, and control size, weight, and leading{{/i}}
    #font > .monospace()@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight{{_i}}Set font family to monospace, and control size, weight, and leading{{/i}}
    @@ -474,31 +478,31 @@ - - - + + + - - - + + + - - + + - - + + - - + +
    MixinParametersUsage{{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .fixed-container().container-fixed()none{{_i}}Provide a fixed-width (set with @siteWidth) container for holding your content{{/i}}
    .columns()@columns: 1{{_i}}Build a grid column that spans any number of columns (defaults to 1 column){{/i}}
    .offset()@columns: 1{{_i}}Offset a grid column with left margin that spans any number of columns{{/i}}
    .gridColumn()none{{_i}}Make an element float like a grid column{{/i}}
    @@ -506,76 +510,71 @@ - - - + + + - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
    MixinParametersUsage{{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .border-radius()
    .border-radius-custom()@radius: 5px{{_i}}Round the corners of an element. Can be a single value or four space-separated values{{/i}}
    .box-shadow()@shadow: 0 1px 3px rgba(0,0,0,.25){{_i}}Add a drop shadow to an element{{/i}}
    .transition()@transition{{_i}}Add CSS3 transition effect (e.g., all .2s linear){{/i}}
    .rotate()@degrees{{_i}}Rotate an element n degrees{{/i}}
    .scale()@ratio{{_i}}Scale an element to n times it's original size{{/i}}
    .translate()@x: 0, @y: 0{{_i}}Move an element on the x and y planes{{/i}}
    .background-clip()@clip{{_i}}Crop the backgroud of an element (useful for border-radius){{/i}}
    .background-size()@size{{_i}}Control the size of background images via CSS3{{/i}}
    .box-sizing()@boxmodel{{_i}}Change the box model for an element (e.g., border-box for a full-width input){{/i}}
    .user-select()@select{{_i}}Control cursor selection of text on a page{{/i}}
    .resizable()@direction: both{{_i}}Make any element resizable on the right and bottom{{/i}}
    .content-columns()@columnCount, @columnGap: @gridColumnGutter{{_i}}Make the content of any element use CSS3 columns{{/i}}
    @@ -583,56 +582,56 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
    MixinParametersUsage{{_i}}Mixin{{/i}}{{_i}}Parameters{{/i}}{{_i}}Usage{{/i}}
    .#translucent > .background()@color: @white, @alpha: 1{{_i}}Give an element a translucent background color{{/i}}
    .#translucent > .border()@color: @white, @alpha: 1{{_i}}Give an element a translucent border color{{/i}}
    .#gradient > .vertical()@startColor, @endColor{{_i}}Create a cross-browser vertical background gradient{{/i}}
    .#gradient > .horizontal()@startColor, @endColor{{_i}}Create a cross-browser horizontal background gradient{{/i}}
    .#gradient > .directional()@startColor, @endColor, @deg{{_i}}Create a cross-browser directional background gradient{{/i}}
    .#gradient > .vertical-three-colors()@startColor, @midColor, @colorStop, @endColor{{_i}}Create a cross-browser three-color background gradient{{/i}}
    .#gradient > .radial()@innerColor, @outerColor{{_i}}Create a cross-browser radial background gradient{{/i}}
    .#gradient > .striped()@color, @angle{{_i}}Create a cross-browser striped background gradient{{/i}}
    .#gradientBar()@primaryColor, @secondaryColor{{_i}}Used for buttons to assign a gradient and slightly darker border{{/i}}
    diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache index a89f93d8e..bc924e3ef 100644 --- a/docs/templates/pages/scaffolding.mustache +++ b/docs/templates/pages/scaffolding.mustache @@ -148,7 +148,7 @@ @siteWidth {{_i}}Computed sum of all columns and gutters{{/i}} - {{_i}}Counts number of columns and gutters to set width of the .fixed-container() mixin{{/i}} + {{_i}}Counts number of columns and gutters to set width of the .container-fixed() mixin{{/i}} -- cgit v1.2.3 From e877d125d7a2c673fec4e63600c2d8544c3128f6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 25 Jan 2012 20:02:32 -0800 Subject: fix button group shadows, update js docs to fix alert js file link --- docs/templates/pages/components.mustache | 6 +++--- docs/templates/pages/javascript.mustache | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index effa10762..aaee36410 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -6,7 +6,7 @@ +
    diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index f2c266842..6478e3b2f 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -237,8 +237,8 @@ - - + +
    @primaryButtonColor@blue@primaryButtonBackground@linkColor
    -- cgit v1.2.3 From 29f0e4c28b56e684a9be9931dcf77b418cb63ae0 Mon Sep 17 00:00:00 2001 From: Pete Hopkins Date: Thu, 26 Jan 2012 13:01:03 -0500 Subject: Removes filters as a way to provide gradients for IE<=9 - Lets us use rounded corners in IE9 - Makes hover / active states work correctly in IE<=9 Only change for non-IE is that moving from hover -> not hovering no longer animates (was a subtle blend) due to mismatch between the bottom of the gradient and the background color. Refactor: moves the primary button background to match the others. --- docs/templates/pages/less.mustache | 5 ----- 1 file changed, 5 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 6478e3b2f..1aec06c2c 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -403,11 +403,6 @@ @opacity: 100 {{_i}}Set, in whole numbers, the opacity percentage (e.g., "50" or "75"){{/i}} - - .reset-filter() - none - {{_i}}Resets any IE filter{{/i}} -

    Forms

    -- cgit v1.2.3 From 34488a450081422037e84d269ddb289aa709e9fb Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 26 Jan 2012 10:39:07 -0800 Subject: fix tabs example on js docs page --- docs/templates/pages/javascript.mustache | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 6b2a3693d..66493dc0c 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -560,10 +560,10 @@ $('#myModal').on('hidden', function () { </ul> <div class="tab-content"> - <div class="active" id="home">...</div> - <div id="profile">...</div> - <div id="messages">...</div> - <div id="settings">...</div> + <div class="tab-pane active" id="home">...</div> + <div class="tab-pane" id="profile">...</div> + <div class="tab-pane" id="messages">...</div> + <div class="tab-pane" id="settings">...</div> </div> <script> -- cgit v1.2.3 From b8c1950cbfbb48d49f79b1e36f8c8294b19ed57d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 26 Jan 2012 10:43:08 -0800 Subject: change label fo first subnav link on js docs --- docs/templates/pages/javascript.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 66493dc0c..941c6b485 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -5,7 +5,7 @@

    {{_i}}Bring Bootstrap's components to life—now with 12 custom jQuery plugins.{{/i}}

    - \ No newline at end of file + -- cgit v1.2.3 From a4a8ea2328f163fad43f250f6b3311fe0b670946 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 26 Jan 2012 19:09:59 -0800 Subject: flip order of content on home page --- docs/templates/pages/index.mustache | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index b045cc579..9a5421bd3 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -49,28 +49,6 @@
    -

    {{_i}}Built with Bootstrap.{{/i}}

    - - - -
    -

    {{_i}}Designed for everyone, everywhere.{{/i}}

    @@ -147,7 +125,29 @@
    -
    +
    + +

    {{_i}}Built with Bootstrap.{{/i}}

    + + + +
    -- cgit v1.2.3 From dc2deb9a1b1995bbabee91bfd579d9b466fe78f2 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Thu, 26 Jan 2012 21:48:46 -0800 Subject: moving structure around + more work on builder... --- docs/templates/pages/download.mustache | 74 +++++++++++++++++----------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index 4707e60a9..0f997d368 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -43,24 +43,24 @@

    Components

    - + - + - +

    JS Components

    - - + + - - + +
    @@ -70,9 +70,9 @@

    Responsive

    - - - + + +
    @@ -89,68 +89,68 @@

    Links

    - + - +

    Grid system

    - + - + - + - + - +

    Typography

    - + - + - +

    Forms

    - + - +

    Navbar

    - + - + - +

    Form states & alerts

    - + - + - + - + - + - + - + - + - + - + - + - +
    -- cgit v1.2.3 From ed64276e5be1bbf808f2ab1451aa02522cc3aff0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Thu, 26 Jan 2012 22:05:45 -0800 Subject: move doc building into base make method + build bootstrap to doc assets --- docs/templates/layout.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index 014f248d6..dbb718056 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -13,8 +13,8 @@ - - + + -- cgit v1.2.3 From aa594501bd24d51181dc3504602aa4aaefb1cb60 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Thu, 26 Jan 2012 23:16:02 -0800 Subject: change typeahead to data-source instead of data-data and add to docs --- docs/templates/pages/javascript.mustache | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 59b8a03d6..6e3ba25da 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1258,7 +1258,7 @@ $('.myCarousel').carousel({

    {{_i}}Example{{/i}}

    {{_i}}Start typing in the field below to show the typeahead results.{{/i}}

    - +

    {{_i}}Using bootstrap-typeahead.js{{/i}}

    @@ -1275,6 +1275,12 @@ $('.myCarousel').carousel({ + + {{_i}}source{{/i}} + {{_i}}array{{/i}} + [ ] + {{_i}}The data source to query against.{{/i}} + {{_i}}items{{/i}} {{_i}}number{{/i}} -- cgit v1.2.3 From 942d1b459568acb9f66525f8f6316a252a199e02 Mon Sep 17 00:00:00 2001 From: Burak Tuyan Date: Fri, 27 Jan 2012 16:33:18 +0200 Subject: Updating to latest version of Glyphicons Halflings set (v.1.5) along with some icon enhancements like: - Updated the Gylphicons Halflings set to version 1.5 (30 new icons) - Optimized the sprite PNG files for minimum filesize without any quality loss - Made some fixes for horizontal alignment at the LESS/CSS level (tags, bold, arrow-up, minus, chevron-down) - Made some fixes for vertical alignment at the LESS/CSS level (chevron-down, resize-vertical, resize-horizontal) - Renamed the old "calendar" class as "list-alt" class (because now we've a real calendar icon) - Changed the "background-position" of the icon class to "14px 14px", so that a wrong class name will not be showing the glass icon and instead will show a blank icon (which is useful for just positioning the text after the icons in some cases) - Added new icons (classes) to the base-css Docs (to both HTML file and Mustache template) - Changed one of the button examples to danger style and used a white icon - Renamed the sprite image files to save a few bytes here and there (from glyphicons-halflings-sprite.png to lyphicons-halflings.png and from glyphicons-halflings-sprite-white.png to glyphicons-halflings-white.png) --- docs/templates/pages/base-css.mustache | 62 +++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 16 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index c3d10eb08..6476669e6 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1273,10 +1273,6 @@ - - -
    -
    @@ -1284,8 +1280,12 @@ +
    +
    +
    +
    - + @@ -1301,10 +1301,6 @@ -
    -
    -
    -
    @@ -1319,7 +1315,10 @@ - +
    +
    +
    +
    @@ -1329,10 +1328,6 @@ -
    -
    -
    -
    @@ -1345,6 +1340,20 @@ + + + + + + + + + + +
    +
    +
    +
    @@ -1355,6 +1364,27 @@ + + + + + + + + + + + + + + + + + + + + +
    @@ -1376,7 +1406,7 @@
     <i class="icon search"></i>
     
    -

    {{_i}}There are over 100 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

    +

    {{_i}}There are 120 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

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

    @@ -1397,7 +1427,7 @@

    {{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}

    {{_i}}Refresh{{/i}} - {{_i}}Settings{{/i}} + {{_i}}Delete{{/i}}

    -- cgit v1.2.3 From e44a7dd4ff2d505e6bc41ba0a5fdf66650cdf605 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 09:36:49 -0800 Subject: buttons for toggle links in js docs, code example for offsetting in grid --- docs/templates/pages/download.mustache | 6 +++--- docs/templates/pages/scaffolding.mustache | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index 0f997d368..5b9f765ab 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -19,7 +19,7 @@
    +
    + +
    + Some value here +
    +
    @@ -1424,4 +1430,4 @@
    - \ No newline at end of file + -- cgit v1.2.3 From e8647c1b118d2c726a8987e9a41aad82da972b57 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 13:20:02 -0800 Subject: huuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuge update to doces and stuff --- docs/templates/layout.mustache | 2 +- docs/templates/pages/components.mustache | 10 +- docs/templates/pages/download.mustache | 192 +++++++++++++++++-------------- docs/templates/pages/index.mustache | 25 ++-- docs/templates/pages/less.mustache | 12 ++ 5 files changed, 135 insertions(+), 106 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache index dbb718056..4a016e4d1 100644 --- a/docs/templates/layout.mustache +++ b/docs/templates/layout.mustache @@ -30,7 +30,7 @@ -
    - {{_i}}Heads up! On hover we show a light red background color to highlight the size of the icon. This won't appear in normal usage of icons.{{/i}} + {{_i}}Heads up! Icon classes are echoed via CSS :after and on hover in the docs we show a light red background color show the icon's size.{{/i}}

    @@ -1405,6 +1405,10 @@

    {{_i}}With v2.0.0, we have opted to use an <i> tag for all our icons with a base class of .icon. To use, place the following code just about anywhere:{{/i}}

     <i class="icon search"></i>
    +
    +

    There are also styles available for inverted (white) icons, made ready with one extra class:

    +
    +<i class="icon white search"></i>
     

    {{_i}}There are 120 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

    @@ -1423,10 +1427,11 @@

    {{_i}}Examples{{/i}}

    -
    +

    {{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}

    {{_i}}Refresh{{/i}} + {{_i}}Checkout{{/i}} {{_i}}Delete{{/i}}

    -- cgit v1.2.3 From a2a10ae4211f0cdba5fe54417d267e3ba3b63705 Mon Sep 17 00:00:00 2001 From: Burak Tuyan Date: Sat, 28 Jan 2012 02:13:53 +0200 Subject: Adding new examples to the icons' docs. - Button with dropdown menu. - Small info button. - Text alignment for navigation with no icon. - Text input form with prepended icon - Select input form with prepended icon --- docs/templates/pages/base-css.mustache | 73 ++++++++++++++++++++++++++-------- 1 file changed, 56 insertions(+), 17 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index f6504a249..92c925b37 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1417,50 +1417,89 @@

    {{_i}}Icons are great, but where would one use them? Here are a few ideas:{{/i}}

    • {{_i}}As visuals for your sidebar navigation{{/i}}
    • -
    • {{_i}}For a purely icon-driven nav{{/i}}
    • +
    • {{_i}}For a purely icon-driven navigation{{/i}}
    • {{_i}}For buttons to help convey the meaning of an action{{/i}}
    • {{_i}}With links to share context on a user's destination{{/i}}
    -

    {{_i}}Essentially, anywhere you can put an <i> tag, you can put an icon.{{/i}}

    +

    {{_i}}Essentially, anywhere you can put an <i> tag, you can put an icon. And if you need to position the text with no icon before it (where other items have an icon; see the navigation example below) simply use .icon class with no other classes:{{/i}}

    +
    +<i class="icon"></i>
    +

    {{_i}}Examples{{/i}}

    -
    -

    {{_i}}Use them in buttons, or in button groups for a toolbar style presentation.{{/i}}

    -

    - {{_i}}Refresh{{/i}} - {{_i}}Checkout{{/i}} - {{_i}}Delete{{/i}} -

    + -
    -

    {{_i}}Or, use them in navigation.{{/i}}

    + +
    +
    +

    {{_i}}Use them with prepended forms.{{_i}}

    +
    + +
    +
    + + +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    \ No newline at end of file -- cgit v1.2.3 From 7e72eb5063470a3728d612acd2cc0368aabc8664 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 18:33:25 -0800 Subject: new tab focus style and mixin --- docs/templates/pages/less.mustache | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 649f8f456..ad6688e1e 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -390,6 +390,11 @@ none {{_i}}Add to any parent to clear floats within{{/i}} + + .tab-focus() + none + {{_i}}Apply the Webkit focus style and round Firefox outline{{/i}} + .center-block() none -- cgit v1.2.3 From d02c6957d44761c35121cb88af727802ce4d9e5e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 19:49:56 -0800 Subject: fixing up buttons and examples of implementing icons --- docs/templates/pages/base-css.mustache | 31 ++----- docs/templates/pages/components.mustache | 153 +++++++++++++++---------------- 2 files changed, 80 insertions(+), 104 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 5b9cae472..23a6a37a2 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1412,7 +1412,7 @@
     <i class="icon search"></i>
     
    -

    There are also styles available for inverted (white) icons, made ready with one extra class:

    +

    {{_i}}There are also styles available for inverted (white) icons, made ready with one extra class:{{/i}}

     <i class="icon white search"></i>
     
    @@ -1427,18 +1427,15 @@
  • {{_i}}For buttons to help convey the meaning of an action{{/i}}
  • {{_i}}With links to share context on a user's destination{{/i}}
  • -

    {{_i}}Essentially, anywhere you can put an <i> tag, you can put an icon. And if you need to position the text with no icon before it (where other items have an icon; see the navigation example below) simply use .icon class with no other classes:{{/i}}

    -
    -<i class="icon"></i>
    -
    +

    {{_i}}Essentially, anywhere you can put an <i> tag, you can put an icon.{{/i}}

    {{_i}}Examples{{/i}}

    +

    {{_i}}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.{{/i}}

    -

    {{_i}}Use them in buttons - of all types and sizes.{{/i}}

    -
    -

    {{_i}}Use them in navigation.{{/i}}

    -

    {{_i}}Use them with prepended forms.{{_i}}

    - +
    @@ -1491,20 +1486,6 @@
    -
    - -
    -
    - - -
    -
    -
    diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index f73052e63..48de1f8bf 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -31,32 +31,29 @@

    {{_i}}Button groups{{/i}}

    {{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.{{/i}}

    {{_i}}You can also combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex projects.{{/i}}

    -
    + -
    -
    -
    - 1 - 2 - 3 - 4 -
    -
    - 5 - 6 - 7 -
    -
    - 8 -
    +
    +
    + 1 + 2 + 3 + 4 +
    +
    + 5 + 6 + 7 +
    +
    + 8
    -

    {{_i}}Example markup{{/i}}

    @@ -100,67 +97,65 @@

    {{_i}}Split button dropdowns{{/i}}

    {{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}

    - + +

    {{_i}}Example markup{{/i}}

    -- cgit v1.2.3 From 0255f47eb3f4967851d014a9ef6fdf49a37dc548 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 27 Jan 2012 21:36:58 -0800 Subject: add zindex option for tooltips/popovers and fix modal zindex doc example --- docs/templates/pages/javascript.mustache | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 6e3ba25da..ec711a312 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -156,7 +156,7 @@

    Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.

    {{_i}}Popover in a modal{{/i}}

    -

    {{_i}}This button should trigger a popover on hover.{{/i}}

    +

    {{_i}}This button should trigger a popover on hover.{{/i}}

    {{_i}}Tooltips in a modal{{/i}}

    {{_i}}This link and that link should have tooltips on hover.{{/i}}

    @@ -675,6 +675,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    + + {{_i}}z-index{{/i}} + {{_i}}number{{/i}} + 1020 + The tooltips z-index value +

    {{_i}}Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.{{/i}}

    @@ -775,6 +781,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    + + {{_i}}z-index{{/i}} + {{_i}}number{{/i}} + 1010 + The popovers z-index value +

    {{_i}}Notice Individual popover instance options can alternatively be specified through the use of data attributes.{{/i}}

    -- cgit v1.2.3 From e726b231ba0c0c0effb13c9458842d64bda0e58c Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 27 Jan 2012 21:59:06 -0800 Subject: add toggle to docs for popover/tooltip --- docs/templates/pages/javascript.mustache | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index ec711a312..9113c1776 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -695,6 +695,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    .tooltip('hide')

    {{_i}}Hides an elements tooltip.{{/i}}

    $('#element').tooltip('hide')
    +

    .tooltip('toggle')

    +

    {{_i}}Toggles an elements tooltip.{{/i}}

    +
    $('#element').tooltip('toggle')
    @@ -803,6 +806,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    .popover('hide')

    {{_i}}Hides an elements popover.{{/i}}

    $('#element').popover('hide')
    +

    .popover('toggle')

    +

    {{_i}}Toggles an elements popover.{{/i}}

    +
    $('#element').popover('toggle')
    -- cgit v1.2.3 From 7cbb5868259ef95aacbd16812c25ac73ea76ca2d Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 27 Jan 2012 22:27:06 -0800 Subject: move the matcher and sorter into the options - encourage people to override them... --- docs/templates/pages/javascript.mustache | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 9113c1776..3c7a3b101 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1288,7 +1288,7 @@ $('.myCarousel').carousel({ {{_i}}Name{{/i}} {{_i}}type{{/i}} - {{_i}}default{{/i}} + {{_i}}default{{/i}} {{_i}}description{{/i}} @@ -1305,6 +1305,18 @@ $('.myCarousel').carousel({ 8 {{_i}}The max number of items to display in the dropdown.{{/i}} + + {{_i}}matcher{{/i}} + {{_i}}function{{/i}} + case sensitive + {{_i}}The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.{{/i}} + + + {{_i}}sorter{{/i}} + {{_i}}function{{/i}} + no sort + {{_i}}Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.{{/i}} + @@ -1313,6 +1325,9 @@ $('.myCarousel').carousel({
     <input type="text" data-provide="typeahead">
     
    +

    {{_i}}Methods{{/i}}

    +

    .typeahead({{_i}}options{{/i}})

    +

    {{_i}}Initializes an input with a typahead.{{/i}}

    \ No newline at end of file -- cgit v1.2.3 From cb8606f2c84adb57c82dd7bd401574a2376ff952 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 22:52:45 -0800 Subject: adding wells and close icon to the docs under misc in components, with a new subnav style --- docs/templates/pages/base-css.mustache | 53 ------- docs/templates/pages/components.mustache | 229 +++++++++++++++++++++++-------- 2 files changed, 171 insertions(+), 111 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 23a6a37a2..ad27d2be8 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -323,59 +323,6 @@ - -

    {{_i}}Inline labels for special attention{{/i}}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Labels{{/i}}{{_i}}Markup{{/i}}
    - {{_i}}Default{{/i}} - - <span class="label">{{_i}}Default{{/i}}</span> -
    - {{_i}}New{{/i}} - - <span class="label success">{{/_i}}New{{/i}}</span> -
    - {{_i}}Warning{{/i}} - - <span class="label warning">{{_i}}Warning{{/i}}</span> -
    - {{_i}}Important{{/i}} - - <span class="label important">{{_i}}Important{{/i}}</span> -
    - {{_i}}Info{{/i}} - - <span class="label info">{{_i}}Info{{/i}}</span> -
    - diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 48de1f8bf..98e7c3f3f 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -5,15 +5,27 @@

    {{_i}}Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.{{/i}}

    @@ -862,6 +874,66 @@ + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{_i}}Labels{{/i}}{{_i}}Markup{{/i}}
    + {{_i}}Default{{/i}} + + <span class="label">{{_i}}Default{{/i}}</span> +
    + {{_i}}New{{/i}} + + <span class="label success">{{/_i}}New{{/i}}</span> +
    + {{_i}}Warning{{/i}} + + <span class="label warning">{{_i}}Warning{{/i}}</span> +
    + {{_i}}Important{{/i}} + + <span class="label important">{{_i}}Important{{/i}}</span> +
    + {{_i}}Info{{/i}} + + <span class="label info">{{_i}}Info{{/i}}</span> +
    +
    + + +
    @@ -1103,32 +1175,32 @@ -
    - +
    + -

    {{_i}}Examples and markup{{/i}}

    -
    -
    -

    {{_i}}Basic{{/i}}

    -

    {{_i}}Default progress bar with a vertical gradient.{{/i}}

    -
    -
    -
    +

    {{_i}}Examples and markup{{/i}}

    +
    +
    +

    {{_i}}Basic{{/i}}

    +

    {{_i}}Default progress bar with a vertical gradient.{{/i}}

    +
    +
    +
     <div class="progress">
       <div class="bar"
            style="width: 60%;"></div>
     </div>
     
    -
    -
    -

    {{_i}}Striped{{/i}}

    -

    {{_i}}Uses a gradient to create a striped effect.{{/i}}

    -
    -
    -
    +
    +
    +

    {{_i}}Striped{{/i}}

    +

    {{_i}}Uses a gradient to create a striped effect.{{/i}}

    +
    +
    +
     <div class="progress info
          striped">
    @@ -1136,13 +1208,13 @@
            style="width: 20%;"></div>
     </div>
     
    -
    -
    -

    {{_i}}Animated{{/i}}

    -

    {{_i}}Takes the striped example and animates it.{{/i}}

    -
    -
    -
    +
    +
    +

    {{_i}}Animated{{/i}}

    +

    {{_i}}Takes the striped example and animates it.{{/i}}

    +
    +
    +
     <div class="progress danger
          striped active">
    @@ -1150,31 +1222,72 @@
            style="width: 40%;"></div>
     </div>
     
    -
    -
    +
    +
    + +

    {{_i}}Options and browser support{{/i}}

    +
    +
    +

    {{_i}}Additional colors{{/i}}

    +

    {{_i}}Progress bars utilize some of the same classes as buttons and alert messages for quick styling.{{/i}}

    +
      +
    • .info
    • +
    • .success
    • +
    • .danger
    • +
    +

    {{_i}}Alternatively, you can customize the LESS files and roll your own colors and sizes.{{/i}}

    +
    +
    +

    {{_i}}Behavior{{/i}}

    +

    {{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}

    +

    {{_i}}If you use the .active class, your .striped progress bars will animate the stripes left to right.{{/i}}

    +
    +
    +

    {{_i}}Browser support{{/i}}

    +

    {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.{{/i}}

    +

    {{_i}}Opera does not support animations at this time.{{/i}}

    +
    +
    + +
    + + + + + + +
    + +
    +
    +

    {{_i}}Wells{{/i}}

    +

    {{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}

    +
    + {{_i}}Look, I'm in a well!{{/i}} +
    +
    +<div class="well">
    +  ...
    +</div>
    +
    +
    + +
    +

    {{_i}}Close icon{{/i}}

    +

    {{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}

    +

    ×

    +
    <a class="close">&times;</a>
    +
    +
    +
    + + -

    {{_i}}Options and browser support{{/i}}

    -
    -
    -

    {{_i}}Additional colors{{/i}}

    -

    {{_i}}Progress bars utilize some of the same classes as buttons and alert messages for quick styling.{{/i}}

    -
      -
    • .info
    • -
    • .success
    • -
    • .danger
    • -
    -

    {{_i}}Alternatively, you can customize the LESS files and roll your own colors and sizes.{{/i}}

    -
    -
    -

    {{_i}}Behavior{{/i}}

    -

    {{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}

    -

    {{_i}}If you use the .active class, your .striped progress bars will animate the stripes left to right.{{/i}}

    -
    -
    -

    {{_i}}Browser support{{/i}}

    -

    {{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.{{/i}}

    -

    {{_i}}Opera does not support animations at this time.{{/i}}

    -
    -
    -
    -- cgit v1.2.3 From 08fea7587c536b7daa2c976cdb50144379ae2a62 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jan 2012 23:27:33 -0800 Subject: call attention to notices in js docs more --- docs/templates/pages/javascript.mustache | 53 ++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 16 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 3c7a3b101..ee70bf21b 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -81,7 +81,7 @@
    -
    +
    +
    {{_i}}Heads up!{{/i}} {{_i}}All javascript plugins require the latest version of jQuery.{{/i}}
    @@ -220,7 +221,9 @@ </div> </div> -

    {{_i}}Notice If you want your modal to animate in and out, just add a .fade class to the .modal element (refer to the demo to see this in action).{{/i}}

    +
    + {{_i}}Heads up!{{/i}} {{_i}}If you want your modal to animate in and out, just add a .fade class to the .modal element (refer to the demo to see this in action) and include bootstrap-transition.js.{{/i}} +
    Methods{{/i}}

    .modal({{_i}}options{{/i}})

    {{_i}}Activates your content as a modal. Accepts an optional options object.{{/i}}

    @@ -374,7 +377,9 @@ $('#myModal').on('hidden', function () {
    $('.dropdown-toggle').dropdown()

    {{_i}}Markup{{/i}}

    {{_i}}To quickly add dropdown functionality to any element just add data-toggle="dropdown" and any valid bootstrap dropdown will automatically be activated.{{/i}}

    -

    {{_i}}Notice For added control and flexibility, optionally specify a data-target="#fat" or href="#fat" - this allows you to target specific dropdowns.{{/i}}

    +
    + {{_i}}Heads up!{{/i}}{{_i}} You may optionally target a specific dropdown by using data-target="#fat" or href="#fat".{{/i}} +
     <ul class="nav pills">
    @@ -468,7 +473,10 @@ $('#myModal').on('hidden', function () {
               

    {{_i}}Markup{{/i}}

    {{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll" to the element you want to spy on (most typically this would be the body).{{/i}}

    <body data-spy="scroll" >...</body>
    -

    {{_i}}Notice Navbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Navbar links must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.{{/i}} +

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

    @@ -683,7 +691,10 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
    -

    {{_i}}Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}} +

    {{_i}}Markup{{/i}}

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

    {{_i}}Methods{{/i}}

    @@ -792,7 +803,10 @@ $('a[data-toggle="tab"]').on('shown', function (e) { -

    {{_i}}Notice Individual popover instance options can alternatively be specified through the use of data attributes.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}} +

    {{_i}}Markup{{/i}}

    {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option.{{/i}} @@ -965,19 +979,23 @@ $('#my-alert').bind('closed', function () {

    {{_i}}Methods{{/i}}

    $().button('toggle')

    {{_i}}Toggles push state. Gives btn the look that it's been activated.{{/i}}

    -

    {{_i}}Notice You can enable auto toggling of a button by using the data-toggle attribute.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}You can enable auto toggling of a button by using the data-toggle attribute.{{/i}} +
    <button class="btn" data-toggle="button" >…</button>

    $().button('loading')

    {{_i}}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.{{/i}}

    -
    <button class="btn" data-loading-text="loading stuff..." >...</button>
    -

    - {{_i}}Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off". More info can be found here.{{/i}} -

    -

    $().button('reset')

    -

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    -

    $().button(string)

    -

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    +
    <button class="btn" data-loading-text="loading stuff..." >...</button>
    +
    + {{_i}}Heads up!{{/i}} + {{_i}}Firefox persists the disabled state across page loads. A workaround for this is to use autocomplete="off".{{/i}} +
    +

    $().button('reset')

    +

    {{_i}}Resets button state - swaps text to original text.{{/i}}

    +

    $().button(string)

    +

    {{_i}}Resets button state - swaps text to any data defined text state.{{/i}}

    <button class="btn" data-complete-text="finished!" >...</button>
     <script>
       $('.btn').button('complete')
    @@ -1081,7 +1099,10 @@ $('#my-alert').bind('closed', function () {
     </button>
     
     <div id="demo" class="collapse in"> … </div>
    -

    {{_i}}Notice To add accordion like group management to a collapsible control just add the additional data attribute data-parent="#selector". Refer to the demo below to see this in action.{{/i}}

    +
    + {{_i}}Heads up!{{/i}} + {{_i}}To add accordion-like group management to a collapsible control, add the data attribute data-parent="#selector". Refer to the demo to see this in action.{{/i}} +

    {{_i}}Methods{{/i}}

    .collapse({{_i}}options{{/i}})

    {{_i}}Activates your content as a collapsible element. Accepts an optional options object.{{/i}} -- cgit v1.2.3 From d448e6921e6fc39e4fe7f484da004b2196517478 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 00:23:30 -0800 Subject: rewrite the code section of the type docs --- docs/templates/pages/base-css.mustache | 80 ++++++++++++++++------------------ 1 file changed, 38 insertions(+), 42 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index ad27d2be8..f235d9b05 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -6,6 +6,7 @@

    + - - -

    {{_i}}Code Inline and block{{/i}}

    - - - - - - - - - - - - - - - - - - - - - -
    {{_i}}Element{{/i}}{{_i}}Result{{/i}}
    <code>{{_i}}In a line of text like this, your wrapped code will look like this <html> element.{{/i}}
    <pre> -
    <div>
    -  <h1>{{_i}}Heading{{/i}}</h1>
    -  <p>{{_i}}Something right here…{{/i}}</p>
    -</div>
    -

    {{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

    -
    <pre class="prettyprint"> -

    {{_i}}Using the google-code-prettify library, your blocks of code get a slightly different visual style and automatic syntax highlighting. You can also add an additional class to add line numbers.{{/i}}

    -
    <div>
    -  <h1>{{_i}}Heading{{/i}}</h1>
    -  <p>{{_i}}Something right here…{{/i}}</p>
    -</div>
    -
    <div>
    -  <h1>{{_i}}Heading{{/i}}</h1>
    -  <p>{{_i}}Something right here…{{/i}}</p>
    -</div>
    -

    {{_i}}Download google-code-prettify and view the readme for how to use.{{/i}}

    -
    + +
    + +
    +
    +

    Inline

    +

    Wrap inline snippets of code with <code>.

    +
    +{{_i}}For example, <code>section</code> should be wrapped as inline.{{/i}}
    +
    +
    +
    +

    Basic block

    +

    {{_i}}Use <pre> for multiple lines of code. Be sure to turn any carets into their unicode characters for proper rendering.{{/i}}

    +
    +<pre>
    +  &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
    +</pre>
    +
    +

    {{_i}}Note: Be sure to keep code within <pre> tags as close to the left as possible; it will render all tabs.{{/i}}

    +
    +
    +

    Google Prettify

    +

    Take the same <pre> element and add two optional classes for enhanced rendering.

    +
    +<pre class="prettyprint
    +     linenums">
    +  &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
    +</pre>
    +
    +

    {{_i}}Download google-code-prettify and view the readme for how to use.{{/i}}

    +
    +
    -- cgit v1.2.3 From 873be0e4f2a7e961998a8726e9953ae5111b3d85 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 00:25:54 -0800 Subject: drop span2-4 on form examples to 1-3 --- docs/templates/pages/base-css.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index f235d9b05..23d72efd5 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1001,9 +1001,9 @@
    + -

    {{_i}}Use the same .span* classes from the grid system for input sizes.{{/i}}

    -- cgit v1.2.3 From 18d95a163b23296b7c2242a98aa1f66b3bd22a7a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 00:34:54 -0800 Subject: remove fixed width from labels table --- docs/templates/pages/components.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 98e7c3f3f..d08ea98b5 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -883,7 +883,7 @@ - + -- cgit v1.2.3 From 4737d693e00989a0f90f832a7c8f4f784df14077 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 28 Jan 2012 00:36:37 -0800 Subject: remove quick start section to simplify landing page + start rewriting application js to work ie7 --- docs/templates/pages/index.mustache | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index 5eb2774ab..5fa70645a 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -147,38 +147,5 @@ -
    - - -

    {{_i}}Get started in no time.{{/i}}

    - -
    -
    -
    -

    {{_i}}Prostyle with Node{{/i}}

    -

    {{_i}}If you use Node, download the repo, customize Bootstrap, and run make.{{/i}}

    -
    -$ git clone git@github.com:twitter/bootstrap.git
    -$ make
    -
    -
    -

    {{_i}}Hotlink the CSS{{/i}}

    -

    {{_i}}For the quickest and easiest start, just copy this snippet into your code to get the CSS.{{/i}}

    -
    - - -
    -
    -

    {{_i}}Use LESS.js{{/i}}

    -

    {{_i}}A fan of using LESS? No problem, just link to the appropriate .less and .js files:{{/i}}

    -
    - - -
    -
    -
    - \ No newline at end of file -- cgit v1.2.3 From 967030cb532c642f076d1e1fc4e5a1e2cee18561 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 00:39:22 -0800 Subject: modal refinements in docs and general responsiveness --- docs/templates/pages/javascript.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index ee70bf21b..edafbbf0f 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -128,7 +128,7 @@

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

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

    -
    +
    @@ -790,7 +790,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { -- cgit v1.2.3 From d65ce1b64c0049e4fe37a79a4962d8444415ee00 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 01:34:07 -0800 Subject: updated upgrading page --- docs/templates/pages/upgrading.mustache | 271 ++++++++++++++++++++++---------- 1 file changed, 185 insertions(+), 86 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/upgrading.mustache b/docs/templates/pages/upgrading.mustache index cc731eae1..2339b2e1c 100644 --- a/docs/templates/pages/upgrading.mustache +++ b/docs/templates/pages/upgrading.mustache @@ -1,86 +1,185 @@ - -
    -

    {{_i}}Upgrading to Bootstrap 2{{/i}}

    -

    {{_i}}Learn about significant changes and additions since v1.4 with this handy guide.{{/i}}

    -
    - - -

    Rough outline

    -
      -
    • {{_i}}Docs completely overhauled{{/i}} -
        -
      • {{_i}}Responsive thanks to new grid system{{/i}}
      • -
      • {{_i}}Now less marketing and more information{{/i}}
      • -
      • {{_i}}Extensive use of tables to share classes and elements of most components{{/i}}
      • -
      • {{_i}}Broken down into several pages for easier consumption{{/i}}
      • -
      -
    • -
    • {{_i}}Updated grid system, now only 12 columns{{/i}} -
        -
      • {{_i}}Same great classes, but now only 12 columns{{/i}}
      • -
      • {{_i}}Responsive approach means your projects virtually work out of the box on smartphones, tablets, and more{{/i}}
      • -
      -
    • -
    • {{_i}}New thumbnails (previously media grids){{/i}} -
        -
      • {{_i}}.media-grid class has been changed to .thumbnails{{/i}}
      • -
      • {{_i}}Individual thumbnails now require .thumbnail class{{/i}}
      • -
      -
    • -
    • {{_i}}Updated forms{{/i}} -
        -
      • {{_i}}Default form style is now stacked to use less CSS and add flexibility{{/i}}
      • -
      • {{_i}}Exact same markup is required for vertical or horizontal forms—just swap the classes{{/i}}
      • -
      • {{_i}}New form defaults for search, inline, vertical, and horizontal{{/i}}
      • -
      -
    • -
    • Updated tables -
        -
      • {{_i}}Table classes made more consistent{{/i}}
      • -
      • {{_i}}Removed unused table color options (too much code for such little impact){{/i}}
      • -
      -
    • -
    • Typography -
        -
      • {{_i}}Right-aligned option for blockquotes if float: right;{{/i}}
      • -
      • {{_i}}h4 elements were dropped from 16px to 14px with a default line-height of 18px{{/i}}
      • -
      • {{_i}}h5 elements were dropped from 14px to 12px{{/i}}
      • -
      • {{_i}}h6 elements were dropped from 13px to 11px{{/i}}
      • -
      -
    • -
    • {{_i}}Buttons{{/i}} -
        -
      • {{_i}}Added button bar options{{/i}}
      • -
      -
    • -
    • {{_i}}Examples{{/i}} -
        -
      • {{_i}}Fluid examples redone. .fluid-container now requires a .sidebar-left or .sidebar-right as well. Fluid sidebar element has a new class, .fluid-sidebar.{{/i}}
      • -
      -
    • -
    • {{_i}}Dropdown menus{{/i}} -
        -
      • {{_i}}Updated the .dropdown-menu to tighten up spacing{{/i}}
      • -
      • {{_i}}Now requires you to add a <span class="caret"></span> to show the dropdown arrow{{/i}}
      • -
      • {{_i}}The navbar (fixed topbar) has brand new dropdowns. Gone are the dark versions and in their place are the standard white ones with an additional caret at their tops for clarity of position.{{/i}}
      • -
      -
    • -
    • {{_i}}Navigation{{/i}} -
        -
      • {{_i}}Tabs and pills now require the use of a new base class, .nav, on their <ul>{{/i}}
      • -
      • {{_i}}New nav list component added that uses the same base class, .nav{{/i}}
      • -
      • {{_i}}Vertical tabs and pills have been added—just add .stacked to the <ul><{{/i}}/li> -
      • {{_i}}Pills were restyled to be less rounded by default{{/i}}
      • -
      • {{_i}}Pills now have dropdown menu support (they share the same markup and styles as tabs){{/i}}
      • -
      -
    • -
    - - \ No newline at end of file + +
    +

    {{_i}}Upgrading to Bootstrap 2{{/i}}

    +

    {{_i}}Learn about significant changes and additions since v1.4 with this handy guide.{{/i}}

    +
    + + + + +
    + +
      +
    • {{_i}}Docs: major updates across the board to general structure, examples, and code snippets. Also made responsive with new media queries.{{/i}}
    • +
    • {{_i}}Docs: all docs pages are now powered by Mustache templates and strings are wrapped in i18n tags for translation by the Twitter Translation Center. All changes to documentation must be done here and then compiled (similar to our CSS and LESS).{{/i}}
    • +
    • {{_i}}Repo directory structure: removed the compiled CSS from the root in favor of a large direct download link on the docs homepage. Compiled CSS is in /docs/assets/css/.{{/i}}
    • +
    • {{_i}}Docs and repo: one makefile, just type make in the Terminal and get updated docs and CSS.{{/i}}
    • +
    +
    + + + + +
    + +

    {{_i}}Grid system{{/i}}

    +
      +
    • {{_i}}Updated grid system, now only 12 columns instead of 16{{/i}} +
    • {{_i}}Responsive approach means your projects virtually work out of the box on smartphones, tablets, and more{{/i}}
    • +
    • {{_i}}Removed unused (by default) grid columns support for 17-24 columns{{/i}}
    • +
    +

    {{_i}}Responsive (media queries){{/i}}

    +
      +
    • {{_i}}Media queries added for basic support across mobile and tablet devices{{/i}} +
    • {{_i}}Responsive CSS is compiled separately, as bootstrap-responsive.css{{/i}}
    • +
    +
    + + + + +
    + +

    {{_i}}Typography{{/i}}

    +
      +
    • {{_i}}h4 elements were dropped from 16px to 14px with a default line-height of 18px{{/i}}
    • +
    • {{_i}}h5 elements were dropped from 14px to 12px{{/i}}
    • +
    • {{_i}}h6 elements were dropped from 13px to 11px{{/i}}
    • +
    • {{_i}}Right-aligned option for blockquotes if float: right;{{/i}}
    • +
    +

    {{_i}}Code{{/i}}

    +
      +
    • {{_i}}New graphical style for <code>{{/i}}
    • +
    • {{_i}}Google Code Prettify styles updated (based on GitHub's gists){{/i}}
    • +
    +

    {{_i}}Tables{{/i}}

    +
      +
    • {{_i}}Improved support for colspan and rowspan{{/i}}
    • +
    • {{_i}}Styles now restricted to new base class, .table{{/i}}
    • +
    • {{_i}}Table classes standardized with .table- required as a prefix{{/i}}
    • +
    • {{_i}}Removed unused table color options (too much code for such little impact){{/i}}
    • +
    • {{_i}}Dropped support for TableSorter{{/i}}
    • +
    +

    {{_i}}Buttons{{/i}}

    +
      +
    • {{_i}}IE9: removed gradients and added rounded corners{{/i}}
    • +
    • {{_i}}Updated active state to make styling clearer in button groups (new) and look better with custom transition{{/i}}
    • +
    • {{_i}}New mixin, .buttonBackground, to set button gradients{{/i}}
    • +
    +

    {{_i}}Forms{{/i}}

    +
      +
    • {{_i}}Default form style is now vertical (stacked_ to use less CSS and add greater flexibility{{/i}}
    • +
    • {{_i}}Form classes standardized with .form- required as a prefix{{/i}}
    • +
    • {{_i}}New built-in form defaults for search, inline, and horizontal forms{{/i}}
    • +
    • {{_i}}More flexible horizontal form markup with classes for all styling, including new optional class for the label{{/i}}
    • +
    • {{_i}}Form states: colors updated and customizable via new LESS variables{{/i}}
    • +
    +

    {{_i}}Icons, by Glyphicons{{/i}}

    +
      +
    • {{_i}}New Glyphicons Halflings icon set added in sprite form, in black and white{{/i}}
    • +
    • {{_i}}Simple markup required for an icon in tons of contexts: <i class="icon cog"></>{{/i}}
    • +
    • {{_i}}Add another class, .white, for white variation of the same icon{{/i}}
    • +
    +
    + + + + +
    + +

    {{_i}}Button groups and dropdowns{{/i}}

    +
      +
    • {{_i}}Two brand new components in 2.0: button groups and button dropdowns{{/i}}
    • +
    • {{_i}}Dependency: button dropdowns are built on button groups, and therefore require all their styles{{/i}}
    • +
    • {{_i}}Button groups, .btn-group, can be grouped one level higher with a button toolbar, .btn-toolbar{{/i}}
    • +
    +

    {{_i}}Navigation{{/i}}

    +
      +
    • {{_i}}Tabs and pills now require the use of a new base class, .nav, on their <ul>{{/i}}
    • +
    • {{_i}}New nav list variation added that uses the same base class, .nav{{/i}}
    • +
    • {{_i}}Vertical tabs and pills have been added—just add .stacked to the <ul>{{/i}}
    • +
    • {{_i}}Pills were restyled to be less rounded by default{{/i}}
    • +
    • {{_i}}Pills now have dropdown menu support (they share the same markup and styles as tabs){{/i}}
    • +
    +

    {{_i}}Dropdown menus{{/i}}

    +
      +
    • {{_i}}Updated the .dropdown-menu to tighten up spacing{{/i}}
    • +
    • {{_i}}Now requires you to add a <span class="caret"></span> to show the dropdown arrow{{/i}}
    • +
    • {{_i}}The navbar (fixed topbar) has brand new dropdowns. Gone are the dark versions and in their place are the standard white ones with an additional caret at their tops for clarity of position.{{/i}}
    • +
    +

    {{_i}}Labels{{/i}}

    +
      +
    • {{_i}}Label colors updated to match form state colors{{/i}}
    • +
    • {{_i}}Not only do they match graphically, but they are powered by the same new variables{{/i}}
    • +
    +

    {{_i}}Thumbnails{{/i}}

    +
      +
    • {{_i}}Formerly .media-grid, now just .thumbnails, we've thoroughly extended this component for more uses while maintaining overall simplicity out of the box.{{/i}}
    • +
    • {{_i}}Individual thumbnails now require .thumbnail class{{/i}}
    • +
    +

    {{_i}}Alerts{{/i}}

    +
      +
    • {{_i}}New base class: .alert instead of .alert-message{{/i}}
    • +
    • {{_i}}Class names standardized for other options, now all starting with .alert-{{/i}}
    • +
    • {{_i}}Redesigned base alert styles to combine the deafult alerts and block-level alerts into one{{/i}}
    • +
    • {{_i}}Block level alert class changed: .alert-block instead of .block-message{{/i}}
    • +
    +

    {{_i}}Progress bars{{/i}}

    +
      +
    • {{_i}}New in 2.0{{/i}}
    • +
    • {{_i}}Features multiple styles via classes, including striped and animated variations via CSS3{{/i}}
    • +
    +

    {{_i}}Miscellaneous components{{/i}}

    +
      +
    • {{_i}}Added documentation for the well component and the close icon (used in modals and alerts){{/i}}
    • +
    +
    + + + + +
    + +
    + + + + +
    + +

    {{_i}}Variables{{/i}}

    +

    {{_i}}Mixins{{/i}}

    +
    + + + + +
    + +
      +
    • {{_i}}New in 2.0{{/i}}
    • +
    +
    + -- cgit v1.2.3 From 12d3c2fe74bbe2570e47a2c8d7154a3011bd0770 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 28 Jan 2012 12:08:41 -0800 Subject: fix z-index issue with modals for popovers,tooltips,and dropdowns --- docs/templates/pages/javascript.mustache | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 01b14b676..46420660a 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -683,12 +683,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    - - - - - -
    {{_i}}Labels{{/i}}{{_i}}Labels{{/i}} {{_i}}Markup{{/i}}
    {{_i}}number | object{{/i}} 0 -

    {{_i}}delay showing/hiding the tooltip (ms){{/i}}

    +

    {{_i}}delay showing and hiding the tooltip (ms){{/i}}

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    {{_i}}number | object{{/i}} 0 -

    {{_i}}delay showing/hiding the popover (ms){{/i}}

    +

    {{_i}}delay showing and hiding the popover (ms){{/i}}

    {{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    {{_i}}z-index{{/i}}{{_i}}number{{/i}}1020The tooltips z-index value
    @@ -795,12 +789,6 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

    - - {{_i}}z-index{{/i}} - {{_i}}number{{/i}} - 1010 - The popovers z-index value -
    @@ -1021,7 +1009,7 @@ $('#my-alert').bind('closed', function () {

    {{_i}}Example accordion{{/i}}

    {{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}

    - +
    @@ -1061,7 +1049,7 @@ $('#my-alert').bind('closed', function () {
    - +

    {{_i}}Using bootstrap-collapse.js{{/i}}

    Enable via javascript:

    -- cgit v1.2.3 From 2bfda031cebcde7361797dd54badeb91d4cb98cf Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 12:43:19 -0800 Subject: darken buttons, uncomment out firefox keyframes from progress bars --- docs/templates/pages/base-css.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 23d72efd5..6cbb111ac 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1063,11 +1063,11 @@
    -- cgit v1.2.3 From 6935f693b3bce10f9bfe7b7e1f3c2705ff2b6ca2 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 28 Jan 2012 13:16:05 -0800 Subject: typahead does case insensitive matching with simple sorter + accepts highlighter option --- docs/templates/pages/javascript.mustache | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 46420660a..cba75ac08 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1297,7 +1297,7 @@ $('.myCarousel').carousel({ {{_i}}Name{{/i}} {{_i}}type{{/i}} - {{_i}}default{{/i}} + {{_i}}default{{/i}} {{_i}}description{{/i}} @@ -1317,15 +1317,21 @@ $('.myCarousel').carousel({ {{_i}}matcher{{/i}} {{_i}}function{{/i}} - case sensitive + {{_i}}case insensitive{{/i}} {{_i}}The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match.{{/i}} {{_i}}sorter{{/i}} {{_i}}function{{/i}} - no sort + {{_i}}exact match,
    case sensitive,
    case insensitive{{/i}} {{_i}}Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query.{{/i}} + + {{_i}}highlighter{{/i}} + {{_i}}function{{/i}} + {{_i}}highlights all default matches{{/i}} + {{_i}}Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.{{/i}} + -- cgit v1.2.3 From fe6d2f2e1d181ef6e62eb02fab6a4e16e494d892 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 13:30:15 -0800 Subject: fix tabs-below typo --- docs/templates/pages/components.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index d08ea98b5..363ed1ba1 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -499,7 +499,7 @@
    -<div class="tabbable tabs-bottom">
    +<div class="tabbable tabs-below">
       <ul class="nav tabs">
         ...
       </ul>
    -- 
    cgit v1.2.3
    
    
    From 23e076c1bb73c4950d473cb36218937b2607bc13 Mon Sep 17 00:00:00 2001
    From: Mark Otto 
    Date: Sat, 28 Jan 2012 15:09:23 -0800
    Subject: add in a navbar button for toggling the nav items
    
    ---
     docs/templates/layout.mustache | 5 +++++
     1 file changed, 5 insertions(+)
    
    (limited to 'docs/templates')
    
    diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache
    index 46e3d03d6..673673dff 100644
    --- a/docs/templates/layout.mustache
    +++ b/docs/templates/layout.mustache
    @@ -33,6 +33,11 @@
         
    -
    +

    {{_i}}Nav links{{/i}}

    {{_i}}Nav items are simple to add via unordered lists.{{/i}}

    @@ -691,9 +698,9 @@ </li> </ul> -

    {{_i}}Get the javascript →{{/i}}

    -
    -
    +

    {{_i}}Get the javascript →{{/i}}

    +
    + -- cgit v1.2.3 From 99ac6ca08ed27126d2ad1dd4d0e820205aab9c48 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 18:39:36 -0800 Subject: update components page to include docs for the new navbar collapse feature, re-add responsive.less to downloader --- docs/templates/pages/components.mustache | 29 ++++++++++++++++++++++++++++- docs/templates/pages/download.mustache | 6 +----- 2 files changed, 29 insertions(+), 6 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 3a92953ae..5c91431fa 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -395,7 +395,7 @@

    {{_i}}Nav links{{/i}}

    diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index dccc5fbb6..34f8130ac 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -63,12 +63,8 @@ - +
    -- cgit v1.2.3 From 5f314dcb85b011d30bbe845e00932a9a550d4e71 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 28 Jan 2012 20:27:18 -0800 Subject: remove benefits from homepage html --- docs/templates/pages/index.mustache | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index 5fa70645a..4ae3b7a6f 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -10,18 +10,6 @@ {{_i}}View project on GitHub{{/i}} {{_i}}Download Bootstrap{{/i}}

    -
    -

    {{_i}}Feature highlights{{/i}}

    -
      -
    • {{_i}}Built on LESS{{/i}}
    • -
    • {{_i}}Complete style guide docs{{/i}}
    • -
    • {{_i}}Fully responsive design{{/i}}
    • -
    • {{_i}}Small footprint (10kb gzipped){{/i}}
    • -
    • {{_i}}Support for IE7 and up{{/i}}
    • -
    • {{_i}}Custom jQuery plugins{{/i}}
    • -
    • {{_i}}Dozens of components{{/i}}
    • -
    -
    - - - -
    -- cgit v1.2.3 From 2d40b07afc62ce9d899a290ab33222fd18287190 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 08:15:28 -0800 Subject: adding warning (orange) button, fix responsive navbar problem --- docs/templates/pages/base-css.mustache | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 95de45e09..433a18c88 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -1153,6 +1153,11 @@ .success {{_i}}Indicates a successful or positive action{{/i}} + + {{_i}}Warning{{/i}} + .warning + {{_i}}Indicates caution should be taken with this action{{/i}} + {{_i}}Danger{{/i}} .danger -- cgit v1.2.3 From 774904464dc8237b36be8197ca7c91d701ce4f0e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 08:58:40 -0800 Subject: fix docs: move .pull-left from search input to search form in navbar --- docs/templates/pages/components.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index b257cd4d1..214478966 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -741,8 +741,8 @@

    {{_i}}Search form{{/i}}

    {{_i}}Search forms receive custom styles in the navbar with the .navbar-search class. Include .pull-left or .pull-right on the form to align it.{{/i}}

    -<form class="navbar-search">
    -  <input type="text" class="search-query pull-left" placeholder="{{_i}}Search{{/i}}">
    +<form class="navbar-search pull-left">
    +  <input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">
     </form>
     

    {{_i}}Optional responsive variation{{/i}}

    -- cgit v1.2.3 From 74f2a89611b818fda662dbbbb5d978549cae14c2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 10:01:02 -0800 Subject: fix wrong value in grid column width in download page --- docs/templates/pages/download.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache index 1609c02b0..4cc3244f5 100644 --- a/docs/templates/pages/download.mustache +++ b/docs/templates/pages/download.mustache @@ -174,7 +174,7 @@ - +

    {{_i}}Fluid grid system{{/i}}

    -- cgit v1.2.3 From 21bebe77feb9265b06d65e1e941cf7c73c4d90c1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 20:50:51 -0800 Subject: refactor buttons.less --- docs/templates/pages/index.mustache | 263 ++++++++++++++++++------------------ 1 file changed, 130 insertions(+), 133 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index d49f95f9b..5ef0c680a 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -1,139 +1,136 @@ -
    + +
    +
    +

    {{_i}}Bootstrap, from Twitter{{/i}}

    +

    Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.

    +

    + {{_i}}View project on GitHub{{/i}} + {{_i}}Download Bootstrap{{/i}} +

    +
    - -
    -
    -

    {{_i}}Bootstrap, from Twitter{{/i}}

    -

    Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.

    -

    - {{_i}}View project on GitHub{{/i}} - {{_i}}Download Bootstrap{{/i}} -

    -
    + +
    - -
    +
    -
    +
    +

    {{_i}}Designed for everyone, everywhere.{{/i}}

    + +
    +
    + +

    {{_i}}Built for and by nerds{{/i}}

    +

    {{_i}}Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.{{/i}}

    +
    +
    + +

    {{_i}}For all skill levels{{/i}}

    +

    {{_i}}Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.{{/i}}

    +
    +
    + +

    {{_i}}Cross-everything{{/i}}

    +

    {{_i}}Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.{{/i}}

    +
    +
    +
    +
    + +

    {{_i}}12-column grid{{/i}}

    +

    {{_i}}Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.{{/i}}

    +
    +
    + +

    {{_i}}Responsive design{{/i}}

    +

    {{_i}}With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

    +
    +
    + +

    {{_i}}Styleguide docs{{/i}}

    +

    {{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}

    +
    +
    +
    +
    + +

    {{_i}}Growing library{{/i}}

    +

    {{_i}}Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.{{/i}}

    +
    +
    + +

    {{_i}}Custom jQuery plugins{{/i}}

    +

    {{_i}}What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.{{/i}}

    +
    +
    + +

    {{_i}}Built on LESS{{/i}}

    +

    {{_i}}Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.{{/i}}

    +
    +
    +
    +
    + +

    HTML5

    +

    {{_i}}Built to support new HTML5 elements and syntax.{{/i}}

    +
    +
    + +

    CSS3

    +

    {{_i}}Progressively enhanced components for ultimate style.{{/i}}

    +
    +
    + +

    {{_i}}Open-source{{/i}}

    +

    {{_i}}Built for and maintained by the community via GitHub.{{/i}}

    +
    +
    + +

    {{_i}}Made at Twitter{{/i}}

    +

    {{_i}}Brought to you by an experienced engineer and designer.{{/i}}

    +
    +
    -
    -

    {{_i}}Designed for everyone, everywhere.{{/i}}

    - -
    -
    - -

    {{_i}}Built for and by nerds{{/i}}

    -

    {{_i}}Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.{{/i}}

    -
    -
    - -

    {{_i}}For all skill levels{{/i}}

    -

    {{_i}}Bootstrap is designed to help people of all skill level—designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.{{/i}}

    -
    -
    - -

    {{_i}}Cross-everything{{/i}}

    -

    {{_i}}Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.{{/i}}

    -
    -
    -
    -
    - -

    {{_i}}12-column grid{{/i}}

    -

    {{_i}}Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.{{/i}}

    -
    -
    - -

    {{_i}}Responsive design{{/i}}

    -

    {{_i}}With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}

    -
    -
    - -

    {{_i}}Styleguide docs{{/i}}

    -

    {{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}

    -
    -
    -
    -
    - -

    {{_i}}Growing library{{/i}}

    -

    {{_i}}Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.{{/i}}

    -
    -
    - -

    {{_i}}Custom jQuery plugins{{/i}}

    -

    {{_i}}What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.{{/i}}

    -
    -
    - -

    {{_i}}Built on LESS{{/i}}

    -

    {{_i}}Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.{{/i}}

    -
    -
    -
    -
    - -

    HTML5

    -

    {{_i}}Built to support new HTML5 elements and syntax.{{/i}}

    -
    -
    - -

    CSS3

    -

    {{_i}}Progressively enhanced components for ultimate style.{{/i}}

    -
    -
    - -

    {{_i}}Open-source{{/i}}

    -

    {{_i}}Built for and maintained by the community via GitHub.{{/i}}

    -
    -
    - -

    {{_i}}Made at Twitter{{/i}}

    -

    {{_i}}Brought to you by an experienced engineer and designer.{{/i}}

    -
    -
    +
    -
    +

    {{_i}}Built with Bootstrap.{{/i}}

    + + -

    {{_i}}Built with Bootstrap.{{/i}}

    - - - -
    -
    \ No newline at end of file +
    \ No newline at end of file -- cgit v1.2.3 From 0f3a073b8dca534e78c09b71999d5a2632e2245d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 30 Jan 2012 21:15:57 -0800 Subject: *really* refactor the buttons and update them all over the docs --- docs/templates/pages/base-css.mustache | 68 ++++++++++++++++---------------- docs/templates/pages/components.mustache | 24 +++++------ docs/templates/pages/download.mustache | 8 ++-- docs/templates/pages/index.mustache | 4 +- docs/templates/pages/javascript.mustache | 30 +++++++------- 5 files changed, 67 insertions(+), 67 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache index 433a18c88..c000c9c88 100644 --- a/docs/templates/pages/base-css.mustache +++ b/docs/templates/pages/base-css.mustache @@ -756,11 +756,6 @@ .form-vertical ({{_i}}not required{{/i}}) {{_i}}Stacked, left-aligned labels over controls{{/i}} - - {{_i}}Horizontal{{/i}} - .form-horizontal - {{_i}}Float left, right-aligned labels on same line as controls{{/i}} - {{_i}}Inline{{/i}} .form-inline @@ -771,6 +766,11 @@ .form-search {{_i}}Extra-rounded text input for a typical search aesthetic{{/i}} + + {{_i}}Horizontal{{/i}} + .form-horizontal + {{_i}}Float left, right-aligned labels on same line as controls{{/i}} + @@ -879,7 +879,7 @@
    - +
    @@ -972,7 +972,7 @@
    - +
    @@ -1096,7 +1096,7 @@
    - +
    @@ -1139,28 +1139,28 @@ {{_i}}Standard gray button with gradient{{/i}} - {{_i}}Primary{{/i}} - .primary + {{_i}}Primary{{/i}} + .btn-primary {{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}} - {{_i}}Info{{/i}} - .info + {{_i}}Info{{/i}} + .btn-info {{_i}}Used as an alternate to the default styles{{/i}} - {{_i}}Success{{/i}} - .success + {{_i}}Success{{/i}} + .btn-success {{_i}}Indicates a successful or positive action{{/i}} - {{_i}}Warning{{/i}} - .warning + {{_i}}Warning{{/i}} + .btn-warning {{_i}}Indicates caution should be taken with this action{{/i}} - {{_i}}Danger{{/i}} - .danger + {{_i}}Danger{{/i}} + .btn-danger {{_i}}Indicates a dangerous or potentially negative action{{/i}} @@ -1185,24 +1185,24 @@

    {{_i}}Multiple sizes{{/i}}

    {{_i}}Fancy larger or smaller buttons? Have at it!{{/i}}

    - {{_i}}Primary action{{/i}} - {{_i}}Action{{/i}} + {{_i}}Primary action{{/i}} + {{_i}}Action{{/i}}

    - {{_i}}Primary action{{/i}} - {{_i}}Action{{/i}} + {{_i}}Primary action{{/i}} + {{_i}}Action{{/i}}

    {{_i}}Disabled state{{/i}}

    -

    {{_i}}For disabled buttons, use .disabled for links and :disabled for <button> elements.{{/i}}

    +

    {{_i}}For disabled buttons, use .btn-disabled for links and :disabled for <button> elements.{{/i}}

    - {{_i}}Primary action{{/i}} - {{_i}}Action{{/i}} + {{_i}}Primary action{{/i}} + {{_i}}Action{{/i}}

    - - + +

    @@ -1415,8 +1415,8 @@

    {{_i}}Refresh{{/i}} - {{_i}}Checkout{{/i}} - {{_i}}Delete{{/i}} + {{_i}}Checkout{{/i}} + {{_i}}Delete{{/i}}

    - {{_i}}Comment{{/i}} - {{_i}}Settings{{/i}} - {{_i}}More Info{{/i}} + {{_i}}Comment{{/i}} + {{_i}}Settings{{/i}} + {{_i}}More Info{{/i}}

    diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 214478966..e61d83152 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -122,7 +122,7 @@
    - {{_i}}Info{{/i}} - + {{_i}}Info{{/i}} +
    @@ -163,11 +163,11 @@

    {{_i}}This link and that link should have tooltips on hover.{{/i}}

    - {{_i}}Launch demo modal{{/i}} + {{_i}}Launch demo modal{{/i}}
    @@ -216,7 +216,7 @@ <p>{{_i}}One fine body…{{/i}}</p> </div> <div class="modal-footer"> - <a href="#" class="btn primary">{{_i}}Save changes{{/i}}</a> + <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a> <a href="#" class="btn">{{_i}}Close{{/i}}</a> </div> </div> @@ -726,7 +726,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Example hover popover{{/i}}

    {{_i}}Hover over the button to trigger the popover.{{/i}}


    {{_i}}Using bootstrap-popover.js{{/i}}

    @@ -841,7 +841,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

    {{_i}}Oh snap! You got an error!{{/i}}

    {{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}

    - {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}} + {{_i}}Take this action{{/i}} {{_i}}Or do this{{/i}}


    @@ -907,7 +907,7 @@ $('#my-alert').bind('closed', function () { {{_i}}Stateful{{/i}} - @@ -915,16 +915,16 @@ $('#my-alert').bind('closed', function () { {{_i}}Single toggle{{/i}} - + {{_i}}Checkbox{{/i}}
    - - - + + +
    @@ -932,9 +932,9 @@ $('#my-alert').bind('closed', function () { {{_i}}Radio{{/i}}
    - - - + + +
    @@ -1082,7 +1082,7 @@ $('#my-alert').bind('closed', function () {

    {{_i}}Markup{{/i}}

    {{_i}}Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a css selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like it to default open, add the additional class in.{{/i}}

    -<button class="btn danger" data-toggle="collapse" data-target="#demo">
    +<button class="btn btn-danger" data-toggle="collapse" data-target="#demo">
       {{_i}}simple collapsible{{/i}}
     </button>
     
    -- 
    cgit v1.2.3
    
    
    From 31911659a200d39d8494f35f8fd71863ac1226d0 Mon Sep 17 00:00:00 2001
    From: Mark Otto 
    Date: Mon, 30 Jan 2012 21:29:50 -0800
    Subject: refactor the navs to use prefixed classes, because you know,
     consistency is beast mode
    
    ---
     docs/templates/pages/base-css.mustache    |  2 +-
     docs/templates/pages/components.mustache  | 54 +++++++++++++++----------------
     docs/templates/pages/download.mustache    |  2 +-
     docs/templates/pages/javascript.mustache  |  2 +-
     docs/templates/pages/scaffolding.mustache |  2 +-
     5 files changed, 31 insertions(+), 31 deletions(-)
    
    (limited to 'docs/templates')
    
    diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache
    index c000c9c88..2da59f0ef 100644
    --- a/docs/templates/pages/base-css.mustache
    +++ b/docs/templates/pages/base-css.mustache
    @@ -4,7 +4,7 @@
       

    {{_i}}Base CSS{{/i}}

    {{_i}}On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.{{/i}}

    {{_i}}How to use{{/i}}

    -

    {{_i}}With v2.0.0, we have opted to use an <i> tag for all our icons with a base class of .i. To use, place the following code just about anywhere:{{/i}}

    +

    {{_i}}With v2.0.0, we have opted to use an <i> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}

    -<i class="i i-search"></i>
    +<i class="i-search"></i>
     

    {{_i}}There are also styles available for inverted (white) icons, made ready with one extra class:{{/i}}

    -<i class="i i-search i-white"></i>
    +<i class="i-search i-white"></i>
     

    {{_i}}There are 120 classes to choose from for your icons. Just add an <i> tag with the right classes and you're set. You can find the full list in sprites.less or right here in this document.{{/i}}

    @@ -1410,40 +1410,40 @@
    @@ -1454,7 +1454,7 @@
    - +
    diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index 2386f6a9e..69ee4c16a 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -472,13 +472,13 @@
    @@ -486,7 +486,7 @@
       ...
       <li>
         <a href="#">
    -      <i class="i i-book"></i>
    +      <i class="i-book"></i>
           {{_i}}Library{{/i}}
         </a>
       </li>
    -- 
    cgit v1.2.3
    
    
    From d633dbb44e40f402c85d4339bb3ac0e7069915eb Mon Sep 17 00:00:00 2001
    From: nkryptic 
    Date: Tue, 31 Jan 2012 02:54:10 -0500
    Subject: add nav- prefix to rest of docs
    
    ---
     docs/templates/pages/components.mustache | 10 +++++-----
     1 file changed, 5 insertions(+), 5 deletions(-)
    
    (limited to 'docs/templates')
    
    diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
    index 69ee4c16a..4bf6c5d48 100644
    --- a/docs/templates/pages/components.mustache
    +++ b/docs/templates/pages/components.mustache
    @@ -284,7 +284,7 @@
         

    {{_i}}Basic tabs{{/i}}

    -

    {{_i}}Take a regular <ul> of links and add .tabs:{{/i}}

    +

    {{_i}}Take a regular <ul> of links and add .nav-tabs:{{/i}}

    {{_i}}Basic pills{{/i}}

    -

    {{_i}}Take that same HTML, but use .pills instead:{{/i}}

    +

    {{_i}}Take that same HTML, but use .nav-pills instead:{{/i}}