Skip to content
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

Set pre overflow to auto and make bg !important #9

Merged
merged 1 commit into from
Aug 9, 2021

Commits on Aug 1, 2021

  1. Set pre overflow to auto and make bg !important

    Fixes 2 issues:
    1. In Firefox, overflow: scroll puts an ugly unscrollable scrollbar on the page. With auto it behaves as normal but the scrollbar only appears when needed.
    2. When using code highlighting, the generated Hugo styles replace the <pre> background color, making the page look ugly (only the text has a background, not the entire <pre> block). Setting the background !important fixes this. This is not ideal, but the styles are applied directly to the element when using the internal highlight shortcode, so this is the only way to override them.
    
    Tested on Firefox and Chrome.
    mntn-xyz authored Aug 1, 2021
    Configuration menu
    Copy the full SHA
    e9cfcaf View commit details
    Browse the repository at this point in the history