Fix animation bug
parent
91b6990dd8
commit
318c35c36b
|
@ -423,6 +423,9 @@ article.snipt {
|
|||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
div.raw {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
section.emacs, section.default {
|
||||
a.expand {
|
||||
|
@ -554,11 +557,11 @@ article.snipt {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.expanded {
|
||||
li {
|
||||
display: block;
|
||||
&.expanded {
|
||||
li {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
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();
|
||||
},
|
||||
|
@ -24,10 +25,11 @@
|
|||
},
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue