summaryrefslogtreecommitdiffstats
path: root/site/assets/scss/_anchor.scss
blob: 5bb39150b14ea0632155fe1451f2d2bf180cf1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.anchor-link {
  padding: 0 .175rem;
  font-weight: 400;
  color: rgba($link-color, .5);
  text-decoration: none;
  opacity: 0;
  @include transition(color .15s ease-in-out, opacity .15s ease-in-out);

  &::after {
    content: "#";
  }

  &:focus,
  &:hover,
  :hover > &,
  :target > & {
    color: $link-color;
    text-decoration: none;
    opacity: 1;
  }
}