ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Singularity​Snippets

by blcook223 ALL

A Singularity.gs plugin for Sublime Text 3

Details

Installs

  • Total 203
  • Win 114
  • Mac 47
  • Linux 42
Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SingularitySnippets

A collection of Singularity.gs snippets for Sublime Text 3.

SingularitySnippets is available through Package Control.

To install manually, execute the command git clone https://github.com/blcook223/SingularitySnippets.git in your Sublime Text Packages directory.

Snippets

To use a snippet, type in the two- to four-letter code in parentheses and press Tab.

Most snippets are available anywhere in a SASS or SCSS source file. Some, such as the various *-span include statements, are only available within a property list.

Grid and Gutter Definitions

add-grid (ag)

SCSS

@include add-grid(${1:grid});

SASS

+add-grid(${1:grid})

add-grid at (aga)

SCSS

@include add-grid(${1:grid} at ${2:min-width}px);

SASS

+add-grid(${1:grid} at ${2:min-width}px)

add-gutter (agu)

SCSS

@include add-gutter(${1:gutter});

SASS

+add-gutter(${1:gutter})

add-gutter-style (agus)

SCSS

@include add-gutter-style('${1:style}');

SASS

+add-gutter-style('${1:style')

Options

change option (ch)

SCSS

@include sgs-change('${1:option}', ${2:value});

SASS

+sgs-change('${1:option}', ${2:value})

change output style (cho)

SCSS

@include sgs-change('output', ${1:value});

SASS

+sgs-change('output', ${1:value})

change direction (chd)

SCSS

@include sgs-change('direction', ${1:value});

SASS

+sgs-change('direction', ${1:value})

turn on debug grid (dg)

SCSS

@include sgs-change('debug', ${1:true});

${2:.container} {
    @include background-grid($color: ${3:blue});
}

SASS

+sgs-change('debug', ${1:true})

${2:.container}
    +background-grid($color: ${3:blue})

Layouts

layout (lo)

SCSS

@include layout(${1:grid}, ${2:gutter}, '${3:output-style}', '${4:gutter-style}') {
    ${5:property}: ${6:value};
}

SASS

+layout(${1:grid}, ${2:gutter}, '${3:output-style}', '${4:gutter-style}')
    ${5:property}: ${6:value}

layout verbose (lov)

SCSS

@include layout((
    'grid': ${1:grid},
    'gutter': ${2:gutter},
    'gutter style': '${3:gutter-style}',
    'output': '${4:output-style}'
)) {
    ${5:property}: ${6:value};
}

SASS

+layout(('grid': ${1:grid}, 'gutter': ${2:gutter}, 'gutter style': '${3:gutter-style}', 'output': '${4:output-style}'))
    ${5:property}: ${6:value}

layout-at (loa)

SCSS

@include layout-at(${1:grid}, ${2:min-width}px) {
    ${3:property}: ${4:value};
}

SASS

+layout-at(${1:grid}, ${2:min-width}px)
    ${3:property}: ${4:value}

layout-at verbose (loav)

SCSS

@include layout((
    'grid': ${1:grid},
    'gutter': ${2:gutter},
    'gutter style': '${3:gutter-style}',
    'output': '${4:output-style}'
), ${5:min-width}px) {
    ${6:property}: ${7:value};
}

SASS

+layout(('grid': ${1:grid}, 'gutter': ${2:gutter}, 'gutter style': '${3:gutter-style}', 'output': '${4:output-style}'), ${5:min-width}px)
    ${6:property} ${7:value}

Spans

grid-span (gs)

SCSS

@include grid-span(${1:columns}, ${2:start});

SASS

+grid-span(${1:columns}, ${2:start})

grid-span verbose (gsv)

SCSS

@include grid-span(${1:columns}, ${2:start}, ${3:grid}, ${4:gutter}, '${5:gutter-style}');

SASS

+grid-span(${1:columns}, ${2:start}, ${3:grid}, ${4:gutter}, '${5:gutter-style}')

isolation-span (is)

SCSS

@include isolation-span(${1:columns}, ${2:start}, '${3:clear}');

SASS

+isolation-span(${1:columns}, ${2:start}, '${3:clear}')

isolation-span verbose (isv)

SCSS

@include isolation-span(${1:columns}, ${2:start}, '${3:clear}', ${4:grid}, ${5:gutter});

SASS

+isolation-span(${1:columns}, ${2:start}, '${3:clear}', ${4:grid}, ${5:gutter})

float-span (fs)

SCSS

@include float-span(${1:columns});

SASS

+float-span(${1:columns})

float-span verbose (fsv)

SCSS

@include float-span(${1:columns}, $grid: ${2:grid}, $gutter: ${3:gutter});

SASS

+float-span(${1:columns}, $grid: ${2:grid}, $gutter: ${3:gutter})

float-span first (fsf)

SCSS

@include float-span(${1:columns}, 'first');

SASS

+float-span(${1:columns}, 'first')

float-span last (fsl)

SCSS

@include float-span(${1:columns}, 'last');

SASS

+float-span(${1:columns}, 'last')

column-span (cs)

SCSS

column-span(${1:columns}, ${2:start}, ${3:grid}, ${4:gutter})

SASS

column-span(${1:columns}, ${2:start}, ${3:grid}, ${4:gutter})

gutter-span (gus)

SCSS

gutter-span(${1:gutter}, ${2:grid})

SASS

gutter-span(${1:gutter}, ${2:grid})

Other

include clearfix (icf)

SCSS

@include clearfix;

SASS

+clearfix

extend clearfix (ecf)

SCSS

@extend %clearfix;

SASS

@extend %clearfix

find-grid (fg)

SCSS

find-grid(${1:grid})

SASS

find-grid(${1:grid})

find-gutter (fgu)

SCSS

find-gutter(${1:gutter})

SASS

find-gutter(${1:gutter})