Skip to content

padding style in .hljs-ln-numbers and .hljs-ln-code not working #75

Open
@RocketMan

Description

@RocketMan

In Usage, the examples give padding-right and padding-left in classes .hljs-ln-numbers and .hljs-ln-coding, respectively.

These styles appear to be ignored, because of explicit padding:0 in the DOM:

<style type="text/css">.hljs-ln{border-collapse:collapse}.hljs-ln td{padding:0}.hljs-ln-n:before{content:attr(data-line-number)}</style>

The above is added by this code:

One can force the padding to work in .hljs-ln-numbers and .hljs-ln-coding by appending !important to the padding style, but that seems somewhat hackish.

Expected: Padding specification in the user-supplied .hljs-ln-* classes should be accepted.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions