Skip to content

Commit 1043272

Browse files
committed
Make .headerlink code work with center-aligned elements
1 parent 3c8bc25 commit 1043272

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
@@ -110,17 +110,14 @@
110110
// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
111111
h1, h2, h3, h4, h5, h6, dl dt, p.caption, table > caption
112112
.headerlink
113-
display: none
114113
visibility: hidden
115114
font-size: 14px
116115
@extend .fa
117116
&:after
118-
visibility: visible
119117
content: "\f0c1"
120118
font-family: FontAwesome
121-
display: inline-block
122-
&:hover .headerlink
123-
display: inline-block
119+
&:hover .headerlink:after
120+
visibility: visible
124121

125122
.centered
126123
text-align: center

0 commit comments

Comments
 (0)