Skip to content

Commit

Permalink
Move hover link indicators to the right
Browse files Browse the repository at this point in the history
When they were on the left, they were getting clipped off of the
screen.
  • Loading branch information
lpsinger committed Aug 23, 2023
1 parent 5bb43fa commit ad79fa0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,21 @@ body {
* Hover link indicator for headings (like in GitHub's display of Markdown)
*/

@for $i from 1 through 6 {
h#{$i} > a {
h1,
h2,
h3,
h4,
h5,
h6 {
& > a {
color: inherit;
text-decoration: none;
}

h#{$i} > a:hover::before {
& > a:hover::after {
content: url('~/../node_modules/nasawds/src/img/usa-icons/link.svg');
position: relative;
float: left;
width: 0;
right: 30px;
position: absolute;
padding-left: 1ex;
}
}

Expand Down

0 comments on commit ad79fa0

Please sign in to comment.