Skip to content

believelabs/textmate-twitterbootstrap.tmbundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextMate Html Bundle for Twitter's Bootstrap

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.

Download & Installation

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'

Page Templates

Simple Page

Uses "Fixed Layout" concept and generates a simple html page.

TAB Triggers

layout

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>

row

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>

span

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, footer, container

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>

h1, h2, h3, h4, h5, h6

Creates headings with sub header text.

<h1>Hello <small>world</small></h1>

header

Creates page header.

<div class="page-header">
	<h1>Hello <small>world</small></h1>
</div>

abbr

Creates abbreviation tag in single letter constrain.

<abbr title="Phone Number">P</abbr>

ady

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

quo

Creates nice quotting style.

<blockquote>
	<p>Text</p>
	<small>By Foo Bar</small>
</blockquote>

code, pre

Creates <code> and <pre> wrappers

dl, dd, dt

Creates definition list and <dd> and <dt> wrappers.

<!-- dl -->
<dl>
	<dt>List</dt>
	<dd>Description</dd>$0
</dl>

ul, ol, li

UL has to different style: Default and Unstyled. OL creates <ol> and LI creates <li> wrappers.

<ul class="unstyled">
	<li>List Item</li>
</ul>

table, tr, td, thead, tbody, tfoot

There are 4 different table styles available.

  1. Default
  2. Condensed
  3. Bordered
  4. 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>

label

Creates <span> with in a .label class. There are 5 different label styles.

<span class="label">Default</span>
<span class="label success">Success</span>

mgrid

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>

tabs, pills, bread, paging

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

alert

Creates <div> with in a .alert-message class. There are many different styles and sizes available. Styles are:

  1. Warning
  2. Error
  3. Success
  4. Info
<div class="alert-message warning">
	<a class="close" href="#">×</a>
	<p><strong>Hello</strong> how are you?</p>
</div>

btn

There are many different button styles / types and sizes. Creates <button> tag and required class.

<button class="btn">Button</button>

Button types are:

  1. Default
  2. Primary
  3. Info
  4. Success
  5. 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>

About

TextMate bundle for Twitter's Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published