Blame view

node_modules/less/test/less-bom/namespacing/namespacing-3.less 443 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
  @map: {
    @width: 400px;
    @colors: {
      toolbar-background: red;
      toolbar-foreground: white;
    }
  };
  
  #ns {
    .mixin() {
      @height: 200px;
    }
  }
  
  @breakpoints: {
    mobile: 320px;
    tablet: 768px;
    desktop: 1024px;
  };
  
  @media (min-width: @breakpoints[mobile]) {
    .toolbar {
      width: @map[@width];
      height: #ns.mixin[@height];
      background: @map[@colors][toolbar-background];
      color: @map[@colors][toolbar-foreground];
    }
  }