mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Fix styles on code block line numbers on Sphinx 4+
This commit is contained in:
parent
6f9501293b
commit
6597b25257
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -89,11 +89,19 @@
|
||||
font-family: $code-font-family
|
||||
font-size: 12px
|
||||
line-height: 1.4
|
||||
|
||||
|
||||
// Do not allow selection of code block prompts and line numbers
|
||||
.linenos, .gp
|
||||
user-select: none
|
||||
pointer-events: none
|
||||
div.highlight
|
||||
span.linenos, .gp
|
||||
user-select: none
|
||||
pointer-events: none
|
||||
|
||||
span.linenos
|
||||
display: inline-block
|
||||
padding-left: 0px
|
||||
padding-right: ($base-line-height / 2)
|
||||
margin-right: ($base-line-height / 2)
|
||||
border-right: 1px solid lighten($table-border-color, 2%)
|
||||
|
||||
.code-block-caption
|
||||
font-style: italic
|
||||
|
Loading…
Reference in New Issue
Block a user