mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 13:56:44 +00:00
fix heading style conflict with CM5
CSS classes such as `.cm-mw-section-3` are assigned to the `<pre>` elements in CM5 while to the `<span>` elements in CM6. The heading styles for CM6 should not interfere with CM5, at least for now. Bug: T355290 Change-Id: I47426a8319e67503014f847fba39891bdf42db5b
This commit is contained in:
parent
1a038072b4
commit
e0af18f99d
|
@ -67,7 +67,11 @@ pre.CodeMirror-line.cm-mw-section-5,
|
|||
pre.CodeMirror-line-like.cm-mw-section-5,
|
||||
pre.CodeMirror-line.cm-mw-section-6,
|
||||
pre.CodeMirror-line-like.cm-mw-section-6,
|
||||
.cm-mw-section-3 ~ *, .cm-mw-section-4 ~ *, .cm-mw-section-5 ~ *, .cm-mw-section-6 ~ * {
|
||||
/* TODO: remove overqualified `span` after CM6 upgrade */
|
||||
span.cm-mw-section-3 ~ *,
|
||||
span.cm-mw-section-4 ~ *,
|
||||
span.cm-mw-section-5 ~ *,
|
||||
span.cm-mw-section-6 ~ * {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue