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

Singularity​Snippets

by blcook223 ALL

A Singularity.gs plugin for Sublime Text 3

Details

  • 0.2.0
  • github.​com
  • github.​com
  • 10 years ago
  • 58 minutes ago
  • 10 years ago

Installs

  • Total 224
  • Win 124
  • Mac 56
  • Linux 44
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8
Windows 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
Mac 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
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})