Use classes to apply the 'editfont' preference
authorEd Sanders <esanders@wikimedia.org>
Wed, 7 Sep 2016 21:59:57 +0000 (14:59 -0700)
committerEsanders <esanders@wikimedia.org>
Tue, 27 Sep 2016 21:07:12 +0000 (21:07 +0000)
commit2c688cfb11ea6cee0e975ed35fc8e503ea127127
treea46201b383d320bd13e9cb2b93043a76afdb889c
parent2066dec86852b4aac74084b5036ef32e2eb3910c
Use classes to apply the 'editfont' preference

This class can be re-used on non textarea inputs
(e.g. ContentEditable or <input>).

The 'default' preference can't be achieved in CSS alone, so
for non-textarea cases, use 'monospace' as is used in the majority of
browsers/OSes. In future a client script could compute the default
font of textarea and add it to the -default rule.

Bug: T145015
Change-Id: I5f0433e9cae6f692396537412c11b79b61db062f
includes/EditPage.php
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php
resources/src/mediawiki.legacy/shared.css