New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Padding issues in highlighted code examples #144
Comments
Code examples may not be the only styling problem. |
Following up from an IRC discussion, it is not just padding around the examples, but inside the example itself.
is the raw source, but the |
@raiph++ - the issue is the extra horizontal space on (e.g.) the second line between the |
`.section` class padding currently interferes with the rendering of examples (see Raku#144). Explicitly set it to `0rem` within code blocks.
`.section` class padding currently interferes with the rendering of examples (see Raku#144). Explicitly set it to `0rem` within code blocks. The actual update is to `_highlighting.scss`; CSS files were regenerated by the `update-css` script.
`.section` class padding currently interferes with the rendering of examples (see Raku#144). Explicitly set it to `0rem` within code blocks. The actual update is to `_highlighting.scss`; CSS files were regenerated by the `update-css` script.
* Override CSS padding in `.raku-code` divs `.section` class padding currently interferes with the rendering of examples (see #144). Explicitly set it to `0rem` within code blocks. The actual update is to `_highlighting.scss`; CSS files were regenerated by the `update-css` script. * Remove sourceMappingURLs
Closing issue as resolved. |
Tokens in certain highlighted code blocks are incorrectly spaced due to additional horizontal padding provided by the stylesheet.
There are multiple instances of the problem on the Regexes page; a representative example is the spacing around
:nth
,:1st
, etc. under the positional adverb heading.The cause appears to be the
section
class in the main stylesheet1which pads spans like the following
Footnotes
For screen; there's also a fallback to
1.5rem
in main.css. ↩The text was updated successfully, but these errors were encountered: