- {% if site.anchor_headings != false %} + {% if site.heading_anchors != nil %} {% include vendor/anchor_headings.html html=content beforeHeading = "true" anchorBody="" anchorClass="anchor-heading" %} {% else %} {{ content }} diff --git a/_sass/content.scss b/_sass/content.scss index 0ea0629..275599e 100644 --- a/_sass/content.scss +++ b/_sass/content.scss @@ -113,14 +113,16 @@ } .anchor-heading { + position: absolute; + right: -$sp-3; + width: $sp-5; + height: 100%; fill: $link-color; visibility: hidden; @include mq(md) { - position: absolute; + right: auto; left: -$sp-5; - width: $sp-5; - height: 100%; } } diff --git a/_sass/layout.scss b/_sass/layout.scss index e92584c..ddd5180 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -85,10 +85,10 @@ background-color: $sidebar-color; @include mq(md) { - background-color: $body-background-color; display: flex; justify-content: flex-end; height: $header-height; + background-color: $body-background-color; border-bottom: $border $border-color; } @@ -128,10 +128,10 @@ align-items: center; @include mq(md) { + z-index: 101; height: $header-height; min-height: $header-height; max-height: $header-height; - z-index: 101; border-bottom: $border $border-color; } } @@ -148,11 +148,16 @@ @include fs-6; } -.site-button { +.menu-button { + appearance: none; + display: flex; height: 100%; padding: $gutter-spacing-sm; - display: flex; align-items: center; + color: $link-color; + text-transform: uppercase; + background: transparent; + border: 0; @include mq(md) { display: none;