Skip to content

mrmartineau/Boost-Snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Boost Snippets for Sublime Text 2

Use these snippets if you use my Boost framework & Sublime Text

Forms

Tab triggers are listed by the titles

form - bform⇥

Remove the 'form_stacked' class to have form labels to the left of the inputs

<form action="#" class="form_stacked">

</form>

form li - bformitem⇥

<li>
	<label for="name">Label</label>
	<div class="input">
		<input type="text" id="name" placeholder="Zander Martineau" />
	</div>
</li>

form ul - bformitems⇥

<ul>
	<li>
		<label for="name">Name</label>
		<div class="input">
			<input type="text" id="name" placeholder="Zander Martineau" />
		</div>
	</li>
	<li>
		<label for="email">Email</label>
		<div class="input"><input type="email" id="email" placeholder="[email protected]" /></div>
	</li>
	<li>
		<label for="phone">Phone</label>
		<div class="input"><input type="number" id="phone" placeholder="020 123 4567" /></div>
	</li>
	<li>
		<label for="comments">Comments</label>
		<div class="input">
			<textarea id="comments" rows="3" cols="50"></textarea>
		</div>
	</li>
</ul>

form note - bformnote⇥

<span class="form_note">?<span>First name &amp; last name</span></span>

Grid

Row - brow⇥

<div class="row">

</div>

2 columns - b2col⇥

<div class="row">
	<div class="grid_6 column">

	</div>
	<div class="grid_6 column">

	</div>
</div>

One column - bcol⇥

<div class="grid_6 column">

</div>

LESS mixins

These reference https://github.com/mrmartineau/Boost/blob/master/less/mixins.less

border-radius - bbr⇥

.border-radius(5px);

box-shadow - bbs⇥

.box-shadow(0 1px 3px rgba(0,0,0,.25));

opacity - .opacity(60)⇥

.opacity(60);

size (sizing an element - w x h)- bs⇥

.size(10px,10px);

square (for elements with same height & width) - bsq⇥

.square(50px);

About

Sublime Text 2 package for my Boost front-end framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published