Skip to content

Commit 89cfd99

Browse files
committed
Make .headerlink code work with center-aligned elements
1 parent e6f2e70 commit 89cfd99

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

sass/_theme_rst.sass

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,14 @@
108108
// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
109109
h1, h2, h3, h4, h5, h6, dl dt, p.caption, table > caption
110110
.headerlink
111-
display: none
112111
visibility: hidden
113112
font-size: 14px
114113
@extend .fa
115114
&:after
116-
visibility: visible
117115
content: "\f0c1"
118116
font-family: FontAwesome
119-
display: inline-block
120-
&:hover .headerlink
121-
display: inline-block
117+
&:hover .headerlink:after
118+
visibility: visible
122119

123120
.centered
124121
text-align: center

0 commit comments

Comments
 (0)