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
This commit is contained in:
Dmitry Shachnev 2017-12-16 08:09:05 +03:00 committed by Aaron Carlisle
parent a4b8eb468d
commit e9db692de0

View File

@ -108,19 +108,19 @@
@extend h2
// This is the #href that shows up on hover. Sphinx's is terrible so I hack it away.
h1, h2, h3, h4, h5, h6, dl dt, p.caption
h1, h2, h3, h4, h5, h6, dl dt, p.caption, table > caption
.headerlink
display: none
visibility: hidden
font-size: 14px
@extend .fa
&:after
visibility: visible
content: "\f0c1"
font-family: FontAwesome
display: inline-block
&:hover .headerlink
display: inline-block
&:hover .headerlink:after
visibility: visible
table > caption .headerlink:after
font-size: 12px
.centered
text-align: center