Skip to content

Commit a872270

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

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
@@ -106,19 +106,19 @@
106106
@extend h2
107107

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

123123
.centered
124124
text-align: center

0 commit comments

Comments
 (0)