mixins-important.less 794 Bytes
Newer Older
liang ce committed
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
.submixin(@a) {
  border-width: @a;
}
.mixin (9) {
  border: 9 !important;
}
.mixin (@a: 0) {
  border: @a;
  boxer: @a;
  .inner {
    test: @a;
  }
  // comment
  .submixin(@a);
}

.class {
  .mixin(1);
  .mixin(2) !important;
  .mixin(3);
  .mixin(4) !important;
  .mixin(5);
  .mixin !important;
  .mixin(9);
}
.size(@aaa: auto) {
  .set-width(@aaa) {
    width: @aaa;
  }
  .set-width(@aaa);
}
.when-calling-nested-issue-2394 {
  .size() !important;
}
.when-calling-nested-with-param-issue-2394 {
  .size(10px) !important;
}
.testMixin-2421 () {
    .topCheck-2421 () {
        .nestedCheck-2421() {
            margin: 5px;
        }
        .nestedCheck-2421();
    }
    .topCheck-2421();
}
.class1-2421 {
    .testMixin-2421() !important;
}
.class2-2421 {
    .testMixin-2421();
}