1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Applying (user )?monospace font to remarkup code blocks

Summary:
I feel that remarkup code blocks are still kind of small. This should help with my reading problems. Hesitating to add `.PhabricatorMonospaced` to the remarkup rule, since it's pretty specific to Phabricator.

Pasting in the diff btw, since my `arc`'s going crazy (doubt that's `arc.exe`, since it's not landed yet).

Test Plan:
Set font to something large. viewed code block. Was not large.

Applied change. Viewed code block again. It was //**HUGE**//!

Also verified that the `init.js` was still there. I think that's the one being inserted `$5`.

Reviewers: epriestley, chad

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5727
This commit is contained in:
Anh Nhan Nguyen 2013-04-18 11:49:54 -07:00 committed by epriestley
parent 663612fdb4
commit d4938c349b

View file

@ -228,8 +228,11 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView {
return hsprintf(
'%s<style type="text/css">'.
'.PhabricatorMonospaced { font: %s; } '.
'.platform-windows .PhabricatorMonospaced { font: %s; }'.
'.PhabricatorMonospaced, '.
'.phabricator-remarkup .remarkup-code-block { font: %s; } '.
'.platform-windows .PhabricatorMonospaced, '.
'.platform-windows .phabricator-remarkup '.
'.remarkup-code-block { font: %s; }'.
'</style>%s',
parent::getHead(),
phutil_safe_html($monospaced),