Skip to content

Instantly share code, notes, and snippets.

@jayj
jayj / flexbox.less
Last active May 8, 2021
CSS3 Flexbox - LESS Mixins
View flexbox.less
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox