Skip to content

Commit 28e7c4a

Browse files
jessetanBlendify
authored andcommitted
Style code block captions (#689)
* Give code block captions same permalink as other elems * Style code block captions like table captions * Revert "Give code block captions same permalink as other elems" This reverts commit 4f7e6da.
1 parent 8e376af commit 28e7c4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sass/_theme_rst.sass

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
font-size: 12px
9696
line-height: 1.4
9797

98+
.code-block-caption
99+
font-style: italic
100+
font-size: 85%
101+
line-height: 1
102+
padding: 1em 0
103+
text-align: center
104+
98105
@media print
99106
.codeblock, div[class^='highlight'], div[class^='highlight'] pre
100107
white-space: pre-wrap

0 commit comments

Comments
 (0)