freeCodeCamp/client
Eli Carlin-Coleman a834672437
Fix low-contrast CSS strings in code blocks (#39967) (#39987)
First noticed on the challenge "Divide the Grid Into an Area Template", text is hard to read in night mode due to low contrast in the CSS code block. Problem was discussed in issue #39967, and this change was proposed to boost contrast above the minimum acceptable ratio of 4.5:1.

This change only targets CSS code blocks in night mode, and only strings. I could not find code blocks in other languages with this issue, but they may exist.
This also does not target `.token.operator`, `.token.entity`, or `.token.url`. There is no issue here with contrast, but these classes do not include a background. A proposed future change could be to remove the background from `.token.string` as well, but this change is not made here, as current style guides recommend the background.
2020-10-16 14:52:16 +03:00
..
config fix(build): Make build unrelient on root level deps (take 2) 2018-09-06 16:07:03 +01:00
plugins fix: watch curriculum changes 2020-09-29 22:09:02 +02:00
src Fix low-contrast CSS strings in code blocks (#39967) (#39987) 2020-10-16 14:52:16 +03:00
static refactor(learn): remove static prism css (#39981) 2020-10-15 18:13:51 +05:30
utils fix: watch curriculum changes 2020-09-29 22:09:02 +02:00
.babelrc feat(client): show line numbers on video questions (#39207) 2020-07-08 20:00:42 +05:30
.gitignore fix(client): add cache-busting hashes to chunks (#37746) 2019-11-15 01:43:44 +05:30
gatsby-browser.js fix: save the fonts locally 2019-10-16 19:29:48 +09:00
gatsby-config.js fix(client): ensure validation works during watch (#38936) 2020-05-28 20:54:29 +05:30
gatsby-node.js refactor: use dashedName over dasherize(title) 2020-10-06 23:10:08 +05:30
gatsby-ssr.js feat: enable MathJax for Project Euler challenges (#38017) 2020-01-07 14:14:12 +03:00
jest.config.js refactor(client): move jest-dom into setup file 2020-10-12 14:11:52 +02:00
jest.setup.js refactor(client): move jest-dom into setup file 2020-10-12 14:11:52 +02:00
jest.transform.js feat: Use prettier-eslint to format code 2019-02-19 14:30:27 +05:30
package-lock.json fix(client): update nanoid (#39960) 2020-10-13 17:24:46 +05:30
package.json fix(client): update nanoid (#39960) 2020-10-13 17:24:46 +05:30
postcss.config.js feat: commandline chic 2019-08-20 13:37:11 +05:30
webpack-workers.js fix(client): add cache-busting hashes to chunks (#37746) 2019-11-15 01:43:44 +05:30