Flexbox Snippets
CSS Flexbox snippets for Sublime
Details
Installs
- Total 17K
- Win 10K
- Mac 5K
- Linux 2K
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 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 2 | 2 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
CSS Flexbox snippets for Sublime 
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 & Vue Component.
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