Amit Dhamu

Software Engineer

Mixins in LESS

.BorderRadius(@radius) {
    -webkit-border-radius: @radius;
    -moz-border-radius: @radius;
    border-radius: @radius;
}

.box {
    .BorderRadius(4px);
}
.Place(@position, @top, @left, @bottom, @right) {
    position: @position;
    top: @top;
    left: @left;
    bottom: @bottom;
    right: @right;
}

#container {
    .Place(absolute, 50, 50, 50, 50);
}

 less / css preprocessors / border radius / css

Minify CSS On The FlyVariables in LESS

Show Comments

Made with by Amit Dhamu.
© MMXX. All rights reserved.