Fix styles on code block line numbers on Sphinx 4+

This commit is contained in:
Anthony Johnson 2021-07-14 00:18:33 -06:00
parent 6f9501293b
commit 6597b25257
No known key found for this signature in database
GPG Key ID: 709FE91423F05AA0
3 changed files with 15 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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