Skip to content

fix background color of div.viewcode-block:target when viewing source code in documentation.#109

Merged
Dreamsorcerer merged 1 commit intoaio-libs:masterfrom
Vizonex:view-code-target-bg-fix
Apr 12, 2026
Merged

fix background color of div.viewcode-block:target when viewing source code in documentation.#109
Dreamsorcerer merged 1 commit intoaio-libs:masterfrom
Vizonex:view-code-target-bg-fix

Conversation

@Vizonex
Copy link
Copy Markdown
Member

@Vizonex Vizonex commented Apr 11, 2026

What do these changes do?

This attempts to try and fix an annoying bug with the html when viewing the source code by simply fixing the view_code_tg_bg setting.
This is what it was originally.

div.viewcode-block:target {
    background: #ffd;
}

It blinds my eyes but I managed to figure out what caused it.
image
This might also be related to #15 But I'm surprised nobody has bothered to try and manually fix it for the past 6 years.

Are there changes in behavior for the user?

No more random white bg blinding people's eyes.

Related issue number

fixes #15

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@Dreamsorcerer Dreamsorcerer merged commit c957847 into aio-libs:master Apr 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pygments config has broken emphasize-lines case

2 participants