mirror of https://github.com/luizdepra/hugo-coder.git

Sam A
28.55.2022 30e9adb8321c431d843aafc6acb4491341d97dce
refs
author Sam A <sam@sapti.me>
Monday, November 28, 2022 20:55 +0100
committer GitHub <noreply@github.com>
Monday, November 28, 2022 20:55 +0100
commit30e9adb8321c431d843aafc6acb4491341d97dce
tree 056e3d665f4fbcd6abef27cacbacb0409a1a54d6 tree | zip | gz
parent 9f7ec4f706e7d0ff4997dc692b368ebc9516a5ba view | diff
Fix code blocks in dark mode (#733)

### Prerequisites

Put an `x` into the box(es) that apply:

- [x] This pull request fixes a bug.
- [ ] This pull request adds a feature.
- [ ] This pull request introduces breaking change.

### Description

In dark mode, the `code` tag inside `pre` in source code blocks has a
different background color, resulting in two different colors like the
following example:


![codeblocks](https://user-images.githubusercontent.com/26819407/202913094-757949fa-feb6-43a3-ae01-2a3a9ed6b5ee.png)

The bug seems to have been introduced by commit
476429d42ac1971595ccd44a8232685a5ee86d8a.

I have fixed it by adding `inherit` colors to `code` tags that are
inside `.highlight` classes.

### Issues Resolved

No issue has been filed.

### Checklist

Put an `x` into the box(es) that apply:

#### General

- [x] Describe what changes are being made
- [x] Explain why and how the changes were necessary and implemented
respectively
- [ ] Reference issue with `#<ISSUE_NO>` if applicable

#### Resources

- [x] If you have changed any SCSS code, run `make release` to
regenerate all CSS files

#### Contributors

- [ ] Add yourself to `CONTRIBUTORS.md` if you aren't on it already
3 files modified
9 ■■■■ changed files
assets/scss/_base_dark.scss 5 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content 2 ●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json 2 ●●● diff | view | raw | blame | history