{% if site.heading_anchors != false %} - {% include vendor/anchor_headings.html html=content beforeHeading = "true" anchorBody="" anchorClass="anchor-heading" %} + {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="" anchorClass="anchor-heading" %} {% else %} {{ content }} {% endif %} diff --git a/_sass/content.scss b/_sass/content.scss index 0ed47fc..2940286 100644 --- a/_sass/content.scss +++ b/_sass/content.scss @@ -116,26 +116,37 @@ .anchor-heading { position: absolute; - right: -$sp-3; + right: -$sp-4; width: $sp-5; height: 100%; + padding-right: $sp-1; + padding-left: $sp-1; overflow: visible; - fill: $link-color; - visibility: hidden; @include mq(md) { right: auto; left: -$sp-5; } + + svg { + display: inline-block; + width: 100%; + height: 100%; + fill: $link-color; + visibility: hidden; + } } + .anchor-heading:hover, h1:hover > .anchor-heading, h2:hover > .anchor-heading, h3:hover > .anchor-heading, h4:hover > .anchor-heading, h5:hover > .anchor-heading, h6:hover > .anchor-heading { - visibility: visible; + svg { + visibility: visible; + } } h1, From d4b79e2eace94d2af7986764b38ba1254e3d3dad Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Sat, 20 Jul 2019 23:42:27 +0200 Subject: [PATCH 10/59] Improved site header for logo (cherry picked from commit 2a5c38907488b998af75e9a1ef2499428b8f1a78) --- _sass/layout.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_sass/layout.scss b/_sass/layout.scss index 4c214ea..5ab7ff7 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -125,12 +125,12 @@ .site-header { display: flex; + min-height: $header-height; align-items: center; @include mq(md) { z-index: 101; height: $header-height; - min-height: $header-height; max-height: $header-height; border-bottom: $border $border-color; } @@ -142,8 +142,8 @@ display: flex; height: 100%; align-items: center; - padding-top: $gutter-spacing-sm; - padding-bottom: $gutter-spacing-sm; + padding-top: $sp-2; + padding-bottom: $sp-2; color: $body-heading-color; @include fs-6; } From 89a331ee857dd05adc9172dcb7e1cd41937bb97e Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Sun, 21 Jul 2019 00:04:50 +0200 Subject: [PATCH 11/59] Improved site header for logo (cherry picked from commit 468bf8368783309e69fdcaa91f7eb5b1e05d96aa) --- _sass/layout.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_sass/layout.scss b/_sass/layout.scss index 5ab7ff7..21a5490 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -146,6 +146,11 @@ padding-bottom: $sp-2; color: $body-heading-color; @include fs-6; + + @include mq(md) { + padding-top: $sp-3; + padding-bottom: $sp-3; + } } .menu-button { From 6a46a4797e5491d7ce5b85eddf0bd9f0e85a4a06 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Sun, 21 Jul 2019 00:06:36 +0200 Subject: [PATCH 12/59] Improved site header for logo (cherry picked from commit 97d1c663ef566ffe20fb1ec217fd2d8c1a8a2382) --- _sass/layout.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_sass/layout.scss b/_sass/layout.scss index 21a5490..d826cfc 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -142,14 +142,14 @@ display: flex; height: 100%; align-items: center; - padding-top: $sp-2; - padding-bottom: $sp-2; + padding-top: $sp-3; + padding-bottom: $sp-3; color: $body-heading-color; @include fs-6; @include mq(md) { - padding-top: $sp-3; - padding-bottom: $sp-3; + padding-top: $sp-2; + padding-bottom: $sp-2; } } From 0cfc0f0357a3b98997ddafe05f819537ffcd1980 Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Fri, 16 Aug 2019 13:32:24 +0200 Subject: [PATCH 13/59] Update nav.html A `navigation-list-child-list` is not displayed unless the enclosing `navigation-list-item` is `active`, so it needs to be generated only when `page.url == node.url or page.parent == node.title or page.grand_parent == node.title`. --- _includes/nav.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_includes/nav.html b/_includes/nav.html index d561a42..1c1dd2b 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -10,6 +10,7 @@ {%- endif -%} {{ node.title }} {%- if node.has_children -%} + {%- if page.url == node.url or page.parent == node.title or page.grand_parent == node.title -%} {%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%} {%- endif -%} + {%- endif -%}