Sha256: 9f080f7ccc823596be83cefb99d819a80796ba01a0c4a0e13c670eb6b03d85ef

Contents?: true

Size: 587 Bytes

Versions: 15

Compression:

Stored size: 587 Bytes

Contents

.mixin (@a: 1px, @b: 50%) {
  width: @a * 5;
  height: @b - 1%;
}

.mixiny
(@a: 0, @b: 0) {
  margin: @a;
  padding: @b;
}

.hidden() {
  color: transparent;
}

.two-args {
  color: blue;
  .mixin(2px, 100%);
}

.one-arg {
  .mixin(3px);
}

.no-parens {
  .mixin;
}

.no-args {
  .mixin();
}

.var-args {
  @var: 9;
  .mixin(@var, @var * 2);
}

.multi-mix {
  .mixin(2px, 30%);
  .mixiny(4, 5);
}

.maxa(@arg1: 10, @arg2: #f00) {
  padding: @arg1 * 2px;
  color: @arg2;
}

body {
  .maxa(15);
}

@glob: 5;
.global-mixin(@a:2) {
  width: @glob + @a;
}

.scope-mix {
  .global-mixin(3);
}

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
lesslateral-1.2.21 spec/less/mixins-args.less
less-1.2.21 spec/less/mixins-args.less
less-1.2.20 spec/less/mixins-args.less
unboxed-less-1.2.19 spec/less/mixins-args.less
railsdog-less-1.2.17 spec/less/mixins-args.less
less-1.2.19 spec/less/mixins-args.less
less-1.2.18 spec/less/mixins-args.less
less-1.2.17 spec/less/mixins-args.less
less-1.2.16 spec/less/mixins-args.less
less-1.2.15 spec/less/mixins-args.less
less-1.2.14 spec/less/mixins-args.less
less-1.2.13 spec/less/mixins-args.less
less-1.2.12 spec/less/mixins-args.less
unboxed-less-1.2.12 spec/less/mixins-args.less
less-1.2.11 spec/less/mixins-args.less