@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class DifferentialMailView
4 extends Phobject {
5
6 protected function renderCodeBlock($block) {
7 $style = array(
8 'font: 11px/15px "Menlo", "Consolas", "Monaco", monospace;',
9 'white-space: pre-wrap;',
10 'clear: both;',
11 'padding: 4px 0;',
12 'margin: 0;',
13 );
14
15 return phutil_tag(
16 'div',
17 array(
18 'style' => implode(' ', $style),
19 ),
20 $block);
21 }
22
23 protected function renderHeaderBlock($block) {
24 $style = array(
25 'color: #74777d;',
26 'background: #eff2f4;',
27 'padding: 6px 8px;',
28 'overflow: hidden;',
29 );
30
31 return phutil_tag(
32 'div',
33 array(
34 'style' => implode(' ', $style),
35 ),
36 $block);
37 }
38
39 protected function renderHeaderBold($content) {
40 return phutil_tag(
41 'span',
42 array(
43 'style' => 'color: #4b4d51; font-weight: bold;',
44 ),
45 $content);
46 }
47
48 protected function renderContentBox($content) {
49 $style = array(
50 'border: 1px solid #C7CCD9;',
51 'border-radius: 3px;',
52 );
53
54 return phutil_tag(
55 'div',
56 array(
57 'style' => implode(' ', $style),
58 ),
59 $content);
60 }
61
62}