diff --git a/source/javascripts/app/_toc.js b/source/javascripts/app/_toc.js index eb20fef..8f340f9 100644 --- a/source/javascripts/app/_toc.js +++ b/source/javascripts/app/_toc.js @@ -22,6 +22,8 @@ var closeToc = function() { $(".toc-wrapper").removeClass('open'); $("#nav-button").removeClass('open'); + // Ensure ARIA state is synced + $("#nav-button").attr("aria-expanded", "false"); }; function loadToc($toc, tocLinkSelector, tocListSelector, scrollOffset) { @@ -70,9 +72,9 @@ if (!$best.hasClass("active")) { // .active is applied to the ToC link we're currently on, and its parent <% end %> - +
diff --git a/source/stylesheets/screen.css.scss b/source/stylesheets/screen.css.scss index 7af4df7..003bb64 100644 --- a/source/stylesheets/screen.css.scss +++ b/source/stylesheets/screen.css.scss @@ -390,6 +390,10 @@ html, body { margin-bottom: 0.8em; } + // Ensure long operation names wrap on small screens + h1, h2, h3 { + overflow-wrap: anywhere; + } h4, h5, h6 { font-size: 15px; @@ -609,6 +613,10 @@ html, body { %right-col + %left-col { margin-top: $main-padding; } + + .highlight { + margin-bottom: 1em; + } } .highlight .c, .highlight .cm, .highlight .c1, .highlight .cs {