Sha256: 21dab3d151365b5f191cee4c28d60b7342451c837a19c4eb177fe6ab65251556

Contents?: true

Size: 1.26 KB

Versions: 9

Compression:

Stored size: 1.26 KB

Contents

#functions {
  @var: 10;
  color: _color("evil red"); // #660000
  width: increment(15);
  height: undefined("self");
  border-width: add(2, 3);
  variable: increment(@var);
}

#built-in {
  @r: 32;
  escaped: e("-Some::weird(#thing, y)");
  lighten: lighten(#ff0000, 40%);
  darken: darken(#ff0000, 40%);
  saturate: saturate(#29332f, 20%);
  desaturate: desaturate(#203c31, 20%);
  greyscale: greyscale(#203c31);
  spin-p: spin(hsl(340, 50%, 50%), 40);
  spin-n: spin(hsl(30, 50%, 50%), -40);
  format: %("rgb(%d, %d, %d)", @r, 128, 64);
  format-string: %("hello %s", "world");
  format-multiple: %("hello %s %d", "earth", 2);
  format-url-encode: %('red is %A', #ff0000);
  eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));

  hue: hue(hsl(98, 12%, 95%));
  saturation: saturation(hsl(98, 12%, 95%));
  lightness: lightness(hsl(98, 12%, 95%));
  rounded: round(@r/3);
  roundedpx: round(10px / 3);
  percentage: percentage(10px / 50);
  color: color("#ff0011");

  .is-a {
    color: iscolor(#ddd);
    color: iscolor(red);
    color: iscolor(rgb(0, 0, 0));
    keyword: iskeyword(hello);
    number: isnumber(32);
    string: isstring("hello");
    pixel: ispixel(32px);
    percent: ispercentage(32%);
    em: isem(32em);
  }
}

#alpha {
  alpha: darken(hsla(25, 50%, 50%, 0.6), 10%);
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
less-2.3.0 lib/less/js/test/less/functions.less
less-2.2.2 lib/less/js/test/less/functions.less
less-2.2.1 lib/less/js/test/less/functions.less
less-2.2.0 lib/less/js/test/less/functions.less
less-2.1.0 lib/less/js/test/less/functions.less
less-2.0.12 lib/less/js/test/less/functions.less
less-2.0.11 lib/less/js/test/less/functions.less
less-2.0.10 lib/less/js/test/less/functions.less
less-2.0.9 lib/less/js/test/less/functions.less