1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

4 commits

Author SHA1 Message Date
Joe
a3b26873eb
Change diff highlighting background for dark mode 2021-08-10 13:54:21 -04:00
Lloyd Kupchanko
11fc2e1566 Fix contrast ratio for guide syntax hilighting [ci-skip]
The theme used for syntax hilighting has a number of colors that
do not meet the 4.5:1 minimum contrast ratio of the Web Content
Accessibility Guidelines (WCAG) 2.1 standard.

All colors that were below 4.5:1 on a background of #eeeeee have
been adjusted to be at or slightly above 4.5:1 using tweaked
versions of the tools in this repository:

https://github.com/mpchadwick/pygments-high-contrast-stylesheets/
2021-07-16 02:41:10 -06:00
Mark Godwin
bfa5b45f42 [ci skip] Adds Dark Mode to Rails Guides
Adds dark mode classes using the @media query `prefers-color-scheme`.  Also adds a dark color scheme for code highlighting to make code snippets more readable.

[ci skip] Adds Dark Mode to Rails Guides

Adds dark mode classes using the @media query `prefers-color-scheme`.  Also adds a dark color scheme for code highlighting to make code snippets more readable.
2021-04-15 09:17:30 -06:00
Petrik
f6bcd1496e Use Rouge for guides code highlighting [ci skip]
Replace javascript highlighting using Prism with the Rouge markdown
highlighter. Uses the github theme.
2020-07-08 09:05:08 +02:00