Skip to content

Commit

Permalink
Fix identation & create .editorconfig file & some conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
rs459 committed Oct 12, 2013
1 parent c03f49c commit e15cf84
Show file tree
Hide file tree
Showing 22 changed files with 58 additions and 64 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*.sublime-snippet]
indent_style = tab
indent_size = 4
6 changes: 3 additions & 3 deletions alerts/bst-alert-danger.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.alert.alert-danger
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2: Alert body ...}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-alert:danger</tabTrigger>
Expand Down
6 changes: 3 additions & 3 deletions alerts/bst-alert-info.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.alert.alert-info
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-alert:info</tabTrigger>
Expand Down
6 changes: 3 additions & 3 deletions alerts/bst-alert-success.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.alert.alert-success
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-alert:success</tabTrigger>
Expand Down
6 changes: 3 additions & 3 deletions alerts/bst-alert.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.alert
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
strong ${1:Title!}
| ${2:Alert body ...}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-alert</tabTrigger>
Expand Down
1 change: 0 additions & 1 deletion badges/bst-badge.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<snippet>
<content><![CDATA[
span.badge ${1:Badge}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-badge</tabTrigger>
Expand Down
4 changes: 2 additions & 2 deletions breadcrumbs/bst-breadcrumbs.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<snippet>
<content><![CDATA[
ol.breadcrumb
li: a(href='${1:#}') ${2:Home}
li.active ${3:Current}
li: a(href='${1:#}') ${2:Home}
li.active ${3:Current}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-breadcrumbs</tabTrigger>
Expand Down
6 changes: 3 additions & 3 deletions buttons/bst-button-group-vertical.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.btn-group-vertical
button${1:(type="${2:button}")}.btn.btn-default Top
button${1:(type="${2:button}")}.btn.btn-default Middle
button${1:(type="${2:button}")}.btn.btn-default Bottom
button${1:(type="${2:button}")}.btn.btn-default Top
button${1:(type="${2:button}")}.btn.btn-default Middle
button${1:(type="${2:button}")}.btn.btn-default Bottom
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-group:vertical</tabTrigger>
Expand Down
6 changes: 3 additions & 3 deletions buttons/bst-button-group.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.btn-group
button${1:(type="${2:button}")}.btn.btn-default Left
button${1:(type="${2:button}")}.btn.btn-default Middle
button${1:(type="${2:button}")}.btn.btn-default Right
button${1:(type="${2:button}")}.btn.btn-default Left
button${1:(type="${2:button}")}.btn.btn-default Middle
button${1:(type="${2:button}")}.btn.btn-default Right
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-group</tabTrigger>
Expand Down
6 changes: 3 additions & 3 deletions buttons/bst-button-toolbar.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
.btn-toolbar
.btn-group
.btn-group
.btn-group
.btn-group
.btn-group
.btn-group
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-toolbar</tabTrigger>
Expand Down
3 changes: 1 addition & 2 deletions cdn/bst-cdn-css.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<snippet>
<content><![CDATA[
//
Latest compiled and minified CSS
Latest compiled and minified CSS
link(rel='stylesheet', href='//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css')
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-cdn:css</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion cdn/bst-cdn-js.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
//
Latest compiled and minified JS
Latest compiled and minified JS
script(src='//code.jquery.com/jquery.js')
script(src='//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js')
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion cdn/bst-cdn.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
//
Latest compiled and minified CSS & JS
Latest compiled and minified CSS & JS
link(rel='stylesheet', media='screen', href='//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css')
script(src='//code.jquery.com/jquery.js')
script(src='//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js')
Expand Down
12 changes: 6 additions & 6 deletions form/bst-form-horizontal.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<snippet>
<content><![CDATA[
form.form-horizontal(action='${1}', method='${2:POST}', role='form')
.form-group
legend ${3:Form title}
| ${4}
.form-group
.col-sm-10.col-offset-2
button.btn.btn-primary(type='submit') ${5:Submit}
.form-group
legend ${3:Form title}
| ${4}
.form-group
.col-sm-10.col-offset-2
button.btn.btn-primary(type='submit') ${5:Submit}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-form:horizontal</tabTrigger>
Expand Down
9 changes: 4 additions & 5 deletions form/bst-form-inline.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<snippet>
<content><![CDATA[
form.form-inline(action='${1}', method='${2:POST}', role='form')
${5:.form-group
label.sr-only(for='') label
input.form-control(type='email', placeholder='Input field')}
| ${4}
button.btn.btn-primary(type='submit') ${5:Submit}
${3:.form-group
label.sr-only(for='') label
input.form-control(type='email', placeholder='Input field')}${4}
button.btn.btn-primary(type='submit') ${5:Submit}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-form:inline</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion form/bst-form-label.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
label(for='input${1/(\w+)/\u\1/g}') ${3}
label(for='${1}') ${2}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-form:label</tabTrigger>
Expand Down
13 changes: 6 additions & 7 deletions form/bst-form.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<snippet>
<content><![CDATA[
form(action='${1}', method='${2:POST}', role='form')
legend ${3:Form title}
.form-group
label(for='') ${4:label}
input.form-control(type='text', placeholder='Input field')
| ${4}
button.btn.btn-primary(type='submit') ${5:Submit}
${6}
legend ${3:Form title}
.form-group
label(for='') ${4:label}
input.form-control(type='text', placeholder='Input field')${5}
button.btn.btn-primary(type='submit') ${6:Submit}
${7}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-form</tabTrigger>
Expand Down
5 changes: 2 additions & 3 deletions form/bst-input-checkbox.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<snippet>
<content><![CDATA[
.checkbox
label
input(type='checkbox', value='${1}')
| ${2:Checkbox}
label
input(type='checkbox', value='${1}') ${2:Checkbox}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-input:checkbox</tabTrigger>
Expand Down
10 changes: 4 additions & 6 deletions form/bst-input-color-h.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<snippet>
<content><![CDATA[
<div class="form-group">
<label for="input${1/(\w+)/\u\1/g}" class="col-${2:sm-2} control-label">${1/(\w+)/\u\1/g}:</label>
<div class="col-${3:sm-10}">
<input type="color" name="${1}" id="input${1/(\w+)/\u\1/g}" class="form-control" ${4:value="${5}"} ${6:required="required"} ${7:title="${8}"}>
</div>
</div>
.form-group
label(for="${1}").col-${2:sm-2}.control-label ${3}
.col-${4:sm-10}
input(type="color", name="${1}", id="${1}" ${5:, value="${6}"}${7:, title="${8}"}${9:, required="required"}).form-control
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-input:color:h</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion form/bst-input-color.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
<input type="color" name="${1}" id="input${1/(\w+)/\u\1/g}" class="form-control" ${2:value="${3}"} ${4:required="required"} ${5:title="${6}"}>
input(type="color", name="${1}", id=""${2:, value="${3}"}${4:, required="required"}${5:, title="${6}"}).form-control
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-input:color</tabTrigger>
Expand Down
10 changes: 4 additions & 6 deletions form/bst-input-date-h.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<snippet>
<content><![CDATA[
<div class="form-group">
<label for="input${1/(\w+)/\u\1/g}" class="col-${2:sm-2} control-label">${1/(\w+)/\u\1/g}:</label>
<div class="col-${3:sm-10}">
<input type="date" name="${1}" id="input${1/(\w+)/\u\1/g}" class="form-control" ${4:value="${5}"} ${6:required="required"} ${7:title="${8}"}>
</div>
</div>
.form-group
label(for="${1}").col-${2:sm-2}.control-label ${3}
.col-${4:sm-10}
input(type="date", name="${1}", id="${1}"${5:, value="${6}"} ${7:, required="required"} ${8:, title="${9}"} ).form-control
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-input:date:h</tabTrigger>
Expand Down
2 changes: 1 addition & 1 deletion form/bst-input-date.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
<input type="date" name="${1}" id="input${1/(\w+)/\u\1/g}" class="form-control" ${2:value="${3}"} ${4:required="required"} ${5:title="${6}"}>
input(type="date", name="${1}", id="${1}", class="form-control"${2:, value="${3}"}${4:, required="required"}${5:, title="${6}"})
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bst-input:date</tabTrigger>
Expand Down

0 comments on commit e15cf84

Please sign in to comment.