/*
 * This style sheet overrides colors in mediawiki.less
 * with more colorblind-friendly colors.
 */
@import '../../codemirror.mixins.less';
@import 'codemirror.mediawiki.variables.less';

.cm-mw-colorblind-colors {
	/* misc */
	.cm-mw-section-header,
	.cm-mw-list,
	.cm-mw-double-underscore,
	.cm-mw-signature,
	.cm-mw-hr,
	.cm-mw-redirect,
	.cm-mw-indenting,
	.cm-mw-apostrophes {
		color: @colorblind-misc-color;
	}

	/* tags */
	.cm-mw-exttag-name,
	.cm-mw-exttag-bracket,
	.cm-mw-exttag-attribute,
	.cm-mw-exttag-attribute-value,
	.cm-mw-htmltag-name,
	.cm-mw-htmltag-bracket,
	.cm-mw-htmltag-attribute,
	.cm-mw-htmltag-attribute-value {
		color: @colorblind-tag-color;
	}

	/* table */
	.cm-mw-table-definition-value {
		color: @table-color;
		.darkmode( color, @table-color-dark );
	}

	/* templates */
	.cm-mw-template,
	.cm-mw-template-name,
	.cm-mw-template-argument-name,
	.cm-mw-template-delimiter,
	.cm-mw-template-bracket {
		color: @colorblind-template-color;
	}

	/* variables */
	.cm-mw-templatevariable,
	.cm-mw-templatevariable-name,
	.cm-mw-templatevariable-bracket,
	.cm-mw-templatevariable-delimiter {
		color: @colorblind-variable-color;
	}

	/* remove background colors */
	.cm-mw-matching,
	.cm-mw-skipformatting,
	.cm-mw-double-underscore,
	.cm-mw-signature,
	.cm-mw-hr,
	.cm-mw-redirect,
	.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;
	}
}
