Implement parent selector

This commit is contained in:
James Foster
2011-05-20 07:55:02 +08:00
committed by Alexis Sellier
parent 4255610958
commit afd599dcb5
5 changed files with 101 additions and 7 deletions

View File

@@ -22,3 +22,27 @@ td {
td, input {
line-height: 1em;
}
a {
color: red;
&:hover { color: blue; }
div & { color: green; }
p & span { color: yellow; }
}
.foo {
.bar, .baz {
& .qux {
display: block;
}
.qux & {
display: inline;
}
.qux & .biz {
display: none;
}
}
}