elixir/static
Franciszek Stachura 4779965e0f Fix styles for latest version of Pygments
Pygments 2.12.0 slightly changed the order of HTML elements which
makes line numbers look weird with current CSS styles.

Quoting changelog:
> When linenos=table is used, the <table> itself is now wrapped
> with a <div class="highlight"> tag instead of placing it
> inside the <td class="code"> cell (#632.) With this change,
> the output matches the documented behavior.

https://pygments.org/docs/changelog/#version-2-12-0
Related issue: https://github.com/pygments/pygments/issues/632

This commit aims to fix this by further restricting CSS selectors
that selected everything under .highlight to only select source code
related elements - descendants of .code in the new layout.

This was also tested on Pygemnts 2.14.0, version currently packaged
for Debian Bookworm
https://packages.debian.org/bookworm/armel/python3-pygments
2024-11-05 23:20:51 +01:00
..
fonts Restructure Elixir to avoid Python path hacks 2024-08-27 11:33:18 +02:00
img web: static/img: commit favicon.ico 2024-09-27 17:48:34 +02:00
autocomplete.css Restructure Elixir to avoid Python path hacks 2024-08-27 11:33:18 +02:00
autocomplete.js autocomplete: Submit form on item selection 2024-09-13 11:22:28 +02:00
banner.css Restructure Elixir to avoid Python path hacks 2024-08-27 11:33:18 +02:00
dynamic-references.js Restructure Elixir to avoid Python path hacks 2024-08-27 11:33:18 +02:00
fonts.css Restructure Elixir to avoid Python path hacks 2024-08-27 11:33:18 +02:00
header.css Restructure Elixir to avoid Python path hacks 2024-08-27 11:33:18 +02:00
robots.txt static: add /robots.txt 2024-09-27 18:19:11 +02:00
script.js js: Switch to strict mode in script.js 2024-09-26 13:05:00 +02:00
style.css Fix styles for latest version of Pygments 2024-11-05 23:20:51 +01:00