all repos — wp-autoless @ c037d09840f32b02aec40f2b34d2647692182e24

vendor/leafo/lessphp/tests/inputs/mixin_functions.less (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
@outer: 10px;
@class(@var:22px, @car: 400px + @outer) {
  margin: @var;
  height: @car;
}

@group {
  @f(@color) {
    color: @color;
  }
  .cool {
    border-bottom: 1px solid green;
  }
}

.class(@width:200px) {
  padding: @width;
}

body {
  .class(2.0em);
  @group > @f(red);
  @class(10px, 10px + 2);
  @group > .cool;
}


@lots(@a: 10px, @b: 20px, @c: 30px, @d: 40px, @e: 4px, @f:3px, @g:2px, @h: 1px) {
	padding: @a @b @c @d;
	margin: @e @f @g @h;
}