diff --git a/aio/src/styles/2-modules/_heading-anchors.scss b/aio/src/styles/2-modules/_heading-anchors.scss index fca92b5609..e641b3782a 100644 --- a/aio/src/styles/2-modules/_heading-anchors.scss +++ b/aio/src/styles/2-modules/_heading-anchors.scss @@ -5,25 +5,18 @@ display: none; } - .mat-icon, .material-icons { - visibility: hidden; - display: inline-block; + .header-link { color: $mediumgray; - margin: 0 8px; - } - - &:hover { - .mat-icon, .material-icons { - visibility: visible; - } - } - - a.header-link { - text-decoration: none; - padding-left: 8px; - margin-left: -50px; display: inline-block; + margin-left: -42px; + padding: 0 8px; + text-decoration: none; vertical-align: middle; + visibility: hidden; + } + + &:hover .header-link { + visibility: visible; } }