mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Legalpad - style NOTE IMPORTANT WARNING remarkup slightly differently
Summary: round them there corners, to create more of a "bubble" effect in legalpad. Ref T3116. Test Plan: see screenshot, which demonstrates new style works Reviewers: epriestley Reviewed By: epriestley CC: chad, Korvin, epriestley, aran Maniphest Tasks: T3116 Differential Revision: https://secure.phabricator.com/D8060
This commit is contained in:
parent
53687827c6
commit
f6e9d36c32
4 changed files with 39 additions and 9 deletions
|
@ -7,7 +7,7 @@
|
||||||
return array(
|
return array(
|
||||||
'names' =>
|
'names' =>
|
||||||
array(
|
array(
|
||||||
'core.pkg.css' => '5ad20a3f',
|
'core.pkg.css' => '63255578',
|
||||||
'core.pkg.js' => 'c907bd96',
|
'core.pkg.js' => 'c907bd96',
|
||||||
'darkconsole.pkg.js' => 'ca8671ce',
|
'darkconsole.pkg.js' => 'ca8671ce',
|
||||||
'differential.pkg.css' => '5a65a762',
|
'differential.pkg.css' => '5a65a762',
|
||||||
|
@ -74,6 +74,7 @@ return array(
|
||||||
'rsrc/css/application/flag/flag.css' => '5337623f',
|
'rsrc/css/application/flag/flag.css' => '5337623f',
|
||||||
'rsrc/css/application/herald/herald-test.css' => '2b7d0f54',
|
'rsrc/css/application/herald/herald-test.css' => '2b7d0f54',
|
||||||
'rsrc/css/application/herald/herald.css' => '59d48f01',
|
'rsrc/css/application/herald/herald.css' => '59d48f01',
|
||||||
|
'rsrc/css/application/legalpad/legalpad-document.css' => 'c60a9d1e',
|
||||||
'rsrc/css/application/maniphest/batch-editor.css' => '78444bc1',
|
'rsrc/css/application/maniphest/batch-editor.css' => '78444bc1',
|
||||||
'rsrc/css/application/maniphest/report.css' => '6fc16517',
|
'rsrc/css/application/maniphest/report.css' => '6fc16517',
|
||||||
'rsrc/css/application/maniphest/task-edit.css' => '8e23031b',
|
'rsrc/css/application/maniphest/task-edit.css' => '8e23031b',
|
||||||
|
@ -113,7 +114,7 @@ return array(
|
||||||
'rsrc/css/application/tokens/tokens.css' => 'fb286311',
|
'rsrc/css/application/tokens/tokens.css' => 'fb286311',
|
||||||
'rsrc/css/application/uiexample/example.css' => '4741b891',
|
'rsrc/css/application/uiexample/example.css' => '4741b891',
|
||||||
'rsrc/css/core/core.css' => 'da26ddb2',
|
'rsrc/css/core/core.css' => 'da26ddb2',
|
||||||
'rsrc/css/core/remarkup.css' => 'bec51bf1',
|
'rsrc/css/core/remarkup.css' => 'ca7f2265',
|
||||||
'rsrc/css/core/syntax.css' => '3c18c1cb',
|
'rsrc/css/core/syntax.css' => '3c18c1cb',
|
||||||
'rsrc/css/core/z-index.css' => '1bbbd4f1',
|
'rsrc/css/core/z-index.css' => '1bbbd4f1',
|
||||||
'rsrc/css/diviner/diviner-shared.css' => 'be90f718',
|
'rsrc/css/diviner/diviner-shared.css' => 'be90f718',
|
||||||
|
@ -655,6 +656,7 @@ return array(
|
||||||
'javelin-view-renderer' => '77461fd6',
|
'javelin-view-renderer' => '77461fd6',
|
||||||
'javelin-view-visitor' => 'ca704f2b',
|
'javelin-view-visitor' => 'ca704f2b',
|
||||||
'javelin-workflow' => 'd16edeae',
|
'javelin-workflow' => 'd16edeae',
|
||||||
|
'legalpad-document-css' => 'c60a9d1e',
|
||||||
'lightbox-attachment-css' => '686f8885',
|
'lightbox-attachment-css' => '686f8885',
|
||||||
'maniphest-batch-editor' => '78444bc1',
|
'maniphest-batch-editor' => '78444bc1',
|
||||||
'maniphest-report-css' => '6fc16517',
|
'maniphest-report-css' => '6fc16517',
|
||||||
|
@ -700,7 +702,7 @@ return array(
|
||||||
'phabricator-prefab' => '9eaf0bfa',
|
'phabricator-prefab' => '9eaf0bfa',
|
||||||
'phabricator-profile-css' => '3a7e04ca',
|
'phabricator-profile-css' => '3a7e04ca',
|
||||||
'phabricator-project-tag-css' => '095c9404',
|
'phabricator-project-tag-css' => '095c9404',
|
||||||
'phabricator-remarkup-css' => 'bec51bf1',
|
'phabricator-remarkup-css' => 'ca7f2265',
|
||||||
'phabricator-search-results-css' => 'f240504c',
|
'phabricator-search-results-css' => 'f240504c',
|
||||||
'phabricator-settings-css' => 'ea8f5915',
|
'phabricator-settings-css' => 'ea8f5915',
|
||||||
'phabricator-shaped-request' => 'dfa181a4',
|
'phabricator-shaped-request' => 'dfa181a4',
|
||||||
|
|
|
@ -177,9 +177,10 @@ final class LegalpadDocumentSignController extends LegalpadController {
|
||||||
->setHeader($title);
|
->setHeader($title);
|
||||||
|
|
||||||
$content = array(
|
$content = array(
|
||||||
id(new PHUIDocumentView())
|
$this->buildDocument(
|
||||||
->setHeader($header)
|
$header,
|
||||||
->appendChild($this->buildDocument($engine, $document_body)),
|
$engine,
|
||||||
|
$document_body),
|
||||||
$this->buildSignatureForm(
|
$this->buildSignatureForm(
|
||||||
$document_body,
|
$document_body,
|
||||||
$signature,
|
$signature,
|
||||||
|
@ -199,10 +200,17 @@ final class LegalpadDocumentSignController extends LegalpadController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildDocument(
|
private function buildDocument(
|
||||||
PhabricatorMarkupEngine
|
PHUIHeaderView $header,
|
||||||
$engine, LegalpadDocumentBody $body) {
|
PhabricatorMarkupEngine $engine,
|
||||||
|
LegalpadDocumentBody $body) {
|
||||||
|
|
||||||
return $engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT);
|
$this->requireResource('legalpad-document-css');
|
||||||
|
return id(new PHUIDocumentView())
|
||||||
|
->addClass('legalpad')
|
||||||
|
->setHeader($header)
|
||||||
|
->appendChild($engine->getOutput(
|
||||||
|
$body,
|
||||||
|
LegalpadDocumentBody::MARKUP_FIELD_TEXT));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildSignatureForm(
|
private function buildSignatureForm(
|
||||||
|
|
|
@ -110,7 +110,9 @@ final class LegalpadDocumentViewController extends LegalpadController {
|
||||||
PhabricatorMarkupEngine
|
PhabricatorMarkupEngine
|
||||||
$engine, LegalpadDocumentBody $body) {
|
$engine, LegalpadDocumentBody $body) {
|
||||||
|
|
||||||
|
$this->requireResource('legalpad-document-css');
|
||||||
$view = new PHUIPropertyListView();
|
$view = new PHUIPropertyListView();
|
||||||
|
$view->addClass('legalpad');
|
||||||
$view->addSectionHeader(pht('Document'));
|
$view->addSectionHeader(pht('Document'));
|
||||||
$view->addTextContent(
|
$view->addTextContent(
|
||||||
$engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT));
|
$engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT));
|
||||||
|
|
18
webroot/rsrc/css/application/legalpad/legalpad-document.css
Normal file
18
webroot/rsrc/css/application/legalpad/legalpad-document.css
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* @provides legalpad-document-css
|
||||||
|
*/
|
||||||
|
|
||||||
|
.legalpad .phabricator-remarkup .remarkup-note {
|
||||||
|
border-radius: 14px;
|
||||||
|
-moz-border-radius: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legalpad .phabricator-remarkup .remarkup-warning {
|
||||||
|
border-radius: 14px;
|
||||||
|
-moz-border-radius: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legalpad .phabricator-remarkup .remarkup-important {
|
||||||
|
border-radius: 14px;
|
||||||
|
-moz-border-radius: 14px;
|
||||||
|
}
|
Loading…
Reference in a new issue