The Bootstrap stylesheet contains the following code:
pre code {
color: inherit;
}
Even if I include an explicit pre code { color: red; }
, the style from Bootstrap's stylesheet still takes priority. Why does this happen? [Edit: can ignore this question as it was due to the wrong order of definition.]
Is there a way to make the color
property for pre code
inherit the computed color value for code
without explicitly setting a color?
In Bootstrap, the color for code
is set to #383e3c based on the selected theme. It's unclear why a different color is set for pre code
. Ideally, I would like both pre code
and code
to have the same color.