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

Flexbox Snippets

by brenopolanski ST2/ST3

CSS Flexbox snippets for Sublime

Details

Installs

  • Total 4K
  • Win 2K
  • OS X 2K
  • Linux 491
Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 1 5 7 1 7 10 11 6 14 8 5 2 7 8 6 7 5 1 4 8 6 13 5 3 0 5 5 5 6 8 7 7 1 5 11 5 7 8 5 9 8 10 5 3 6 3
OS X 1 9 3 3 4 3 7 9 5 6 1 3 2 2 3 10 0 2 3 3 5 6 3 3 5 2 5 2 9 8 3 7 2 2 7 6 6 8 5 5 7 5 7 6 5 1
Linux 0 3 0 1 4 2 2 5 3 5 2 0 0 2 2 0 1 0 0 0 1 1 2 0 1 1 0 2 0 0 3 0 1 2 0 2 0 4 2 2 3 2 1 1 1 0

Readme

Source
raw.​githubusercontent.​com

CSS Flexbox snippets for Sublime

image snippets

Install

To install through Package Control, search for Flexbox Snippets. If you still don't have Package Control in Sublime Text, go get it. If you insist to not install it, you can download the package and put it manually inside your Pacakages directory. It should work but will not update automatically.

Snippets

Works for CSS/LESS/Sass/SCSS & Stylus.

display

trigger: flexbox⇥

display: ${1:flex|inline-flex};

flex-direction

trigger: flexdir⇥

flex-direction: ${1:row|row-reverse|column|column-reverse};

flex-wrap

trigger: flexwrap⇥

flex-wrap: ${1:nowrap|wrap|wrap-reverse};

flex-flow

trigger: flexflow⇥

flex-flow: ${1:<'flex-direction' (row|row-reverse|column|column-reverse)> || <'flex-wrap' (nowrap|wrap|wrap-reverse)>};

justify-content

trigger: flexjust⇥

justify-content: ${1:flex-start|flex-end|center|space-between|space-around};

align-items

trigger: flexitems⇥

align-items: ${1:flex-start|flex-end|center|baseline|stretch};

align-content

trigger: flexcont⇥

align-content: ${1:flex-start|flex-end|center|space-between|space-around|stretch};

order

trigger: flexorder⇥

order: ${1:0};

flex-grow

trigger: flexgrow⇥

flex-grow: ${1:0};

flex-shrink

trigger: flexshr⇥

flex-shrink: ${1:1};

flex-basis

trigger: flexbasis⇥

flex-basis: ${1:auto|<'width' (%|rem|em|px)>};

flex

trigger: flex⇥

flex: ${1:none|auto|[<'flex-grow' (0)> <'flex-shrink' (1)> || <'flex-basis' auto|<'width' (%|rem|em|px)>>]};

align-self

trigger: flexself⇥

align-self: ${1:auto|flex-start|flex-end|center|baseline|stretch};

Prefixing Flexbox

Flexbox requires some vendor prefixing to support the most browsers possible. It doesn't just include prepending properties with the vendor prefix, but there are actually entirely different property and value names. This is because the Flexbox spec has changed over time, creating an “old”, “tweener”, and “new” versions.

Perhaps the best way to handle this is to write in the new (and final) syntax and run your CSS through Autoprefixer, which handles the fallbacks very well.

Contributing

If you want to help, please read the Contributing guide.

History

For detailed changelog, see Releases.

References

License

MIT License © Breno Polanski