diff --git a/assets/icons/link.svg b/assets/icons/link.svg new file mode 100644 index 000000000..5beeeff6a --- /dev/null +++ b/assets/icons/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/styles/framework.scss b/assets/styles/framework.scss index 37b18178e..7be9ae406 100644 --- a/assets/styles/framework.scss +++ b/assets/styles/framework.scss @@ -176,20 +176,38 @@ h2 { } .sub-heading { - h2 { - display: inline-block; + h2, + h3, + h4, + h5, + h6 { + display: inline; width: fit-content; } + display: inline-block; + margin-top: 1em; + width: 100%; + .heading-anchor-link { - display: none; - font-size: 1.4em; + @extend %sr-only; + font-size: 15px; + color: $accent-color; + width: 20px; + text-align: center; + padding-right: 5px; + + &:hover, + &:focus { + color: color('teal', 900); + } } &:hover, &:focus { - .heading-anchor-link { - display: inline-block; + a.heading-anchor-link { + @extend %remove-sr-only; + display: inline; } } } diff --git a/assets/styles/icons.scss b/assets/styles/icons.scss index 3fbdb962a..52843e07d 100644 --- a/assets/styles/icons.scss +++ b/assets/styles/icons.scss @@ -273,3 +273,9 @@ font-icon: url('gavel.svg'); vertical-align: -2px; } + +.icon-link:before { + @extend %icon; + font-icon: url('link.svg'); + vertical-align: -1px; +} diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index ae0f4c0ca..e83a064b0 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,6 +1,6 @@