Skip to content

Commit bf947d1

Browse files
committed
Class animation demos: Don't chain id and class selectors together in CSS since IE6 doesn't understand chained rules.
1 parent 4ad7154 commit bf947d1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

demos/addClass/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.toggler { width: 500px; height: 200px; position: relative;}
1212
#button { padding: .5em 1em; text-decoration: none; }
1313
#effect { width: 240px; padding: 1em; font-size: 1.2em; border: 1px solid #000; background: #eee; color: #333; }
14-
#effect.newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
14+
.newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
1515
</style>
1616
<script type="text/javascript">
1717
$(function() {

demos/removeClass/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.toggler { width: 500px; height: 200px; position: relative;}
1212
#button { padding: .5em 1em; text-decoration: none; }
1313
#effect {position: relative; width: 240px; padding: 1em; letter-spacing: 0; font-size: 1.2em; border: 1px solid #000; background: #eee; color: #333; }
14-
#effect.newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
14+
.newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
1515
</style>
1616
<script type="text/javascript">
1717
$(function() {

demos/switchClass/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
.toggler { width: 500px; height: 200px; position: relative;}
1212
#button { padding: .5em 1em; text-decoration: none; }
1313
#effect {position: relative; }
14-
#effect.newClass { width: 240px; padding: 1em; letter-spacing: 0; font-size: 1.2em; }
15-
#effect.anotherNewClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
14+
.newClass { width: 240px; padding: 1em; letter-spacing: 0; font-size: 1.2em; margin: 0; }
15+
.anotherNewClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
1616
</style>
1717
<script type="text/javascript">
1818
$(function() {

demos/toggleClass/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
.toggler { width: 500px; height: 200px; position: relative;}
1212
#button { padding: .5em 1em; text-decoration: none; }
1313
#effect {position: relative; width: 240px; padding: 1em; letter-spacing: 0; font-size: 1.2em; border: 1px solid #000; background: #eee; color: #333; }
14-
#effect.newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
14+
.newClass { text-indent: 40px; letter-spacing: .4em; width: 410px; height: 100px; padding: 30px; margin: 10px; font-size: 1.6em; }
1515
</style>
1616
<script type="text/javascript">
1717
$(function() {

0 commit comments

Comments
 (0)