Skip to content

Commit 0271788

Browse files
author
Manuel Mujica
authored
Merge pull request #17 from bit-docs/dev/921/better-links
#921, anchor link cleanup
2 parents 161eed1 + dcdb3f9 commit 0271788

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

static/styles/styles.less

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,28 @@ b, strong {
3636
font-weight: bold;
3737
}
3838

39-
h2 .anchor,
40-
h3 .anchor {
41-
visibility: hidden;
42-
margin-right: 5px;
43-
}
44-
45-
h3:hover .anchor,
46-
h2:hover .anchor {
47-
visibility: visible;
39+
h2,
40+
h3 {
41+
.anchor {
42+
margin-right: 10px;
43+
svg {
44+
transform: scale(1);
45+
transition: all 0.15s ease-in-out;
46+
fill: @brand-color-1;
47+
}
48+
}
49+
&:hover,
50+
&:focus {
51+
.anchor {
52+
svg {
53+
transform: scale(1.2);
54+
fill: @brand-color-8;
55+
}
56+
&:active {
57+
svg {
58+
transform: scale(0.9);
59+
}
60+
}
61+
}
62+
}
4863
}

0 commit comments

Comments
 (0)