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

Flexbox Snippets

by brenopolanski ST2/ST3

CSS Flexbox snippets for Sublime

Details

Installs

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

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