mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
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:
parent
a4b8eb468d
commit
e9db692de0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user