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:
parent
663612fdb4
commit
d4938c349b
1 changed files with 5 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue