diff --git a/_scss/_base.scss b/_scss/_base.scss index ab25d13e3c..0edb4c37a0 100755 --- a/_scss/_base.scss +++ b/_scss/_base.scss @@ -11,8 +11,8 @@ body { color: $body-text; font-family: $font; font-size: $body-text-size; - margin: $clear; - padding: $clear; + margin: 0; + padding: 0; overflow-x: hidden; } diff --git a/_scss/_variables.scss b/_scss/_variables.scss index 2fa14b3776..362e2fb1b0 100755 --- a/_scss/_variables.scss +++ b/_scss/_variables.scss @@ -11,7 +11,6 @@ $global-header-height: 440px; $bg-secondary-tabs: rgba(0, 0, 0, 0.05); $white: #fff; $black: #000; -$clear: 0; /* * standard mode diff --git a/js/docs.js b/js/docs.js index 7c52025925..9e4baeafc2 100644 --- a/js/docs.js +++ b/js/docs.js @@ -28,17 +28,17 @@ function pageIsInSection(tree) { } function walkTree(tree) { - for (let j = 0; j < tree.length; j++) { + for (const page of tree) { totalTopics++; - if (tree[j].section) { - let sectionHasPath = pageIsInSection(tree[j].section); + if (page.section) { + let sectionHasPath = pageIsInSection(page.section); outputLetNav.push('
  • '); + outputLetNav.push(">" + page.sectiontitle + ''); outputLetNav.push('
  • "); } else { // just a regular old topic; this is a leaf, not a branch; render a link! - outputLetNav.push('
  • " + tree[j].title + "
  • ") + outputLetNav.push(">" + page.title + "") } } }