mediawiki-extensions-CodeMi.../resources/lib/codemirror-fixes.less
Adam Wight d8f4982e79 Added bracket matching
* 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
2020-12-15 13:09:06 +00:00

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;
}
}