File: extend-nest.less

package info (click to toggle)
less.js 1.6.3~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,240 kB
  • sloc: sh: 128; makefile: 35; perl: 11
file content (65 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (5)
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
.sidebar {
  width: 300px;
  background: red;

  .box {
    background: #FFF;
    border: 1px solid #000;
    margin: 10px 0;
  }
}

.sidebar2 {
  &:extend(.sidebar all);
  background: blue;
}

.type1 {
    .sidebar3 {
      &:extend(.sidebar all);
      background: green;
    }
}

.type2 {
  &.sidebar4 {
    &:extend(.sidebar all);
    background: red;
  }
}

.button {
  color: black;
  &:hover {
    color: white;
  }
}
.submit {
  &:extend(.button);
  &:hover:extend(.button:hover) {}
}

.nomatch {
  &:hover:extend(.button :hover) {}
}

.button2 {
  :hover {
    nested: white;
  }
}
.button2 :hover {
  notnested: black;
}

.nomatch :extend(.button2:hover) {}

.amp-test-a,
.amp-test-b {
  .amp-test-c &.amp-test-d&.amp-test-e {
    .amp-test-f&+&.amp-test-g:extend(.amp-test-h) {}
  }
}
.amp-test-h {
  test: extended by masses of selectors;
}