animation bug

master
Nick Sergeant 2011-11-10 16:52:09 -05:00
parent 318c35c36b
commit da465ec89d
3 changed files with 11 additions and 3 deletions

View File

@ -758,6 +758,9 @@ article.snipt div.container section.code a.expand:hover {
color: #3BAAF3;
font-weight: bold;
}
article.snipt div.container section.code div.raw {
display: none;
}
article.snipt div.container section.emacs a.expand, article.snipt div.container section.default a.expand {
-webkit-box-shadow: 0 -25px 25px #f8f8f8;
-moz-box-shadow: 0 -25px 25px #f8f8f8;
@ -879,7 +882,7 @@ article.snipt aside section.tags ul li a:hover {
border-color: #000;
color: #000;
}
article.snipt aside.expanded li {
article.snipt aside section.tags ul.expanded li {
display: block;
}
article.snipt footer {

View File

@ -990,6 +990,7 @@ jQuery(function($) {
this.$copy_done = $('span.done', this.$copy_button);
this.$expand_button = $('a.expand', this.$aside);
this.$raw = $('div.raw', this.$container);
this.$tags = $('section.tags ul', this.$aside);
this.setupCopy();
},
@ -998,10 +999,11 @@ jQuery(function($) {
},
expand: function() {
this.$container.toggleClass('expanded', 100);
this.$aside.toggleClass('expanded');
this.$tags.toggleClass('expanded');
return false;
},
setupCopy: function() {
var copy_do = this.$copy_do;
var copy_done = this.$copy_done;

View File

@ -354,6 +354,9 @@ article.snipt div.container section.code a.expand:hover {
color: #3BAAF3;
font-weight: bold;
}
article.snipt div.container section.code div.raw {
display: none;
}
article.snipt div.container section.emacs a.expand, article.snipt div.container section.default a.expand {
-webkit-box-shadow: 0 -25px 25px #f8f8f8;
-moz-box-shadow: 0 -25px 25px #f8f8f8;
@ -475,7 +478,7 @@ article.snipt aside section.tags ul li a:hover {
border-color: #000;
color: #000;
}
article.snipt aside.expanded li {
article.snipt aside section.tags ul.expanded li {
display: block;
}
article.snipt footer {