d
Amit DhamuSoftware Engineer
 

Mixins in LESS

1 minute read 00000 views
.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);
}