зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
30285b4a58
Коммит
fd8ec279f4
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче