These are chat archives for less/less.js

26th
Feb 2019
mikejf-pr
@mikejf-pr
Feb 26 05:46

Odd scenario, I know, but:

input

#config() {
  @a: 32;
  @b: 23;
  @c: 56;
  @d: @a;
}

.l {
  margin: #config[@c];
  padding: #config[@a];
  top: #config[@d];
}

#config() {
  @a: 43;
}

current output

.l {
  margin: 56;
  padding: 43;
  top: 32;
}

is there any way that we could get the @d to inherit the update to @a?