summaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests/resources/scss/parent-selector.scss
blob: 74f0e15b9e6c064d90474efed131c208d3db6131 (plain)
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
a {
  font-weight: bold;
  text-decoration: none;
  .sub {
  	color: blue;
  }
  &:hover { text-decoration: underline; }
  body.firefox & { font-weight: normal; }
}

#main {
  color: black;
  a {
    font-weight: bold;
    &:hover { color: red; }
  }
}

@mixin parent {
	&:hover {
		color: blue;
	}
}

.mixin-parent {
	@include parent;
}

.part {
	&.one, &.two, .non-parent {
		color: blue;
	}
}

.root {
	.part, .part2 {
		&.one, .non-parent {
			color: blue;
		}
	}
}

.root2 {
	.part, .part2 {
		.one, .non-parent {
			color: blue;
		}
	}
}

&.drop-parent-reference {
	color: green;
}