1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

Update look of Legalpad

Summary: Uses FontKit like Diviner, simplifies headers.

Test Plan:
Dropped in Contributor Doc, looks pretty.

{F170799}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9751
This commit is contained in:
Chad Little 2014-06-27 07:20:14 -07:00
parent 455ac8ec4d
commit 99b839948c
3 changed files with 23 additions and 3 deletions

View file

@ -126,7 +126,7 @@ return array(
'rsrc/css/phui/phui-button.css' => 'c7412aa1',
'rsrc/css/phui/phui-document.css' => 'a5615198',
'rsrc/css/phui/phui-feed-story.css' => 'e2c9bc83',
'rsrc/css/phui/phui-fontkit.css' => 'de84aa4a',
'rsrc/css/phui/phui-fontkit.css' => '8246e56e',
'rsrc/css/phui/phui-form-view.css' => 'ebac1b1d',
'rsrc/css/phui/phui-form.css' => 'b78ec020',
'rsrc/css/phui/phui-header-view.css' => 'a2071a67',
@ -772,7 +772,7 @@ return array(
'phui-document-view-css' => 'a5615198',
'phui-feed-story-css' => 'e2c9bc83',
'phui-font-icon-base-css' => 'eb84f033',
'phui-fontkit-css' => 'de84aa4a',
'phui-fontkit-css' => '8246e56e',
'phui-form-css' => 'b78ec020',
'phui-form-view-css' => 'ebac1b1d',
'phui-header-view-css' => 'a2071a67',

View file

@ -217,6 +217,7 @@ final class LegalpadDocumentSignController extends LegalpadController {
$content = id(new PHUIDocumentView())
->addClass('legalpad')
->setHeader($header)
->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS)
->appendChild(
array(
$signed_status,
@ -237,9 +238,13 @@ final class LegalpadDocumentSignController extends LegalpadController {
$e_email,
$e_agree);
$subheader = id(new PHUIHeaderView())
->setHeader(pht('Agree and Sign Document'))
->setBleedHeader(true);
$content->appendChild(
array(
id(new PHUIHeaderView())->setHeader(pht('Agree and Sign Document')),
$subheader,
$error_view,
$signature_form,
));

View file

@ -18,6 +18,11 @@
margin: 0 0 16px;
}
.phui-font-source-sans .phabricator-remarkup ol li,
.phui-font-source-sans .phabricator-remarkup ul li {
margin-bottom: 4px;
}
.phui-font-source-sans .phabricator-remarkup tt {
font-size: 13px;
padding: 1px 3px 2px;
@ -36,3 +41,13 @@
.phui-font-source-sans a {
color: {$blue};
}
body .phui-font-source-sans
.phui-header-shell.phui-bleed-header .phui-header-view {
font-size: 18px;
}
.phui-font-source-sans .phui-form-view {
font: 13px/1.231 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
}