mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-14 09:44:48 +00:00
7d3482f89e
CodeMirror 6 requires the use of NPM, but we can still bundle all CM packages into one file, and then everything else (i.e. our code) is managed by ResourceLoader as per usual. This makes contribution considerably easier as we no longer need a build step for each change. CM5 files are now under resources/legacy, and the CM6 files are moved to the root of the resources/ directory. Only one file, codemirror.bundle.js, is managed by Rollup, while everything else is RL. The Rollup output for now is put under resources/lib/ alongside the CM5 upstream files. This patch is *mostly* renames of files, along with changing ECMAScript Module (ESM) syntax into the CommonJS style that ResourceLoader prefers. We also remove more modern JS syntax (i.e. private class methods) that we were able to use before because we had a build step with Babel. This patch should effectively make no user-facing changes, or to the ResourceLoader modules we offer in Extension:CodeMirror. Finally, bump version in extension.json to 6, to match the upstream lib, and add Bhsd as an author :-) Bug: T368053 Change-Id: Ie258e49f5df8db23a7344ac3c4c9300aaa991042
90 lines
2 KiB
Plaintext
90 lines
2 KiB
Plaintext
/*
|
|
* This style sheet overrides colors in mediawiki.less
|
|
* with more colorblind-friendly colors.
|
|
*/
|
|
|
|
.cm-mw-colorblind-colors {
|
|
/* misc */
|
|
.cm-mw-section-header,
|
|
.cm-mw-list,
|
|
.cm-mw-doubleUnderscore,
|
|
.cm-mw-signature,
|
|
.cm-mw-hr,
|
|
.cm-mw-indenting,
|
|
.cm-mw-apostrophes-bold,
|
|
.cm-mw-apostrophes-italic {
|
|
color: #e4a400;
|
|
}
|
|
|
|
/* tags */
|
|
.cm-mw-exttag-name,
|
|
.cm-mw-exttag-bracket,
|
|
.cm-mw-exttag-attribute,
|
|
.cm-mw-htmltag-name,
|
|
.cm-mw-htmltag-bracket,
|
|
.cm-mw-htmltag-attribute {
|
|
color: #56b4e9;
|
|
}
|
|
|
|
/* templates */
|
|
.cm-mw-template,
|
|
.cm-mw-template-name,
|
|
.cm-mw-template-name-mnemonic,
|
|
.cm-mw-template-argument-name,
|
|
.cm-mw-template-delimiter,
|
|
.cm-mw-template-bracket {
|
|
color: #9c3a00;
|
|
}
|
|
|
|
/* variables */
|
|
.cm-mw-templatevariable,
|
|
.cm-mw-templatevariable-name,
|
|
.cm-mw-templatevariable-bracket,
|
|
.cm-mw-templatevariable-delimiter {
|
|
color: #009e73;
|
|
}
|
|
|
|
/* remove background colors */
|
|
.cm-mw-matching,
|
|
.cm-mw-skipformatting,
|
|
.cm-mw-doubleUnderscore,
|
|
.cm-mw-signature,
|
|
.cm-mw-hr,
|
|
pre.CodeMirror-line-like.cm-mw-exttag,
|
|
.cm-mw-exttag,
|
|
.cm-mw-tag-pre,
|
|
.cm-mw-tag-nowiki,
|
|
.cm-mw-template2-ground,
|
|
.cm-mw-template3-ground,
|
|
.cm-mw-template-ext-ground,
|
|
.cm-mw-template-ext2-ground,
|
|
.cm-mw-template-ext3-ground,
|
|
.cm-mw-template-link-ground,
|
|
.cm-mw-template-ext-link-ground,
|
|
.cm-mw-template-ext2-link-ground,
|
|
.cm-mw-template-ext3-link-ground,
|
|
.cm-mw-template2-ext-ground,
|
|
.cm-mw-template2-ext2-ground,
|
|
.cm-mw-template2-ext3-ground,
|
|
.cm-mw-template2-link-ground,
|
|
.cm-mw-template2-ext-link-ground,
|
|
.cm-mw-template2-ext2-link-ground,
|
|
.cm-mw-template2-ext3-link-ground,
|
|
.cm-mw-template3-ext-ground,
|
|
.cm-mw-template3-ext2-ground,
|
|
.cm-mw-template3-ext3-ground,
|
|
.cm-mw-template3-link-ground,
|
|
.cm-mw-template3-ext-link-ground,
|
|
.cm-mw-template3-ext2-link-ground,
|
|
.cm-mw-template3-ext3-link-ground,
|
|
.cm-mw-ext-ground,
|
|
.cm-mw-ext2-ground,
|
|
.cm-mw-ext3-ground,
|
|
.cm-mw-ext-link-ground,
|
|
.cm-mw-ext2-link-ground,
|
|
.cm-mw-ext3-link-ground,
|
|
.cm-mw-link-ground {
|
|
background-color: transparent;
|
|
}
|
|
}
|