Bug 1584074 - Fix CodeMirror token color issue due to update to v5.49.0. r=gl.

The last update of the CodeMirror library introduced new
CSS selectors in the css file with a greater specificity than
they used to, which means the color property we set in our
themes css files weren't applied.
We change the selectors in our theme files so they are more
specific than the ones in codemirror's css file.

Differential Revision: https://phabricator.services.mozilla.com/D47291

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2019-09-26 16:14:00 +00:00
Родитель 30285b4a58
Коммит fd8ec279f4
2 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -181,7 +181,9 @@ body {
background: transparent;
}
.CodeMirror.cm-s-mozilla pre {
.CodeMirror.cm-s-mozilla pre,
.CodeMirror.cm-s-mozilla pre.CodeMirror-line,
.CodeMirror.cm-s-mozilla pre.CodeMirror-line-like {
color: var(--theme-text-color-strong);
}

Просмотреть файл

@ -179,6 +179,8 @@ body {
}
.CodeMirror.cm-s-mozilla pre,
.CodeMirror.cm-s-mozilla pre.CodeMirror-line,
.CodeMirror.cm-s-mozilla pre.CodeMirror-line-like,
.cm-s-mozilla .cm-variable-3,
.cm-s-mozilla .cm-operator,
.cm-s-mozilla .cm-special {