Add Sass like extend

This commit is contained in:
hokaccha
2011-12-05 23:19:13 +09:00
committed by Luke Page
parent 61e7bd6fb1
commit e793e81e92
10 changed files with 206 additions and 8 deletions

24
test/css/extend.css Normal file
View File

@@ -0,0 +1,24 @@
.error, .badError {
border: 1px #f00;
background: #fdd;
}
.error.intrusion, .badError.intrusion {
font-size: 1.3em;
font-weight: bold;
}
.intrusion .error, .intrusion .badError {
display: none;
}
.badError {
border-width: 3px;
}
.foo .bar,
.foo .baz,
.ext1 .ext2 .bar,
.ext1 .ext2 .baz,
.ext3 .bar,
.ext4 .bar,
.ext3 .baz,
.ext4 .baz {
display: none;
}