mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
Adjust line number padding a bit.
This commit is contained in:
parent
99d0e4924a
commit
1af7e1a0bc
@ -246,7 +246,7 @@ func (f *Formatter) styleToCSS(style *chroma.Style) map[chroma.TokenType]string
|
||||
classes[t] = StyleEntryToCSS(entry)
|
||||
}
|
||||
classes[chroma.Background] += f.tabWidthStyle()
|
||||
classes[chroma.LineNumbers] += "; margin-right: 0.5em"
|
||||
classes[chroma.LineNumbers] += "; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;"
|
||||
classes[chroma.LineHighlight] += "; display: block; width: 100%"
|
||||
return classes
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user