mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Add padding to literal blocks
This commit is contained in:
parent
7cd846b4fd
commit
0fde3ab093
@ -53,13 +53,20 @@
|
|||||||
line-height: $base-line-height
|
line-height: $base-line-height
|
||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
|
|
||||||
|
pre.literal-block
|
||||||
|
white-space: pre
|
||||||
|
margin: 0
|
||||||
|
padding: $base-line-height / 2 $base-line-height / 2
|
||||||
|
font-family: $code-font-family
|
||||||
|
display: block
|
||||||
|
overflow: auto
|
||||||
pre.literal-block, div[class^='highlight']
|
pre.literal-block, div[class^='highlight']
|
||||||
border: 1px solid $table-border-color
|
border: 1px solid $table-border-color
|
||||||
padding: 0px
|
|
||||||
overflow-x: auto
|
overflow-x: auto
|
||||||
// 1px hack otherwise border won't show. lame
|
// 1px hack otherwise border won't show. lame
|
||||||
margin: 1px 0 $base-line-height 0
|
margin: 1px 0 $base-line-height 0
|
||||||
div[class^='highlight']
|
div[class^='highlight']
|
||||||
|
padding: 0px
|
||||||
border: none
|
border: none
|
||||||
margin: 0
|
margin: 0
|
||||||
// Needs 100% width for line highlighting to work properly
|
// Needs 100% width for line highlighting to work properly
|
||||||
|
Loading…
Reference in New Issue
Block a user