Skip to content

Commit

Permalink
Fix broken TOC toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jluccisano committed Feb 12, 2017
1 parent 57799e5 commit 05aaf19
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 05aaf19

Please sign in to comment.