diff --git a/_layouts/default.html b/_layouts/default.html index 71dd93c..69e253c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -26,133 +26,129 @@ 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 = pages_list | where: "parent", node.title -%} - {% for child in children_list %} - {% if child.parent == page.title and child.title != page.title and child.grand_parent == page.parent %} -
  • - {{ child.title }}{% if child.summary %} - {{ child.summary }}{% endif %} -
  • - {% endif %} - {% endfor %} -
- {% endif %} - - {% if site.footer_content != nil or site.last_edit_timestamp or site.gh_edit_link %} -
-
- {% if site.back_to_top %} -

{{ site.back_to_top_text }}

- {% endif %} - {% if site.footer_content != nil %} -

{{ site.footer_content }}

- {% endif %} - - {% if site.last_edit_timestamp or site.gh_edit_link %} -
- {% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %} -

- Page last modified: {{ page.last_modified_date | date: site.last_edit_time_format }}. -

- {% endif %} - {% if - site.gh_edit_link and - site.gh_edit_link_text and - site.gh_edit_repository and - site.gh_edit_branch and - site.gh_edit_view_mode - %} -

- {{ site.gh_edit_link_text }} -

- {% endif %} -
- {% endif %} -
- {% 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 = pages_list | where: "parent", node.title -%} + {% for child in children_list %} + {% if child.parent == page.title and child.title != page.title and child.grand_parent == page.parent %} +
  • + {{ child.title }}{% if child.summary %} - {{ child.summary }}{% endif %} +
  • + {% endif %} + {% endfor %} +
+ {% endif %} + + {% if site.footer_content != nil or site.last_edit_timestamp or site.gh_edit_link %} +
+
+ {% if site.back_to_top %} +

{{ site.back_to_top_text }}

+ {% endif %} + {% if site.footer_content != nil %} +

{{ site.footer_content }}

+ {% endif %} + + {% if site.last_edit_timestamp or site.gh_edit_link %} +
+ {% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %} +

+ Page last modified: {{ page.last_modified_date | date: site.last_edit_time_format }}. +

+ {% endif %} + {% if + site.gh_edit_link and + site.gh_edit_link_text and + site.gh_edit_repository and + site.gh_edit_branch and + site.gh_edit_view_mode + %} +

+ {{ site.gh_edit_link_text }} +

+ {% endif %} +
+ {% endif %} +
+ {% endif %} + +
+
+
+ + {% if site.search_enabled != false %} + + + + {% endif %} diff --git a/_sass/code.scss b/_sass/code.scss index 18f7ea4..7c15577 100644 --- a/_sass/code.scss +++ b/_sass/code.scss @@ -27,7 +27,6 @@ figure.highlight { .highlighter-rouge { margin-bottom: $sp-3; - overflow: hidden; border-radius: $border-radius; } diff --git a/_sass/layout.scss b/_sass/layout.scss index 5b997ca..49be865 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 3b33821..6dee35b 100644 --- a/assets/js/just-the-docs.js +++ b/assets/js/just-the-docs.js @@ -306,13 +306,6 @@ function initSearch() { } {%- endif %} -// Focus - -function pageFocus() { - var mainWrap = document.getElementById('main-wrap'); - mainWrap.focus(); -} - // Switch theme jtd.getTheme = function() { @@ -329,7 +322,6 @@ jtd.setTheme = function(theme) { jtd.onReady(function(){ initNav(); - pageFocus(); {% if site.search_enabled != false -%} initSearch(); {%- endif %}