mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-27 23:50:05 +00:00
d8f4982e79
* using CodeMirror addon matchBrackets * highlights the matching bracket of a pair * highlights brackets when cursor is inside a pair * feature usable in source code editor Bug: T261857 Change-Id: Ib01d9919a47bb29684b54501644b01936b57972a
18 lines
433 B
Plaintext
18 lines
433 B
Plaintext
.CodeMirror {
|
|
// Fix `font-family: monospace;` caused weird font sizing of browsers.
|
|
// Task: https://phabricator.wikimedia.org/T176636
|
|
// See: http://code.iamkate.com/html-and-css/fixing-browsers-broken-monospace-font-handling/
|
|
font-family: monospace, monospace;
|
|
}
|
|
|
|
div.CodeMirror span {
|
|
&.CodeMirror-matchingbracket {
|
|
color: #fff;
|
|
background-color: #54595d;
|
|
}
|
|
|
|
&.CodeMirror-nonmatchingbracket {
|
|
color: inherit;
|
|
}
|
|
}
|