Skip to content

Commit e9db692

Browse files
mitya57Blendify
authored andcommitted
Style headerlinks for table captions properly (#454)
* Style headerlinks for table captions properly Fixes #437 * Make .headerlink code work with center-aligned elements * Lowered font size for table headerlink as requested in the review
1 parent a4b8eb4 commit e9db692

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sass/_theme_rst.sass

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@
108108
@extend h2
109109

110110
// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
111-
h1, h2, h3, h4, h5, h6, dl dt, p.caption
111+
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
121+
122+
table > caption .headerlink:after
123+
font-size: 12px
124124

125125
.centered
126126
text-align: center

0 commit comments

Comments
 (0)