diff --git a/_layouts/default.html b/_layouts/default.html index ca98a06..c6fd128 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -26,99 +26,95 @@ layout: table_wrappers -
- -
-
-
- {% if site.search_enabled != false %} - - {% endif %} - {% if site.aux_links %} - - {% endif %} -
-
- {% unless page.url == "/" %} - {% if page.parent %} - - {% endif %} - {% endunless %} -
- {% if site.heading_anchors != false %} - {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="" anchorClass="anchor-heading" %} - {% else %} - {{ content }} - {% endif %} - - {% if page.has_children == true and page.has_toc != false %} -
-

Table of contents

- {% assign children_list = site.pages | sort:"nav_order" %} -
    - {% for child in children_list %} - {% if child.parent == page.title and child.title != page.title %} -
  • - {{ child.title }}{% if child.summary %} - {{ child.summary }}{% endif %} -
  • - {% endif %} - {% endfor %} -
- {% endif %} - - {% if site.footer_content != nil %} -
-
-

{{ site.footer_content }}

-
- {% endif %} - -
-
-
-
- - {% if site.search_enabled != false %} - - + +
+
+ {% if site.search_enabled != false %} + + {% endif %} + {% if site.aux_links %} + + {% endif %} +
+
+ {% unless page.url == "/" %} + {% if page.parent %} + + {% endif %} + {% endunless %} +
+ {% if site.heading_anchors != false %} + {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="" anchorClass="anchor-heading" %} + {% else %} + {{ content }} + {% endif %} + + {% if page.has_children == true and page.has_toc != false %} +
+

Table of contents

+ {% assign children_list = site.pages | sort:"nav_order" %} +
    + {% for child in children_list %} + {% if child.parent == page.title and child.title != page.title %} +
  • + {{ child.title }}{% if child.summary %} - {{ child.summary }}{% endif %} +
  • + {% endif %} + {% endfor %} +
+ {% endif %} + + {% if site.footer_content != nil %} +
+
+

{{ site.footer_content }}

+
+ {% endif %} + +
+
+
+ + {% if site.search_enabled != false %} + + + + {% endif %} diff --git a/_sass/layout.scss b/_sass/layout.scss index c184470..eaf0487 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -2,19 +2,6 @@ // The basic two column layout // -.page-wrap { - @include mq(md) { - position: absolute; - top: 0; - left: 0; - display: flex; - width: 100%; - height: 100%; - overflow-x: hidden; - overflow-y: hidden; - } -} - .side-bar { z-index: 100; display: flex; @@ -23,7 +10,7 @@ @include mq(md) { flex-wrap: nowrap; - position: absolute; + position: fixed; width: $nav-width-md; height: 100%; flex-direction: column; @@ -37,23 +24,6 @@ } } -.main-wrap { - @include mq(md) { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - -webkit-overflow-scrolling: touch; - overflow-x: hidden; - overflow-y: scroll; - } - - &:focus { - outline: none; - } -} - .main { @include mq(md) { position: relative; diff --git a/assets/js/just-the-docs.js b/assets/js/just-the-docs.js index ba197d9..939392f 100644 --- a/assets/js/just-the-docs.js +++ b/assets/js/just-the-docs.js @@ -306,16 +306,10 @@ function initSearch() { } {%- endif %} -function pageFocus() { - var mainWrap = document.getElementById('main-wrap'); - mainWrap.focus(); -} - // Document ready jtd.onReady(function(){ initNav(); - pageFocus(); {% if site.search_enabled != false -%} initSearch(); {%- endif %}