src/app/stylesheets/mixins.less
.font(@size, @weight, @color) {
font-weight: @weight;
font-size: @size;
color: @color;
}
.icon-fa(@icon) {
.fa;
@fa-icon-variable: "fa-var-@{icon}";
&:before { content: @@fa-icon-variable; }
}
.size(@width; @height) {
width: @width;
height: @height;
}
.square(@size) {
.size(@size; @size);
}
.rgba(@color, @alpha) {
background-color: rgba(red(@color), green(@color), blue(@color), @alpha);
}
.ellipsis() {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}