Blame view

node_modules/less/test/less-bom/mixins-interpolated.less 776 Bytes
ce4c83ff   wxy   初始提交
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  
  @a0: 123;
  @a1: foo;
  @a2: ~".foo";
  @a4: ~"#foo";
  
  .@{a0} {
      a: 0;
  }
  
  .@{a1} {
      a: 1;
  }
  
  @{a2} {
      a: 2;
  }
  
  #@{a1} {
      a: 3;
  }
  
  @{a4} {
      a: 4;
  }
  
  mi-test-a {
      .123;
      .foo;
      #foo;
  }
  
  .b .bb {
      &.@{a1}-xxx .yyy-@{a1}@{a4} {
          & @{a2}.bbb {
              b: 1;
          }
      }
  }
  
  mi-test-b {
      .b.bb.foo-xxx.yyy-foo#foo.foo.bbb;
  }
  
  @c1: @a1;
  @c2: bar;
  @c3: baz;
  
  #@{c1}-foo {
      > .@{c2} {
          .@{c3} {
              c: c;
          }
      }
  }
  
  mi-test-c {
      &-1 {#foo-foo;}
      &-2 {#foo-foo > .bar;}
      &-3 {#foo-foo > .bar.baz;}
  }
  
  .Person(@name, @gender_) {
      .@{name} {
          @gender: @gender_;
          .sayGender() {
              gender: @gender;
          }
      }
  }
  
  mi-test-d {
      .Person(person, "Male");
      .person.sayGender();
  }