This is un-offical bundle for Twitter's Bootstrap. README.md file is not finished yet...
Well, this bundle helps you to use great features of Twitter's Bootstrap Html/CSS framework easily.
You can check out CHANGELOG.md for history.
To install via Git:
cd "~/Library/Application Support/TextMate/Bundles"
git clone git://github.com/vigo/textmate-twitterbootstrap.tmbundle.git
osascript -e 'tell app "TextMate" to reload bundles'
Uses "Fixed Layout" concept and generates a simple html page.
There are two types of layout; Fixed and Fluid:
<!-- Fixed -->
<div class="container">
<div class="content">
Content
</div>
</div>
<!-- Fluid -->
<div class="container-fluid">
<div class="sidebar">
Sidebar
</div>
<div class="content">
Content
</div>
</div>
Creates a div
with a .row
class:
<div class="row">
Content
</div>
There are also other row
variants which includes span
in it.
Row > 33% [3 Spans]
<div class="row">
<div class="span-one-third">
<p>1/3</p>
</div>
<div class="span-one-third">
<p>1/3</p>
</div>
<div class="span-one-third">
<p>1/3</p>
</div>
</div>
Creates a div
with a .span
class between 1-16 Simple span
:
<div class="span16">
Span
</div>
Span 1/3:
<div class="span-one-third">
Span 1/3
</div>
Span 2/3:
<div class="span-two-thirds">
Span 2/3
</div>
Section and Footer creates <section>
and <footer>
wrappers.
<!-- section -->
<section id="about">
Content
</section>
<!-- footer -->
<footer>
Content
</footer>
Container creates a div
with in a container
class. (Like layout)
<div class="container">
Content
</div>
Creates headings with sub header text.
<h1>Hello <small>world</small></h1>
Creates page header.
<div class="page-header">
<h1>Hello <small>world</small></h1>
</div>
Creates abbreviation tag in single letter constrain.
<abbr title="Phone Number">P</abbr>
Creates address tag in two different style.
<address>
<strong>Company Name</strong><br/>
Line 1<br/>
Line 2<br/>
<abbr title="Phone">P:</abbr> 123-45-67
</address>$0
Creates nice quotting style.
<blockquote>
<p>Text</p>
<small>By Foo Bar</small>
</blockquote>
Creates <code>
and <pre>
wrappers
Creates definition list and <dd>
and <dt>
wrappers.
<!-- dl -->
<dl>
<dt>List</dt>
<dd>Description</dd>$0
</dl>
UL has to different style: Default and Unstyled. OL creates <ol>
and LI
creates <li>
wrappers.
<ul class="unstyled">
<li>List Item</li>
</ul>
There are 4 different table styles available.
- Default
- Condensed
- Bordered
- Zebra
<table class="condensed-table">
<thead>
<tr>
<th>#</th>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Item</td>
<td>Item</td>
</tr>
<tr>
<td>2</td>
<td>Item</td>
<td>Item</td>
</tr>
</tbody>
</table>
Creates <span>
with in a .label
class. There are 5 different label styles.
<span class="label">Default</span>
<span class="label success">Success</span>
Creates media grid in seven different styles. You can check out for more detailed information at projects website. There are different grids available as an example.
<ul class="media-grid">
<li><a href="#"><img alt="#" src="http://placehold.it/210x90" class="thumbnail"></a></li>
<li><a href="#"><img alt="#" src="http://placehold.it/210x90" class="thumbnail"></a></li>
<li><a href="#"><img alt="#" src="http://placehold.it/210x90" class="thumbnail"></a></li>
<li><a href="#"><img alt="#" src="http://placehold.it/210x90" class="thumbnail"></a></li>
</ul>
Navigation items. Creates tabs, pills, breadcrumbs and paging elements. Examples are taken form Twitter's project site.
<ul class="tabs">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">Contact</a></li>
</ul>$0
Creates <div>
with in a .alert-message
class. There are many different
styles and sizes available. Styles are:
- Warning
- Error
- Success
- Info
<div class="alert-message warning">
<a class="close" href="#">×</a>
<p><strong>Hello</strong> how are you?</p>
</div>
There are many different button styles / types and sizes. Creates <button>
tag and required class.
<button class="btn">Button</button>
Button types are:
- Default
- Primary
- Info
- Success
- Danger
All buttons have small and large sizes and disabled mode.
<!-- Succes, large and disabled -->
<button class="btn success large disabled" disabled="disabled">Hello</button>