Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Fix broken TOC toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
makaroniame committed Oct 3, 2014
1 parent eafc6ce commit 47ed85c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion _sass/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ $button-size: 1.5rem;
.image-wrap {
position: relative;
margin-bottom: 2em;
@include clearfix;
&:after {
content: " ";
display: block;
Expand Down Expand Up @@ -460,7 +461,7 @@ $button-size: 1.5rem;
padding: 10px;
display: block;
color: $white;
border-bottom-width: 0;
text-decoration: none;
background: lighten($black, 30);
@include opacity(0.7);
@include transition(opacity 0.2s ease-in-out);
Expand All @@ -473,6 +474,13 @@ $button-size: 1.5rem;
}
}
}
#drawer {
height: 100%;
overflow: hidden;
&.js-hidden {
max-height: 0;
}
}
.image-grid {
@include clearfix;
list-style: none;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $(function() {
// Table of Contents toggle
$(function() {
$(".toc h3").click(function () {
$("#drawer").toggleClass("hidden");
$("#drawer").toggleClass("js-hidden");
});
});

Expand Down
Loading

0 comments on commit 47ed85c

Please sign in to comment.