// General .box-sizing(@boxmodel) { -webkit-box-sizing: @boxmodel; -moz-box-sizing: @boxmodel; -ms-box-sizing: @boxmodel; box-sizing: @boxmodel; } //Flex box .text-ellipsis() { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .align-items-start() { -webkit-align-items: flex-start; -ms-flex-align: start; align-items: flex-start; -webkit-align-content: flex-start; -ms-flex-line-pack: start; align-content: flex-start; } .align-items-center() { -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-align-content: center; -ms-flex-line-pack: center; align-content: center; } .align-items-end() { -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; -webkit-align-content: flex-end; -ms-flex-line-pack: end; align-content: flex-end; } .justify-content-start() { -webkit-justify-content: flex-start; -ms-flex-pack: start; justify-content: flex-start; } .justify-content-end() { -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; } .justify-content-center() { -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } .display-flex() { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; } .display-flex-important() { display: -webkit-box !important; display: -webkit-flex !important; display: -moz-box !important; display: -ms-flexbox !important; display: flex !important; } .flex-wrap(@wrap) { -webkit-flex-wrap: @wrap; -moz-flex-wrap: @wrap; -ms-flex-wrap: @wrap; flex-wrap: @wrap; } .flex-direction(@direction) { -webkit-flex-direction: @direction; -moz-flex-direction: @direction; -ms-flex-direction: @direction; flex-direction: @direction; } .flex(@flex) { -webkit-flex: @flex; -moz-flex: @flex; -ms-flex: @flex; flex: @flex; } // Transitions .transition(@transition) { -webkit-transition: @transition; -o-transition: @transition; -ms-transition: @transition; transition: @transition; } .transform(@transform) { -webkit-transform: @transform; -o-transform: @transform; -ms-transform: @transform; transform: @transform; } .user-select(@select) { -webkit-user-select: @select; -moz-user-select: @select; -ms-user-select: @select; // IE10+ user-select: @select; } .clearfix() { &:before, &:after { content: " "; // 1 display: table; // 2 } &:after { clear: both; } }