~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/lessc/extend-nest.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.sidebar {
 
2
  width: 300px;
 
3
  background: red;
 
4
 
 
5
  .box {
 
6
    background: #FFF;
 
7
    border: 1px solid #000;
 
8
    margin: 10px 0;
 
9
  }
 
10
}
 
11
 
 
12
.sidebar2 {
 
13
  &:extend(.sidebar all);
 
14
  background: blue;
 
15
}
 
16
 
 
17
.type1 {
 
18
    .sidebar3 {
 
19
      &:extend(.sidebar all);
 
20
      background: green;
 
21
    }
 
22
}
 
23
 
 
24
.type2 {
 
25
  &.sidebar4 {
 
26
    &:extend(.sidebar all);
 
27
    background: red;
 
28
  }
 
29
}
 
30
 
 
31
.button {
 
32
  color: black;
 
33
  &:hover {
 
34
    color: white;
 
35
  }
 
36
}
 
37
.submit {
 
38
  &:extend(.button);
 
39
  &:hover:extend(.button:hover) {}
 
40
}
 
41
 
 
42
.nomatch {
 
43
  &:hover:extend(.button :hover) {}
 
44
}
 
45
 
 
46
.button2 {
 
47
  :hover {
 
48
    nested: white;
 
49
  }
 
50
}
 
51
.button2 :hover {
 
52
  notnested: black;
 
53
}
 
54
 
 
55
.nomatch :extend(.button2:hover) {}
 
56
 
 
57
.amp-test-a,
 
58
.amp-test-b {
 
59
  .amp-test-c &.amp-test-d&.amp-test-e {
 
60
    .amp-test-f&+&.amp-test-g:extend(.amp-test-h) {}
 
61
  }
 
62
}
 
63
.amp-test-h {
 
64
  test: extended by masses of selectors;
 
65
}
 
66
~~~~~~~~~~