diff --git a/snipt/media/css/style.less b/snipt/media/css/style.less index 26a9737..41a59a8 100644 --- a/snipt/media/css/style.less +++ b/snipt/media/css/style.less @@ -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; + } + } } } } diff --git a/snipt/media/js/src/modules/snipt.js b/snipt/media/js/src/modules/snipt.js index b68f80a..b846f04 100644 --- a/snipt/media/js/src/modules/snipt.js +++ b/snipt/media/js/src/modules/snipt.js @@ -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;