ojroques / hugo-researcher

A simple resume theme for Hugo
GNU General Public License v3.0
229 stars 130 forks source link

Background color for code block #37

Open svretina opened 8 months ago

svretina commented 8 months ago

The background color for a codeblock in markdown appears to be black and the code is black as well, resulting in non-readable output.

In the css files of the theme I can spot the codeblock section which does not have black as the background color. Other themes, output the background color normally.

svretina commented 8 months ago

according to this post the problem is solved by replacing the below snippet in the /assets/sass/researcher.scss file

* {
    color: $black;
    font-family: $font-family;
    font-size: $font-size;
    line-height: 1.2;
    // background-color: lightblue;
    // background-color: #f2f2f2;
}

with

body {
    color: $black;
    font-family: $font-family;
    font-size: $font-size;
    line-height: 1.2;
    // background-color: lightblue;
    // background-color: #f2f2f2;
}
ojroques commented 8 months ago

I let you try the fix and create a PR if if works.

I'm not using the theme anymore, but I will happily merge any pull requests :)